~ubuntu-branches/ubuntu/karmic/go-home-applet/karmic

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2009-01-28 01:17:56 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090128011756-q1yw7qudhkiws11a
Tags: 0.2.1-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
35
35
  fi
36
36
 
37
 
  AC_ARG_WITH([gconf-source],
38
 
              AC_HELP_STRING([--with-gconf-source=sourceaddress],
39
 
                             [Config database for installing schema files.]),
40
 
              [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
 
37
  AC_ARG_WITH(gconf-source, 
 
38
  [  --with-gconf-source=sourceaddress      Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
41
39
 
42
40
  AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43
41
  AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
46
44
    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
47
45
  fi
48
46
 
49
 
  AC_ARG_WITH([gconf-schema-file-dir],
50
 
              AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51
 
                             [Directory for installing schema files.]),
52
 
              [GCONF_SCHEMA_FILE_DIR="$withval"],)
 
47
  AC_ARG_WITH(gconf-schema-file-dir, 
 
48
  [  --with-gconf-schema-file-dir=dir        Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
53
49
 
54
50
  AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55
51
  AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
498
494
 
499
495
 
500
496
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
501
 
# serial 40 IT_PROG_INTLTOOL
502
 
AC_DEFUN([IT_PROG_INTLTOOL], [
503
 
AC_PREREQ([2.50])dnl
504
 
AC_REQUIRE([AM_NLS])dnl
 
497
# serial 36 IT_PROG_INTLTOOL
 
498
AC_DEFUN([IT_PROG_INTLTOOL],
 
499
[AC_PREREQ([2.50])dnl
505
500
 
506
501
case "$am__api_version" in
507
502
    1.[01234])
515
510
    AC_MSG_CHECKING([for intltool >= $1])
516
511
 
517
512
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
518
 
    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
519
 
    [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
 
513
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
 
514
    [INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
520
515
    ]
521
516
    AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
522
517
    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
523
518
        AC_MSG_ERROR([Your intltool is too old.  You need intltool $1 or later.])
524
519
fi
525
520
 
526
 
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
527
 
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
528
 
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
529
 
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
530
 
    AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
531
 
fi
532
 
 
533
521
  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 $< [$]@' 
534
522
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 $< [$]@' 
535
523
     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 $< [$]@' 
574
562
AC_PATH_PROG(XGETTEXT, xgettext)
575
563
AC_PATH_PROG(MSGMERGE, msgmerge)
576
564
AC_PATH_PROG(MSGFMT, msgfmt)
577
 
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
578
565
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
579
566
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
580
567
fi
585
572
    AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
586
573
fi
587
574
 
588
 
AC_PATH_PROG(INTLTOOL_PERL, [perl])
 
575
# Use the tools built into the package, not the ones that are installed.
 
576
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
 
577
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
 
578
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
 
579
 
 
580
AC_PATH_PROG(INTLTOOL_PERL, perl)
589
581
if test -z "$INTLTOOL_PERL"; then
590
582
   AC_MSG_ERROR([perl not found; required for intltool])
591
583
fi
631
623
 
632
624
IT_PO_SUBDIR([po])
633
625
 
 
626
dnl The following is very similar to
 
627
dnl
 
628
dnl     AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
 
629
dnl
 
630
dnl with the following slight differences:
 
631
dnl  - the *.in files are in ac_aux_dir,
 
632
dnl  - if the file haven't changed upon reconfigure, it's not touched,
 
633
dnl  - the evaluation of the third parameter enables a hack which computes
 
634
dnl    the actual value of $libdir,
 
635
dnl  - the user sees "executing intltool commands", instead of
 
636
dnl    "creating intltool-extract" and such.
 
637
dnl
 
638
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
 
639
dnl a reason for it.
 
640
 
 
641
AC_CONFIG_COMMANDS([intltool], [
 
642
 
 
643
for file in intltool-extract intltool-merge intltool-update; do
 
644
  sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
 
645
      -e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
 
646
      -e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
 
647
        < ${ac_aux_dir}/${file}.in > ${file}.out
 
648
  if cmp -s ${file} ${file}.out 2>/dev/null; then
 
649
    rm -f ${file}.out
 
650
  else
 
651
    mv -f ${file}.out ${file}
 
652
  fi
 
653
  chmod ugo+x ${file}
 
654
  chmod u+w ${file}
 
655
done
 
656
 
 
657
],
 
658
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
 
659
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir" 
 
660
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
 
661
 
634
662
])
635
663
 
636
664
 
646
674
dnl of config.status.
647
675
AC_CONFIG_COMMANDS_PRE([
648
676
  AC_CONFIG_COMMANDS([$1/stamp-it], [
649
 
    if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" ]; then
650
 
       AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
651
 
    fi
652
677
    rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
653
678
    >"$1/stamp-it.tmp"
654
679
    [sed '/^#/d
657
682
        '"s|^|  $ac_top_srcdir/|" \
658
683
      "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
659
684
    ]
 
685
    if test ! -f "$1/Makefile"; then
 
686
      AC_MSG_ERROR([$1/Makefile is not ready.])
 
687
    fi
 
688
    mv "$1/Makefile" "$1/Makefile.tmp"
660
689
    [sed '/^POTFILES =/,/[^\\]$/ {
661
690
                /^POTFILES =/!d
662
691
                r $1/POTFILES
663
692
          }
664
 
         ' "$1/Makefile.in" >"$1/Makefile"]
 
693
         ' "$1/Makefile.tmp" >"$1/Makefile"]
665
694
    rm -f "$1/Makefile.tmp"
666
695
    mv "$1/stamp-it.tmp" "$1/stamp-it"
667
696
  ])
668
697
])dnl
669
698
])
670
699
 
 
700
 
671
701
# deprecated macros
672
702
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
673
703
# A hint is needed for aclocal from Automake <= 1.9.4:
675
705
 
676
706
 
677
707
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
678
 
#
679
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
680
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
681
 
#   Written by Gordon Matzigkeit, 1996
682
 
#
683
 
# This file is free software; the Free Software Foundation gives
684
 
# unlimited permission to copy and/or distribute it, with or without
685
 
# modifications, as long as this notice is preserved.
686
 
 
687
 
m4_define([_LT_COPYING], [dnl
688
 
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
689
 
#                 2006, 2007, 2008 Free Software Foundation, Inc.
690
 
#   Written by Gordon Matzigkeit, 1996
691
 
#
692
 
#   This file is part of GNU Libtool.
693
 
#
694
 
# GNU Libtool is free software; you can redistribute it and/or
695
 
# modify it under the terms of the GNU General Public License as
696
 
# published by the Free Software Foundation; either version 2 of
697
 
# the License, or (at your option) any later version.
698
 
#
699
 
# As a special exception to the GNU General Public License,
700
 
# if you distribute this file as part of a program or library that
701
 
# is built using GNU Libtool, you may include this file under the
702
 
# same distribution terms that you use for the rest of that program.
703
 
#
704
 
# GNU Libtool is distributed in the hope that it will be useful,
705
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
706
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
707
 
# GNU General Public License for more details.
708
 
#
709
 
# You should have received a copy of the GNU General Public License
710
 
# along with GNU Libtool; see the file COPYING.  If not, a copy
711
 
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
712
 
# obtained by writing to the Free Software Foundation, Inc.,
713
 
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
714
 
])
715
 
 
716
 
# serial 56 LT_INIT
717
 
 
718
 
 
719
 
# LT_PREREQ(VERSION)
720
 
# ------------------
721
 
# Complain and exit if this libtool version is less that VERSION.
722
 
m4_defun([LT_PREREQ],
723
 
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
724
 
       [m4_default([$3],
725
 
                   [m4_fatal([Libtool version $1 or higher is required],
726
 
                             63)])],
727
 
       [$2])])
728
 
 
729
 
 
730
 
# _LT_CHECK_BUILDDIR
731
 
# ------------------
732
 
# Complain if the absolute build directory name contains unusual characters
733
 
m4_defun([_LT_CHECK_BUILDDIR],
734
 
[case `pwd` in
735
 
  *\ * | *\     *)
736
 
    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
737
 
esac
738
 
])
739
 
 
740
 
 
741
 
# LT_INIT([OPTIONS])
742
 
# ------------------
743
 
AC_DEFUN([LT_INIT],
744
 
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
745
 
AC_BEFORE([$0], [LT_LANG])dnl
746
 
AC_BEFORE([$0], [LT_OUTPUT])dnl
747
 
AC_BEFORE([$0], [LTDL_INIT])dnl
748
 
m4_require([_LT_CHECK_BUILDDIR])dnl
749
 
 
750
 
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
751
 
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
752
 
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
753
 
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
754
 
dnl unless we require an AC_DEFUNed macro:
755
 
AC_REQUIRE([LTOPTIONS_VERSION])dnl
756
 
AC_REQUIRE([LTSUGAR_VERSION])dnl
757
 
AC_REQUIRE([LTVERSION_VERSION])dnl
758
 
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
759
 
m4_require([_LT_PROG_LTMAIN])dnl
760
 
 
761
 
dnl Parse OPTIONS
762
 
_LT_SET_OPTIONS([$0], [$1])
 
708
 
 
709
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
 
710
 
 
711
 
 
712
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
 
713
# -----------------------------------------------------------
 
714
# If this macro is not defined by Autoconf, define it here.
 
715
m4_ifdef([AC_PROVIDE_IFELSE],
 
716
         [],
 
717
         [m4_define([AC_PROVIDE_IFELSE],
 
718
                 [m4_ifdef([AC_PROVIDE_$1],
 
719
                           [$2], [$3])])])
 
720
 
 
721
 
 
722
# AC_PROG_LIBTOOL
 
723
# ---------------
 
724
AC_DEFUN([AC_PROG_LIBTOOL],
 
725
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
 
726
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
 
727
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
 
728
  AC_PROVIDE_IFELSE([AC_PROG_CXX],
 
729
    [AC_LIBTOOL_CXX],
 
730
    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
 
731
  ])])
 
732
dnl And a similar setup for Fortran 77 support
 
733
  AC_PROVIDE_IFELSE([AC_PROG_F77],
 
734
    [AC_LIBTOOL_F77],
 
735
    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
 
736
])])
 
737
 
 
738
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
 
739
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
 
740
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
 
741
  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
 
742
    [AC_LIBTOOL_GCJ],
 
743
    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
 
744
      [AC_LIBTOOL_GCJ],
 
745
      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
 
746
        [AC_LIBTOOL_GCJ],
 
747
      [ifdef([AC_PROG_GCJ],
 
748
             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
749
       ifdef([A][M_PROG_GCJ],
 
750
             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
 
751
       ifdef([LT_AC_PROG_GCJ],
 
752
             [define([LT_AC_PROG_GCJ],
 
753
                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
 
754
])])# AC_PROG_LIBTOOL
 
755
 
 
756
 
 
757
# _AC_PROG_LIBTOOL
 
758
# ----------------
 
759
AC_DEFUN([_AC_PROG_LIBTOOL],
 
760
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
 
761
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
 
762
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
 
763
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
763
764
 
764
765
# This can be used to rebuild libtool when needed
765
 
LIBTOOL_DEPS="$ltmain"
 
766
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
766
767
 
767
768
# Always use our own libtool.
768
769
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
769
770
AC_SUBST(LIBTOOL)dnl
770
771
 
771
 
_LT_SETUP
772
 
 
773
 
# Only expand once:
774
 
m4_define([LT_INIT])
775
 
])# LT_INIT
776
 
 
777
 
# Old names:
778
 
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
779
 
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
780
 
dnl aclocal-1.4 backwards compatibility:
781
 
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
782
 
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
783
 
 
784
 
 
785
 
# _LT_CC_BASENAME(CC)
786
 
# -------------------
787
 
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
788
 
m4_defun([_LT_CC_BASENAME],
789
 
[for cc_temp in $1""; do
790
 
  case $cc_temp in
791
 
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
792
 
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
793
 
    \-*) ;;
794
 
    *) break;;
795
 
  esac
796
 
done
797
 
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
798
 
])
799
 
 
800
 
 
801
 
# _LT_FILEUTILS_DEFAULTS
802
 
# ----------------------
803
 
# It is okay to use these file commands and assume they have been set
804
 
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
805
 
m4_defun([_LT_FILEUTILS_DEFAULTS],
806
 
[: ${CP="cp -f"}
807
 
: ${MV="mv -f"}
808
 
: ${RM="rm -f"}
809
 
])# _LT_FILEUTILS_DEFAULTS
810
 
 
811
 
 
812
 
# _LT_SETUP
813
 
# ---------
814
 
m4_defun([_LT_SETUP],
815
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
772
# Prevent multiple expansion
 
773
define([AC_PROG_LIBTOOL], [])
 
774
])# _AC_PROG_LIBTOOL
 
775
 
 
776
 
 
777
# AC_LIBTOOL_SETUP
 
778
# ----------------
 
779
AC_DEFUN([AC_LIBTOOL_SETUP],
 
780
[AC_PREREQ(2.50)dnl
 
781
AC_REQUIRE([AC_ENABLE_SHARED])dnl
 
782
AC_REQUIRE([AC_ENABLE_STATIC])dnl
 
783
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
 
784
AC_REQUIRE([AC_CANONICAL_HOST])dnl
816
785
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
817
 
_LT_DECL([], [host_alias], [0], [The host system])dnl
818
 
_LT_DECL([], [host], [0])dnl
819
 
_LT_DECL([], [host_os], [0])dnl
820
 
dnl
821
 
_LT_DECL([], [build_alias], [0], [The build system])dnl
822
 
_LT_DECL([], [build], [0])dnl
823
 
_LT_DECL([], [build_os], [0])dnl
824
 
dnl
825
786
AC_REQUIRE([AC_PROG_CC])dnl
826
 
AC_REQUIRE([LT_PATH_LD])dnl
827
 
AC_REQUIRE([LT_PATH_NM])dnl
828
 
dnl
 
787
AC_REQUIRE([AC_PROG_LD])dnl
 
788
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
 
789
AC_REQUIRE([AC_PROG_NM])dnl
 
790
 
829
791
AC_REQUIRE([AC_PROG_LN_S])dnl
830
 
test -z "$LN_S" && LN_S="ln -s"
831
 
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
832
 
dnl
833
 
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
834
 
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
835
 
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
836
 
dnl
837
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
838
 
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
839
 
m4_require([_LT_CMD_RELOAD])dnl
840
 
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
841
 
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
842
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
843
 
 
844
 
_LT_CONFIG_LIBTOOL_INIT([
845
 
# See if we are running on zsh, and set the options which allow our
846
 
# commands through without removal of \ escapes INIT.
847
 
if test -n "\${ZSH_VERSION+set}" ; then
848
 
   setopt NO_GLOB_SUBST
849
 
fi
850
 
])
851
 
if test -n "${ZSH_VERSION+set}" ; then
852
 
   setopt NO_GLOB_SUBST
853
 
fi
854
 
 
855
 
_LT_CHECK_OBJDIR
856
 
 
857
 
m4_require([_LT_TAG_COMPILER])dnl
858
 
_LT_PROG_ECHO_BACKSLASH
 
792
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
 
793
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
794
AC_REQUIRE([AC_OBJEXT])dnl
 
795
AC_REQUIRE([AC_EXEEXT])dnl
 
796
dnl
 
797
AC_LIBTOOL_SYS_MAX_CMD_LEN
 
798
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
799
AC_LIBTOOL_OBJDIR
 
800
 
 
801
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
802
_LT_AC_PROG_ECHO_BACKSLASH
859
803
 
860
804
case $host_os in
861
805
aix3*)
871
815
 
872
816
# Sed substitution that helps us do robust quoting.  It backslashifies
873
817
# metacharacters that are still active within double-quoted strings.
874
 
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
 
818
Xsed='sed -e 1s/^X//'
 
819
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
875
820
 
876
821
# Same as above, but do not quote variable references.
877
 
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
 
822
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
878
823
 
879
824
# Sed substitution to delay expansion of an escaped shell variable in a
880
825
# double_quote_subst'ed string.
881
826
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
882
827
 
883
 
# Sed substitution to delay expansion of an escaped single quote.
884
 
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
885
 
 
886
828
# Sed substitution to avoid accidental globbing in evaled expressions
887
829
no_glob_subst='s/\*/\\\*/g'
888
830
 
 
831
# Constants:
 
832
rm="rm -f"
 
833
 
889
834
# Global variables:
890
 
ofile=libtool
 
835
default_ofile=libtool
891
836
can_build_shared=yes
892
837
 
893
838
# All known linkers require a `.a' archive for static linking (except MSVC,
894
839
# which needs '.lib').
895
840
libext=a
896
 
 
 
841
ltmain="$ac_aux_dir/ltmain.sh"
 
842
ofile="$default_ofile"
897
843
with_gnu_ld="$lt_cv_prog_gnu_ld"
898
844
 
 
845
AC_CHECK_TOOL(AR, ar, false)
 
846
AC_CHECK_TOOL(RANLIB, ranlib, :)
 
847
AC_CHECK_TOOL(STRIP, strip, :)
 
848
 
899
849
old_CC="$CC"
900
850
old_CFLAGS="$CFLAGS"
901
851
 
902
852
# Set sane defaults for various variables
 
853
test -z "$AR" && AR=ar
 
854
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
855
test -z "$AS" && AS=as
903
856
test -z "$CC" && CC=cc
904
857
test -z "$LTCC" && LTCC=$CC
905
858
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
859
test -z "$DLLTOOL" && DLLTOOL=dlltool
906
860
test -z "$LD" && LD=ld
 
861
test -z "$LN_S" && LN_S="ln -s"
 
862
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
863
test -z "$NM" && NM=nm
 
864
test -z "$SED" && SED=sed
 
865
test -z "$OBJDUMP" && OBJDUMP=objdump
 
866
test -z "$RANLIB" && RANLIB=:
 
867
test -z "$STRIP" && STRIP=:
907
868
test -z "$ac_objext" && ac_objext=o
908
869
 
 
870
# Determine commands to create old-style static archives.
 
871
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
872
old_postinstall_cmds='chmod 644 $oldlib'
 
873
old_postuninstall_cmds=
 
874
 
 
875
if test -n "$RANLIB"; then
 
876
  case $host_os in
 
877
  openbsd*)
 
878
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
879
    ;;
 
880
  *)
 
881
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
882
    ;;
 
883
  esac
 
884
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
885
fi
 
886
 
909
887
_LT_CC_BASENAME([$compiler])
910
888
 
911
889
# Only perform the check for file, if the check method requires it
912
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
913
890
case $deplibs_check_method in
914
891
file_magic*)
915
892
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
916
 
    _LT_PATH_MAGIC
 
893
    AC_PATH_MAGIC
917
894
  fi
918
895
  ;;
919
896
esac
920
897
 
 
898
_LT_REQUIRED_DARWIN_CHECKS
 
899
 
 
900
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
 
901
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
902
enable_win32_dll=yes, enable_win32_dll=no)
 
903
 
 
904
AC_ARG_ENABLE([libtool-lock],
 
905
    [AC_HELP_STRING([--disable-libtool-lock],
 
906
        [avoid locking (might break parallel builds)])])
 
907
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
908
 
 
909
AC_ARG_WITH([pic],
 
910
    [AC_HELP_STRING([--with-pic],
 
911
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
 
912
    [pic_mode="$withval"],
 
913
    [pic_mode=default])
 
914
test -z "$pic_mode" && pic_mode=default
 
915
 
921
916
# Use C for the default configuration in the libtool script
922
 
LT_SUPPORTED_TAG([CC])
923
 
_LT_LANG_C_CONFIG
924
 
_LT_LANG_DEFAULT_CONFIG
925
 
_LT_CONFIG_COMMANDS
926
 
])# _LT_SETUP
927
 
 
928
 
 
929
 
# _LT_PROG_LTMAIN
930
 
# ---------------
931
 
# Note that this code is called both from `configure', and `config.status'
932
 
# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
933
 
# `config.status' has no value for ac_aux_dir unless we are using Automake,
934
 
# so we pass a copy along to make sure it has a sensible value anyway.
935
 
m4_defun([_LT_PROG_LTMAIN],
936
 
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
937
 
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
938
 
ltmain="$ac_aux_dir/ltmain.sh"
939
 
])# _LT_PROG_LTMAIN
940
 
 
941
 
 
942
 
 
943
 
# So that we can recreate a full libtool script including additional
944
 
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
945
 
# in macros and then make a single call at the end using the `libtool'
946
 
# label.
947
 
 
948
 
 
949
 
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
950
 
# ----------------------------------------
951
 
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
952
 
m4_define([_LT_CONFIG_LIBTOOL_INIT],
953
 
[m4_ifval([$1],
954
 
          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
955
 
                     [$1
956
 
])])])
957
 
 
958
 
# Initialize.
959
 
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
960
 
 
961
 
 
962
 
# _LT_CONFIG_LIBTOOL([COMMANDS])
963
 
# ------------------------------
964
 
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
965
 
m4_define([_LT_CONFIG_LIBTOOL],
966
 
[m4_ifval([$1],
967
 
          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
968
 
                     [$1
969
 
])])])
970
 
 
971
 
# Initialize.
972
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
973
 
 
974
 
 
975
 
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
976
 
# -----------------------------------------------------
977
 
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
978
 
[_LT_CONFIG_LIBTOOL([$1])
979
 
_LT_CONFIG_LIBTOOL_INIT([$2])
980
 
])
981
 
 
982
 
 
983
 
# _LT_FORMAT_COMMENT([COMMENT])
984
 
# -----------------------------
985
 
# Add leading comment marks to the start of each line, and a trailing
986
 
# full-stop to the whole comment if one is not present already.
987
 
m4_define([_LT_FORMAT_COMMENT],
988
 
[m4_ifval([$1], [
989
 
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
990
 
              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
991
 
)])
992
 
 
993
 
 
994
 
 
995
 
 
996
 
 
997
 
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
998
 
# -------------------------------------------------------------------
999
 
# CONFIGNAME is the name given to the value in the libtool script.
1000
 
# VARNAME is the (base) name used in the configure script.
1001
 
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1002
 
# VARNAME.  Any other value will be used directly.
1003
 
m4_define([_LT_DECL],
1004
 
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1005
 
    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1006
 
        [m4_ifval([$1], [$1], [$2])])
1007
 
    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1008
 
    m4_ifval([$4],
1009
 
        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1010
 
    lt_dict_add_subkey([lt_decl_dict], [$2],
1011
 
        [tagged?], [m4_ifval([$5], [yes], [no])])])
1012
 
])
1013
 
 
1014
 
 
1015
 
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1016
 
# --------------------------------------------------------
1017
 
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1018
 
 
1019
 
 
1020
 
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1021
 
# ------------------------------------------------
1022
 
m4_define([lt_decl_tag_varnames],
1023
 
[_lt_decl_filter([tagged?], [yes], $@)])
1024
 
 
1025
 
 
1026
 
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1027
 
# ---------------------------------------------------------
1028
 
m4_define([_lt_decl_filter],
1029
 
[m4_case([$#],
1030
 
  [0], [m4_fatal([$0: too few arguments: $#])],
1031
 
  [1], [m4_fatal([$0: too few arguments: $#: $1])],
1032
 
  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1033
 
  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1034
 
  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1035
 
])
1036
 
 
1037
 
 
1038
 
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1039
 
# --------------------------------------------------
1040
 
m4_define([lt_decl_quote_varnames],
1041
 
[_lt_decl_filter([value], [1], $@)])
1042
 
 
1043
 
 
1044
 
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1045
 
# ---------------------------------------------------
1046
 
m4_define([lt_decl_dquote_varnames],
1047
 
[_lt_decl_filter([value], [2], $@)])
1048
 
 
1049
 
 
1050
 
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1051
 
# ---------------------------------------------------
1052
 
m4_define([lt_decl_varnames_tagged],
1053
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1054
 
     m4_quote(m4_if([$2], [],
1055
 
                     m4_quote(lt_decl_tag_varnames),
1056
 
                  m4_quote(m4_shift($@)))),
1057
 
     m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
1058
 
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
1059
 
 
1060
 
 
1061
 
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1062
 
# ------------------------------------------------
1063
 
m4_define([lt_decl_all_varnames],
1064
 
[_$0(m4_quote(m4_default([$1], [[, ]])),
1065
 
     m4_if([$2], [],
1066
 
           m4_quote(lt_decl_varnames),
1067
 
        m4_quote(m4_shift($@))))[]dnl
1068
 
])
1069
 
m4_define([_lt_decl_all_varnames],
1070
 
[lt_join($@, lt_decl_varnames_tagged([$1],
1071
 
                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1072
 
])
1073
 
 
1074
 
 
1075
 
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1076
 
# ------------------------------------
1077
 
# Quote a variable value, and forward it to `config.status' so that its
1078
 
# declaration there will have the same value as in `configure'.  VARNAME
1079
 
# must have a single quote delimited value for this to work.
1080
 
m4_define([_LT_CONFIG_STATUS_DECLARE],
1081
 
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1082
 
 
1083
 
 
1084
 
# _LT_CONFIG_STATUS_DECLARATIONS
1085
 
# ------------------------------
1086
 
# We delimit libtool config variables with single quotes, so when
1087
 
# we write them to config.status, we have to be sure to quote all
1088
 
# embedded single quotes properly.  In configure, this macro expands
1089
 
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1090
 
#
1091
 
#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1092
 
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1093
 
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1094
 
    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1095
 
 
1096
 
 
1097
 
# _LT_LIBTOOL_TAGS
1098
 
# ----------------
1099
 
# Output comment and list of tags supported by the script
1100
 
m4_defun([_LT_LIBTOOL_TAGS],
1101
 
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1102
 
available_tags="_LT_TAGS"dnl
1103
 
])
1104
 
 
1105
 
 
1106
 
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1107
 
# -----------------------------------
1108
 
# Extract the dictionary values for VARNAME (optionally with TAG) and
1109
 
# expand to a commented shell variable setting:
1110
 
#
1111
 
#    # Some comment about what VAR is for.
1112
 
#    visible_name=$lt_internal_name
1113
 
m4_define([_LT_LIBTOOL_DECLARE],
1114
 
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1115
 
                                           [description])))[]dnl
1116
 
m4_pushdef([_libtool_name],
1117
 
    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1118
 
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1119
 
    [0], [_libtool_name=[$]$1],
1120
 
    [1], [_libtool_name=$lt_[]$1],
1121
 
    [2], [_libtool_name=$lt_[]$1],
1122
 
    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1123
 
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1124
 
])
1125
 
 
1126
 
 
1127
 
# _LT_LIBTOOL_CONFIG_VARS
1128
 
# -----------------------
1129
 
# Produce commented declarations of non-tagged libtool config variables
1130
 
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1131
 
# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
1132
 
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1133
 
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1134
 
[m4_foreach([_lt_var],
1135
 
    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1136
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1137
 
 
1138
 
 
1139
 
# _LT_LIBTOOL_TAG_VARS(TAG)
1140
 
# -------------------------
1141
 
m4_define([_LT_LIBTOOL_TAG_VARS],
1142
 
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1143
 
    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1144
 
 
1145
 
 
1146
 
# _LT_TAGVAR(VARNAME, [TAGNAME])
1147
 
# ------------------------------
1148
 
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1149
 
 
1150
 
 
1151
 
# _LT_CONFIG_COMMANDS
 
917
tagname=
 
918
AC_LIBTOOL_LANG_C_CONFIG
 
919
_LT_AC_TAGCONFIG
 
920
])# AC_LIBTOOL_SETUP
 
921
 
 
922
 
 
923
# _LT_AC_SYS_COMPILER
1152
924
# -------------------
1153
 
# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
1154
 
# variables for single and double quote escaping we saved from calls
1155
 
# to _LT_DECL, we can put quote escaped variables declarations
1156
 
# into `config.status', and then the shell code to quote escape them in
1157
 
# for loops in `config.status'.  Finally, any additional code accumulated
1158
 
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1159
 
m4_defun([_LT_CONFIG_COMMANDS],
1160
 
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1161
 
        dnl If the libtool generation code has been placed in $CONFIG_LT,
1162
 
        dnl instead of duplicating it all over again into config.status,
1163
 
        dnl then we will have config.status run $CONFIG_LT later, so it
1164
 
        dnl needs to know what name is stored there:
1165
 
        [AC_CONFIG_COMMANDS([libtool],
1166
 
            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1167
 
    dnl If the libtool generation code is destined for config.status,
1168
 
    dnl expand the accumulated commands and init code now:
1169
 
    [AC_CONFIG_COMMANDS([libtool],
1170
 
        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1171
 
])#_LT_CONFIG_COMMANDS
1172
 
 
1173
 
 
1174
 
# Initialize.
1175
 
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1176
 
[
1177
 
 
1178
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
1179
 
# if CDPATH is set.
1180
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1181
 
 
1182
 
sed_quote_subst='$sed_quote_subst'
1183
 
double_quote_subst='$double_quote_subst'
1184
 
delay_variable_subst='$delay_variable_subst'
1185
 
_LT_CONFIG_STATUS_DECLARATIONS
1186
 
LTCC='$LTCC'
1187
 
LTCFLAGS='$LTCFLAGS'
1188
 
compiler='$compiler_DEFAULT'
1189
 
 
1190
 
# Quote evaled strings.
1191
 
for var in lt_decl_all_varnames([[ \
1192
 
]], lt_decl_quote_varnames); do
1193
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1194
 
    *[[\\\\\\\`\\"\\\$]]*)
1195
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1196
 
      ;;
1197
 
    *)
1198
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1199
 
      ;;
1200
 
    esac
1201
 
done
1202
 
 
1203
 
# Double-quote double-evaled strings.
1204
 
for var in lt_decl_all_varnames([[ \
1205
 
]], lt_decl_dquote_varnames); do
1206
 
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1207
 
    *[[\\\\\\\`\\"\\\$]]*)
1208
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1209
 
      ;;
1210
 
    *)
1211
 
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1212
 
      ;;
1213
 
    esac
1214
 
done
1215
 
 
1216
 
# Fix-up fallback echo if it was mangled by the above quoting rules.
1217
 
case \$lt_ECHO in
1218
 
*'\\\[$]0 --fallback-echo"')dnl "
1219
 
  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1220
 
  ;;
1221
 
esac
1222
 
 
1223
 
_LT_OUTPUT_LIBTOOL_INIT
1224
 
])
1225
 
 
1226
 
 
1227
 
# LT_OUTPUT
1228
 
# ---------
1229
 
# This macro allows early generation of the libtool script (before
1230
 
# AC_OUTPUT is called), incase it is used in configure for compilation
1231
 
# tests.
1232
 
AC_DEFUN([LT_OUTPUT],
1233
 
[: ${CONFIG_LT=./config.lt}
1234
 
AC_MSG_NOTICE([creating $CONFIG_LT])
1235
 
cat >"$CONFIG_LT" <<_LTEOF
1236
 
#! $SHELL
1237
 
# Generated by $as_me.
1238
 
# Run this file to recreate a libtool stub with the current configuration.
1239
 
 
1240
 
lt_cl_silent=false
1241
 
SHELL=\${CONFIG_SHELL-$SHELL}
1242
 
_LTEOF
1243
 
 
1244
 
cat >>"$CONFIG_LT" <<\_LTEOF
1245
 
AS_SHELL_SANITIZE
1246
 
_AS_PREPARE
1247
 
 
1248
 
exec AS_MESSAGE_FD>&1
1249
 
exec AS_MESSAGE_LOG_FD>>config.log
1250
 
{
1251
 
  echo
1252
 
  AS_BOX([Running $as_me.])
1253
 
} >&AS_MESSAGE_LOG_FD
1254
 
 
1255
 
lt_cl_help="\
1256
 
\`$as_me' creates a local libtool stub from the current configuration,
1257
 
for use in further configure time tests before the real libtool is
1258
 
generated.
1259
 
 
1260
 
Usage: $[0] [[OPTIONS]]
1261
 
 
1262
 
  -h, --help      print this help, then exit
1263
 
  -V, --version   print version number, then exit
1264
 
  -q, --quiet     do not print progress messages
1265
 
  -d, --debug     don't remove temporary files
1266
 
 
1267
 
Report bugs to <bug-libtool@gnu.org>."
1268
 
 
1269
 
lt_cl_version="\
1270
 
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1271
 
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1272
 
configured by $[0], generated by m4_PACKAGE_STRING.
1273
 
 
1274
 
Copyright (C) 2008 Free Software Foundation, Inc.
1275
 
This config.lt script is free software; the Free Software Foundation
1276
 
gives unlimited permision to copy, distribute and modify it."
1277
 
 
1278
 
while test $[#] != 0
1279
 
do
1280
 
  case $[1] in
1281
 
    --version | --v* | -V )
1282
 
      echo "$lt_cl_version"; exit 0 ;;
1283
 
    --help | --h* | -h )
1284
 
      echo "$lt_cl_help"; exit 0 ;;
1285
 
    --debug | --d* | -d )
1286
 
      debug=: ;;
1287
 
    --quiet | --q* | --silent | --s* | -q )
1288
 
      lt_cl_silent=: ;;
1289
 
 
1290
 
    -*) AC_MSG_ERROR([unrecognized option: $[1]
1291
 
Try \`$[0] --help' for more information.]) ;;
1292
 
 
1293
 
    *) AC_MSG_ERROR([unrecognized argument: $[1]
1294
 
Try \`$[0] --help' for more information.]) ;;
1295
 
  esac
1296
 
  shift
1297
 
done
1298
 
 
1299
 
if $lt_cl_silent; then
1300
 
  exec AS_MESSAGE_FD>/dev/null
1301
 
fi
1302
 
_LTEOF
1303
 
 
1304
 
cat >>"$CONFIG_LT" <<_LTEOF
1305
 
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1306
 
_LTEOF
1307
 
 
1308
 
cat >>"$CONFIG_LT" <<\_LTEOF
1309
 
AC_MSG_NOTICE([creating $ofile])
1310
 
_LT_OUTPUT_LIBTOOL_COMMANDS
1311
 
AS_EXIT(0)
1312
 
_LTEOF
1313
 
chmod +x "$CONFIG_LT"
1314
 
 
1315
 
# configure is writing to config.log, but config.lt does its own redirection,
1316
 
# appending to config.log, which fails on DOS, as config.log is still kept
1317
 
# open by configure.  Here we exec the FD to /dev/null, effectively closing
1318
 
# config.log, so it can be properly (re)opened and appended to by config.lt.
1319
 
if test "$no_create" != yes; then
1320
 
  lt_cl_success=:
1321
 
  test "$silent" = yes &&
1322
 
    lt_config_lt_args="$lt_config_lt_args --quiet"
1323
 
  exec AS_MESSAGE_LOG_FD>/dev/null
1324
 
  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1325
 
  exec AS_MESSAGE_LOG_FD>>config.log
1326
 
  $lt_cl_success || AS_EXIT(1)
1327
 
fi
1328
 
])# LT_OUTPUT
1329
 
 
1330
 
 
1331
 
# _LT_CONFIG(TAG)
1332
 
# ---------------
1333
 
# If TAG is the built-in tag, create an initial libtool script with a
1334
 
# default configuration from the untagged config vars.  Otherwise add code
1335
 
# to config.status for appending the configuration named by TAG from the
1336
 
# matching tagged config vars.
1337
 
m4_defun([_LT_CONFIG],
1338
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1339
 
_LT_CONFIG_SAVE_COMMANDS([
1340
 
  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1341
 
  m4_if(_LT_TAG, [C], [
1342
 
    # See if we are running on zsh, and set the options which allow our
1343
 
    # commands through without removal of \ escapes.
1344
 
    if test -n "${ZSH_VERSION+set}" ; then
1345
 
      setopt NO_GLOB_SUBST
1346
 
    fi
1347
 
 
1348
 
    cfgfile="${ofile}T"
1349
 
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1350
 
    $RM "$cfgfile"
1351
 
 
1352
 
    cat <<_LT_EOF >> "$cfgfile"
1353
 
#! $SHELL
1354
 
 
1355
 
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1356
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1357
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1358
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1359
 
#
1360
 
_LT_COPYING
1361
 
_LT_LIBTOOL_TAGS
1362
 
 
1363
 
# ### BEGIN LIBTOOL CONFIG
1364
 
_LT_LIBTOOL_CONFIG_VARS
1365
 
_LT_LIBTOOL_TAG_VARS
1366
 
# ### END LIBTOOL CONFIG
1367
 
 
1368
 
_LT_EOF
1369
 
 
1370
 
  case $host_os in
1371
 
  aix3*)
1372
 
    cat <<\_LT_EOF >> "$cfgfile"
1373
 
# AIX sometimes has problems with the GCC collect2 program.  For some
1374
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
1375
 
# vanish in a puff of smoke.
1376
 
if test "X${COLLECT_NAMES+set}" != Xset; then
1377
 
  COLLECT_NAMES=
1378
 
  export COLLECT_NAMES
1379
 
fi
1380
 
_LT_EOF
1381
 
    ;;
1382
 
  esac
1383
 
 
1384
 
  _LT_PROG_LTMAIN
1385
 
 
1386
 
  # We use sed instead of cat because bash on DJGPP gets confused if
1387
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
1388
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
1389
 
  # is reportedly fixed, but why not run on old versions too?
1390
 
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1391
 
    || (rm -f "$cfgfile"; exit 1)
1392
 
 
1393
 
  _LT_PROG_XSI_SHELLFNS
1394
 
 
1395
 
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1396
 
    || (rm -f "$cfgfile"; exit 1)
1397
 
 
1398
 
  mv -f "$cfgfile" "$ofile" ||
1399
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1400
 
  chmod +x "$ofile"
1401
 
],
1402
 
[cat <<_LT_EOF >> "$ofile"
1403
 
 
1404
 
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1405
 
dnl in a comment (ie after a #).
1406
 
# ### BEGIN LIBTOOL TAG CONFIG: $1
1407
 
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1408
 
# ### END LIBTOOL TAG CONFIG: $1
1409
 
_LT_EOF
1410
 
])dnl /m4_if
1411
 
],
1412
 
[m4_if([$1], [], [
1413
 
    PACKAGE='$PACKAGE'
1414
 
    VERSION='$VERSION'
1415
 
    TIMESTAMP='$TIMESTAMP'
1416
 
    RM='$RM'
1417
 
    ofile='$ofile'], [])
1418
 
])dnl /_LT_CONFIG_SAVE_COMMANDS
1419
 
])# _LT_CONFIG
1420
 
 
1421
 
 
1422
 
# LT_SUPPORTED_TAG(TAG)
1423
 
# ---------------------
1424
 
# Trace this macro to discover what tags are supported by the libtool
1425
 
# --tag option, using:
1426
 
#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
1427
 
AC_DEFUN([LT_SUPPORTED_TAG], [])
1428
 
 
1429
 
 
1430
 
# C support is built-in for now
1431
 
m4_define([_LT_LANG_C_enabled], [])
1432
 
m4_define([_LT_TAGS], [])
1433
 
 
1434
 
 
1435
 
# LT_LANG(LANG)
1436
 
# -------------
1437
 
# Enable libtool support for the given language if not already enabled.
1438
 
AC_DEFUN([LT_LANG],
1439
 
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1440
 
m4_case([$1],
1441
 
  [C],                  [_LT_LANG(C)],
1442
 
  [C++],                [_LT_LANG(CXX)],
1443
 
  [Java],               [_LT_LANG(GCJ)],
1444
 
  [Fortran 77],         [_LT_LANG(F77)],
1445
 
  [Fortran],            [_LT_LANG(FC)],
1446
 
  [Windows Resource],   [_LT_LANG(RC)],
1447
 
  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1448
 
    [_LT_LANG($1)],
1449
 
    [m4_fatal([$0: unsupported language: "$1"])])])dnl
1450
 
])# LT_LANG
1451
 
 
1452
 
 
1453
 
# _LT_LANG(LANGNAME)
1454
 
# ------------------
1455
 
m4_defun([_LT_LANG],
1456
 
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1457
 
  [LT_SUPPORTED_TAG([$1])dnl
1458
 
  m4_append([_LT_TAGS], [$1 ])dnl
1459
 
  m4_define([_LT_LANG_]$1[_enabled], [])dnl
1460
 
  _LT_LANG_$1_CONFIG($1)])dnl
1461
 
])# _LT_LANG
1462
 
 
1463
 
 
1464
 
# _LT_LANG_DEFAULT_CONFIG
1465
 
# -----------------------
1466
 
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1467
 
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1468
 
  [LT_LANG(CXX)],
1469
 
  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1470
 
 
1471
 
AC_PROVIDE_IFELSE([AC_PROG_F77],
1472
 
  [LT_LANG(F77)],
1473
 
  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1474
 
 
1475
 
AC_PROVIDE_IFELSE([AC_PROG_FC],
1476
 
  [LT_LANG(FC)],
1477
 
  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1478
 
 
1479
 
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1480
 
dnl pulling things in needlessly.
1481
 
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1482
 
  [LT_LANG(GCJ)],
1483
 
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1484
 
    [LT_LANG(GCJ)],
1485
 
    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1486
 
      [LT_LANG(GCJ)],
1487
 
      [m4_ifdef([AC_PROG_GCJ],
1488
 
        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1489
 
       m4_ifdef([A][M_PROG_GCJ],
1490
 
        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1491
 
       m4_ifdef([LT_PROG_GCJ],
1492
 
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1493
 
 
1494
 
AC_PROVIDE_IFELSE([LT_PROG_RC],
1495
 
  [LT_LANG(RC)],
1496
 
  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1497
 
])# _LT_LANG_DEFAULT_CONFIG
1498
 
 
1499
 
# Obsolete macros:
1500
 
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1501
 
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1502
 
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1503
 
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1504
 
dnl aclocal-1.4 backwards compatibility:
1505
 
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1506
 
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1507
 
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1508
 
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1509
 
 
1510
 
 
1511
 
# _LT_TAG_COMPILER
1512
 
# ----------------
1513
 
m4_defun([_LT_TAG_COMPILER],
 
925
AC_DEFUN([_LT_AC_SYS_COMPILER],
1514
926
[AC_REQUIRE([AC_PROG_CC])dnl
1515
927
 
1516
 
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1517
 
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1518
 
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1519
 
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1520
 
 
1521
928
# If no C compiler was specified, use CC.
1522
929
LTCC=${LTCC-"$CC"}
1523
930
 
1526
933
 
1527
934
# Allow CC to be a program name with arguments.
1528
935
compiler=$CC
1529
 
])# _LT_TAG_COMPILER
 
936
])# _LT_AC_SYS_COMPILER
 
937
 
 
938
 
 
939
# _LT_CC_BASENAME(CC)
 
940
# -------------------
 
941
# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
 
942
AC_DEFUN([_LT_CC_BASENAME],
 
943
[for cc_temp in $1""; do
 
944
  case $cc_temp in
 
945
    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
 
946
    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
 
947
    \-*) ;;
 
948
    *) break;;
 
949
  esac
 
950
done
 
951
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
952
])
1530
953
 
1531
954
 
1532
955
# _LT_COMPILER_BOILERPLATE
1533
956
# ------------------------
1534
957
# Check for compiler boilerplate output or warnings with
1535
958
# the simple compiler test code.
1536
 
m4_defun([_LT_COMPILER_BOILERPLATE],
1537
 
[m4_require([_LT_DECL_SED])dnl
 
959
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
 
960
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1538
961
ac_outfile=conftest.$ac_objext
1539
962
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1540
963
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1541
964
_lt_compiler_boilerplate=`cat conftest.err`
1542
 
$RM conftest*
 
965
$rm conftest*
1543
966
])# _LT_COMPILER_BOILERPLATE
1544
967
 
1545
968
 
1547
970
# ----------------------
1548
971
# Check for linker boilerplate output or warnings with
1549
972
# the simple link test code.
1550
 
m4_defun([_LT_LINKER_BOILERPLATE],
1551
 
[m4_require([_LT_DECL_SED])dnl
 
973
AC_DEFUN([_LT_LINKER_BOILERPLATE],
 
974
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1552
975
ac_outfile=conftest.$ac_objext
1553
976
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1554
977
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1555
978
_lt_linker_boilerplate=`cat conftest.err`
1556
 
$RM -r conftest*
 
979
$rm -r conftest*
1557
980
])# _LT_LINKER_BOILERPLATE
1558
981
 
1559
982
# _LT_REQUIRED_DARWIN_CHECKS
1560
 
# -------------------------
1561
 
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
 
983
# --------------------------
 
984
# Check for some things on darwin
 
985
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1562
986
  case $host_os in
1563
987
    rhapsody* | darwin*)
1564
988
    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1565
989
    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1566
 
    AC_CHECK_TOOL([LIPO], [lipo], [:])
1567
 
    AC_CHECK_TOOL([OTOOL], [otool], [:])
1568
 
    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1569
 
    _LT_DECL([], [DSYMUTIL], [1],
1570
 
      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1571
 
    _LT_DECL([], [NMEDIT], [1],
1572
 
      [Tool to change global to local symbols on Mac OS X])
1573
 
    _LT_DECL([], [LIPO], [1],
1574
 
      [Tool to manipulate fat objects and archives on Mac OS X])
1575
 
    _LT_DECL([], [OTOOL], [1],
1576
 
      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1577
 
    _LT_DECL([], [OTOOL64], [1],
1578
 
      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1579
990
 
1580
991
    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1581
992
      [lt_cv_apple_cc_single_mod=no
1582
993
      if test -z "${LT_MULTI_MODULE}"; then
1583
 
        # By default we will add the -single_module flag. You can override
1584
 
        # by either setting the environment variable LT_MULTI_MODULE
1585
 
        # non-empty at configure time, or by adding -multi_module to the
1586
 
        # link flags.
1587
 
        rm -rf libconftest.dylib*
1588
 
        echo "int foo(void){return 1;}" > conftest.c
1589
 
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1590
 
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1591
 
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1592
 
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1593
 
        _lt_result=$?
1594
 
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1595
 
          lt_cv_apple_cc_single_mod=yes
1596
 
        else
1597
 
          cat conftest.err >&AS_MESSAGE_LOG_FD
1598
 
        fi
1599
 
        rm -rf libconftest.dylib*
1600
 
        rm -f conftest.*
 
994
   # By default we will add the -single_module flag. You can override
 
995
   # by either setting the environment variable LT_MULTI_MODULE
 
996
   # non-empty at configure time, or by adding -multi_module to the
 
997
   # link flags.
 
998
   echo "int foo(void){return 1;}" > conftest.c
 
999
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
1000
     -dynamiclib ${wl}-single_module conftest.c
 
1001
   if test -f libconftest.dylib; then
 
1002
     lt_cv_apple_cc_single_mod=yes
 
1003
     rm -rf libconftest.dylib*
 
1004
   fi
 
1005
   rm conftest.c
1601
1006
      fi])
1602
1007
    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1603
1008
      [lt_cv_ld_exported_symbols_list],
1606
1011
      echo "_main" > conftest.sym
1607
1012
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1608
1013
      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1609
 
        [lt_cv_ld_exported_symbols_list=yes],
1610
 
        [lt_cv_ld_exported_symbols_list=no])
1611
 
        LDFLAGS="$save_LDFLAGS"
 
1014
   [lt_cv_ld_exported_symbols_list=yes],
 
1015
   [lt_cv_ld_exported_symbols_list=no])
 
1016
   LDFLAGS="$save_LDFLAGS"
1612
1017
    ])
1613
1018
    case $host_os in
1614
 
    rhapsody* | darwin1.[[012]])
 
1019
    rhapsody* | darwin1.[[0123]])
1615
1020
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1616
1021
    darwin1.*)
1617
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1618
 
    darwin*) # darwin 5.x on 
 
1022
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1023
    darwin*)
1619
1024
      # if running on 10.5 or later, the deployment target defaults
1620
1025
      # to the OS version, if on x86, and 10.4, the deployment
1621
 
      # target defaults to 10.4. Don't you love it? 
 
1026
      # target defaults to 10.4. Don't you love it?
1622
1027
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1623
 
        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1624
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1625
 
        10.[[012]]*)
1626
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1627
 
        10.*)
1628
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1028
   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
 
1029
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
1030
   10.[[012]]*)
 
1031
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
1032
   10.*)
 
1033
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1629
1034
      esac
1630
1035
    ;;
1631
1036
  esac
1635
1040
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1636
1041
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1637
1042
    else
1638
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
1043
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1639
1044
    fi
1640
1045
    if test "$DSYMUTIL" != ":"; then
1641
 
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
1046
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
1642
1047
    else
1643
1048
      _lt_dsymutil=
1644
1049
    fi
1646
1051
  esac
1647
1052
])
1648
1053
 
1649
 
 
1650
 
# _LT_DARWIN_LINKER_FEATURES
1651
 
# --------------------------
1652
 
# Checks for linker and compiler features on darwin
1653
 
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1654
 
[
1655
 
  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1656
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1657
 
  _LT_TAGVAR(hardcode_direct, $1)=no
1658
 
  _LT_TAGVAR(hardcode_automatic, $1)=yes
1659
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1660
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1661
 
  _LT_TAGVAR(link_all_deplibs, $1)=yes
1662
 
  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1663
 
  if test "$GCC" = "yes"; then
1664
 
    output_verbose_link_cmd=echo
1665
 
    _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}"
1666
 
    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1667
 
    _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}"
1668
 
    _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}"
1669
 
    m4_if([$1], [CXX],
1670
 
[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1671
 
      _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}"
1672
 
      _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}"
1673
 
    fi
1674
 
],[])
1675
 
  else
1676
 
  _LT_TAGVAR(ld_shlibs, $1)=no
1677
 
  fi
1678
 
])
1679
 
 
1680
 
# _LT_SYS_MODULE_PATH_AIX
1681
 
# -----------------------
 
1054
# _LT_AC_SYS_LIBPATH_AIX
 
1055
# ----------------------
1682
1056
# Links a minimal program and checks the executable
1683
1057
# for the system default hardcoded library path. In most cases,
1684
1058
# this is /usr/lib:/lib, but when the MPI compilers are used
1685
1059
# the location of the communication and MPI libs are included too.
1686
1060
# If we don't find anything, use the default library path according
1687
1061
# to the aix ld manual.
1688
 
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1689
 
[m4_require([_LT_DECL_SED])dnl
 
1062
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
 
1063
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1690
1064
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1691
1065
lt_aix_libpath_sed='
1692
1066
    /Import File Strings/,/^$/ {
1701
1075
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1702
1076
fi],[])
1703
1077
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1704
 
])# _LT_SYS_MODULE_PATH_AIX
1705
 
 
1706
 
 
1707
 
# _LT_SHELL_INIT(ARG)
1708
 
# -------------------
1709
 
m4_define([_LT_SHELL_INIT],
 
1078
])# _LT_AC_SYS_LIBPATH_AIX
 
1079
 
 
1080
 
 
1081
# _LT_AC_SHELL_INIT(ARG)
 
1082
# ----------------------
 
1083
AC_DEFUN([_LT_AC_SHELL_INIT],
1710
1084
[ifdef([AC_DIVERSION_NOTICE],
1711
1085
             [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1712
1086
         [AC_DIVERT_PUSH(NOTICE)])
1713
1087
$1
1714
1088
AC_DIVERT_POP
1715
 
])# _LT_SHELL_INIT
1716
 
 
1717
 
 
1718
 
# _LT_PROG_ECHO_BACKSLASH
1719
 
# -----------------------
 
1089
])# _LT_AC_SHELL_INIT
 
1090
 
 
1091
 
 
1092
# _LT_AC_PROG_ECHO_BACKSLASH
 
1093
# --------------------------
1720
1094
# Add some code to the start of the generated configure script which
1721
1095
# will find an echo command which doesn't interpret backslashes.
1722
 
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1723
 
[_LT_SHELL_INIT([
 
1096
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
 
1097
[_LT_AC_SHELL_INIT([
1724
1098
# Check that we are running under the correct shell.
1725
1099
SHELL=${CONFIG_SHELL-/bin/sh}
1726
1100
 
1727
 
case X$lt_ECHO in
 
1101
case X$ECHO in
1728
1102
X*--fallback-echo)
1729
1103
  # Remove one level of quotation (which was required for Make).
1730
 
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
 
1104
  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1731
1105
  ;;
1732
1106
esac
1733
1107
 
1734
 
ECHO=${lt_ECHO-echo}
 
1108
echo=${ECHO-echo}
1735
1109
if test "X[$]1" = X--no-reexec; then
1736
1110
  # Discard the --no-reexec flag, and continue.
1737
1111
  shift
1738
1112
elif test "X[$]1" = X--fallback-echo; then
1739
1113
  # Avoid inline document here, it may be left over
1740
1114
  :
1741
 
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1742
 
  # Yippee, $ECHO works!
 
1115
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
1116
  # Yippee, $echo works!
1743
1117
  :
1744
1118
else
1745
1119
  # Restart under the correct shell.
1749
1123
if test "X[$]1" = X--fallback-echo; then
1750
1124
  # used as fallback echo
1751
1125
  shift
1752
 
  cat <<_LT_EOF
 
1126
  cat <<EOF
1753
1127
[$]*
1754
 
_LT_EOF
 
1128
EOF
1755
1129
  exit 0
1756
1130
fi
1757
1131
 
1759
1133
# if CDPATH is set.
1760
1134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1761
1135
 
1762
 
if test -z "$lt_ECHO"; then
1763
 
  if test "X${echo_test_string+set}" != Xset; then
1764
 
    # find a string as large as possible, as long as the shell can cope with it
1765
 
    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1766
 
      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1767
 
      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1768
 
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1769
 
      then
1770
 
        break
1771
 
      fi
1772
 
    done
1773
 
  fi
1774
 
 
1775
 
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1776
 
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1777
 
     test "X$echo_testing_string" = "X$echo_test_string"; then
1778
 
    :
1779
 
  else
1780
 
    # The Solaris, AIX, and Digital Unix default echo programs unquote
1781
 
    # backslashes.  This makes it impossible to quote backslashes using
1782
 
    #   echo "$something" | sed 's/\\/\\\\/g'
1783
 
    #
1784
 
    # So, first we look for a working echo in the user's PATH.
1785
 
 
1786
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1787
 
    for dir in $PATH /usr/ucb; do
1788
 
      IFS="$lt_save_ifs"
1789
 
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1790
 
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1791
 
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1792
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1793
 
        ECHO="$dir/echo"
1794
 
        break
1795
 
      fi
1796
 
    done
 
1136
if test -z "$ECHO"; then
 
1137
if test "X${echo_test_string+set}" != Xset; then
 
1138
# find a string as large as possible, as long as the shell can cope with it
 
1139
  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 
1140
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
1141
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
1142
       echo_test_string=`eval $cmd` &&
 
1143
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
1144
    then
 
1145
      break
 
1146
    fi
 
1147
  done
 
1148
fi
 
1149
 
 
1150
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1151
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1152
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
1153
  :
 
1154
else
 
1155
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
1156
  # backslashes.  This makes it impossible to quote backslashes using
 
1157
  #   echo "$something" | sed 's/\\/\\\\/g'
 
1158
  #
 
1159
  # So, first we look for a working echo in the user's PATH.
 
1160
 
 
1161
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
1162
  for dir in $PATH /usr/ucb; do
1797
1163
    IFS="$lt_save_ifs"
 
1164
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
1165
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
1166
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
1167
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1168
      echo="$dir/echo"
 
1169
      break
 
1170
    fi
 
1171
  done
 
1172
  IFS="$lt_save_ifs"
1798
1173
 
1799
 
    if test "X$ECHO" = Xecho; then
1800
 
      # We didn't find a better echo, so look for alternatives.
1801
 
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1802
 
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1803
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
1804
 
        # This shell has a builtin print -r that does the trick.
1805
 
        ECHO='print -r'
1806
 
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1807
 
           test "X$CONFIG_SHELL" != X/bin/ksh; then
1808
 
        # If we have ksh, try running configure again with it.
1809
 
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1810
 
        export ORIGINAL_CONFIG_SHELL
1811
 
        CONFIG_SHELL=/bin/ksh
1812
 
        export CONFIG_SHELL
1813
 
        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1174
  if test "X$echo" = Xecho; then
 
1175
    # We didn't find a better echo, so look for alternatives.
 
1176
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
1177
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
1178
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
1179
      # This shell has a builtin print -r that does the trick.
 
1180
      echo='print -r'
 
1181
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
1182
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
1183
      # If we have ksh, try running configure again with it.
 
1184
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
1185
      export ORIGINAL_CONFIG_SHELL
 
1186
      CONFIG_SHELL=/bin/ksh
 
1187
      export CONFIG_SHELL
 
1188
      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 
1189
    else
 
1190
      # Try using printf.
 
1191
      echo='printf %s\n'
 
1192
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
1193
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
1194
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
1195
        # Cool, printf works
 
1196
        :
 
1197
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1198
           test "X$echo_testing_string" = 'X\t' &&
 
1199
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1200
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1201
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
1202
        export CONFIG_SHELL
 
1203
        SHELL="$CONFIG_SHELL"
 
1204
        export SHELL
 
1205
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
 
1206
      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 
1207
           test "X$echo_testing_string" = 'X\t' &&
 
1208
           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
1209
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
1210
        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1814
1211
      else
1815
 
        # Try using printf.
1816
 
        ECHO='printf %s\n'
1817
 
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1818
 
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1819
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
1820
 
          # Cool, printf works
1821
 
          :
1822
 
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1823
 
             test "X$echo_testing_string" = 'X\t' &&
1824
 
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1825
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1826
 
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1827
 
          export CONFIG_SHELL
1828
 
          SHELL="$CONFIG_SHELL"
1829
 
          export SHELL
1830
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1831
 
        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1832
 
             test "X$echo_testing_string" = 'X\t' &&
1833
 
             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1834
 
             test "X$echo_testing_string" = "X$echo_test_string"; then
1835
 
          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1836
 
        else
1837
 
          # maybe with a smaller string...
1838
 
          prev=:
1839
 
 
1840
 
          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1841
 
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1842
 
            then
1843
 
              break
1844
 
            fi
1845
 
            prev="$cmd"
1846
 
          done
1847
 
 
1848
 
          if test "$prev" != 'sed 50q "[$]0"'; then
1849
 
            echo_test_string=`eval $prev`
1850
 
            export echo_test_string
1851
 
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1852
 
          else
1853
 
            # Oops.  We lost completely, so just stick with echo.
1854
 
            ECHO=echo
 
1212
        # maybe with a smaller string...
 
1213
        prev=:
 
1214
 
 
1215
        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 
1216
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
1217
          then
 
1218
            break
1855
1219
          fi
1856
 
        fi
 
1220
          prev="$cmd"
 
1221
        done
 
1222
 
 
1223
        if test "$prev" != 'sed 50q "[$]0"'; then
 
1224
          echo_test_string=`eval $prev`
 
1225
          export echo_test_string
 
1226
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 
1227
        else
 
1228
          # Oops.  We lost completely, so just stick with echo.
 
1229
          echo=echo
 
1230
        fi
1857
1231
      fi
1858
1232
    fi
1859
1233
  fi
1860
1234
fi
 
1235
fi
1861
1236
 
1862
1237
# Copy echo and quote the copy suitably for passing to libtool from
1863
1238
# the Makefile, instead of quoting the original, which is used later.
1864
 
lt_ECHO=$ECHO
1865
 
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1866
 
   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 
1239
ECHO=$echo
 
1240
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 
1241
   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1867
1242
fi
1868
1243
 
1869
 
AC_SUBST(lt_ECHO)
1870
 
])
1871
 
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1872
 
_LT_DECL([], [ECHO], [1],
1873
 
    [An echo program that does not interpret backslashes])
1874
 
])# _LT_PROG_ECHO_BACKSLASH
1875
 
 
1876
 
 
1877
 
# _LT_ENABLE_LOCK
1878
 
# ---------------
1879
 
m4_defun([_LT_ENABLE_LOCK],
 
1244
AC_SUBST(ECHO)
 
1245
])])# _LT_AC_PROG_ECHO_BACKSLASH
 
1246
 
 
1247
 
 
1248
# _LT_AC_LOCK
 
1249
# -----------
 
1250
AC_DEFUN([_LT_AC_LOCK],
1880
1251
[AC_ARG_ENABLE([libtool-lock],
1881
 
  [AS_HELP_STRING([--disable-libtool-lock],
1882
 
    [avoid locking (might break parallel builds)])])
 
1252
    [AC_HELP_STRING([--disable-libtool-lock],
 
1253
        [avoid locking (might break parallel builds)])])
1883
1254
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1884
1255
 
1885
1256
# Some flags need to be propagated to the compiler or linker for good
1890
1261
  echo 'int i;' > conftest.$ac_ext
1891
1262
  if AC_TRY_EVAL(ac_compile); then
1892
1263
    case `/usr/bin/file conftest.$ac_objext` in
1893
 
      *ELF-32*)
1894
 
        HPUX_IA64_MODE="32"
1895
 
        ;;
1896
 
      *ELF-64*)
1897
 
        HPUX_IA64_MODE="64"
1898
 
        ;;
 
1264
    *ELF-32*)
 
1265
      HPUX_IA64_MODE="32"
 
1266
      ;;
 
1267
    *ELF-64*)
 
1268
      HPUX_IA64_MODE="64"
 
1269
      ;;
1899
1270
    esac
1900
1271
  fi
1901
1272
  rm -rf conftest*
1904
1275
  # Find out which ABI we are using.
1905
1276
  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1906
1277
  if AC_TRY_EVAL(ac_compile); then
1907
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
1908
 
      case `/usr/bin/file conftest.$ac_objext` in
1909
 
        *32-bit*)
1910
 
          LD="${LD-ld} -melf32bsmip"
1911
 
          ;;
1912
 
        *N32*)
1913
 
          LD="${LD-ld} -melf32bmipn32"
1914
 
          ;;
1915
 
        *64-bit*)
1916
 
          LD="${LD-ld} -melf64bmip"
1917
 
        ;;
1918
 
      esac
1919
 
    else
1920
 
      case `/usr/bin/file conftest.$ac_objext` in
1921
 
        *32-bit*)
1922
 
          LD="${LD-ld} -32"
1923
 
          ;;
1924
 
        *N32*)
1925
 
          LD="${LD-ld} -n32"
1926
 
          ;;
1927
 
        *64-bit*)
1928
 
          LD="${LD-ld} -64"
1929
 
          ;;
1930
 
      esac
1931
 
    fi
 
1278
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
1279
    case `/usr/bin/file conftest.$ac_objext` in
 
1280
    *32-bit*)
 
1281
      LD="${LD-ld} -melf32bsmip"
 
1282
      ;;
 
1283
    *N32*)
 
1284
      LD="${LD-ld} -melf32bmipn32"
 
1285
      ;;
 
1286
    *64-bit*)
 
1287
      LD="${LD-ld} -melf64bmip"
 
1288
      ;;
 
1289
    esac
 
1290
   else
 
1291
    case `/usr/bin/file conftest.$ac_objext` in
 
1292
    *32-bit*)
 
1293
      LD="${LD-ld} -32"
 
1294
      ;;
 
1295
    *N32*)
 
1296
      LD="${LD-ld} -n32"
 
1297
      ;;
 
1298
    *64-bit*)
 
1299
      LD="${LD-ld} -64"
 
1300
      ;;
 
1301
    esac
 
1302
   fi
1932
1303
  fi
1933
1304
  rm -rf conftest*
1934
1305
  ;;
1935
1306
 
1936
1307
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1937
 
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
1308
s390*-*linux*|sparc*-*linux*)
1938
1309
  # Find out which ABI we are using.
1939
1310
  echo 'int i;' > conftest.$ac_ext
1940
1311
  if AC_TRY_EVAL(ac_compile); then
1941
1312
    case `/usr/bin/file conftest.o` in
1942
 
      *32-bit*)
1943
 
        case $host in
1944
 
          x86_64-*kfreebsd*-gnu)
1945
 
            LD="${LD-ld} -m elf_i386_fbsd"
1946
 
            ;;
1947
 
          x86_64-*linux*)
1948
 
            LD="${LD-ld} -m elf_i386"
1949
 
            ;;
1950
 
          ppc64-*linux*|powerpc64-*linux*)
1951
 
            LD="${LD-ld} -m elf32ppclinux"
1952
 
            ;;
1953
 
          s390x-*linux*)
1954
 
            LD="${LD-ld} -m elf_s390"
1955
 
            ;;
1956
 
          sparc64-*linux*)
1957
 
            LD="${LD-ld} -m elf32_sparc"
1958
 
            ;;
1959
 
        esac
1960
 
        ;;
1961
 
      *64-bit*)
1962
 
        case $host in
1963
 
          x86_64-*kfreebsd*-gnu)
1964
 
            LD="${LD-ld} -m elf_x86_64_fbsd"
1965
 
            ;;
1966
 
          x86_64-*linux*)
1967
 
            LD="${LD-ld} -m elf_x86_64"
1968
 
            ;;
1969
 
          ppc*-*linux*|powerpc*-*linux*)
1970
 
            LD="${LD-ld} -m elf64ppc"
1971
 
            ;;
1972
 
          s390*-*linux*|s390*-*tpf*)
1973
 
            LD="${LD-ld} -m elf64_s390"
1974
 
            ;;
1975
 
          sparc*-*linux*)
1976
 
            LD="${LD-ld} -m elf64_sparc"
1977
 
            ;;
1978
 
        esac
1979
 
        ;;
 
1313
    *32-bit*)
 
1314
      case $host in
 
1315
        x86_64-*kfreebsd*-gnu)
 
1316
          LD="${LD-ld} -m elf_i386_fbsd"
 
1317
          ;;
 
1318
        x86_64-*linux*)
 
1319
          LD="${LD-ld} -m elf_i386"
 
1320
          ;;
 
1321
        ppc64-*linux*|powerpc64-*linux*)
 
1322
          LD="${LD-ld} -m elf32ppclinux"
 
1323
          ;;
 
1324
        s390x-*linux*)
 
1325
          LD="${LD-ld} -m elf_s390"
 
1326
          ;;
 
1327
        sparc64-*linux*)
 
1328
          LD="${LD-ld} -m elf32_sparc"
 
1329
          ;;
 
1330
      esac
 
1331
      ;;
 
1332
    *64-bit*)
 
1333
      case $host in
 
1334
        x86_64-*kfreebsd*-gnu)
 
1335
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
1336
          ;;
 
1337
        x86_64-*linux*)
 
1338
          LD="${LD-ld} -m elf_x86_64"
 
1339
          ;;
 
1340
        ppc*-*linux*|powerpc*-*linux*)
 
1341
          LD="${LD-ld} -m elf64ppc"
 
1342
          ;;
 
1343
        s390*-*linux*)
 
1344
          LD="${LD-ld} -m elf64_s390"
 
1345
          ;;
 
1346
        sparc*-*linux*)
 
1347
          LD="${LD-ld} -m elf64_sparc"
 
1348
          ;;
 
1349
      esac
 
1350
      ;;
1980
1351
    esac
1981
1352
  fi
1982
1353
  rm -rf conftest*
1988
1359
  CFLAGS="$CFLAGS -belf"
1989
1360
  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1990
1361
    [AC_LANG_PUSH(C)
1991
 
     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 
1362
     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1992
1363
     AC_LANG_POP])
1993
1364
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1994
1365
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2004
1375
      case $lt_cv_prog_gnu_ld in
2005
1376
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
2006
1377
      *)
2007
 
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
1378
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2008
1379
          LD="${LD-ld} -64"
2009
1380
        fi
2010
1381
        ;;
2014
1385
  fi
2015
1386
  rm -rf conftest*
2016
1387
  ;;
 
1388
 
 
1389
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 
1390
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
1391
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 
1392
  AC_CHECK_TOOL(AS, as, false)
 
1393
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
 
1394
  ;;
 
1395
  ])
2017
1396
esac
2018
1397
 
2019
1398
need_locks="$enable_libtool_lock"
2020
 
])# _LT_ENABLE_LOCK
2021
 
 
2022
 
 
2023
 
# _LT_CMD_OLD_ARCHIVE
2024
 
# -------------------
2025
 
m4_defun([_LT_CMD_OLD_ARCHIVE],
2026
 
[AC_CHECK_TOOL(AR, ar, false)
2027
 
test -z "$AR" && AR=ar
2028
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
2029
 
_LT_DECL([], [AR], [1], [The archiver])
2030
 
_LT_DECL([], [AR_FLAGS], [1])
2031
 
 
2032
 
AC_CHECK_TOOL(STRIP, strip, :)
2033
 
test -z "$STRIP" && STRIP=:
2034
 
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2035
 
 
2036
 
AC_CHECK_TOOL(RANLIB, ranlib, :)
2037
 
test -z "$RANLIB" && RANLIB=:
2038
 
_LT_DECL([], [RANLIB], [1],
2039
 
    [Commands used to install an old-style archive])
2040
 
 
2041
 
# Determine commands to create old-style static archives.
2042
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2043
 
old_postinstall_cmds='chmod 644 $oldlib'
2044
 
old_postuninstall_cmds=
2045
 
 
2046
 
if test -n "$RANLIB"; then
2047
 
  case $host_os in
2048
 
  openbsd*)
2049
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2050
 
    ;;
2051
 
  *)
2052
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2053
 
    ;;
2054
 
  esac
2055
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2056
 
fi
2057
 
_LT_DECL([], [old_postinstall_cmds], [2])
2058
 
_LT_DECL([], [old_postuninstall_cmds], [2])
2059
 
_LT_TAGDECL([], [old_archive_cmds], [2],
2060
 
    [Commands used to build an old-style archive])
2061
 
])# _LT_CMD_OLD_ARCHIVE
2062
 
 
2063
 
 
2064
 
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1399
 
 
1400
])# _LT_AC_LOCK
 
1401
 
 
1402
 
 
1403
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2065
1404
#               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2066
1405
# ----------------------------------------------------------------
2067
1406
# Check whether the given compiler option works
2068
 
AC_DEFUN([_LT_COMPILER_OPTION],
2069
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2070
 
m4_require([_LT_DECL_SED])dnl
 
1407
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 
1408
[AC_REQUIRE([LT_AC_PROG_SED])
2071
1409
AC_CACHE_CHECK([$1], [$2],
2072
1410
  [$2=no
2073
 
   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 
1411
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2074
1412
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2075
1413
   lt_compiler_flag="$3"
2076
1414
   # Insert the option either (1) after the last *FLAGS variable, or
2090
1428
   if (exit $ac_status) && test -s "$ac_outfile"; then
2091
1429
     # The compiler can only warn and ignore the option if not recognized
2092
1430
     # So say no if there are warnings other than the usual output.
2093
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
1431
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2094
1432
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2095
1433
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2096
1434
       $2=yes
2097
1435
     fi
2098
1436
   fi
2099
 
   $RM conftest*
 
1437
   $rm conftest*
2100
1438
])
2101
1439
 
2102
1440
if test x"[$]$2" = xyes; then
2103
 
    m4_if([$5], , :, [$5])
 
1441
    ifelse([$5], , :, [$5])
2104
1442
else
2105
 
    m4_if([$6], , :, [$6])
 
1443
    ifelse([$6], , :, [$6])
2106
1444
fi
2107
 
])# _LT_COMPILER_OPTION
2108
 
 
2109
 
# Old name:
2110
 
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2111
 
dnl aclocal-1.4 backwards compatibility:
2112
 
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2113
 
 
2114
 
 
2115
 
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2116
 
#                  [ACTION-SUCCESS], [ACTION-FAILURE])
2117
 
# ----------------------------------------------------
2118
 
# Check whether the given linker option works
2119
 
AC_DEFUN([_LT_LINKER_OPTION],
2120
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2121
 
m4_require([_LT_DECL_SED])dnl
 
1445
])# AC_LIBTOOL_COMPILER_OPTION
 
1446
 
 
1447
 
 
1448
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 
1449
#                          [ACTION-SUCCESS], [ACTION-FAILURE])
 
1450
# ------------------------------------------------------------
 
1451
# Check whether the given compiler option works
 
1452
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 
1453
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2122
1454
AC_CACHE_CHECK([$1], [$2],
2123
1455
  [$2=no
2124
1456
   save_LDFLAGS="$LDFLAGS"
2130
1462
     if test -s conftest.err; then
2131
1463
       # Append any errors to the config.log.
2132
1464
       cat conftest.err 1>&AS_MESSAGE_LOG_FD
2133
 
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
1465
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2134
1466
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2135
1467
       if diff conftest.exp conftest.er2 >/dev/null; then
2136
1468
         $2=yes
2139
1471
       $2=yes
2140
1472
     fi
2141
1473
   fi
2142
 
   $RM -r conftest*
 
1474
   $rm -r conftest*
2143
1475
   LDFLAGS="$save_LDFLAGS"
2144
1476
])
2145
1477
 
2146
1478
if test x"[$]$2" = xyes; then
2147
 
    m4_if([$4], , :, [$4])
 
1479
    ifelse([$4], , :, [$4])
2148
1480
else
2149
 
    m4_if([$5], , :, [$5])
 
1481
    ifelse([$5], , :, [$5])
2150
1482
fi
2151
 
])# _LT_LINKER_OPTION
2152
 
 
2153
 
# Old name:
2154
 
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2155
 
dnl aclocal-1.4 backwards compatibility:
2156
 
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2157
 
 
2158
 
 
2159
 
# LT_CMD_MAX_LEN
2160
 
#---------------
2161
 
AC_DEFUN([LT_CMD_MAX_LEN],
2162
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2163
 
# find the maximum length of command line arguments
 
1483
])# AC_LIBTOOL_LINKER_OPTION
 
1484
 
 
1485
 
 
1486
# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1487
# --------------------------
 
1488
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 
1489
[# find the maximum length of command line arguments
2164
1490
AC_MSG_CHECKING([the maximum length of command line arguments])
2165
1491
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2166
1492
  i=0
2237
1563
  sysv5* | sco5v6* | sysv4.2uw2*)
2238
1564
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2239
1565
    if test -n "$kargmax"; then
2240
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
 
1566
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
2241
1567
    else
2242
1568
      lt_cv_sys_max_cmd_len=32768
2243
1569
    fi
2248
1574
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2249
1575
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2250
1576
    else
2251
 
      # Make teststring a little bigger before we do anything with it.
2252
 
      # a 1K string should be a reasonable start.
2253
 
      for i in 1 2 3 4 5 6 7 8 ; do
2254
 
        teststring=$teststring$teststring
2255
 
      done
2256
1577
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2257
 
      # If test is not a shell built-in, we'll probably end up computing a
2258
 
      # maximum length that is only half of the actual maximum length, but
2259
 
      # we can't tell.
2260
 
      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2261
 
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
1578
      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1579
               = "XX$teststring") >/dev/null 2>&1 &&
 
1580
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
1581
              lt_cv_sys_max_cmd_len=$new_result &&
2262
1582
              test $i != 17 # 1/2 MB should be enough
2263
1583
      do
2264
1584
        i=`expr $i + 1`
2265
1585
        teststring=$teststring$teststring
2266
1586
      done
2267
 
      # Only check the string length outside the loop.
2268
 
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2269
1587
      teststring=
2270
 
      # Add a significant safety factor because C++ compilers can tack on
2271
 
      # massive amounts of additional arguments before passing them to the
2272
 
      # linker.  It appears as though 1/2 is a usable value.
 
1588
      # Add a significant safety factor because C++ compilers can tack on massive
 
1589
      # amounts of additional arguments before passing them to the linker.
 
1590
      # It appears as though 1/2 is a usable value.
2273
1591
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2274
1592
    fi
2275
1593
    ;;
2280
1598
else
2281
1599
  AC_MSG_RESULT(none)
2282
1600
fi
2283
 
max_cmd_len=$lt_cv_sys_max_cmd_len
2284
 
_LT_DECL([], [max_cmd_len], [0],
2285
 
    [What is the maximum length of a command?])
2286
 
])# LT_CMD_MAX_LEN
2287
 
 
2288
 
# Old name:
2289
 
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2290
 
dnl aclocal-1.4 backwards compatibility:
2291
 
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2292
 
 
2293
 
 
2294
 
# _LT_HEADER_DLFCN
2295
 
# ----------------
2296
 
m4_defun([_LT_HEADER_DLFCN],
2297
 
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2298
 
])# _LT_HEADER_DLFCN
2299
 
 
2300
 
 
2301
 
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2302
 
#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2303
 
# ----------------------------------------------------------------
2304
 
m4_defun([_LT_TRY_DLOPEN_SELF],
2305
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
1601
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 
1602
 
 
1603
 
 
1604
# _LT_AC_CHECK_DLFCN
 
1605
# ------------------
 
1606
AC_DEFUN([_LT_AC_CHECK_DLFCN],
 
1607
[AC_CHECK_HEADERS(dlfcn.h)dnl
 
1608
])# _LT_AC_CHECK_DLFCN
 
1609
 
 
1610
 
 
1611
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 
1612
#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 
1613
# ---------------------------------------------------------------------
 
1614
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 
1615
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2306
1616
if test "$cross_compiling" = yes; then :
2307
1617
  [$4]
2308
1618
else
2309
1619
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2310
1620
  lt_status=$lt_dlunknown
2311
 
  cat > conftest.$ac_ext <<_LT_EOF
 
1621
  cat > conftest.$ac_ext <<EOF
2312
1622
[#line __oline__ "configure"
2313
1623
#include "confdefs.h"
2314
1624
 
2371
1681
 
2372
1682
    exit (status);
2373
1683
}]
2374
 
_LT_EOF
 
1684
EOF
2375
1685
  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2376
1686
    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2377
1687
    lt_status=$?
2386
1696
  fi
2387
1697
fi
2388
1698
rm -fr conftest*
2389
 
])# _LT_TRY_DLOPEN_SELF
2390
 
 
2391
 
 
2392
 
# LT_SYS_DLOPEN_SELF
2393
 
# ------------------
2394
 
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2395
 
[m4_require([_LT_HEADER_DLFCN])dnl
 
1699
])# _LT_AC_TRY_DLOPEN_SELF
 
1700
 
 
1701
 
 
1702
# AC_LIBTOOL_DLOPEN_SELF
 
1703
# ----------------------
 
1704
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 
1705
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2396
1706
if test "x$enable_dlopen" != xyes; then
2397
1707
  enable_dlopen=unknown
2398
1708
  enable_dlopen_self=unknown
2411
1721
  mingw* | pw32*)
2412
1722
    lt_cv_dlopen="LoadLibrary"
2413
1723
    lt_cv_dlopen_libs=
2414
 
    ;;
 
1724
   ;;
2415
1725
 
2416
1726
  cygwin*)
2417
1727
    lt_cv_dlopen="dlopen"
2418
1728
    lt_cv_dlopen_libs=
2419
 
    ;;
 
1729
   ;;
2420
1730
 
2421
1731
  darwin*)
2422
1732
  # if libdl is installed we need to link against it
2426
1736
    lt_cv_dlopen_libs=
2427
1737
    lt_cv_dlopen_self=yes
2428
1738
    ])
2429
 
    ;;
 
1739
   ;;
2430
1740
 
2431
1741
  *)
2432
1742
    AC_CHECK_FUNC([shl_load],
2468
1778
 
2469
1779
    AC_CACHE_CHECK([whether a program can dlopen itself],
2470
1780
          lt_cv_dlopen_self, [dnl
2471
 
          _LT_TRY_DLOPEN_SELF(
 
1781
          _LT_AC_TRY_DLOPEN_SELF(
2472
1782
            lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2473
1783
            lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2474
1784
    ])
2476
1786
    if test "x$lt_cv_dlopen_self" = xyes; then
2477
1787
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2478
1788
      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2479
 
          lt_cv_dlopen_self_static, [dnl
2480
 
          _LT_TRY_DLOPEN_SELF(
 
1789
          lt_cv_dlopen_self_static, [dnl
 
1790
          _LT_AC_TRY_DLOPEN_SELF(
2481
1791
            lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2482
1792
            lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
2483
1793
      ])
2499
1809
  *) enable_dlopen_self_static=unknown ;;
2500
1810
  esac
2501
1811
fi
2502
 
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2503
 
         [Whether dlopen is supported])
2504
 
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2505
 
         [Whether dlopen of programs is supported])
2506
 
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2507
 
         [Whether dlopen of statically linked programs is supported])
2508
 
])# LT_SYS_DLOPEN_SELF
2509
 
 
2510
 
# Old name:
2511
 
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2512
 
dnl aclocal-1.4 backwards compatibility:
2513
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2514
 
 
2515
 
 
2516
 
# _LT_COMPILER_C_O([TAGNAME])
2517
 
# ---------------------------
2518
 
# Check to see if options -c and -o are simultaneously supported by compiler.
2519
 
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2520
 
m4_defun([_LT_COMPILER_C_O],
2521
 
[m4_require([_LT_DECL_SED])dnl
2522
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2523
 
m4_require([_LT_TAG_COMPILER])dnl
 
1812
])# AC_LIBTOOL_DLOPEN_SELF
 
1813
 
 
1814
 
 
1815
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 
1816
# ---------------------------------
 
1817
# Check to see if options -c and -o are simultaneously supported by compiler
 
1818
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 
1819
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
1820
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2524
1821
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2525
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2526
 
  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2527
 
   $RM -r conftest 2>/dev/null
 
1822
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 
1823
  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 
1824
   $rm -r conftest 2>/dev/null
2528
1825
   mkdir conftest
2529
1826
   cd conftest
2530
1827
   mkdir out
2548
1845
   then
2549
1846
     # The compiler can only warn and ignore the option if not recognized
2550
1847
     # So say no if there are warnings
2551
 
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
1848
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2552
1849
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2553
1850
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2554
 
       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
1851
       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2555
1852
     fi
2556
1853
   fi
2557
1854
   chmod u+w . 2>&AS_MESSAGE_LOG_FD
2558
 
   $RM conftest*
 
1855
   $rm conftest*
2559
1856
   # SGI C++ compiler will create directory out/ii_files/ for
2560
1857
   # template instantiation
2561
 
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2562
 
   $RM out/* && rmdir out
 
1858
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1859
   $rm out/* && rmdir out
2563
1860
   cd ..
2564
 
   $RM -r conftest
2565
 
   $RM conftest*
 
1861
   rmdir conftest
 
1862
   $rm conftest*
2566
1863
])
2567
 
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2568
 
        [Does compiler simultaneously support -c and -o options?])
2569
 
])# _LT_COMPILER_C_O
2570
 
 
2571
 
 
2572
 
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2573
 
# ----------------------------------
 
1864
])# AC_LIBTOOL_PROG_CC_C_O
 
1865
 
 
1866
 
 
1867
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 
1868
# -----------------------------------------
2574
1869
# Check to see if we can do hard links to lock some files if needed
2575
 
m4_defun([_LT_COMPILER_FILE_LOCKS],
2576
 
[m4_require([_LT_ENABLE_LOCK])dnl
2577
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2578
 
_LT_COMPILER_C_O([$1])
 
1870
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 
1871
[AC_REQUIRE([_LT_AC_LOCK])dnl
2579
1872
 
2580
1873
hard_links="nottested"
2581
 
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 
1874
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2582
1875
  # do not overwrite the value of need_locks provided by the user
2583
1876
  AC_MSG_CHECKING([if we can lock with hard links])
2584
1877
  hard_links=yes
2585
 
  $RM conftest*
 
1878
  $rm conftest*
2586
1879
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
2587
1880
  touch conftest.a
2588
1881
  ln conftest.a conftest.b 2>&5 || hard_links=no
2595
1888
else
2596
1889
  need_locks=no
2597
1890
fi
2598
 
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2599
 
])# _LT_COMPILER_FILE_LOCKS
2600
 
 
2601
 
 
2602
 
# _LT_CHECK_OBJDIR
2603
 
# ----------------
2604
 
m4_defun([_LT_CHECK_OBJDIR],
 
1891
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 
1892
 
 
1893
 
 
1894
# AC_LIBTOOL_OBJDIR
 
1895
# -----------------
 
1896
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2605
1897
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2606
1898
[rm -f .libs 2>/dev/null
2607
1899
mkdir .libs 2>/dev/null
2613
1905
fi
2614
1906
rmdir .libs 2>/dev/null])
2615
1907
objdir=$lt_cv_objdir
2616
 
_LT_DECL([], [objdir], [0],
2617
 
         [The name of the directory that contains temporary libtool files])dnl
2618
 
m4_pattern_allow([LT_OBJDIR])dnl
2619
 
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2620
 
  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2621
 
])# _LT_CHECK_OBJDIR
2622
 
 
2623
 
 
2624
 
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2625
 
# --------------------------------------
 
1908
])# AC_LIBTOOL_OBJDIR
 
1909
 
 
1910
 
 
1911
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 
1912
# ----------------------------------------------
2626
1913
# Check hardcoding attributes.
2627
 
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 
1914
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2628
1915
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2629
 
_LT_TAGVAR(hardcode_action, $1)=
2630
 
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2631
 
   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2632
 
   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 
1916
_LT_AC_TAGVAR(hardcode_action, $1)=
 
1917
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 
1918
   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 
1919
   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2633
1920
 
2634
 
  # We can hardcode non-existent directories.
2635
 
  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
 
1921
  # We can hardcode non-existant directories.
 
1922
  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2636
1923
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
2637
1924
     # have to relink, otherwise we might link with an installed library
2638
1925
     # when we should be linking with a yet-to-be-installed one
2639
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2640
 
     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
 
1926
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 
1927
     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2641
1928
    # Linking always hardcodes the temporary library directory.
2642
 
    _LT_TAGVAR(hardcode_action, $1)=relink
 
1929
    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2643
1930
  else
2644
1931
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
2645
 
    _LT_TAGVAR(hardcode_action, $1)=immediate
 
1932
    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2646
1933
  fi
2647
1934
else
2648
1935
  # We cannot hardcode anything, or else we can only hardcode existing
2649
1936
  # directories.
2650
 
  _LT_TAGVAR(hardcode_action, $1)=unsupported
 
1937
  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2651
1938
fi
2652
 
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 
1939
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2653
1940
 
2654
 
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2655
 
   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
 
1941
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2656
1942
  # Fast installation is not supported
2657
1943
  enable_fast_install=no
2658
1944
elif test "$shlibpath_overrides_runpath" = yes ||
2660
1946
  # Fast installation is not necessary
2661
1947
  enable_fast_install=needless
2662
1948
fi
2663
 
_LT_TAGDECL([], [hardcode_action], [0],
2664
 
    [How to hardcode a shared library path into an executable])
2665
 
])# _LT_LINKER_HARDCODE_LIBPATH
2666
 
 
2667
 
 
2668
 
# _LT_CMD_STRIPLIB
2669
 
# ----------------
2670
 
m4_defun([_LT_CMD_STRIPLIB],
2671
 
[m4_require([_LT_DECL_EGREP])
2672
 
striplib=
 
1949
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 
1950
 
 
1951
 
 
1952
# AC_LIBTOOL_SYS_LIB_STRIP
 
1953
# ------------------------
 
1954
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 
1955
[striplib=
2673
1956
old_striplib=
2674
1957
AC_MSG_CHECKING([whether stripping libraries is possible])
2675
 
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
1958
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2676
1959
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2677
1960
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2678
1961
  AC_MSG_RESULT([yes])
2679
1962
else
2680
1963
# FIXME - insert some real tests, host_os isn't really good enough
2681
1964
  case $host_os in
2682
 
  darwin*)
2683
 
    if test -n "$STRIP" ; then
2684
 
      striplib="$STRIP -x"
2685
 
      old_striplib="$STRIP -S"
2686
 
      AC_MSG_RESULT([yes])
2687
 
    else
2688
 
      AC_MSG_RESULT([no])
2689
 
    fi
2690
 
    ;;
2691
 
  *)
2692
 
    AC_MSG_RESULT([no])
 
1965
   darwin*)
 
1966
       if test -n "$STRIP" ; then
 
1967
         striplib="$STRIP -x"
 
1968
         old_striplib="$STRIP -S"
 
1969
         AC_MSG_RESULT([yes])
 
1970
       else
 
1971
  AC_MSG_RESULT([no])
 
1972
fi
 
1973
       ;;
 
1974
   *)
 
1975
  AC_MSG_RESULT([no])
2693
1976
    ;;
2694
1977
  esac
2695
1978
fi
2696
 
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2697
 
_LT_DECL([], [striplib], [1])
2698
 
])# _LT_CMD_STRIPLIB
2699
 
 
2700
 
 
2701
 
# _LT_SYS_DYNAMIC_LINKER([TAG])
 
1979
])# AC_LIBTOOL_SYS_LIB_STRIP
 
1980
 
 
1981
 
 
1982
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2702
1983
# -----------------------------
2703
1984
# PORTME Fill in your ld.so characteristics
2704
 
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2705
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2706
 
m4_require([_LT_DECL_EGREP])dnl
2707
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2708
 
m4_require([_LT_DECL_SED])dnl
 
1985
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 
1986
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2709
1987
AC_MSG_CHECKING([dynamic linker characteristics])
2710
 
m4_if([$1],
2711
 
        [], [
 
1988
library_names_spec=
 
1989
libname_spec='lib$name'
 
1990
soname_spec=
 
1991
shrext_cmds=".so"
 
1992
postinstall_cmds=
 
1993
postuninstall_cmds=
 
1994
finish_cmds=
 
1995
finish_eval=
 
1996
shlibpath_var=
 
1997
shlibpath_overrides_runpath=unknown
 
1998
version_type=none
 
1999
dynamic_linker="$host_os ld.so"
 
2000
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
2001
m4_if($1,[],[
2712
2002
if test "$GCC" = yes; then
2713
2003
  case $host_os in
2714
2004
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2715
2005
    *) lt_awk_arg="/^libraries:/" ;;
2716
2006
  esac
2717
2007
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2718
 
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
2008
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2719
2009
    # if the path contains ";" then we assume it to be the separator
2720
2010
    # otherwise default to the standard path separator (i.e. ":") - it is
2721
2011
    # assumed that no part of a normal pathname contains ";" but that should
2722
2012
    # okay in the real world where ";" in dirpaths is itself problematic.
2723
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
2013
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2724
2014
  else
2725
 
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2015
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2726
2016
  fi
2727
2017
  # Ok, now we have the path, separated by spaces, we can step through it
2728
2018
  # and add multilib dir if necessary.
2736
2026
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2737
2027
    fi
2738
2028
  done
2739
 
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
2029
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2740
2030
BEGIN {RS=" "; FS="/|\n";} {
2741
2031
  lt_foo="";
2742
2032
  lt_count=0;
2756
2046
  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2757
2047
  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2758
2048
}'`
2759
 
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
2049
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2760
2050
else
2761
2051
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2762
2052
fi])
2763
 
library_names_spec=
2764
 
libname_spec='lib$name'
2765
 
soname_spec=
2766
 
shrext_cmds=".so"
2767
 
postinstall_cmds=
2768
 
postuninstall_cmds=
2769
 
finish_cmds=
2770
 
finish_eval=
2771
 
shlibpath_var=
2772
 
shlibpath_overrides_runpath=unknown
2773
 
version_type=none
2774
 
dynamic_linker="$host_os ld.so"
2775
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2776
2053
need_lib_prefix=unknown
2777
2054
hardcode_into_libs=no
2778
2055
 
2809
2086
      aix4 | aix4.[[01]] | aix4.[[01]].*)
2810
2087
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2811
2088
           echo ' yes '
2812
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
2089
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2813
2090
        :
2814
2091
      else
2815
2092
        can_build_shared=no
2835
2112
  ;;
2836
2113
 
2837
2114
amigaos*)
2838
 
  case $host_cpu in
2839
 
  powerpc)
2840
 
    # Since July 2007 AmigaOS4 officially supports .so libraries.
2841
 
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2842
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2843
 
    ;;
2844
 
  m68k)
2845
 
    library_names_spec='$libname.ixlibrary $libname.a'
2846
 
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2847
 
    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'
2848
 
    ;;
2849
 
  esac
 
2115
  library_names_spec='$libname.ixlibrary $libname.a'
 
2116
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
2117
  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'
2850
2118
  ;;
2851
2119
 
2852
2120
beos*)
2880
2148
    library_names_spec='$libname.dll.a'
2881
2149
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
2882
2150
    postinstall_cmds='base_file=`basename \${file}`~
2883
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
2151
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2884
2152
      dldir=$destdir/`dirname \$dlpath`~
2885
2153
      test -d \$dldir || mkdir -p \$dldir~
2886
2154
      $install_prog $dir/$dlname \$dldir/$dlname~
2887
 
      chmod a+x \$dldir/$dlname~
2888
 
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2889
 
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2890
 
      fi'
 
2155
      chmod a+x \$dldir/$dlname'
2891
2156
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2892
2157
      dlpath=$dir/\$dldll~
2893
 
       $RM \$dlpath'
 
2158
       $rm \$dlpath'
2894
2159
    shlibpath_overrides_runpath=yes
2895
2160
 
2896
2161
    case $host_os in
2902
2167
    mingw*)
2903
2168
      # MinGW DLLs use traditional 'lib' prefix
2904
2169
      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2905
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2906
 
      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 
2170
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
2171
      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2907
2172
        # It is most probably a Windows format PATH printed by
2908
2173
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
2909
2174
        # path with ; separators, and with drive letters. We can handle the
2910
2175
        # drive letters (cygwin fileutils understands them), so leave them,
2911
2176
        # especially as we might pass files found there to a mingw objdump,
2912
2177
        # which wouldn't understand a cygwinified path. Ahh.
2913
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
2178
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2914
2179
      else
2915
 
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
2180
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2916
2181
      fi
2917
2182
      ;;
2918
2183
    pw32*)
2936
2201
  version_type=darwin
2937
2202
  need_lib_prefix=no
2938
2203
  need_version=no
2939
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
2204
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2940
2205
  soname_spec='${libname}${release}${major}$shared_ext'
2941
2206
  shlibpath_overrides_runpath=yes
2942
2207
  shlibpath_var=DYLD_LIBRARY_PATH
2943
2208
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2944
 
m4_if([$1], [],[
2945
 
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 
2209
  m4_if([$1], [],[
 
2210
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
2946
2211
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2947
2212
  ;;
2948
2213
 
3035
2300
    fi
3036
2301
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3037
2302
    ;;
3038
 
  hppa*64*)
3039
 
    shrext_cmds='.sl'
3040
 
    hardcode_into_libs=yes
3041
 
    dynamic_linker="$host_os dld.sl"
3042
 
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3043
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3044
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3045
 
    soname_spec='${libname}${release}${shared_ext}$major'
3046
 
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3047
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3048
 
    ;;
3049
 
  *)
 
2303
   hppa*64*)
 
2304
     shrext_cmds='.sl'
 
2305
     hardcode_into_libs=yes
 
2306
     dynamic_linker="$host_os dld.sl"
 
2307
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
2308
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
2309
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
2310
     soname_spec='${libname}${release}${shared_ext}$major'
 
2311
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
2312
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
2313
     ;;
 
2314
   *)
3050
2315
    shrext_cmds='.sl'
3051
2316
    dynamic_linker="$host_os dld.sl"
3052
2317
    shlibpath_var=SHLIB_PATH
3123
2388
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3124
2389
  shlibpath_var=LD_LIBRARY_PATH
3125
2390
  shlibpath_overrides_runpath=no
3126
 
  # Some binutils ld are patched to set DT_RUNPATH
3127
 
  save_LDFLAGS=$LDFLAGS
3128
 
  save_libdir=$libdir
3129
 
  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3130
 
       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3131
 
  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3132
 
    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3133
 
       [shlibpath_overrides_runpath=yes])])
3134
 
  LDFLAGS=$save_LDFLAGS
3135
 
  libdir=$save_libdir
3136
 
 
3137
2391
  # This implies no fast_install, which is unacceptable.
3138
2392
  # Some rework will be needed to allow for fast_install
3139
2393
  # before this can be enabled.
3141
2395
 
3142
2396
  # Append ld.so.conf contents to the search path
3143
2397
  if test -f /etc/ld.so.conf; then
3144
 
    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' ' '`
 
2398
    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' ' '`
3145
2399
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3146
2400
  fi
3147
2401
 
3170
2424
  version_type=sunos
3171
2425
  need_lib_prefix=no
3172
2426
  need_version=no
3173
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
2427
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3174
2428
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3175
2429
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3176
2430
    dynamic_linker='NetBSD (a.out) ld.so'
3191
2445
  shlibpath_overrides_runpath=yes
3192
2446
  ;;
3193
2447
 
3194
 
*nto* | *qnx*)
3195
 
  version_type=qnx
 
2448
nto-qnx*)
 
2449
  version_type=linux
3196
2450
  need_lib_prefix=no
3197
2451
  need_version=no
3198
2452
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3199
2453
  soname_spec='${libname}${release}${shared_ext}$major'
3200
2454
  shlibpath_var=LD_LIBRARY_PATH
3201
 
  shlibpath_overrides_runpath=no
3202
 
  hardcode_into_libs=yes
3203
 
  dynamic_linker='ldqnx.so'
 
2455
  shlibpath_overrides_runpath=yes
3204
2456
  ;;
3205
2457
 
3206
2458
openbsd*)
3209
2461
  need_lib_prefix=no
3210
2462
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3211
2463
  case $host_os in
3212
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
3213
 
    *)                          need_version=no  ;;
 
2464
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
2465
    *)                         need_version=no  ;;
3214
2466
  esac
3215
2467
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3216
2468
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3217
2469
  shlibpath_var=LD_LIBRARY_PATH
3218
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
2470
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3219
2471
    case $host_os in
3220
2472
      openbsd2.[[89]] | openbsd2.[[89]].*)
3221
2473
        shlibpath_overrides_runpath=no
3287
2539
    sni)
3288
2540
      shlibpath_overrides_runpath=no
3289
2541
      need_lib_prefix=no
 
2542
      export_dynamic_flag_spec='${wl}-Blargedynsym'
3290
2543
      runpath_var=LD_RUN_PATH
3291
2544
      ;;
3292
2545
    siemens)
3317
2570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3318
2571
  soname_spec='${libname}${release}${shared_ext}$major'
3319
2572
  shlibpath_var=LD_LIBRARY_PATH
3320
 
  shlibpath_overrides_runpath=yes
3321
2573
  hardcode_into_libs=yes
3322
2574
  if test "$with_gnu_ld" = yes; then
3323
2575
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
2576
    shlibpath_overrides_runpath=no
3324
2577
  else
3325
2578
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
2579
    shlibpath_overrides_runpath=yes
3326
2580
    case $host_os in
3327
2581
      sco3.2v5*)
3328
2582
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3332
2586
  sys_lib_dlsearch_path_spec='/usr/lib'
3333
2587
  ;;
3334
2588
 
3335
 
tpf*)
3336
 
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
3337
 
  version_type=linux
3338
 
  need_lib_prefix=no
3339
 
  need_version=no
3340
 
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3341
 
  shlibpath_var=LD_LIBRARY_PATH
3342
 
  shlibpath_overrides_runpath=no
3343
 
  hardcode_into_libs=yes
3344
 
  ;;
3345
 
 
3346
2589
uts4*)
3347
2590
  version_type=linux
3348
2591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3357
2600
AC_MSG_RESULT([$dynamic_linker])
3358
2601
test "$dynamic_linker" = no && can_build_shared=no
3359
2602
 
 
2603
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
 
2604
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
 
2605
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
2606
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
 
2607
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
 
2608
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
2609
 
3360
2610
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3361
2611
if test "$GCC" = yes; then
3362
2612
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3363
2613
fi
3364
 
 
3365
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3366
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3367
 
fi
3368
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3369
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3370
 
fi
3371
 
 
3372
 
_LT_DECL([], [variables_saved_for_relink], [1],
3373
 
    [Variables whose values should be saved in libtool wrapper scripts and
3374
 
    restored at link time])
3375
 
_LT_DECL([], [need_lib_prefix], [0],
3376
 
    [Do we need the "lib" prefix for modules?])
3377
 
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3378
 
_LT_DECL([], [version_type], [0], [Library versioning type])
3379
 
_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
3380
 
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3381
 
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3382
 
    [Is shlibpath searched before the hard-coded library search path?])
3383
 
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3384
 
_LT_DECL([], [library_names_spec], [1],
3385
 
    [[List of archive names.  First name is the real one, the rest are links.
3386
 
    The last name is the one that the linker finds with -lNAME]])
3387
 
_LT_DECL([], [soname_spec], [1],
3388
 
    [[The coded name of the library, if different from the real name]])
3389
 
_LT_DECL([], [postinstall_cmds], [2],
3390
 
    [Command to use after installation of a shared archive])
3391
 
_LT_DECL([], [postuninstall_cmds], [2],
3392
 
    [Command to use after uninstallation of a shared archive])
3393
 
_LT_DECL([], [finish_cmds], [2],
3394
 
    [Commands used to finish a libtool library installation in a directory])
3395
 
_LT_DECL([], [finish_eval], [1],
3396
 
    [[As "finish_cmds", except a single script fragment to be evaled but
3397
 
    not shown]])
3398
 
_LT_DECL([], [hardcode_into_libs], [0],
3399
 
    [Whether we should hardcode library paths into libraries])
3400
 
_LT_DECL([], [sys_lib_search_path_spec], [2],
3401
 
    [Compile-time system search path for libraries])
3402
 
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3403
 
    [Run-time system search path for libraries])
3404
 
])# _LT_SYS_DYNAMIC_LINKER
3405
 
 
3406
 
 
3407
 
# _LT_PATH_TOOL_PREFIX(TOOL)
 
2614
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 
2615
 
 
2616
 
 
2617
# _LT_AC_TAGCONFIG
 
2618
# ----------------
 
2619
AC_DEFUN([_LT_AC_TAGCONFIG],
 
2620
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2621
AC_ARG_WITH([tags],
 
2622
    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 
2623
        [include additional configurations @<:@automatic@:>@])],
 
2624
    [tagnames="$withval"])
 
2625
 
 
2626
if test -f "$ltmain" && test -n "$tagnames"; then
 
2627
  if test ! -f "${ofile}"; then
 
2628
    AC_MSG_WARN([output file `$ofile' does not exist])
 
2629
  fi
 
2630
 
 
2631
  if test -z "$LTCC"; then
 
2632
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
2633
    if test -z "$LTCC"; then
 
2634
      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 
2635
    else
 
2636
      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 
2637
    fi
 
2638
  fi
 
2639
  if test -z "$LTCFLAGS"; then
 
2640
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
2641
  fi
 
2642
 
 
2643
  # Extract list of available tagged configurations in $ofile.
 
2644
  # Note that this assumes the entire list is on one line.
 
2645
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
2646
 
 
2647
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2648
  for tagname in $tagnames; do
 
2649
    IFS="$lt_save_ifs"
 
2650
    # Check whether tagname contains only valid characters
 
2651
    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 
2652
    "") ;;
 
2653
    *)  AC_MSG_ERROR([invalid tag name: $tagname])
 
2654
        ;;
 
2655
    esac
 
2656
 
 
2657
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
2658
    then
 
2659
      AC_MSG_ERROR([tag name \"$tagname\" already exists])
 
2660
    fi
 
2661
 
 
2662
    # Update the list of available tags.
 
2663
    if test -n "$tagname"; then
 
2664
      echo appending configuration tag \"$tagname\" to $ofile
 
2665
 
 
2666
      case $tagname in
 
2667
      CXX)
 
2668
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
2669
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
2670
            (test "X$CXX" != "Xg++"))) ; then
 
2671
          AC_LIBTOOL_LANG_CXX_CONFIG
 
2672
        else
 
2673
          tagname=""
 
2674
        fi
 
2675
        ;;
 
2676
 
 
2677
      F77)
 
2678
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
2679
          AC_LIBTOOL_LANG_F77_CONFIG
 
2680
        else
 
2681
          tagname=""
 
2682
        fi
 
2683
        ;;
 
2684
 
 
2685
      GCJ)
 
2686
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
2687
          AC_LIBTOOL_LANG_GCJ_CONFIG
 
2688
        else
 
2689
          tagname=""
 
2690
        fi
 
2691
        ;;
 
2692
 
 
2693
      RC)
 
2694
        AC_LIBTOOL_LANG_RC_CONFIG
 
2695
        ;;
 
2696
 
 
2697
      *)
 
2698
        AC_MSG_ERROR([Unsupported tag name: $tagname])
 
2699
        ;;
 
2700
      esac
 
2701
 
 
2702
      # Append the new tag name to the list of available tags.
 
2703
      if test -n "$tagname" ; then
 
2704
      available_tags="$available_tags $tagname"
 
2705
    fi
 
2706
    fi
 
2707
  done
 
2708
  IFS="$lt_save_ifs"
 
2709
 
 
2710
  # Now substitute the updated list of available tags.
 
2711
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
2712
    mv "${ofile}T" "$ofile"
 
2713
    chmod +x "$ofile"
 
2714
  else
 
2715
    rm -f "${ofile}T"
 
2716
    AC_MSG_ERROR([unable to update list of available tagged configurations.])
 
2717
  fi
 
2718
fi
 
2719
])# _LT_AC_TAGCONFIG
 
2720
 
 
2721
 
 
2722
# AC_LIBTOOL_DLOPEN
 
2723
# -----------------
 
2724
# enable checks for dlopen support
 
2725
AC_DEFUN([AC_LIBTOOL_DLOPEN],
 
2726
 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 
2727
])# AC_LIBTOOL_DLOPEN
 
2728
 
 
2729
 
 
2730
# AC_LIBTOOL_WIN32_DLL
 
2731
# --------------------
 
2732
# declare package support for building win32 DLLs
 
2733
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 
2734
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 
2735
])# AC_LIBTOOL_WIN32_DLL
 
2736
 
 
2737
 
 
2738
# AC_ENABLE_SHARED([DEFAULT])
 
2739
# ---------------------------
 
2740
# implement the --enable-shared flag
 
2741
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2742
AC_DEFUN([AC_ENABLE_SHARED],
 
2743
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 
2744
AC_ARG_ENABLE([shared],
 
2745
    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 
2746
        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 
2747
    [p=${PACKAGE-default}
 
2748
    case $enableval in
 
2749
    yes) enable_shared=yes ;;
 
2750
    no) enable_shared=no ;;
 
2751
    *)
 
2752
      enable_shared=no
 
2753
      # Look at the argument we got.  We use all the common list separators.
 
2754
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2755
      for pkg in $enableval; do
 
2756
        IFS="$lt_save_ifs"
 
2757
        if test "X$pkg" = "X$p"; then
 
2758
          enable_shared=yes
 
2759
        fi
 
2760
      done
 
2761
      IFS="$lt_save_ifs"
 
2762
      ;;
 
2763
    esac],
 
2764
    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 
2765
])# AC_ENABLE_SHARED
 
2766
 
 
2767
 
 
2768
# AC_DISABLE_SHARED
 
2769
# -----------------
 
2770
# set the default shared flag to --disable-shared
 
2771
AC_DEFUN([AC_DISABLE_SHARED],
 
2772
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2773
AC_ENABLE_SHARED(no)
 
2774
])# AC_DISABLE_SHARED
 
2775
 
 
2776
 
 
2777
# AC_ENABLE_STATIC([DEFAULT])
 
2778
# ---------------------------
 
2779
# implement the --enable-static flag
 
2780
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2781
AC_DEFUN([AC_ENABLE_STATIC],
 
2782
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 
2783
AC_ARG_ENABLE([static],
 
2784
    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 
2785
        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 
2786
    [p=${PACKAGE-default}
 
2787
    case $enableval in
 
2788
    yes) enable_static=yes ;;
 
2789
    no) enable_static=no ;;
 
2790
    *)
 
2791
     enable_static=no
 
2792
      # Look at the argument we got.  We use all the common list separators.
 
2793
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2794
      for pkg in $enableval; do
 
2795
        IFS="$lt_save_ifs"
 
2796
        if test "X$pkg" = "X$p"; then
 
2797
          enable_static=yes
 
2798
        fi
 
2799
      done
 
2800
      IFS="$lt_save_ifs"
 
2801
      ;;
 
2802
    esac],
 
2803
    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 
2804
])# AC_ENABLE_STATIC
 
2805
 
 
2806
 
 
2807
# AC_DISABLE_STATIC
 
2808
# -----------------
 
2809
# set the default static flag to --disable-static
 
2810
AC_DEFUN([AC_DISABLE_STATIC],
 
2811
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2812
AC_ENABLE_STATIC(no)
 
2813
])# AC_DISABLE_STATIC
 
2814
 
 
2815
 
 
2816
# AC_ENABLE_FAST_INSTALL([DEFAULT])
 
2817
# ---------------------------------
 
2818
# implement the --enable-fast-install flag
 
2819
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 
2820
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 
2821
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 
2822
AC_ARG_ENABLE([fast-install],
 
2823
    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 
2824
    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 
2825
    [p=${PACKAGE-default}
 
2826
    case $enableval in
 
2827
    yes) enable_fast_install=yes ;;
 
2828
    no) enable_fast_install=no ;;
 
2829
    *)
 
2830
      enable_fast_install=no
 
2831
      # Look at the argument we got.  We use all the common list separators.
 
2832
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2833
      for pkg in $enableval; do
 
2834
        IFS="$lt_save_ifs"
 
2835
        if test "X$pkg" = "X$p"; then
 
2836
          enable_fast_install=yes
 
2837
        fi
 
2838
      done
 
2839
      IFS="$lt_save_ifs"
 
2840
      ;;
 
2841
    esac],
 
2842
    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 
2843
])# AC_ENABLE_FAST_INSTALL
 
2844
 
 
2845
 
 
2846
# AC_DISABLE_FAST_INSTALL
 
2847
# -----------------------
 
2848
# set the default to --disable-fast-install
 
2849
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 
2850
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2851
AC_ENABLE_FAST_INSTALL(no)
 
2852
])# AC_DISABLE_FAST_INSTALL
 
2853
 
 
2854
 
 
2855
# AC_LIBTOOL_PICMODE([MODE])
3408
2856
# --------------------------
 
2857
# implement the --with-pic flag
 
2858
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 
2859
AC_DEFUN([AC_LIBTOOL_PICMODE],
 
2860
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
2861
pic_mode=ifelse($#,1,$1,default)
 
2862
])# AC_LIBTOOL_PICMODE
 
2863
 
 
2864
 
 
2865
# AC_PROG_EGREP
 
2866
# -------------
 
2867
# This is predefined starting with Autoconf 2.54, so this conditional
 
2868
# definition can be removed once we require Autoconf 2.54 or later.
 
2869
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 
2870
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 
2871
   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2872
    then ac_cv_prog_egrep='grep -E'
 
2873
    else ac_cv_prog_egrep='egrep'
 
2874
    fi])
 
2875
 EGREP=$ac_cv_prog_egrep
 
2876
 AC_SUBST([EGREP])
 
2877
])])
 
2878
 
 
2879
 
 
2880
# AC_PATH_TOOL_PREFIX
 
2881
# -------------------
3409
2882
# find a file program which can recognize shared library
3410
 
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3411
 
[m4_require([_LT_DECL_EGREP])dnl
 
2883
AC_DEFUN([AC_PATH_TOOL_PREFIX],
 
2884
[AC_REQUIRE([AC_PROG_EGREP])dnl
3412
2885
AC_MSG_CHECKING([for $1])
3413
2886
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3414
2887
[case $MAGIC_CMD in
3421
2894
dnl $ac_dummy forces splitting on constant user-supplied paths.
3422
2895
dnl POSIX.2 word splitting is done only on the output of word expansions,
3423
2896
dnl not every word.  This closes a longstanding sh security hole.
3424
 
  ac_dummy="m4_if([$2], , $PATH, [$2])"
 
2897
  ac_dummy="ifelse([$2], , $PATH, [$2])"
3425
2898
  for ac_dir in $ac_dummy; do
3426
2899
    IFS="$lt_save_ifs"
3427
2900
    test -z "$ac_dir" && ac_dir=.
3436
2909
            $EGREP "$file_magic_regex" > /dev/null; then
3437
2910
            :
3438
2911
          else
3439
 
            cat <<_LT_EOF 1>&2
 
2912
            cat <<EOF 1>&2
3440
2913
 
3441
2914
*** Warning: the command libtool uses to detect shared libraries,
3442
2915
*** $file_magic_cmd, produces output that libtool cannot recognize.
3447
2920
*** may want to report the problem to your system manager and/or to
3448
2921
*** bug-libtool@gnu.org
3449
2922
 
3450
 
_LT_EOF
 
2923
EOF
3451
2924
          fi ;;
3452
2925
        esac
3453
2926
      fi
3464
2937
else
3465
2938
  AC_MSG_RESULT(no)
3466
2939
fi
3467
 
_LT_DECL([], [MAGIC_CMD], [0],
3468
 
         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3469
 
])# _LT_PATH_TOOL_PREFIX
3470
 
 
3471
 
# Old name:
3472
 
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3473
 
dnl aclocal-1.4 backwards compatibility:
3474
 
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3475
 
 
3476
 
 
3477
 
# _LT_PATH_MAGIC
3478
 
# --------------
 
2940
])# AC_PATH_TOOL_PREFIX
 
2941
 
 
2942
 
 
2943
# AC_PATH_MAGIC
 
2944
# -------------
3479
2945
# find a file program which can recognize a shared library
3480
 
m4_defun([_LT_PATH_MAGIC],
3481
 
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 
2946
AC_DEFUN([AC_PATH_MAGIC],
 
2947
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3482
2948
if test -z "$lt_cv_path_MAGIC_CMD"; then
3483
2949
  if test -n "$ac_tool_prefix"; then
3484
 
    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 
2950
    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3485
2951
  else
3486
2952
    MAGIC_CMD=:
3487
2953
  fi
3488
2954
fi
3489
 
])# _LT_PATH_MAGIC
3490
 
 
3491
 
 
3492
 
# LT_PATH_LD
 
2955
])# AC_PATH_MAGIC
 
2956
 
 
2957
 
 
2958
# AC_PROG_LD
3493
2959
# ----------
3494
2960
# find the pathname to the GNU or non-GNU linker
3495
 
AC_DEFUN([LT_PATH_LD],
3496
 
[AC_REQUIRE([AC_PROG_CC])dnl
3497
 
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3498
 
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3499
 
m4_require([_LT_DECL_SED])dnl
3500
 
m4_require([_LT_DECL_EGREP])dnl
3501
 
 
3502
 
AC_ARG_WITH([gnu-ld],
3503
 
    [AS_HELP_STRING([--with-gnu-ld],
 
2961
AC_DEFUN([AC_PROG_LD],
 
2962
[AC_ARG_WITH([gnu-ld],
 
2963
    [AC_HELP_STRING([--with-gnu-ld],
3504
2964
        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3505
2965
    [test "$withval" = no || with_gnu_ld=yes],
3506
 
    [with_gnu_ld=no])dnl
3507
 
 
 
2966
    [with_gnu_ld=no])
 
2967
AC_REQUIRE([LT_AC_PROG_SED])dnl
 
2968
AC_REQUIRE([AC_PROG_CC])dnl
 
2969
AC_REQUIRE([AC_CANONICAL_HOST])dnl
 
2970
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3508
2971
ac_prog=ld
3509
2972
if test "$GCC" = yes; then
3510
2973
  # Check if gcc -print-prog-name=ld gives a path.
3521
2984
    [[\\/]]* | ?:[[\\/]]*)
3522
2985
      re_direlt='/[[^/]][[^/]]*/\.\./'
3523
2986
      # Canonicalize the pathname of ld
3524
 
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3525
 
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3526
 
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
2987
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
2988
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2989
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3527
2990
      done
3528
2991
      test -z "$LD" && LD="$ac_prog"
3529
2992
      ;;
3573
3036
  AC_MSG_RESULT(no)
3574
3037
fi
3575
3038
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3576
 
_LT_PATH_LD_GNU
3577
 
AC_SUBST([LD])
3578
 
 
3579
 
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3580
 
])# LT_PATH_LD
3581
 
 
3582
 
# Old names:
3583
 
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3584
 
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3585
 
dnl aclocal-1.4 backwards compatibility:
3586
 
dnl AC_DEFUN([AM_PROG_LD], [])
3587
 
dnl AC_DEFUN([AC_PROG_LD], [])
3588
 
 
3589
 
 
3590
 
# _LT_PATH_LD_GNU
3591
 
#- --------------
3592
 
m4_defun([_LT_PATH_LD_GNU],
3593
 
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 
3039
AC_PROG_LD_GNU
 
3040
])# AC_PROG_LD
 
3041
 
 
3042
 
 
3043
# AC_PROG_LD_GNU
 
3044
# --------------
 
3045
AC_DEFUN([AC_PROG_LD_GNU],
 
3046
[AC_REQUIRE([AC_PROG_EGREP])dnl
 
3047
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3594
3048
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3595
3049
case `$LD -v 2>&1 </dev/null` in
3596
3050
*GNU* | *'with BFD'*)
3601
3055
  ;;
3602
3056
esac])
3603
3057
with_gnu_ld=$lt_cv_prog_gnu_ld
3604
 
])# _LT_PATH_LD_GNU
3605
 
 
3606
 
 
3607
 
# _LT_CMD_RELOAD
3608
 
# --------------
 
3058
])# AC_PROG_LD_GNU
 
3059
 
 
3060
 
 
3061
# AC_PROG_LD_RELOAD_FLAG
 
3062
# ----------------------
3609
3063
# find reload flag for linker
3610
3064
#   -- PORTME Some linkers may need a different reload flag.
3611
 
m4_defun([_LT_CMD_RELOAD],
 
3065
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3612
3066
[AC_CACHE_CHECK([for $LD option to reload object files],
3613
3067
  lt_cv_ld_reload_flag,
3614
3068
  [lt_cv_ld_reload_flag='-r'])
3627
3081
    fi
3628
3082
    ;;
3629
3083
esac
3630
 
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3631
 
_LT_DECL([], [reload_cmds], [2])dnl
3632
 
])# _LT_CMD_RELOAD
3633
 
 
3634
 
 
3635
 
# _LT_CHECK_MAGIC_METHOD
3636
 
# ----------------------
 
3084
])# AC_PROG_LD_RELOAD_FLAG
 
3085
 
 
3086
 
 
3087
# AC_DEPLIBS_CHECK_METHOD
 
3088
# -----------------------
3637
3089
# how to check for library dependencies
3638
3090
#  -- PORTME fill in with the dynamic library characteristics
3639
 
m4_defun([_LT_CHECK_MAGIC_METHOD],
3640
 
[m4_require([_LT_DECL_EGREP])
3641
 
AC_CACHE_CHECK([how to recognize dependent libraries],
 
3091
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 
3092
[AC_CACHE_CHECK([how to recognize dependent libraries],
3642
3093
lt_cv_deplibs_check_method,
3643
3094
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3644
3095
lt_cv_file_magic_test_file=
3693
3144
  ;;
3694
3145
 
3695
3146
freebsd* | dragonfly*)
3696
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3147
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3697
3148
    case $host_cpu in
3698
3149
    i*86 )
3699
3150
      # Not sure whether the presence of OpenBSD here was a mistake.
3751
3202
  ;;
3752
3203
 
3753
3204
netbsd* | netbsdelf*-gnu)
3754
 
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
3205
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3755
3206
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3756
3207
  else
3757
3208
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3764
3215
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3765
3216
  ;;
3766
3217
 
3767
 
*nto* | *qnx*)
3768
 
  lt_cv_deplibs_check_method=pass_all
 
3218
nto-qnx*)
 
3219
  lt_cv_deplibs_check_method=unknown
3769
3220
  ;;
3770
3221
 
3771
3222
openbsd*)
3772
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3223
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3773
3224
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3774
3225
  else
3775
3226
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3788
3239
  lt_cv_deplibs_check_method=pass_all
3789
3240
  ;;
3790
3241
 
3791
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3792
 
  lt_cv_deplibs_check_method=pass_all
3793
 
  ;;
3794
 
 
3795
3242
sysv4 | sysv4.3*)
3796
3243
  case $host_vendor in
3797
3244
  motorola)
3819
3266
  esac
3820
3267
  ;;
3821
3268
 
3822
 
tpf*)
 
3269
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3823
3270
  lt_cv_deplibs_check_method=pass_all
3824
3271
  ;;
3825
3272
esac
3827
3274
file_magic_cmd=$lt_cv_file_magic_cmd
3828
3275
deplibs_check_method=$lt_cv_deplibs_check_method
3829
3276
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3830
 
 
3831
 
_LT_DECL([], [deplibs_check_method], [1],
3832
 
    [Method to check whether dependent libraries are shared objects])
3833
 
_LT_DECL([], [file_magic_cmd], [1],
3834
 
    [Command to use when deplibs_check_method == "file_magic"])
3835
 
])# _LT_CHECK_MAGIC_METHOD
3836
 
 
3837
 
 
3838
 
# LT_PATH_NM
 
3277
])# AC_DEPLIBS_CHECK_METHOD
 
3278
 
 
3279
 
 
3280
# AC_PROG_NM
3839
3281
# ----------
3840
 
# find the pathname to a BSD- or MS-compatible name lister
3841
 
AC_DEFUN([LT_PATH_NM],
3842
 
[AC_REQUIRE([AC_PROG_CC])dnl
3843
 
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 
3282
# find the pathname to a BSD-compatible name lister
 
3283
AC_DEFUN([AC_PROG_NM],
 
3284
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3844
3285
[if test -n "$NM"; then
3845
3286
  # Let the user override the test.
3846
3287
  lt_cv_path_NM="$NM"
3882
3323
    done
3883
3324
    IFS="$lt_save_ifs"
3884
3325
  done
3885
 
  : ${lt_cv_path_NM=no}
 
3326
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3886
3327
fi])
3887
 
if test "$lt_cv_path_NM" != "no"; then
3888
 
  NM="$lt_cv_path_NM"
3889
 
else
3890
 
  # Didn't find any BSD compatible name lister, look for dumpbin.
3891
 
  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3892
 
  AC_SUBST([DUMPBIN])
3893
 
  if test "$DUMPBIN" != ":"; then
3894
 
    NM="$DUMPBIN"
3895
 
  fi
3896
 
fi
3897
 
test -z "$NM" && NM=nm
3898
 
AC_SUBST([NM])
3899
 
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3900
 
 
3901
 
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3902
 
  [lt_cv_nm_interface="BSD nm"
3903
 
  echo "int some_variable = 0;" > conftest.$ac_ext
3904
 
  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3905
 
  (eval "$ac_compile" 2>conftest.err)
3906
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3907
 
  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3908
 
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3909
 
  cat conftest.err >&AS_MESSAGE_LOG_FD
3910
 
  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3911
 
  cat conftest.out >&AS_MESSAGE_LOG_FD
3912
 
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3913
 
    lt_cv_nm_interface="MS dumpbin"
3914
 
  fi
3915
 
  rm -f conftest*])
3916
 
])# LT_PATH_NM
3917
 
 
3918
 
# Old names:
3919
 
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3920
 
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3921
 
dnl aclocal-1.4 backwards compatibility:
3922
 
dnl AC_DEFUN([AM_PROG_NM], [])
3923
 
dnl AC_DEFUN([AC_PROG_NM], [])
3924
 
 
3925
 
 
3926
 
# LT_LIB_M
3927
 
# --------
 
3328
NM="$lt_cv_path_NM"
 
3329
])# AC_PROG_NM
 
3330
 
 
3331
 
 
3332
# AC_CHECK_LIBM
 
3333
# -------------
3928
3334
# check for math library
3929
 
AC_DEFUN([LT_LIB_M],
 
3335
AC_DEFUN([AC_CHECK_LIBM],
3930
3336
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3931
3337
LIBM=
3932
3338
case $host in
3941
3347
  AC_CHECK_LIB(m, cos, LIBM="-lm")
3942
3348
  ;;
3943
3349
esac
3944
 
AC_SUBST([LIBM])
3945
 
])# LT_LIB_M
3946
 
 
3947
 
# Old name:
3948
 
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3949
 
dnl aclocal-1.4 backwards compatibility:
3950
 
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3951
 
 
3952
 
 
3953
 
# _LT_COMPILER_NO_RTTI([TAGNAME])
3954
 
# -------------------------------
3955
 
m4_defun([_LT_COMPILER_NO_RTTI],
3956
 
[m4_require([_LT_TAG_COMPILER])dnl
3957
 
 
3958
 
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3350
])# AC_CHECK_LIBM
 
3351
 
 
3352
 
 
3353
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 
3354
# -----------------------------------
 
3355
# sets LIBLTDL to the link flags for the libltdl convenience library and
 
3356
# LTDLINCL to the include flags for the libltdl header and adds
 
3357
# --enable-ltdl-convenience to the configure arguments.  Note that
 
3358
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3359
# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 
3360
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 
3361
# (note the single quotes!).  If your package is not flat and you're not
 
3362
# using automake, define top_builddir and top_srcdir appropriately in
 
3363
# the Makefiles.
 
3364
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 
3365
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3366
  case $enable_ltdl_convenience in
 
3367
  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 
3368
  "") enable_ltdl_convenience=yes
 
3369
      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 
3370
  esac
 
3371
  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 
3372
  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3373
  # For backwards non-gettext consistent compatibility...
 
3374
  INCLTDL="$LTDLINCL"
 
3375
])# AC_LIBLTDL_CONVENIENCE
 
3376
 
 
3377
 
 
3378
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 
3379
# -----------------------------------
 
3380
# sets LIBLTDL to the link flags for the libltdl installable library and
 
3381
# LTDLINCL to the include flags for the libltdl header and adds
 
3382
# --enable-ltdl-install to the configure arguments.  Note that
 
3383
# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 
3384
# and an installed libltdl is not found, it is assumed to be `libltdl'.
 
3385
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 
3386
# '${top_srcdir}/' (note the single quotes!).  If your package is not
 
3387
# flat and you're not using automake, define top_builddir and top_srcdir
 
3388
# appropriately in the Makefiles.
 
3389
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 
3390
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 
3391
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 
3392
  AC_CHECK_LIB(ltdl, lt_dlinit,
 
3393
  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 
3394
  [if test x"$enable_ltdl_install" = xno; then
 
3395
     AC_MSG_WARN([libltdl not installed, but installation disabled])
 
3396
   else
 
3397
     enable_ltdl_install=yes
 
3398
   fi
 
3399
  ])
 
3400
  if test x"$enable_ltdl_install" = x"yes"; then
 
3401
    ac_configure_args="$ac_configure_args --enable-ltdl-install"
 
3402
    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 
3403
    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 
3404
  else
 
3405
    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 
3406
    LIBLTDL="-lltdl"
 
3407
    LTDLINCL=
 
3408
  fi
 
3409
  # For backwards non-gettext consistent compatibility...
 
3410
  INCLTDL="$LTDLINCL"
 
3411
])# AC_LIBLTDL_INSTALLABLE
 
3412
 
 
3413
 
 
3414
# AC_LIBTOOL_CXX
 
3415
# --------------
 
3416
# enable support for C++ libraries
 
3417
AC_DEFUN([AC_LIBTOOL_CXX],
 
3418
[AC_REQUIRE([_LT_AC_LANG_CXX])
 
3419
])# AC_LIBTOOL_CXX
 
3420
 
 
3421
 
 
3422
# _LT_AC_LANG_CXX
 
3423
# ---------------
 
3424
AC_DEFUN([_LT_AC_LANG_CXX],
 
3425
[AC_REQUIRE([AC_PROG_CXX])
 
3426
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3427
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 
3428
])# _LT_AC_LANG_CXX
 
3429
 
 
3430
# _LT_AC_PROG_CXXCPP
 
3431
# ------------------
 
3432
AC_DEFUN([_LT_AC_PROG_CXXCPP],
 
3433
[
 
3434
AC_REQUIRE([AC_PROG_CXX])
 
3435
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
3436
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
3437
    (test "X$CXX" != "Xg++"))) ; then
 
3438
  AC_PROG_CXXCPP
 
3439
fi
 
3440
])# _LT_AC_PROG_CXXCPP
 
3441
 
 
3442
# AC_LIBTOOL_F77
 
3443
# --------------
 
3444
# enable support for Fortran 77 libraries
 
3445
AC_DEFUN([AC_LIBTOOL_F77],
 
3446
[AC_REQUIRE([_LT_AC_LANG_F77])
 
3447
])# AC_LIBTOOL_F77
 
3448
 
 
3449
 
 
3450
# _LT_AC_LANG_F77
 
3451
# ---------------
 
3452
AC_DEFUN([_LT_AC_LANG_F77],
 
3453
[AC_REQUIRE([AC_PROG_F77])
 
3454
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 
3455
])# _LT_AC_LANG_F77
 
3456
 
 
3457
 
 
3458
# AC_LIBTOOL_GCJ
 
3459
# --------------
 
3460
# enable support for GCJ libraries
 
3461
AC_DEFUN([AC_LIBTOOL_GCJ],
 
3462
[AC_REQUIRE([_LT_AC_LANG_GCJ])
 
3463
])# AC_LIBTOOL_GCJ
 
3464
 
 
3465
 
 
3466
# _LT_AC_LANG_GCJ
 
3467
# ---------------
 
3468
AC_DEFUN([_LT_AC_LANG_GCJ],
 
3469
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 
3470
  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 
3471
    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 
3472
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 
3473
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 
3474
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 
3475
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 
3476
])# _LT_AC_LANG_GCJ
 
3477
 
 
3478
 
 
3479
# AC_LIBTOOL_RC
 
3480
# -------------
 
3481
# enable support for Windows resource files
 
3482
AC_DEFUN([AC_LIBTOOL_RC],
 
3483
[AC_REQUIRE([LT_AC_PROG_RC])
 
3484
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 
3485
])# AC_LIBTOOL_RC
 
3486
 
 
3487
 
 
3488
# AC_LIBTOOL_LANG_C_CONFIG
 
3489
# ------------------------
 
3490
# Ensure that the configuration vars for the C compiler are
 
3491
# suitably defined.  Those variables are subsequently used by
 
3492
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3493
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 
3494
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 
3495
[lt_save_CC="$CC"
 
3496
AC_LANG_PUSH(C)
 
3497
 
 
3498
# Source file extension for C test sources.
 
3499
ac_ext=c
 
3500
 
 
3501
# Object file extension for compiled C test sources.
 
3502
objext=o
 
3503
_LT_AC_TAGVAR(objext, $1)=$objext
 
3504
 
 
3505
# Code to be used in simple compile tests
 
3506
lt_simple_compile_test_code="int some_variable = 0;"
 
3507
 
 
3508
# Code to be used in simple link tests
 
3509
lt_simple_link_test_code='int main(){return(0);}'
 
3510
 
 
3511
_LT_AC_SYS_COMPILER
 
3512
 
 
3513
# save warnings/boilerplate of simple test code
 
3514
_LT_COMPILER_BOILERPLATE
 
3515
_LT_LINKER_BOILERPLATE
 
3516
 
 
3517
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
3518
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
3519
AC_LIBTOOL_PROG_CC_C_O($1)
 
3520
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
3521
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3522
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
3523
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
3524
AC_LIBTOOL_SYS_LIB_STRIP
 
3525
AC_LIBTOOL_DLOPEN_SELF
 
3526
 
 
3527
# Report which library types will actually be built
 
3528
AC_MSG_CHECKING([if libtool supports shared libraries])
 
3529
AC_MSG_RESULT([$can_build_shared])
 
3530
 
 
3531
AC_MSG_CHECKING([whether to build shared libraries])
 
3532
test "$can_build_shared" = "no" && enable_shared=no
 
3533
 
 
3534
# On AIX, shared libraries and static libraries use the same namespace, and
 
3535
# are all built from PIC.
 
3536
case $host_os in
 
3537
aix3*)
 
3538
  test "$enable_shared" = yes && enable_static=no
 
3539
  if test -n "$RANLIB"; then
 
3540
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
3541
    postinstall_cmds='$RANLIB $lib'
 
3542
  fi
 
3543
  ;;
 
3544
 
 
3545
aix[[4-9]]*)
 
3546
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
3547
    test "$enable_shared" = yes && enable_static=no
 
3548
  fi
 
3549
    ;;
 
3550
esac
 
3551
AC_MSG_RESULT([$enable_shared])
 
3552
 
 
3553
AC_MSG_CHECKING([whether to build static libraries])
 
3554
# Make sure either enable_shared or enable_static is yes.
 
3555
test "$enable_shared" = yes || enable_static=yes
 
3556
AC_MSG_RESULT([$enable_static])
 
3557
 
 
3558
AC_LIBTOOL_CONFIG($1)
 
3559
 
 
3560
AC_LANG_POP
 
3561
CC="$lt_save_CC"
 
3562
])# AC_LIBTOOL_LANG_C_CONFIG
 
3563
 
 
3564
 
 
3565
# AC_LIBTOOL_LANG_CXX_CONFIG
 
3566
# --------------------------
 
3567
# Ensure that the configuration vars for the C compiler are
 
3568
# suitably defined.  Those variables are subsequently used by
 
3569
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
3570
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 
3571
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 
3572
[AC_LANG_PUSH(C++)
 
3573
AC_REQUIRE([AC_PROG_CXX])
 
3574
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 
3575
 
 
3576
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3577
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
3578
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3579
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
3580
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
3581
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3582
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
3583
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
3584
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3585
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
3586
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3587
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
3588
_LT_AC_TAGVAR(module_cmds, $1)=
 
3589
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
3590
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
3591
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
3592
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
3593
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3594
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
3595
 
 
3596
# Dependencies to place before and after the object being linked:
 
3597
_LT_AC_TAGVAR(predep_objects, $1)=
 
3598
_LT_AC_TAGVAR(postdep_objects, $1)=
 
3599
_LT_AC_TAGVAR(predeps, $1)=
 
3600
_LT_AC_TAGVAR(postdeps, $1)=
 
3601
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 
3602
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
3603
 
 
3604
# Source file extension for C++ test sources.
 
3605
ac_ext=cpp
 
3606
 
 
3607
# Object file extension for compiled C++ test sources.
 
3608
objext=o
 
3609
_LT_AC_TAGVAR(objext, $1)=$objext
 
3610
 
 
3611
# Code to be used in simple compile tests
 
3612
lt_simple_compile_test_code="int some_variable = 0;"
 
3613
 
 
3614
# Code to be used in simple link tests
 
3615
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 
3616
 
 
3617
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
3618
_LT_AC_SYS_COMPILER
 
3619
 
 
3620
# save warnings/boilerplate of simple test code
 
3621
_LT_COMPILER_BOILERPLATE
 
3622
_LT_LINKER_BOILERPLATE
 
3623
 
 
3624
# Allow CC to be a program name with arguments.
 
3625
lt_save_CC=$CC
 
3626
lt_save_LD=$LD
 
3627
lt_save_GCC=$GCC
 
3628
GCC=$GXX
 
3629
lt_save_with_gnu_ld=$with_gnu_ld
 
3630
lt_save_path_LD=$lt_cv_path_LD
 
3631
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
3632
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
3633
else
 
3634
  $as_unset lt_cv_prog_gnu_ld
 
3635
fi
 
3636
if test -n "${lt_cv_path_LDCXX+set}"; then
 
3637
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
3638
else
 
3639
  $as_unset lt_cv_path_LD
 
3640
fi
 
3641
test -z "${LDCXX+set}" || LD=$LDCXX
 
3642
CC=${CXX-"c++"}
 
3643
compiler=$CC
 
3644
_LT_AC_TAGVAR(compiler, $1)=$CC
 
3645
_LT_CC_BASENAME([$compiler])
 
3646
 
 
3647
# We don't want -fno-exception wen compiling C++ code, so set the
 
3648
# no_builtin_flag separately
 
3649
if test "$GXX" = yes; then
 
3650
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
3651
else
 
3652
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 
3653
fi
 
3654
 
 
3655
if test "$GXX" = yes; then
 
3656
  # Set up default GNU C++ configuration
 
3657
 
 
3658
  AC_PROG_LD
 
3659
 
 
3660
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
3661
  # archiving commands below assume that GNU ld is being used.
 
3662
  if test "$with_gnu_ld" = yes; then
 
3663
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3664
    _LT_AC_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'
 
3665
 
 
3666
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
3667
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
3668
 
 
3669
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
3670
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
3671
    #     investigate it a little bit more. (MM)
 
3672
    wlarc='${wl}'
 
3673
 
 
3674
    # ancient GNU ld didn't support --whole-archive et. al.
 
3675
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
3676
        grep 'no-whole-archive' > /dev/null; then
 
3677
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
3678
    else
 
3679
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
3680
    fi
 
3681
  else
 
3682
    with_gnu_ld=no
 
3683
    wlarc=
 
3684
 
 
3685
    # A generic and very simple default shared library creation
 
3686
    # command for GNU C++ for the case where it uses the native
 
3687
    # linker, instead of GNU ld.  If possible, this setting should
 
3688
    # overridden to take advantage of the native linker features on
 
3689
    # the platform it is being used on.
 
3690
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
3691
  fi
 
3692
 
 
3693
  # Commands to make compiler produce verbose output that lists
 
3694
  # what "hidden" libraries, object files and flags are used when
 
3695
  # linking a shared library.
 
3696
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
3697
 
 
3698
else
 
3699
  GXX=no
 
3700
  with_gnu_ld=no
 
3701
  wlarc=
 
3702
fi
 
3703
 
 
3704
# PORTME: fill in a description of your system's C++ link characteristics
 
3705
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 
3706
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3707
case $host_os in
 
3708
  aix3*)
 
3709
    # FIXME: insert proper C++ library support
 
3710
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3711
    ;;
 
3712
  aix[[4-9]]*)
 
3713
    if test "$host_cpu" = ia64; then
 
3714
      # On IA64, the linker does run time linking by default, so we don't
 
3715
      # have to do anything special.
 
3716
      aix_use_runtimelinking=no
 
3717
      exp_sym_flag='-Bexport'
 
3718
      no_entry_flag=""
 
3719
    else
 
3720
      aix_use_runtimelinking=no
 
3721
 
 
3722
      # Test if we are trying to use run time linking or normal
 
3723
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
3724
      # need to do runtime linking.
 
3725
      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 
3726
        for ld_flag in $LDFLAGS; do
 
3727
          case $ld_flag in
 
3728
          *-brtl*)
 
3729
            aix_use_runtimelinking=yes
 
3730
            break
 
3731
            ;;
 
3732
          esac
 
3733
        done
 
3734
        ;;
 
3735
      esac
 
3736
 
 
3737
      exp_sym_flag='-bexport'
 
3738
      no_entry_flag='-bnoentry'
 
3739
    fi
 
3740
 
 
3741
    # When large executables or shared objects are built, AIX ld can
 
3742
    # have problems creating the table of contents.  If linking a library
 
3743
    # or program results in "error TOC overflow" add -mminimal-toc to
 
3744
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
3745
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
3746
 
 
3747
    _LT_AC_TAGVAR(archive_cmds, $1)=''
 
3748
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3749
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
3750
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3751
 
 
3752
    if test "$GXX" = yes; then
 
3753
      case $host_os in aix4.[[012]]|aix4.[[012]].*)
 
3754
      # We only want to do this on AIX 4.2 and lower, the check
 
3755
      # below for broken collect2 doesn't work under 4.3+
 
3756
        collect2name=`${CC} -print-prog-name=collect2`
 
3757
        if test -f "$collect2name" && \
 
3758
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
3759
        then
 
3760
          # We have reworked collect2
 
3761
          :
 
3762
        else
 
3763
          # We have old collect2
 
3764
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
3765
          # It fails to find uninstalled libraries when the uninstalled
 
3766
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
3767
          # to unsupported forces relinking
 
3768
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
3769
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3770
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
3771
        fi
 
3772
        ;;
 
3773
      esac
 
3774
      shared_flag='-shared'
 
3775
      if test "$aix_use_runtimelinking" = yes; then
 
3776
        shared_flag="$shared_flag "'${wl}-G'
 
3777
      fi
 
3778
    else
 
3779
      # not using gcc
 
3780
      if test "$host_cpu" = ia64; then
 
3781
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
3782
        # chokes on -Wl,-G. The following line is correct:
 
3783
        shared_flag='-G'
 
3784
      else
 
3785
        if test "$aix_use_runtimelinking" = yes; then
 
3786
          shared_flag='${wl}-G'
 
3787
        else
 
3788
          shared_flag='${wl}-bM:SRE'
 
3789
        fi
 
3790
      fi
 
3791
    fi
 
3792
 
 
3793
    # It seems that -bexpall does not export symbols beginning with
 
3794
    # underscore (_), so it is better to generate a list of symbols to export.
 
3795
    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
3796
    if test "$aix_use_runtimelinking" = yes; then
 
3797
      # Warning - without using the other runtime loading flags (-brtl),
 
3798
      # -berok will link without error, but may produce a broken library.
 
3799
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
3800
      # Determine the default libpath from the value encoded in an empty executable.
 
3801
      _LT_AC_SYS_LIBPATH_AIX
 
3802
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3803
 
 
3804
      _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
3805
     else
 
3806
      if test "$host_cpu" = ia64; then
 
3807
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
3808
        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
3809
        _LT_AC_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"
 
3810
      else
 
3811
        # Determine the default libpath from the value encoded in an empty executable.
 
3812
        _LT_AC_SYS_LIBPATH_AIX
 
3813
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
3814
        # Warning - without using the other run time loading flags,
 
3815
        # -berok will link without error, but may produce a broken library.
 
3816
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
3817
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
3818
        # Exported symbols can be pulled into shared objects from archives
 
3819
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
3820
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 
3821
        # This is similar to how AIX traditionally builds its shared libraries.
 
3822
        _LT_AC_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'
 
3823
      fi
 
3824
    fi
 
3825
    ;;
 
3826
 
 
3827
  beos*)
 
3828
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
3829
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3830
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
3831
      # support --undefined.  This deserves some investigation.  FIXME
 
3832
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
3833
    else
 
3834
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3835
    fi
 
3836
    ;;
 
3837
 
 
3838
  chorus*)
 
3839
    case $cc_basename in
 
3840
      *)
 
3841
        # FIXME: insert proper C++ library support
 
3842
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3843
        ;;
 
3844
    esac
 
3845
    ;;
 
3846
 
 
3847
  cygwin* | mingw* | pw32*)
 
3848
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
3849
    # as there is no search path for DLLs.
 
3850
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
3851
    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
3852
    _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
3853
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
3854
 
 
3855
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
3856
      _LT_AC_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'
 
3857
      # If the export-symbols file already is a .def file (1st line
 
3858
      # is EXPORTS), use it as is; otherwise, prepend...
 
3859
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
3860
        cp $export_symbols $output_objdir/$soname.def;
 
3861
      else
 
3862
        echo EXPORTS > $output_objdir/$soname.def;
 
3863
        cat $export_symbols >> $output_objdir/$soname.def;
 
3864
      fi~
 
3865
      $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'
 
3866
    else
 
3867
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3868
    fi
 
3869
  ;;
 
3870
      darwin* | rhapsody*)
 
3871
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3872
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3873
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
3874
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
3875
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
3876
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
3877
      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
 
3878
      if test "$GXX" = yes ; then
 
3879
      output_verbose_link_cmd='echo'
 
3880
      _LT_AC_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}"
 
3881
      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
3882
      _LT_AC_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}"
 
3883
      _LT_AC_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}"
 
3884
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
3885
        _LT_AC_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}"
 
3886
        _LT_AC_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}"
 
3887
      fi
 
3888
      else
 
3889
      case $cc_basename in
 
3890
        xlc*)
 
3891
         output_verbose_link_cmd='echo'
 
3892
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
3893
          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
3894
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
3895
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3896
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3897
          ;;
 
3898
       *)
 
3899
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3900
          ;;
 
3901
      esac
 
3902
      fi
 
3903
        ;;
 
3904
 
 
3905
  dgux*)
 
3906
    case $cc_basename in
 
3907
      ec++*)
 
3908
        # FIXME: insert proper C++ library support
 
3909
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3910
        ;;
 
3911
      ghcx*)
 
3912
        # Green Hills C++ Compiler
 
3913
        # FIXME: insert proper C++ library support
 
3914
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3915
        ;;
 
3916
      *)
 
3917
        # FIXME: insert proper C++ library support
 
3918
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3919
        ;;
 
3920
    esac
 
3921
    ;;
 
3922
  freebsd[[12]]*)
 
3923
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
3924
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3925
    ;;
 
3926
  freebsd-elf*)
 
3927
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
3928
    ;;
 
3929
  freebsd* | dragonfly*)
 
3930
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
3931
    # conventions
 
3932
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 
3933
    ;;
 
3934
  gnu*)
 
3935
    ;;
 
3936
  hpux9*)
 
3937
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3938
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3939
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3940
    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3941
    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3942
                                # but as the default
 
3943
                                # location of the library.
 
3944
 
 
3945
    case $cc_basename in
 
3946
    CC*)
 
3947
      # FIXME: insert proper C++ library support
 
3948
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3949
      ;;
 
3950
    aCC*)
 
3951
      _LT_AC_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'
 
3952
      # Commands to make compiler produce verbose output that lists
 
3953
      # what "hidden" libraries, object files and flags are used when
 
3954
      # linking a shared library.
 
3955
      #
 
3956
      # There doesn't appear to be a way to prevent this compiler from
 
3957
      # explicitly linking system object files so we need to strip them
 
3958
      # from the output so that they don't get included in the library
 
3959
      # dependencies.
 
3960
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3961
      ;;
 
3962
    *)
 
3963
      if test "$GXX" = yes; then
 
3964
        _LT_AC_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'
 
3965
      else
 
3966
        # FIXME: insert proper C++ library support
 
3967
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3968
      fi
 
3969
      ;;
 
3970
    esac
 
3971
    ;;
 
3972
  hpux10*|hpux11*)
 
3973
    if test $with_gnu_ld = no; then
 
3974
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
3975
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
3976
 
 
3977
      case $host_cpu in
 
3978
      hppa*64*|ia64*) ;;
 
3979
      *)
 
3980
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
3981
        ;;
 
3982
      esac
 
3983
    fi
 
3984
    case $host_cpu in
 
3985
    hppa*64*|ia64*)
 
3986
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
3987
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
3988
      ;;
 
3989
    *)
 
3990
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
3991
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 
3992
                                              # but as the default
 
3993
                                              # location of the library.
 
3994
      ;;
 
3995
    esac
 
3996
 
 
3997
    case $cc_basename in
 
3998
      CC*)
 
3999
        # FIXME: insert proper C++ library support
 
4000
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4001
        ;;
 
4002
      aCC*)
 
4003
        case $host_cpu in
 
4004
        hppa*64*)
 
4005
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4006
          ;;
 
4007
        ia64*)
 
4008
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4009
          ;;
 
4010
        *)
 
4011
          _LT_AC_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'
 
4012
          ;;
 
4013
        esac
 
4014
        # Commands to make compiler produce verbose output that lists
 
4015
        # what "hidden" libraries, object files and flags are used when
 
4016
        # linking a shared library.
 
4017
        #
 
4018
        # There doesn't appear to be a way to prevent this compiler from
 
4019
        # explicitly linking system object files so we need to strip them
 
4020
        # from the output so that they don't get included in the library
 
4021
        # dependencies.
 
4022
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4023
        ;;
 
4024
      *)
 
4025
        if test "$GXX" = yes; then
 
4026
          if test $with_gnu_ld = no; then
 
4027
            case $host_cpu in
 
4028
            hppa*64*)
 
4029
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4030
              ;;
 
4031
            ia64*)
 
4032
              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4033
              ;;
 
4034
            *)
 
4035
              _LT_AC_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'
 
4036
              ;;
 
4037
            esac
 
4038
          fi
 
4039
        else
 
4040
          # FIXME: insert proper C++ library support
 
4041
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4042
        fi
 
4043
        ;;
 
4044
    esac
 
4045
    ;;
 
4046
  interix[[3-9]]*)
 
4047
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4048
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4049
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4050
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4051
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
4052
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
4053
    # default) and relocated if they conflict, which is a slow very memory
 
4054
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
4055
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
4056
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
4057
    _LT_AC_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'
 
4058
    _LT_AC_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'
 
4059
    ;;
 
4060
  irix5* | irix6*)
 
4061
    case $cc_basename in
 
4062
      CC*)
 
4063
        # SGI C++
 
4064
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
4065
 
 
4066
        # Archives containing C++ object files must be created using
 
4067
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
4068
        # necessary to make sure instantiated templates are included
 
4069
        # in the archive.
 
4070
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
4071
        ;;
 
4072
      *)
 
4073
        if test "$GXX" = yes; then
 
4074
          if test "$with_gnu_ld" = no; then
 
4075
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
4076
          else
 
4077
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
4078
          fi
 
4079
        fi
 
4080
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4081
        ;;
 
4082
    esac
 
4083
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4084
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4085
    ;;
 
4086
  linux* | k*bsd*-gnu)
 
4087
    case $cc_basename in
 
4088
      KCC*)
 
4089
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4090
 
 
4091
        # KCC will only create a shared library if the output file
 
4092
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4093
        # to its proper name (with version) after linking.
 
4094
        _LT_AC_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'
 
4095
        _LT_AC_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'
 
4096
        # Commands to make compiler produce verbose output that lists
 
4097
        # what "hidden" libraries, object files and flags are used when
 
4098
        # linking a shared library.
 
4099
        #
 
4100
        # There doesn't appear to be a way to prevent this compiler from
 
4101
        # explicitly linking system object files so we need to strip them
 
4102
        # from the output so that they don't get included in the library
 
4103
        # dependencies.
 
4104
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4105
 
 
4106
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 
4107
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4108
 
 
4109
        # Archives containing C++ object files must be created using
 
4110
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4111
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4112
        ;;
 
4113
      icpc*)
 
4114
        # Intel C++
 
4115
        with_gnu_ld=yes
 
4116
        # version 8.0 and above of icpc choke on multiply defined symbols
 
4117
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
4118
        # earlier do not add the objects themselves.
 
4119
        case `$CC -V 2>&1` in
 
4120
        *"Version 7."*)
 
4121
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4122
          _LT_AC_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'
 
4123
          ;;
 
4124
        *)  # Version 8.0 or newer
 
4125
          tmp_idyn=
 
4126
          case $host_cpu in
 
4127
            ia64*) tmp_idyn=' -i_dynamic';;
 
4128
          esac
 
4129
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4130
          _LT_AC_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'
 
4131
          ;;
 
4132
        esac
 
4133
        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4134
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4135
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4136
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
4137
        ;;
 
4138
      pgCC* | pgcpp*)
 
4139
        # Portland Group C++ compiler
 
4140
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
4141
        _LT_AC_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'
 
4142
 
 
4143
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
4144
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
4145
        _LT_AC_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'
 
4146
        ;;
 
4147
      cxx*)
 
4148
        # Compaq C++
 
4149
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
4150
        _LT_AC_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'
 
4151
 
 
4152
        runpath_var=LD_RUN_PATH
 
4153
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4154
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4155
 
 
4156
        # Commands to make compiler produce verbose output that lists
 
4157
        # what "hidden" libraries, object files and flags are used when
 
4158
        # linking a shared library.
 
4159
        #
 
4160
        # There doesn't appear to be a way to prevent this compiler from
 
4161
        # explicitly linking system object files so we need to strip them
 
4162
        # from the output so that they don't get included in the library
 
4163
        # dependencies.
 
4164
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4165
        ;;
 
4166
      *)
 
4167
        case `$CC -V 2>&1 | sed 5q` in
 
4168
        *Sun\ C*)
 
4169
          # Sun C++ 5.9
 
4170
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4171
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4172
          _LT_AC_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'
 
4173
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4174
          _LT_AC_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'
 
4175
 
 
4176
          # Not sure whether something based on
 
4177
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
4178
          # would be better.
 
4179
          output_verbose_link_cmd='echo'
 
4180
 
 
4181
          # Archives containing C++ object files must be created using
 
4182
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4183
          # necessary to make sure instantiated templates are included
 
4184
          # in the archive.
 
4185
          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4186
          ;;
 
4187
        esac
 
4188
        ;;
 
4189
    esac
 
4190
    ;;
 
4191
  lynxos*)
 
4192
    # FIXME: insert proper C++ library support
 
4193
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4194
    ;;
 
4195
  m88k*)
 
4196
    # FIXME: insert proper C++ library support
 
4197
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4198
    ;;
 
4199
  mvs*)
 
4200
    case $cc_basename in
 
4201
      cxx*)
 
4202
        # FIXME: insert proper C++ library support
 
4203
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4204
        ;;
 
4205
      *)
 
4206
        # FIXME: insert proper C++ library support
 
4207
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4208
        ;;
 
4209
    esac
 
4210
    ;;
 
4211
  netbsd* | netbsdelf*-gnu)
 
4212
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
4213
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
4214
      wlarc=
 
4215
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4216
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4217
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4218
    fi
 
4219
    # Workaround some broken pre-1.5 toolchains
 
4220
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
4221
    ;;
 
4222
  openbsd2*)
 
4223
    # C++ shared libraries are fairly broken
 
4224
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4225
    ;;
 
4226
  openbsd*)
 
4227
    if test -f /usr/libexec/ld.so; then
 
4228
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
4229
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4230
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
4231
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4232
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4233
        _LT_AC_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'
 
4234
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
4235
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
4236
      fi
 
4237
      output_verbose_link_cmd='echo'
 
4238
    else
 
4239
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4240
    fi
 
4241
    ;;
 
4242
  osf3*)
 
4243
    case $cc_basename in
 
4244
      KCC*)
 
4245
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4246
 
 
4247
        # KCC will only create a shared library if the output file
 
4248
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4249
        # to its proper name (with version) after linking.
 
4250
        _LT_AC_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'
 
4251
 
 
4252
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4253
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4254
 
 
4255
        # Archives containing C++ object files must be created using
 
4256
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
4257
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 
4258
 
 
4259
        ;;
 
4260
      RCC*)
 
4261
        # Rational C++ 2.4.1
 
4262
        # FIXME: insert proper C++ library support
 
4263
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4264
        ;;
 
4265
      cxx*)
 
4266
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4267
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
4268
 
 
4269
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4270
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4271
 
 
4272
        # Commands to make compiler produce verbose output that lists
 
4273
        # what "hidden" libraries, object files and flags are used when
 
4274
        # linking a shared library.
 
4275
        #
 
4276
        # There doesn't appear to be a way to prevent this compiler from
 
4277
        # explicitly linking system object files so we need to strip them
 
4278
        # from the output so that they don't get included in the library
 
4279
        # dependencies.
 
4280
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4281
        ;;
 
4282
      *)
 
4283
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4284
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4285
          _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
4286
 
 
4287
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4288
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4289
 
 
4290
          # Commands to make compiler produce verbose output that lists
 
4291
          # what "hidden" libraries, object files and flags are used when
 
4292
          # linking a shared library.
 
4293
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4294
 
 
4295
        else
 
4296
          # FIXME: insert proper C++ library support
 
4297
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4298
        fi
 
4299
        ;;
 
4300
    esac
 
4301
    ;;
 
4302
  osf4* | osf5*)
 
4303
    case $cc_basename in
 
4304
      KCC*)
 
4305
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
4306
 
 
4307
        # KCC will only create a shared library if the output file
 
4308
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
4309
        # to its proper name (with version) after linking.
 
4310
        _LT_AC_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'
 
4311
 
 
4312
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
4313
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4314
 
 
4315
        # Archives containing C++ object files must be created using
 
4316
        # the KAI C++ compiler.
 
4317
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 
4318
        ;;
 
4319
      RCC*)
 
4320
        # Rational C++ 2.4.1
 
4321
        # FIXME: insert proper C++ library support
 
4322
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4323
        ;;
 
4324
      cxx*)
 
4325
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
4326
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
4327
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
4328
          echo "-hidden">> $lib.exp~
 
4329
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
4330
          $rm $lib.exp'
 
4331
 
 
4332
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
4333
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4334
 
 
4335
        # Commands to make compiler produce verbose output that lists
 
4336
        # what "hidden" libraries, object files and flags are used when
 
4337
        # linking a shared library.
 
4338
        #
 
4339
        # There doesn't appear to be a way to prevent this compiler from
 
4340
        # explicitly linking system object files so we need to strip them
 
4341
        # from the output so that they don't get included in the library
 
4342
        # dependencies.
 
4343
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
4344
        ;;
 
4345
      *)
 
4346
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4347
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
4348
         _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
4349
 
 
4350
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
4351
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
4352
 
 
4353
          # Commands to make compiler produce verbose output that lists
 
4354
          # what "hidden" libraries, object files and flags are used when
 
4355
          # linking a shared library.
 
4356
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
4357
 
 
4358
        else
 
4359
          # FIXME: insert proper C++ library support
 
4360
          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4361
        fi
 
4362
        ;;
 
4363
    esac
 
4364
    ;;
 
4365
  psos*)
 
4366
    # FIXME: insert proper C++ library support
 
4367
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4368
    ;;
 
4369
  sunos4*)
 
4370
    case $cc_basename in
 
4371
      CC*)
 
4372
        # Sun C++ 4.x
 
4373
        # FIXME: insert proper C++ library support
 
4374
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4375
        ;;
 
4376
      lcc*)
 
4377
        # Lucid
 
4378
        # FIXME: insert proper C++ library support
 
4379
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4380
        ;;
 
4381
      *)
 
4382
        # FIXME: insert proper C++ library support
 
4383
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4384
        ;;
 
4385
    esac
 
4386
    ;;
 
4387
  solaris*)
 
4388
    case $cc_basename in
 
4389
      CC*)
 
4390
        # Sun C++ 4.2, 5.x and Centerline C++
 
4391
        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 
4392
        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 
4393
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
4394
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4395
        $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'
 
4396
 
 
4397
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
4398
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4399
        case $host_os in
 
4400
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4401
          *)
 
4402
            # The compiler driver will combine and reorder linker options,
 
4403
            # but understands `-z linker_flag'.
 
4404
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
4405
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
4406
            ;;
 
4407
        esac
 
4408
        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4409
 
 
4410
        output_verbose_link_cmd='echo'
 
4411
 
 
4412
        # Archives containing C++ object files must be created using
 
4413
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
4414
        # necessary to make sure instantiated templates are included
 
4415
        # in the archive.
 
4416
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 
4417
        ;;
 
4418
      gcx*)
 
4419
        # Green Hills C++ Compiler
 
4420
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4421
 
 
4422
        # The C++ compiler must be used to create the archive.
 
4423
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
4424
        ;;
 
4425
      *)
 
4426
        # GNU C++ compiler with Solaris linker
 
4427
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
4428
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 
4429
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
4430
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4431
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4432
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4433
 
 
4434
            # Commands to make compiler produce verbose output that lists
 
4435
            # what "hidden" libraries, object files and flags are used when
 
4436
            # linking a shared library.
 
4437
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4438
          else
 
4439
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
4440
            # platform.
 
4441
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
4442
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
4443
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
4444
 
 
4445
            # Commands to make compiler produce verbose output that lists
 
4446
            # what "hidden" libraries, object files and flags are used when
 
4447
            # linking a shared library.
 
4448
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
4449
          fi
 
4450
 
 
4451
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 
4452
          case $host_os in
 
4453
          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 
4454
          *)
 
4455
            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
4456
            ;;
 
4457
          esac
 
4458
        fi
 
4459
        ;;
 
4460
    esac
 
4461
    ;;
 
4462
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 
4463
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4464
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4465
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4466
    runpath_var='LD_RUN_PATH'
 
4467
 
 
4468
    case $cc_basename in
 
4469
      CC*)
 
4470
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4471
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4472
        ;;
 
4473
      *)
 
4474
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4475
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4476
        ;;
 
4477
    esac
 
4478
    ;;
 
4479
  sysv5* | sco3.2v5* | sco5v6*)
 
4480
    # Note: We can NOT use -z defs as we might desire, because we do not
 
4481
    # link with -lc, and that would cause any symbols used from libc to
 
4482
    # always be unresolved, which means just about no library would
 
4483
    # ever link correctly.  If we're not using GNU ld we use -z text
 
4484
    # though, which does catch some bad symbols but isn't as heavy-handed
 
4485
    # as -z defs.
 
4486
    # For security reasons, it is highly recommended that you always
 
4487
    # use absolute paths for naming shared libraries, and exclude the
 
4488
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
4489
    # requires that you compile everything twice, which is a pain.
 
4490
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
4491
    # non-empty value in the environment.  Most likely only useful for
 
4492
    # creating official distributions of packages.
 
4493
    # This is a hack until libtool officially supports absolute path
 
4494
    # names for shared libraries.
 
4495
    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
4496
    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
4497
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4498
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
4499
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
4500
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
4501
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
4502
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
4503
    runpath_var='LD_RUN_PATH'
 
4504
 
 
4505
    case $cc_basename in
 
4506
      CC*)
 
4507
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4508
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4509
        ;;
 
4510
      *)
 
4511
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4512
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
4513
        ;;
 
4514
    esac
 
4515
    ;;
 
4516
  tandem*)
 
4517
    case $cc_basename in
 
4518
      NCC*)
 
4519
        # NonStop-UX NCC 3.20
 
4520
        # FIXME: insert proper C++ library support
 
4521
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4522
        ;;
 
4523
      *)
 
4524
        # FIXME: insert proper C++ library support
 
4525
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4526
        ;;
 
4527
    esac
 
4528
    ;;
 
4529
  vxworks*)
 
4530
    # FIXME: insert proper C++ library support
 
4531
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4532
    ;;
 
4533
  *)
 
4534
    # FIXME: insert proper C++ library support
 
4535
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
4536
    ;;
 
4537
esac
 
4538
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
4539
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 
4540
 
 
4541
_LT_AC_TAGVAR(GCC, $1)="$GXX"
 
4542
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4543
 
 
4544
AC_LIBTOOL_POSTDEP_PREDEP($1)
 
4545
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4546
AC_LIBTOOL_PROG_CC_C_O($1)
 
4547
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4548
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4549
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4550
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4551
 
 
4552
AC_LIBTOOL_CONFIG($1)
 
4553
 
 
4554
AC_LANG_POP
 
4555
CC=$lt_save_CC
 
4556
LDCXX=$LD
 
4557
LD=$lt_save_LD
 
4558
GCC=$lt_save_GCC
 
4559
with_gnu_ldcxx=$with_gnu_ld
 
4560
with_gnu_ld=$lt_save_with_gnu_ld
 
4561
lt_cv_path_LDCXX=$lt_cv_path_LD
 
4562
lt_cv_path_LD=$lt_save_path_LD
 
4563
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
4564
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
4565
])# AC_LIBTOOL_LANG_CXX_CONFIG
 
4566
 
 
4567
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 
4568
# ------------------------------------
 
4569
# Figure out "hidden" library dependencies from verbose
 
4570
# compiler output when linking a shared library.
 
4571
# Parse the compiler output and extract the necessary
 
4572
# objects, libraries and library flags.
 
4573
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
 
4574
[AC_REQUIRE([LT_AC_PROG_SED])dnl
 
4575
dnl we can't use the lt_simple_compile_test_code here,
 
4576
dnl because it contains code intended for an executable,
 
4577
dnl not a library.  It's possible we should let each
 
4578
dnl tag define a new lt_????_link_test_code variable,
 
4579
dnl but it's only used here...
 
4580
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 
4581
int a;
 
4582
void foo (void) { a = 0; }
 
4583
EOF
 
4584
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 
4585
class Foo
 
4586
{
 
4587
public:
 
4588
  Foo (void) { a = 0; }
 
4589
private:
 
4590
  int a;
 
4591
};
 
4592
EOF
 
4593
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 
4594
      subroutine foo
 
4595
      implicit none
 
4596
      integer*4 a
 
4597
      a=0
 
4598
      return
 
4599
      end
 
4600
EOF
 
4601
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 
4602
public class foo {
 
4603
  private int a;
 
4604
  public void bar (void) {
 
4605
    a = 0;
 
4606
  }
 
4607
};
 
4608
EOF
 
4609
])
 
4610
dnl Parse the compiler output and extract the necessary
 
4611
dnl objects, libraries and library flags.
 
4612
if AC_TRY_EVAL(ac_compile); then
 
4613
  # Parse the compiler output and extract the necessary
 
4614
  # objects, libraries and library flags.
 
4615
 
 
4616
  # Sentinel used to keep track of whether or not we are before
 
4617
  # the conftest object file.
 
4618
  pre_test_object_deps_done=no
 
4619
 
 
4620
  # The `*' in the case matches for architectures that use `case' in
 
4621
  # $output_verbose_cmd can trigger glob expansion during the loop
 
4622
  # eval without this substitution.
 
4623
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
4624
 
 
4625
  for p in `eval $output_verbose_link_cmd`; do
 
4626
    case $p in
 
4627
 
 
4628
    -L* | -R* | -l*)
 
4629
       # Some compilers place space between "-{L,R}" and the path.
 
4630
       # Remove the space.
 
4631
       if test $p = "-L" \
 
4632
          || test $p = "-R"; then
 
4633
         prev=$p
 
4634
         continue
 
4635
       else
 
4636
         prev=
 
4637
       fi
 
4638
 
 
4639
       if test "$pre_test_object_deps_done" = no; then
 
4640
         case $p in
 
4641
         -L* | -R*)
 
4642
           # Internal compiler library paths should come after those
 
4643
           # provided the user.  The postdeps already come after the
 
4644
           # user supplied libs so there is no need to process them.
 
4645
           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4646
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 
4647
           else
 
4648
             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 
4649
           fi
 
4650
           ;;
 
4651
         # The "-l" case would never come before the object being
 
4652
         # linked, so don't bother handling this case.
 
4653
         esac
 
4654
       else
 
4655
         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 
4656
           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 
4657
         else
 
4658
           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 
4659
         fi
 
4660
       fi
 
4661
       ;;
 
4662
 
 
4663
    *.$objext)
 
4664
       # This assumes that the test object file only shows up
 
4665
       # once in the compiler output.
 
4666
       if test "$p" = "conftest.$objext"; then
 
4667
         pre_test_object_deps_done=yes
 
4668
         continue
 
4669
       fi
 
4670
 
 
4671
       if test "$pre_test_object_deps_done" = no; then
 
4672
         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 
4673
           _LT_AC_TAGVAR(predep_objects, $1)="$p"
 
4674
         else
 
4675
           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 
4676
         fi
 
4677
       else
 
4678
         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 
4679
           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 
4680
         else
 
4681
           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 
4682
         fi
 
4683
       fi
 
4684
       ;;
 
4685
 
 
4686
    *) ;; # Ignore the rest.
 
4687
 
 
4688
    esac
 
4689
  done
 
4690
 
 
4691
  # Clean up.
 
4692
  rm -f a.out a.exe
 
4693
else
 
4694
  echo "libtool.m4: error: problem compiling $1 test program"
 
4695
fi
 
4696
 
 
4697
$rm -f confest.$objext
 
4698
 
 
4699
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
 
4700
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 
4701
  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
4702
fi
 
4703
 
 
4704
# PORTME: override above test on systems where it is broken
 
4705
ifelse([$1],[CXX],
 
4706
[case $host_os in
 
4707
interix[[3-9]]*)
 
4708
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
4709
  # hack all around it, let's just trust "g++" to DTRT.
 
4710
  _LT_AC_TAGVAR(predep_objects,$1)=
 
4711
  _LT_AC_TAGVAR(postdep_objects,$1)=
 
4712
  _LT_AC_TAGVAR(postdeps,$1)=
 
4713
  ;;
 
4714
 
 
4715
linux*)
 
4716
  case `$CC -V 2>&1 | sed 5q` in
 
4717
  *Sun\ C*)
 
4718
    # Sun C++ 5.9
 
4719
    #
 
4720
    # The more standards-conforming stlport4 library is
 
4721
    # incompatible with the Cstd library. Avoid specifying
 
4722
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4723
    # -library=stlport4 depends on it.
 
4724
    case " $CXX $CXXFLAGS " in
 
4725
    *" -library=stlport4 "*)
 
4726
      solaris_use_stlport4=yes
 
4727
      ;;
 
4728
    esac
 
4729
    if test "$solaris_use_stlport4" != yes; then
 
4730
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4731
    fi
 
4732
    ;;
 
4733
  esac
 
4734
  ;;
 
4735
 
 
4736
solaris*)
 
4737
  case $cc_basename in
 
4738
  CC*)
 
4739
    # The more standards-conforming stlport4 library is
 
4740
    # incompatible with the Cstd library. Avoid specifying
 
4741
    # it if it's in CXXFLAGS. Ignore libCrun as
 
4742
    # -library=stlport4 depends on it.
 
4743
    case " $CXX $CXXFLAGS " in
 
4744
    *" -library=stlport4 "*)
 
4745
      solaris_use_stlport4=yes
 
4746
      ;;
 
4747
    esac
 
4748
 
 
4749
    # Adding this requires a known-good setup of shared libraries for
 
4750
    # Sun compiler versions before 5.6, else PIC objects from an old
 
4751
    # archive will be linked into the output, leading to subtle bugs.
 
4752
    if test "$solaris_use_stlport4" != yes; then
 
4753
      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 
4754
    fi
 
4755
    ;;
 
4756
  esac
 
4757
  ;;
 
4758
esac
 
4759
])
 
4760
case " $_LT_AC_TAGVAR(postdeps, $1) " in
 
4761
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 
4762
esac
 
4763
])# AC_LIBTOOL_POSTDEP_PREDEP
 
4764
 
 
4765
# AC_LIBTOOL_LANG_F77_CONFIG
 
4766
# --------------------------
 
4767
# Ensure that the configuration vars for the C compiler are
 
4768
# suitably defined.  Those variables are subsequently used by
 
4769
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4770
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 
4771
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 
4772
[AC_REQUIRE([AC_PROG_F77])
 
4773
AC_LANG_PUSH(Fortran 77)
 
4774
 
 
4775
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4776
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
4777
_LT_AC_TAGVAR(always_export_symbols, $1)=no
 
4778
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
4779
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
4780
_LT_AC_TAGVAR(hardcode_direct, $1)=no
 
4781
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
4782
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
4783
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
4784
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
4785
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
4786
_LT_AC_TAGVAR(module_cmds, $1)=
 
4787
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
4788
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
4789
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4790
_LT_AC_TAGVAR(no_undefined_flag, $1)=
 
4791
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
4792
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
4793
 
 
4794
# Source file extension for f77 test sources.
 
4795
ac_ext=f
 
4796
 
 
4797
# Object file extension for compiled f77 test sources.
 
4798
objext=o
 
4799
_LT_AC_TAGVAR(objext, $1)=$objext
 
4800
 
 
4801
# Code to be used in simple compile tests
 
4802
lt_simple_compile_test_code="\
 
4803
      subroutine t
 
4804
      return
 
4805
      end
 
4806
"
 
4807
 
 
4808
# Code to be used in simple link tests
 
4809
lt_simple_link_test_code="\
 
4810
      program t
 
4811
      end
 
4812
"
 
4813
 
 
4814
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4815
_LT_AC_SYS_COMPILER
 
4816
 
 
4817
# save warnings/boilerplate of simple test code
 
4818
_LT_COMPILER_BOILERPLATE
 
4819
_LT_LINKER_BOILERPLATE
 
4820
 
 
4821
# Allow CC to be a program name with arguments.
 
4822
lt_save_CC="$CC"
 
4823
CC=${F77-"f77"}
 
4824
compiler=$CC
 
4825
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4826
_LT_CC_BASENAME([$compiler])
 
4827
 
 
4828
AC_MSG_CHECKING([if libtool supports shared libraries])
 
4829
AC_MSG_RESULT([$can_build_shared])
 
4830
 
 
4831
AC_MSG_CHECKING([whether to build shared libraries])
 
4832
test "$can_build_shared" = "no" && enable_shared=no
 
4833
 
 
4834
# On AIX, shared libraries and static libraries use the same namespace, and
 
4835
# are all built from PIC.
 
4836
case $host_os in
 
4837
aix3*)
 
4838
  test "$enable_shared" = yes && enable_static=no
 
4839
  if test -n "$RANLIB"; then
 
4840
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
4841
    postinstall_cmds='$RANLIB $lib'
 
4842
  fi
 
4843
  ;;
 
4844
aix[[4-9]]*)
 
4845
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
4846
    test "$enable_shared" = yes && enable_static=no
 
4847
  fi
 
4848
  ;;
 
4849
esac
 
4850
AC_MSG_RESULT([$enable_shared])
 
4851
 
 
4852
AC_MSG_CHECKING([whether to build static libraries])
 
4853
# Make sure either enable_shared or enable_static is yes.
 
4854
test "$enable_shared" = yes || enable_static=yes
 
4855
AC_MSG_RESULT([$enable_static])
 
4856
 
 
4857
_LT_AC_TAGVAR(GCC, $1)="$G77"
 
4858
_LT_AC_TAGVAR(LD, $1)="$LD"
 
4859
 
 
4860
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4861
AC_LIBTOOL_PROG_CC_C_O($1)
 
4862
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4863
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4864
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4865
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4866
 
 
4867
AC_LIBTOOL_CONFIG($1)
 
4868
 
 
4869
AC_LANG_POP
 
4870
CC="$lt_save_CC"
 
4871
])# AC_LIBTOOL_LANG_F77_CONFIG
 
4872
 
 
4873
 
 
4874
# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4875
# --------------------------
 
4876
# Ensure that the configuration vars for the C compiler are
 
4877
# suitably defined.  Those variables are subsequently used by
 
4878
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4879
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 
4880
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 
4881
[AC_LANG_SAVE
 
4882
 
 
4883
# Source file extension for Java test sources.
 
4884
ac_ext=java
 
4885
 
 
4886
# Object file extension for compiled Java test sources.
 
4887
objext=o
 
4888
_LT_AC_TAGVAR(objext, $1)=$objext
 
4889
 
 
4890
# Code to be used in simple compile tests
 
4891
lt_simple_compile_test_code="class foo {}"
 
4892
 
 
4893
# Code to be used in simple link tests
 
4894
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 
4895
 
 
4896
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4897
_LT_AC_SYS_COMPILER
 
4898
 
 
4899
# save warnings/boilerplate of simple test code
 
4900
_LT_COMPILER_BOILERPLATE
 
4901
_LT_LINKER_BOILERPLATE
 
4902
 
 
4903
# Allow CC to be a program name with arguments.
 
4904
lt_save_CC="$CC"
 
4905
CC=${GCJ-"gcj"}
 
4906
compiler=$CC
 
4907
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4908
_LT_CC_BASENAME([$compiler])
 
4909
 
 
4910
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
4911
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
4912
 
 
4913
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 
4914
 
 
4915
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 
4916
AC_LIBTOOL_PROG_COMPILER_PIC($1)
 
4917
AC_LIBTOOL_PROG_CC_C_O($1)
 
4918
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 
4919
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4920
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4921
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 
4922
 
 
4923
AC_LIBTOOL_CONFIG($1)
 
4924
 
 
4925
AC_LANG_RESTORE
 
4926
CC="$lt_save_CC"
 
4927
])# AC_LIBTOOL_LANG_GCJ_CONFIG
 
4928
 
 
4929
 
 
4930
# AC_LIBTOOL_LANG_RC_CONFIG
 
4931
# -------------------------
 
4932
# Ensure that the configuration vars for the Windows resource compiler are
 
4933
# suitably defined.  Those variables are subsequently used by
 
4934
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 
4935
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 
4936
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 
4937
[AC_LANG_SAVE
 
4938
 
 
4939
# Source file extension for RC test sources.
 
4940
ac_ext=rc
 
4941
 
 
4942
# Object file extension for compiled RC test sources.
 
4943
objext=o
 
4944
_LT_AC_TAGVAR(objext, $1)=$objext
 
4945
 
 
4946
# Code to be used in simple compile tests
 
4947
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
4948
 
 
4949
# Code to be used in simple link tests
 
4950
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
4951
 
 
4952
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
4953
_LT_AC_SYS_COMPILER
 
4954
 
 
4955
# save warnings/boilerplate of simple test code
 
4956
_LT_COMPILER_BOILERPLATE
 
4957
_LT_LINKER_BOILERPLATE
 
4958
 
 
4959
# Allow CC to be a program name with arguments.
 
4960
lt_save_CC="$CC"
 
4961
CC=${RC-"windres"}
 
4962
compiler=$CC
 
4963
_LT_AC_TAGVAR(compiler, $1)=$CC
 
4964
_LT_CC_BASENAME([$compiler])
 
4965
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 
4966
 
 
4967
AC_LIBTOOL_CONFIG($1)
 
4968
 
 
4969
AC_LANG_RESTORE
 
4970
CC="$lt_save_CC"
 
4971
])# AC_LIBTOOL_LANG_RC_CONFIG
 
4972
 
 
4973
 
 
4974
# AC_LIBTOOL_CONFIG([TAGNAME])
 
4975
# ----------------------------
 
4976
# If TAGNAME is not passed, then create an initial libtool script
 
4977
# with a default configuration from the untagged config vars.  Otherwise
 
4978
# add code to config.status for appending the configuration named by
 
4979
# TAGNAME from the matching tagged config vars.
 
4980
AC_DEFUN([AC_LIBTOOL_CONFIG],
 
4981
[# The else clause should only fire when bootstrapping the
 
4982
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
4983
# with your package, and you will get complaints that there are
 
4984
# no rules to generate ltmain.sh.
 
4985
if test -f "$ltmain"; then
 
4986
  # See if we are running on zsh, and set the options which allow our commands through
 
4987
  # without removal of \ escapes.
 
4988
  if test -n "${ZSH_VERSION+set}" ; then
 
4989
    setopt NO_GLOB_SUBST
 
4990
  fi
 
4991
  # Now quote all the things that may contain metacharacters while being
 
4992
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
4993
  # variables and quote the copies for generation of the libtool script.
 
4994
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
4995
    SED SHELL STRIP \
 
4996
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
4997
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
4998
    deplibs_check_method reload_flag reload_cmds need_locks \
 
4999
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
5000
    lt_cv_sys_global_symbol_to_c_name_address \
 
5001
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
5002
    old_postinstall_cmds old_postuninstall_cmds \
 
5003
    _LT_AC_TAGVAR(compiler, $1) \
 
5004
    _LT_AC_TAGVAR(CC, $1) \
 
5005
    _LT_AC_TAGVAR(LD, $1) \
 
5006
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 
5007
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 
5008
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 
5009
    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 
5010
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 
5011
    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 
5012
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 
5013
    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 
5014
    _LT_AC_TAGVAR(old_archive_cmds, $1) \
 
5015
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 
5016
    _LT_AC_TAGVAR(predep_objects, $1) \
 
5017
    _LT_AC_TAGVAR(postdep_objects, $1) \
 
5018
    _LT_AC_TAGVAR(predeps, $1) \
 
5019
    _LT_AC_TAGVAR(postdeps, $1) \
 
5020
    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 
5021
    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
 
5022
    _LT_AC_TAGVAR(archive_cmds, $1) \
 
5023
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 
5024
    _LT_AC_TAGVAR(postinstall_cmds, $1) \
 
5025
    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 
5026
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 
5027
    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 
5028
    _LT_AC_TAGVAR(no_undefined_flag, $1) \
 
5029
    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 
5030
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 
5031
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 
5032
    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 
5033
    _LT_AC_TAGVAR(hardcode_automatic, $1) \
 
5034
    _LT_AC_TAGVAR(module_cmds, $1) \
 
5035
    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 
5036
    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 
5037
    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
 
5038
    _LT_AC_TAGVAR(exclude_expsyms, $1) \
 
5039
    _LT_AC_TAGVAR(include_expsyms, $1); do
 
5040
 
 
5041
    case $var in
 
5042
    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 
5043
    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 
5044
    _LT_AC_TAGVAR(archive_cmds, $1) | \
 
5045
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 
5046
    _LT_AC_TAGVAR(module_cmds, $1) | \
 
5047
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 
5048
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 
5049
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 
5050
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
5051
    postinstall_cmds | postuninstall_cmds | \
 
5052
    old_postinstall_cmds | old_postuninstall_cmds | \
 
5053
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
5054
      # Double-quote double-evaled strings.
 
5055
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
5056
      ;;
 
5057
    *)
 
5058
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
5059
      ;;
 
5060
    esac
 
5061
  done
 
5062
 
 
5063
  case $lt_echo in
 
5064
  *'\[$]0 --fallback-echo"')
 
5065
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 
5066
    ;;
 
5067
  esac
 
5068
 
 
5069
ifelse([$1], [],
 
5070
  [cfgfile="${ofile}T"
 
5071
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
5072
  $rm -f "$cfgfile"
 
5073
  AC_MSG_NOTICE([creating $ofile])],
 
5074
  [cfgfile="$ofile"])
 
5075
 
 
5076
  cat <<__EOF__ >> "$cfgfile"
 
5077
ifelse([$1], [],
 
5078
[#! $SHELL
 
5079
 
 
5080
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
5081
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
5082
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
5083
#
 
5084
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
5085
# Free Software Foundation, Inc.
 
5086
#
 
5087
# This file is part of GNU Libtool:
 
5088
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
5089
#
 
5090
# This program is free software; you can redistribute it and/or modify
 
5091
# it under the terms of the GNU General Public License as published by
 
5092
# the Free Software Foundation; either version 2 of the License, or
 
5093
# (at your option) any later version.
 
5094
#
 
5095
# This program is distributed in the hope that it will be useful, but
 
5096
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
5097
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
5098
# General Public License for more details.
 
5099
#
 
5100
# You should have received a copy of the GNU General Public License
 
5101
# along with this program; if not, write to the Free Software
 
5102
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
5103
#
 
5104
# As a special exception to the GNU General Public License, if you
 
5105
# distribute this file as part of a program that contains a
 
5106
# configuration script generated by Autoconf, you may include it under
 
5107
# the same distribution terms that you use for the rest of that program.
 
5108
 
 
5109
# A sed program that does not truncate output.
 
5110
SED=$lt_SED
 
5111
 
 
5112
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
5113
Xsed="$SED -e 1s/^X//"
 
5114
 
 
5115
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
5116
# if CDPATH is set.
 
5117
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
5118
 
 
5119
# The names of the tagged configurations supported by this script.
 
5120
available_tags=
 
5121
 
 
5122
# ### BEGIN LIBTOOL CONFIG],
 
5123
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 
5124
 
 
5125
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5126
 
 
5127
# Shell to use when invoking shell scripts.
 
5128
SHELL=$lt_SHELL
 
5129
 
 
5130
# Whether or not to build shared libraries.
 
5131
build_libtool_libs=$enable_shared
 
5132
 
 
5133
# Whether or not to build static libraries.
 
5134
build_old_libs=$enable_static
 
5135
 
 
5136
# Whether or not to add -lc for building shared libraries.
 
5137
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 
5138
 
 
5139
# Whether or not to disallow shared libs when runtime libs are static
 
5140
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 
5141
 
 
5142
# Whether or not to optimize for fast installation.
 
5143
fast_install=$enable_fast_install
 
5144
 
 
5145
# The host system.
 
5146
host_alias=$host_alias
 
5147
host=$host
 
5148
host_os=$host_os
 
5149
 
 
5150
# The build system.
 
5151
build_alias=$build_alias
 
5152
build=$build
 
5153
build_os=$build_os
 
5154
 
 
5155
# An echo program that does not interpret backslashes.
 
5156
echo=$lt_echo
 
5157
 
 
5158
# The archiver.
 
5159
AR=$lt_AR
 
5160
AR_FLAGS=$lt_AR_FLAGS
 
5161
 
 
5162
# A C compiler.
 
5163
LTCC=$lt_LTCC
 
5164
 
 
5165
# LTCC compiler flags.
 
5166
LTCFLAGS=$lt_LTCFLAGS
 
5167
 
 
5168
# A language-specific compiler.
 
5169
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 
5170
 
 
5171
# Is the compiler the GNU C compiler?
 
5172
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 
5173
 
 
5174
# An ERE matcher.
 
5175
EGREP=$lt_EGREP
 
5176
 
 
5177
# The linker used to build libraries.
 
5178
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 
5179
 
 
5180
# Whether we need hard or soft links.
 
5181
LN_S=$lt_LN_S
 
5182
 
 
5183
# A BSD-compatible nm program.
 
5184
NM=$lt_NM
 
5185
 
 
5186
# A symbol stripping program
 
5187
STRIP=$lt_STRIP
 
5188
 
 
5189
# Used to examine libraries when file_magic_cmd begins "file"
 
5190
MAGIC_CMD=$MAGIC_CMD
 
5191
 
 
5192
# Used on cygwin: DLL creation program.
 
5193
DLLTOOL="$DLLTOOL"
 
5194
 
 
5195
# Used on cygwin: object dumper.
 
5196
OBJDUMP="$OBJDUMP"
 
5197
 
 
5198
# Used on cygwin: assembler.
 
5199
AS="$AS"
 
5200
 
 
5201
# The name of the directory that contains temporary libtool files.
 
5202
objdir=$objdir
 
5203
 
 
5204
# How to create reloadable object files.
 
5205
reload_flag=$lt_reload_flag
 
5206
reload_cmds=$lt_reload_cmds
 
5207
 
 
5208
# How to pass a linker flag through the compiler.
 
5209
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
5210
 
 
5211
# Object file suffix (normally "o").
 
5212
objext="$ac_objext"
 
5213
 
 
5214
# Old archive suffix (normally "a").
 
5215
libext="$libext"
 
5216
 
 
5217
# Shared library suffix (normally ".so").
 
5218
shrext_cmds='$shrext_cmds'
 
5219
 
 
5220
# Executable file suffix (normally "").
 
5221
exeext="$exeext"
 
5222
 
 
5223
# Additional compiler flags for building library objects.
 
5224
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 
5225
pic_mode=$pic_mode
 
5226
 
 
5227
# What is the maximum length of a command?
 
5228
max_cmd_len=$lt_cv_sys_max_cmd_len
 
5229
 
 
5230
# Does compiler simultaneously support -c and -o options?
 
5231
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 
5232
 
 
5233
# Must we lock files when doing compilation?
 
5234
need_locks=$lt_need_locks
 
5235
 
 
5236
# Do we need the lib prefix for modules?
 
5237
need_lib_prefix=$need_lib_prefix
 
5238
 
 
5239
# Do we need a version for libraries?
 
5240
need_version=$need_version
 
5241
 
 
5242
# Whether dlopen is supported.
 
5243
dlopen_support=$enable_dlopen
 
5244
 
 
5245
# Whether dlopen of programs is supported.
 
5246
dlopen_self=$enable_dlopen_self
 
5247
 
 
5248
# Whether dlopen of statically linked programs is supported.
 
5249
dlopen_self_static=$enable_dlopen_self_static
 
5250
 
 
5251
# Compiler flag to prevent dynamic linking.
 
5252
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 
5253
 
 
5254
# Compiler flag to turn off builtin functions.
 
5255
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 
5256
 
 
5257
# Compiler flag to allow reflexive dlopens.
 
5258
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 
5259
 
 
5260
# Compiler flag to generate shared objects directly from archives.
 
5261
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 
5262
 
 
5263
# Compiler flag to generate thread-safe objects.
 
5264
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 
5265
 
 
5266
# Library versioning type.
 
5267
version_type=$version_type
 
5268
 
 
5269
# Format of library name prefix.
 
5270
libname_spec=$lt_libname_spec
 
5271
 
 
5272
# List of archive names.  First name is the real one, the rest are links.
 
5273
# The last name is the one that the linker finds with -lNAME.
 
5274
library_names_spec=$lt_library_names_spec
 
5275
 
 
5276
# The coded name of the library, if different from the real name.
 
5277
soname_spec=$lt_soname_spec
 
5278
 
 
5279
# Commands used to build and install an old-style archive.
 
5280
RANLIB=$lt_RANLIB
 
5281
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 
5282
old_postinstall_cmds=$lt_old_postinstall_cmds
 
5283
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
5284
 
 
5285
# Create an old-style archive from a shared archive.
 
5286
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 
5287
 
 
5288
# Create a temporary old-style archive to link instead of a shared archive.
 
5289
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 
5290
 
 
5291
# Commands used to build and install a shared archive.
 
5292
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 
5293
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 
5294
postinstall_cmds=$lt_postinstall_cmds
 
5295
postuninstall_cmds=$lt_postuninstall_cmds
 
5296
 
 
5297
# Commands used to build a loadable module (assumed same as above if empty)
 
5298
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 
5299
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 
5300
 
 
5301
# Commands to strip libraries.
 
5302
old_striplib=$lt_old_striplib
 
5303
striplib=$lt_striplib
 
5304
 
 
5305
# Dependencies to place before the objects being linked to create a
 
5306
# shared library.
 
5307
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 
5308
 
 
5309
# Dependencies to place after the objects being linked to create a
 
5310
# shared library.
 
5311
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 
5312
 
 
5313
# Dependencies to place before the objects being linked to create a
 
5314
# shared library.
 
5315
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 
5316
 
 
5317
# Dependencies to place after the objects being linked to create a
 
5318
# shared library.
 
5319
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 
5320
 
 
5321
# The directories searched by this compiler when creating a shared
 
5322
# library
 
5323
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
 
5324
 
 
5325
# The library search path used internally by the compiler when linking
 
5326
# a shared library.
 
5327
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 
5328
 
 
5329
# Method to check whether dependent libraries are shared objects.
 
5330
deplibs_check_method=$lt_deplibs_check_method
 
5331
 
 
5332
# Command to use when deplibs_check_method == file_magic.
 
5333
file_magic_cmd=$lt_file_magic_cmd
 
5334
 
 
5335
# Flag that allows shared libraries with undefined symbols to be built.
 
5336
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
5337
 
 
5338
# Flag that forces no undefined symbols.
 
5339
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 
5340
 
 
5341
# Commands used to finish a libtool library installation in a directory.
 
5342
finish_cmds=$lt_finish_cmds
 
5343
 
 
5344
# Same as above, but a single script fragment to be evaled but not shown.
 
5345
finish_eval=$lt_finish_eval
 
5346
 
 
5347
# Take the output of nm and produce a listing of raw symbols and C names.
 
5348
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
5349
 
 
5350
# Transform the output of nm in a proper C declaration
 
5351
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
5352
 
 
5353
# Transform the output of nm in a C name address pair
 
5354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
5355
 
 
5356
# This is the shared library runtime path variable.
 
5357
runpath_var=$runpath_var
 
5358
 
 
5359
# This is the shared library path variable.
 
5360
shlibpath_var=$shlibpath_var
 
5361
 
 
5362
# Is shlibpath searched before the hard-coded library search path?
 
5363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
5364
 
 
5365
# How to hardcode a shared library path into an executable.
 
5366
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 
5367
 
 
5368
# Whether we should hardcode library paths into libraries.
 
5369
hardcode_into_libs=$hardcode_into_libs
 
5370
 
 
5371
# Flag to hardcode \$libdir into a binary during linking.
 
5372
# This must work even if \$libdir does not exist.
 
5373
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 
5374
 
 
5375
# If ld is used when linking, flag to hardcode \$libdir into
 
5376
# a binary during linking. This must work even if \$libdir does
 
5377
# not exist.
 
5378
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 
5379
 
 
5380
# Whether we need a single -rpath flag with a separated argument.
 
5381
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 
5382
 
 
5383
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
5384
# resulting binary.
 
5385
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 
5386
 
 
5387
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
5388
# resulting binary.
 
5389
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 
5390
 
 
5391
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
5392
# the resulting binary.
 
5393
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 
5394
 
 
5395
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
5396
# and all subsequent libraries and executables linked against it.
 
5397
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 
5398
 
 
5399
# Variables whose values should be saved in libtool wrapper scripts and
 
5400
# restored at relink time.
 
5401
variables_saved_for_relink="$variables_saved_for_relink"
 
5402
 
 
5403
# Whether libtool must link a program against all its dependency libraries.
 
5404
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 
5405
 
 
5406
# Compile-time system search path for libraries
 
5407
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
5408
 
 
5409
# Run-time system search path for libraries
 
5410
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
5411
 
 
5412
# Fix the shell variable \$srcfile for the compiler.
 
5413
fix_srcfile_path=$lt_fix_srcfile_path
 
5414
 
 
5415
# Set to yes if exported symbols are required.
 
5416
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 
5417
 
 
5418
# The commands to list exported symbols.
 
5419
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 
5420
 
 
5421
# The commands to extract the exported symbol list from a shared archive.
 
5422
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
5423
 
 
5424
# Symbols that should not be listed in the preloaded symbols.
 
5425
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 
5426
 
 
5427
# Symbols that must always be exported.
 
5428
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 
5429
 
 
5430
ifelse([$1],[],
 
5431
[# ### END LIBTOOL CONFIG],
 
5432
[# ### END LIBTOOL TAG CONFIG: $tagname])
 
5433
 
 
5434
__EOF__
 
5435
 
 
5436
ifelse([$1],[], [
 
5437
  case $host_os in
 
5438
  aix3*)
 
5439
    cat <<\EOF >> "$cfgfile"
 
5440
 
 
5441
# AIX sometimes has problems with the GCC collect2 program.  For some
 
5442
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
5443
# vanish in a puff of smoke.
 
5444
if test "X${COLLECT_NAMES+set}" != Xset; then
 
5445
  COLLECT_NAMES=
 
5446
  export COLLECT_NAMES
 
5447
fi
 
5448
EOF
 
5449
    ;;
 
5450
  esac
 
5451
 
 
5452
  # We use sed instead of cat because bash on DJGPP gets confused if
 
5453
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
5454
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
5455
  # is reportedly fixed, but why not run on old versions too?
 
5456
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
5457
 
 
5458
  mv -f "$cfgfile" "$ofile" || \
 
5459
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
5460
  chmod +x "$ofile"
 
5461
])
 
5462
else
 
5463
  # If there is no Makefile yet, we rely on a make rule to execute
 
5464
  # `config.status --recheck' to rerun these tests and create the
 
5465
  # libtool script then.
 
5466
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
5467
  if test -f "$ltmain_in"; then
 
5468
    test -f Makefile && make "$ltmain"
 
5469
  fi
 
5470
fi
 
5471
])# AC_LIBTOOL_CONFIG
 
5472
 
 
5473
 
 
5474
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 
5475
# -------------------------------------------
 
5476
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 
5477
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 
5478
 
 
5479
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3959
5480
 
3960
5481
if test "$GCC" = yes; then
3961
 
  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 
5482
  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3962
5483
 
3963
 
  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 
5484
  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3964
5485
    lt_cv_prog_compiler_rtti_exceptions,
3965
5486
    [-fno-rtti -fno-exceptions], [],
3966
 
    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 
5487
    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3967
5488
fi
3968
 
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3969
 
        [Compiler flag to turn off builtin functions])
3970
 
])# _LT_COMPILER_NO_RTTI
3971
 
 
3972
 
 
3973
 
# _LT_CMD_GLOBAL_SYMBOLS
3974
 
# ----------------------
3975
 
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3976
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3977
 
AC_REQUIRE([AC_PROG_CC])dnl
3978
 
AC_REQUIRE([LT_PATH_NM])dnl
3979
 
AC_REQUIRE([LT_PATH_LD])dnl
3980
 
m4_require([_LT_DECL_SED])dnl
3981
 
m4_require([_LT_DECL_EGREP])dnl
3982
 
m4_require([_LT_TAG_COMPILER])dnl
3983
 
 
 
5489
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 
5490
 
 
5491
 
 
5492
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5493
# ---------------------------------
 
5494
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 
5495
[AC_REQUIRE([AC_CANONICAL_HOST])
 
5496
AC_REQUIRE([LT_AC_PROG_SED])
 
5497
AC_REQUIRE([AC_PROG_NM])
 
5498
AC_REQUIRE([AC_OBJEXT])
3984
5499
# Check for command to grab the raw symbol name followed by C symbol from nm.
3985
5500
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3986
5501
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3994
5509
# Regexp to match symbols that can be accessed directly from C.
3995
5510
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3996
5511
 
 
5512
# Transform an extracted symbol line into a proper C declaration
 
5513
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5514
 
 
5515
# Transform an extracted symbol line into symbol name and symbol address
 
5516
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5517
 
3997
5518
# Define system-specific variables.
3998
5519
case $host_os in
3999
5520
aix*)
4002
5523
cygwin* | mingw* | pw32*)
4003
5524
  symcode='[[ABCDGISTW]]'
4004
5525
  ;;
4005
 
hpux*)
 
5526
hpux*) # Its linker distinguishes data from code symbols
4006
5527
  if test "$host_cpu" = ia64; then
4007
5528
    symcode='[[ABCDEGRST]]'
4008
5529
  fi
 
5530
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5531
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5532
  ;;
 
5533
linux* | k*bsd*-gnu)
 
5534
  if test "$host_cpu" = ia64; then
 
5535
    symcode='[[ABCDGIRSTW]]'
 
5536
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5537
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5538
  fi
4009
5539
  ;;
4010
5540
irix* | nonstopux*)
4011
5541
  symcode='[[BCDEGRST]]'
4030
5560
  ;;
4031
5561
esac
4032
5562
 
4033
 
# If we're using GNU nm, then use its standard symbol codes.
4034
 
case `$NM -V 2>&1` in
4035
 
*GNU* | *'with BFD'*)
4036
 
  symcode='[[ABCDGIRSTW]]' ;;
4037
 
esac
4038
 
 
4039
 
# Transform an extracted symbol line into a proper C declaration.
4040
 
# Some systems (esp. on ia64) link data and code symbols differently,
4041
 
# so use this general approach.
4042
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4043
 
 
4044
 
# Transform an extracted symbol line into symbol name and symbol address
4045
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
4046
 
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'"
4047
 
 
4048
5563
# Handle CRLF in mingw tool chain
4049
5564
opt_cr=
4050
5565
case $build_os in
4051
5566
mingw*)
4052
 
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5567
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4053
5568
  ;;
4054
5569
esac
4055
5570
 
4056
 
# Try without a prefix underscore, then with it.
 
5571
# If we're using GNU nm, then use its standard symbol codes.
 
5572
case `$NM -V 2>&1` in
 
5573
*GNU* | *'with BFD'*)
 
5574
  symcode='[[ABCDGIRSTW]]' ;;
 
5575
esac
 
5576
 
 
5577
# Try without a prefix undercore, then with it.
4057
5578
for ac_symprfx in "" "_"; do
4058
5579
 
4059
5580
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4060
5581
  symxfrm="\\1 $ac_symprfx\\2 \\2"
4061
5582
 
4062
5583
  # Write the raw and C identifiers.
4063
 
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4064
 
    # Fake it for dumpbin and say T for any non-static function
4065
 
    # and D for any global variable.
4066
 
    # Also find C++ and __fastcall symbols from MSVC++,
4067
 
    # which start with @ or ?.
4068
 
    lt_cv_sys_global_symbol_pipe="$AWK ['"\
4069
 
"     {last_section=section; section=\$ 3};"\
4070
 
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4071
 
"     \$ 0!~/External *\|/{next};"\
4072
 
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4073
 
"     {if(hide[section]) next};"\
4074
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4075
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4076
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
4077
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4078
 
"     ' prfx=^$ac_symprfx]"
4079
 
  else
4080
 
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4081
 
  fi
 
5584
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4082
5585
 
4083
5586
  # Check to see that the pipe works correctly.
4084
5587
  pipe_works=no
4085
5588
 
4086
5589
  rm -f conftest*
4087
 
  cat > conftest.$ac_ext <<_LT_EOF
 
5590
  cat > conftest.$ac_ext <<EOF
4088
5591
#ifdef __cplusplus
4089
5592
extern "C" {
4090
5593
#endif
4091
5594
char nm_test_var;
4092
 
void nm_test_func(void);
4093
 
void nm_test_func(void){}
 
5595
void nm_test_func(){}
4094
5596
#ifdef __cplusplus
4095
5597
}
4096
5598
#endif
4097
5599
int main(){nm_test_var='a';nm_test_func();return(0);}
4098
 
_LT_EOF
 
5600
EOF
4099
5601
 
4100
5602
  if AC_TRY_EVAL(ac_compile); then
4101
5603
    # Now try to grab the symbols.
4109
5611
      fi
4110
5612
 
4111
5613
      # Make sure that we snagged all the symbols we need.
4112
 
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4113
 
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4114
 
          cat <<_LT_EOF > conftest.$ac_ext
 
5614
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5615
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5616
          cat <<EOF > conftest.$ac_ext
4115
5617
#ifdef __cplusplus
4116
5618
extern "C" {
4117
5619
#endif
4118
5620
 
4119
 
_LT_EOF
 
5621
EOF
4120
5622
          # Now generate the symbol file.
4121
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4122
 
 
4123
 
          cat <<_LT_EOF >> conftest.$ac_ext
4124
 
 
4125
 
/* The mapping between symbol names and symbols.  */
 
5623
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5624
 
 
5625
          cat <<EOF >> conftest.$ac_ext
 
5626
#if defined (__STDC__) && __STDC__
 
5627
# define lt_ptr_t void *
 
5628
#else
 
5629
# define lt_ptr_t char *
 
5630
# define const
 
5631
#endif
 
5632
 
 
5633
/* The mapping between symbol names and symbols. */
4126
5634
const struct {
4127
5635
  const char *name;
4128
 
  void       *address;
 
5636
  lt_ptr_t address;
4129
5637
}
4130
 
lt__PROGRAM__LTX_preloaded_symbols[[]] =
 
5638
lt_preloaded_symbols[[]] =
4131
5639
{
4132
 
  { "@PROGRAM@", (void *) 0 },
4133
 
_LT_EOF
4134
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4135
 
          cat <<\_LT_EOF >> conftest.$ac_ext
4136
 
  {0, (void *) 0}
 
5640
EOF
 
5641
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5642
          cat <<\EOF >> conftest.$ac_ext
 
5643
  {0, (lt_ptr_t) 0}
4137
5644
};
4138
5645
 
4139
 
/* This works around a problem in FreeBSD linker */
4140
 
#ifdef FREEBSD_WORKAROUND
4141
 
static const void *lt_preloaded_setup() {
4142
 
  return lt__PROGRAM__LTX_preloaded_symbols;
4143
 
}
4144
 
#endif
4145
 
 
4146
5646
#ifdef __cplusplus
4147
5647
}
4148
5648
#endif
4149
 
_LT_EOF
 
5649
EOF
4150
5650
          # Now try linking the two files.
4151
5651
          mv conftest.$ac_objext conftstm.$ac_objext
4152
5652
          lt_save_LIBS="$LIBS"
4153
5653
          lt_save_CFLAGS="$CFLAGS"
4154
5654
          LIBS="conftstm.$ac_objext"
4155
 
          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 
5655
          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4156
5656
          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4157
5657
            pipe_works=yes
4158
5658
          fi
4189
5689
else
4190
5690
  AC_MSG_RESULT(ok)
4191
5691
fi
4192
 
 
4193
 
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4194
 
    [Take the output of nm and produce a listing of raw symbols and C names])
4195
 
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4196
 
    [Transform the output of nm in a proper C declaration])
4197
 
_LT_DECL([global_symbol_to_c_name_address],
4198
 
    [lt_cv_sys_global_symbol_to_c_name_address], [1],
4199
 
    [Transform the output of nm in a C name address pair])
4200
 
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4201
 
    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4202
 
    [Transform the output of nm in a C name address pair when lib prefix is needed])
4203
 
]) # _LT_CMD_GLOBAL_SYMBOLS
4204
 
 
4205
 
 
4206
 
# _LT_COMPILER_PIC([TAGNAME])
4207
 
# ---------------------------
4208
 
m4_defun([_LT_COMPILER_PIC],
4209
 
[m4_require([_LT_TAG_COMPILER])dnl
4210
 
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4211
 
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4212
 
_LT_TAGVAR(lt_prog_compiler_static, $1)=
 
5692
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 
5693
 
 
5694
 
 
5695
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 
5696
# ---------------------------------------
 
5697
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 
5698
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 
5699
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5700
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4213
5701
 
4214
5702
AC_MSG_CHECKING([for $compiler option to produce PIC])
4215
 
m4_if([$1], [CXX], [
 
5703
 ifelse([$1],[CXX],[
4216
5704
  # C++ specific cases for pic, static, wl, etc.
4217
5705
  if test "$GXX" = yes; then
4218
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4219
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5706
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5707
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4220
5708
 
4221
5709
    case $host_os in
4222
5710
    aix*)
4223
5711
      # All AIX code is PIC.
4224
5712
      if test "$host_cpu" = ia64; then
4225
5713
        # AIX 5 now supports IA64 processor
4226
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5714
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4227
5715
      fi
4228
5716
      ;;
4229
 
 
4230
5717
    amigaos*)
4231
 
      case $host_cpu in
4232
 
      powerpc)
4233
 
            # see comment about AmigaOS4 .so support
4234
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4235
 
        ;;
4236
 
      m68k)
4237
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4238
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4239
 
            # like `-m68040'.
4240
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4241
 
        ;;
4242
 
      esac
 
5718
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5719
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5720
      # like `-m68040'.
 
5721
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4243
5722
      ;;
4244
 
 
4245
5723
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4246
5724
      # PIC is the default for these OSes.
4247
5725
      ;;
4251
5729
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4252
5730
      # (--disable-auto-import) libraries
4253
5731
      m4_if([$1], [GCJ], [],
4254
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
5732
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4255
5733
      ;;
4256
5734
    darwin* | rhapsody*)
4257
5735
      # PIC is the default on this platform
4258
5736
      # Common symbols not allowed in MH_DYLIB files
4259
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 
5737
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4260
5738
      ;;
4261
5739
    *djgpp*)
4262
5740
      # DJGPP does not support shared libraries at all
4263
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 
5741
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4264
5742
      ;;
4265
5743
    interix[[3-9]]*)
4266
5744
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4268
5746
      ;;
4269
5747
    sysv4*MP*)
4270
5748
      if test -d /usr/nec; then
4271
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
5749
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4272
5750
      fi
4273
5751
      ;;
4274
5752
    hpux*)
4278
5756
      hppa*64*|ia64*)
4279
5757
        ;;
4280
5758
      *)
4281
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5759
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4282
5760
        ;;
4283
5761
      esac
4284
5762
      ;;
4285
 
    *qnx* | *nto*)
4286
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4287
 
      # it will coredump.
4288
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4289
 
      ;;
4290
5763
    *)
4291
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5764
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4292
5765
      ;;
4293
5766
    esac
4294
5767
  else
4297
5770
        # All AIX code is PIC.
4298
5771
        if test "$host_cpu" = ia64; then
4299
5772
          # AIX 5 now supports IA64 processor
4300
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5773
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4301
5774
        else
4302
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
5775
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4303
5776
        fi
4304
5777
        ;;
4305
5778
      chorus*)
4306
5779
        case $cc_basename in
4307
5780
        cxch68*)
4308
5781
          # Green Hills C++ Compiler
4309
 
          # _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"
 
5782
          # _LT_AC_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"
4310
5783
          ;;
4311
5784
        esac
4312
5785
        ;;
 
5786
       darwin*)
 
5787
         # PIC is the default on this platform
 
5788
         # Common symbols not allowed in MH_DYLIB files
 
5789
         case $cc_basename in
 
5790
           xlc*)
 
5791
           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
5792
           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5793
           ;;
 
5794
         esac
 
5795
       ;;
4313
5796
      dgux*)
4314
5797
        case $cc_basename in
4315
5798
          ec++*)
4316
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5799
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4317
5800
            ;;
4318
5801
          ghcx*)
4319
5802
            # Green Hills C++ Compiler
4320
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5803
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4321
5804
            ;;
4322
5805
          *)
4323
5806
            ;;
4329
5812
      hpux9* | hpux10* | hpux11*)
4330
5813
        case $cc_basename in
4331
5814
          CC*)
4332
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4333
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5815
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5816
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4334
5817
            if test "$host_cpu" != ia64; then
4335
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5818
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4336
5819
            fi
4337
5820
            ;;
4338
5821
          aCC*)
4339
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4340
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
5822
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5823
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4341
5824
            case $host_cpu in
4342
5825
            hppa*64*|ia64*)
4343
5826
              # +Z the default
4344
5827
              ;;
4345
5828
            *)
4346
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
5829
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4347
5830
              ;;
4348
5831
            esac
4349
5832
            ;;
4358
5841
      irix5* | irix6* | nonstopux*)
4359
5842
        case $cc_basename in
4360
5843
          CC*)
4361
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4362
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5844
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5845
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4363
5846
            # CC pic flag -KPIC is the default.
4364
5847
            ;;
4365
5848
          *)
4370
5853
        case $cc_basename in
4371
5854
          KCC*)
4372
5855
            # KAI C++ Compiler
4373
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4374
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
5856
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5857
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4375
5858
            ;;
4376
 
          icpc* | ecpc* )
 
5859
          icpc* | ecpc*)
4377
5860
            # Intel C++
4378
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4379
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4380
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5861
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5862
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5863
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4381
5864
            ;;
4382
5865
          pgCC* | pgcpp*)
4383
 
            # Portland Group C++ compiler
4384
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4385
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4386
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5866
            # Portland Group C++ compiler.
 
5867
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5868
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
5869
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4387
5870
            ;;
4388
5871
          cxx*)
4389
5872
            # Compaq C++
4390
5873
            # Make sure the PIC flag is empty.  It appears that all Alpha
4391
5874
            # Linux and Compaq Tru64 Unix objects are PIC.
4392
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4393
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4394
 
            ;;
4395
 
          xlc* | xlC*)
4396
 
            # IBM XL 8.0 on PPC
4397
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4398
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4399
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 
5875
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5876
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4400
5877
            ;;
4401
5878
          *)
4402
5879
            case `$CC -V 2>&1 | sed 5q` in
4403
5880
            *Sun\ C*)
4404
5881
              # Sun C++ 5.9
4405
 
              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4406
 
              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4407
 
              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5882
              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5883
              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5884
              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4408
5885
              ;;
4409
5886
            esac
4410
5887
            ;;
4417
5894
      mvs*)
4418
5895
        case $cc_basename in
4419
5896
          cxx*)
4420
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 
5897
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4421
5898
            ;;
4422
5899
          *)
4423
5900
            ;;
4425
5902
        ;;
4426
5903
      netbsd* | netbsdelf*-gnu)
4427
5904
        ;;
4428
 
      *qnx* | *nto*)
4429
 
        # QNX uses GNU C++, but need to define -shared option too, otherwise
4430
 
        # it will coredump.
4431
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4432
 
        ;;
4433
5905
      osf3* | osf4* | osf5*)
4434
5906
        case $cc_basename in
4435
5907
          KCC*)
4436
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 
5908
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4437
5909
            ;;
4438
5910
          RCC*)
4439
5911
            # Rational C++ 2.4.1
4440
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5912
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4441
5913
            ;;
4442
5914
          cxx*)
4443
5915
            # Digital/Compaq C++
4444
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5916
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4445
5917
            # Make sure the PIC flag is empty.  It appears that all Alpha
4446
5918
            # Linux and Compaq Tru64 Unix objects are PIC.
4447
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4448
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
5919
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
5920
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4449
5921
            ;;
4450
5922
          *)
4451
5923
            ;;
4457
5929
        case $cc_basename in
4458
5930
          CC*)
4459
5931
            # Sun C++ 4.2, 5.x and Centerline C++
4460
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4461
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4462
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
5932
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5933
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5934
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4463
5935
            ;;
4464
5936
          gcx*)
4465
5937
            # Green Hills C++ Compiler
4466
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
5938
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4467
5939
            ;;
4468
5940
          *)
4469
5941
            ;;
4473
5945
        case $cc_basename in
4474
5946
          CC*)
4475
5947
            # Sun C++ 4.x
4476
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4477
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5948
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5949
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4478
5950
            ;;
4479
5951
          lcc*)
4480
5952
            # Lucid
4481
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5953
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
5954
            ;;
 
5955
          *)
 
5956
            ;;
 
5957
        esac
 
5958
        ;;
 
5959
      tandem*)
 
5960
        case $cc_basename in
 
5961
          NCC*)
 
5962
            # NonStop-UX NCC 3.20
 
5963
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4482
5964
            ;;
4483
5965
          *)
4484
5966
            ;;
4487
5969
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4488
5970
        case $cc_basename in
4489
5971
          CC*)
4490
 
            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4491
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4492
 
            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4493
 
            ;;
4494
 
        esac
4495
 
        ;;
4496
 
      tandem*)
4497
 
        case $cc_basename in
4498
 
          NCC*)
4499
 
            # NonStop-UX NCC 3.20
4500
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4501
 
            ;;
4502
 
          *)
 
5972
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5973
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
5974
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4503
5975
            ;;
4504
5976
        esac
4505
5977
        ;;
4506
5978
      vxworks*)
4507
5979
        ;;
4508
5980
      *)
4509
 
        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
5981
        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4510
5982
        ;;
4511
5983
    esac
4512
5984
  fi
4513
5985
],
4514
5986
[
4515
5987
  if test "$GCC" = yes; then
4516
 
    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4517
 
    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
5988
    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
5989
    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4518
5990
 
4519
5991
    case $host_os in
4520
5992
      aix*)
4521
5993
      # All AIX code is PIC.
4522
5994
      if test "$host_cpu" = ia64; then
4523
5995
        # AIX 5 now supports IA64 processor
4524
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
5996
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4525
5997
      fi
4526
5998
      ;;
4527
5999
 
4528
6000
    amigaos*)
4529
 
      case $host_cpu in
4530
 
      powerpc)
4531
 
            # see comment about AmigaOS4 .so support
4532
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4533
 
        ;;
4534
 
      m68k)
4535
 
            # FIXME: we need at least 68020 code to build shared libraries, but
4536
 
            # adding the `-m68020' flag to GCC prevents building anything better,
4537
 
            # like `-m68040'.
4538
 
            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4539
 
        ;;
4540
 
      esac
 
6001
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6002
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6003
      # like `-m68040'.
 
6004
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4541
6005
      ;;
4542
6006
 
4543
6007
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4550
6014
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
4551
6015
      # (--disable-auto-import) libraries
4552
6016
      m4_if([$1], [GCJ], [],
4553
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
6017
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4554
6018
      ;;
4555
6019
 
4556
6020
    darwin* | rhapsody*)
4557
6021
      # PIC is the default on this platform
4558
6022
      # Common symbols not allowed in MH_DYLIB files
4559
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4560
 
      ;;
4561
 
 
4562
 
    hpux*)
4563
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4564
 
      # not for PA HP-UX.
4565
 
      case $host_cpu in
4566
 
      hppa*64*|ia64*)
4567
 
        # +Z the default
4568
 
        ;;
4569
 
      *)
4570
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4571
 
        ;;
4572
 
      esac
 
6023
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4573
6024
      ;;
4574
6025
 
4575
6026
    interix[[3-9]]*)
4580
6031
    msdosdjgpp*)
4581
6032
      # Just because we use GCC doesn't mean we suddenly get shared libraries
4582
6033
      # on systems that don't support them.
4583
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6034
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4584
6035
      enable_shared=no
4585
6036
      ;;
4586
6037
 
4587
 
    *nto* | *qnx*)
4588
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4589
 
      # it will coredump.
4590
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4591
 
      ;;
4592
 
 
4593
6038
    sysv4*MP*)
4594
6039
      if test -d /usr/nec; then
4595
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 
6040
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4596
6041
      fi
4597
6042
      ;;
4598
6043
 
 
6044
    hpux*)
 
6045
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6046
      # not for PA HP-UX.
 
6047
      case $host_cpu in
 
6048
      hppa*64*|ia64*)
 
6049
        # +Z the default
 
6050
        ;;
 
6051
      *)
 
6052
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6053
        ;;
 
6054
      esac
 
6055
      ;;
 
6056
 
4599
6057
    *)
4600
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 
6058
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4601
6059
      ;;
4602
6060
    esac
4603
6061
  else
4604
6062
    # PORTME Check for flag to pass linker flags through the system compiler.
4605
6063
    case $host_os in
4606
6064
    aix*)
4607
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6065
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4608
6066
      if test "$host_cpu" = ia64; then
4609
6067
        # AIX 5 now supports IA64 processor
4610
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6068
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4611
6069
      else
4612
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 
6070
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4613
6071
      fi
4614
6072
      ;;
 
6073
      darwin*)
 
6074
        # PIC is the default on this platform
 
6075
        # Common symbols not allowed in MH_DYLIB files
 
6076
       case $cc_basename in
 
6077
         xlc*)
 
6078
         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 
6079
         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6080
         ;;
 
6081
       esac
 
6082
       ;;
4615
6083
 
4616
6084
    mingw* | cygwin* | pw32* | os2*)
4617
6085
      # This hack is so that the source file can tell whether it is being
4618
6086
      # built for inclusion in a dll (and should export symbols for example).
4619
6087
      m4_if([$1], [GCJ], [],
4620
 
        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 
6088
        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4621
6089
      ;;
4622
6090
 
4623
6091
    hpux9* | hpux10* | hpux11*)
4624
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6092
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4625
6093
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4626
6094
      # not for PA HP-UX.
4627
6095
      case $host_cpu in
4629
6097
        # +Z the default
4630
6098
        ;;
4631
6099
      *)
4632
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 
6100
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4633
6101
        ;;
4634
6102
      esac
4635
6103
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4636
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 
6104
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4637
6105
      ;;
4638
6106
 
4639
6107
    irix5* | irix6* | nonstopux*)
4640
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6108
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4641
6109
      # PIC (with -KPIC) is the default.
4642
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6110
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6111
      ;;
 
6112
 
 
6113
    newsos6)
 
6114
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6115
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4643
6116
      ;;
4644
6117
 
4645
6118
    linux* | k*bsd*-gnu)
4646
6119
      case $cc_basename in
4647
 
      icc* | ecc* | ifort*)
4648
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4649
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4650
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 
6120
      icc* | ecc*)
 
6121
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6122
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6123
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4651
6124
        ;;
4652
6125
      pgcc* | pgf77* | pgf90* | pgf95*)
4653
6126
        # Portland Group compilers (*not* the Pentium gcc compiler,
4654
6127
        # which looks to be a dead project)
4655
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4656
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4657
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6128
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6129
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 
6130
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4658
6131
        ;;
4659
6132
      ccc*)
4660
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6133
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661
6134
        # All Alpha code is PIC.
4662
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6135
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4663
6136
        ;;
4664
 
      xl*)
4665
 
        # IBM XL C 8.0/Fortran 10.1 on PPC
4666
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4667
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4668
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4669
 
        ;;
4670
6137
      *)
4671
 
        case `$CC -V 2>&1 | sed 5q` in
 
6138
        case `$CC -V 2>&1 | sed 5q` in
4672
6139
        *Sun\ C*)
4673
6140
          # Sun C 5.9
4674
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4675
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4676
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6141
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6142
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6143
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4677
6144
          ;;
4678
6145
        *Sun\ F*)
4679
6146
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
4680
 
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4681
 
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4682
 
          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 
6147
          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6148
          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6149
          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4683
6150
          ;;
4684
6151
        esac
4685
6152
        ;;
4686
6153
      esac
4687
6154
      ;;
4688
6155
 
4689
 
    newsos6)
4690
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4691
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4692
 
      ;;
4693
 
 
4694
 
    *nto* | *qnx*)
4695
 
      # QNX uses GNU C++, but need to define -shared option too, otherwise
4696
 
      # it will coredump.
4697
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4698
 
      ;;
4699
 
 
4700
6156
    osf3* | osf4* | osf5*)
4701
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6157
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4702
6158
      # All OSF/1 code is PIC.
4703
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6159
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4704
6160
      ;;
4705
6161
 
4706
6162
    rdos*)
4707
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 
6163
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4708
6164
      ;;
4709
6165
 
4710
6166
    solaris*)
4711
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4712
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6167
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6168
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4713
6169
      case $cc_basename in
4714
6170
      f77* | f90* | f95*)
4715
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 
6171
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4716
6172
      *)
4717
 
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 
6173
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4718
6174
      esac
4719
6175
      ;;
4720
6176
 
4721
6177
    sunos4*)
4722
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4723
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4724
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6178
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 
6179
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 
6180
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4725
6181
      ;;
4726
6182
 
4727
6183
    sysv4 | sysv4.2uw2* | sysv4.3*)
4728
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4729
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4730
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6184
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6185
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6186
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4731
6187
      ;;
4732
6188
 
4733
6189
    sysv4*MP*)
4734
6190
      if test -d /usr/nec ;then
4735
 
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4736
 
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6191
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 
6192
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4737
6193
      fi
4738
6194
      ;;
4739
6195
 
4740
6196
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4741
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4743
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6197
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6198
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 
6199
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4744
6200
      ;;
4745
6201
 
4746
6202
    unicos*)
4747
 
      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4748
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6203
      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 
6204
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4749
6205
      ;;
4750
6206
 
4751
6207
    uts4*)
4752
 
      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4753
 
      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 
6208
      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 
6209
      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4754
6210
      ;;
4755
6211
 
4756
6212
    *)
4757
 
      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 
6213
      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4758
6214
      ;;
4759
6215
    esac
4760
6216
  fi
4761
6217
])
4762
 
case $host_os in
4763
 
  # For platforms which do not support PIC, -DPIC is meaningless:
4764
 
  *djgpp*)
4765
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4766
 
    ;;
4767
 
  *)
4768
 
    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4769
 
    ;;
4770
 
esac
4771
 
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4772
 
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4773
 
        [How to pass a linker flag through the compiler])
 
6218
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4774
6219
 
4775
6220
#
4776
6221
# Check to make sure the PIC flag actually works.
4777
6222
#
4778
 
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4779
 
  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4780
 
    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4781
 
    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4782
 
    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 
6223
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 
6224
  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 
6225
    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
 
6226
    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 
6227
    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4783
6228
     "" | " "*) ;;
4784
 
     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 
6229
     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4785
6230
     esac],
4786
 
    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4787
 
     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 
6231
    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6232
     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4788
6233
fi
4789
 
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4790
 
        [Additional compiler flags for building library objects])
 
6234
case $host_os in
 
6235
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6236
  *djgpp*)
 
6237
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 
6238
    ;;
 
6239
  *)
 
6240
    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 
6241
    ;;
 
6242
esac
4791
6243
 
4792
6244
#
4793
6245
# Check to make sure the static flag actually works.
4794
6246
#
4795
 
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4796
 
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4797
 
  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 
6247
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 
6248
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 
6249
  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4798
6250
  $lt_tmp_static_flag,
4799
6251
  [],
4800
 
  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4801
 
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4802
 
        [Compiler flag to prevent dynamic linking])
4803
 
])# _LT_COMPILER_PIC
4804
 
 
4805
 
 
4806
 
# _LT_LINKER_SHLIBS([TAGNAME])
4807
 
# ----------------------------
 
6252
  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 
6253
])
 
6254
 
 
6255
 
 
6256
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 
6257
# ------------------------------------
4808
6258
# See if the linker supports building shared libraries.
4809
 
m4_defun([_LT_LINKER_SHLIBS],
4810
 
[AC_REQUIRE([LT_PATH_LD])dnl
4811
 
AC_REQUIRE([LT_PATH_NM])dnl
4812
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4813
 
m4_require([_LT_DECL_EGREP])dnl
4814
 
m4_require([_LT_DECL_SED])dnl
4815
 
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4816
 
m4_require([_LT_TAG_COMPILER])dnl
 
6259
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 
6260
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4817
6261
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4818
 
m4_if([$1], [CXX], [
4819
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6262
ifelse([$1],[CXX],[
 
6263
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4820
6264
  case $host_os in
4821
6265
  aix[[4-9]]*)
4822
6266
    # If we're using GNU nm, then we don't want the "-C" option.
4823
6267
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
4824
 
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4825
 
      _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'
 
6268
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6269
      _LT_AC_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'
4826
6270
    else
4827
 
      _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'
 
6271
      _LT_AC_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'
4828
6272
    fi
4829
6273
    ;;
4830
6274
  pw32*)
4831
 
    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 
6275
    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4832
6276
  ;;
4833
6277
  cygwin* | mingw*)
4834
 
    _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'
 
6278
    _LT_AC_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'
4835
6279
  ;;
4836
6280
  linux* | k*bsd*-gnu)
4837
 
    _LT_TAGVAR(link_all_deplibs, $1)=no
 
6281
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4838
6282
  ;;
4839
6283
  *)
4840
 
    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6284
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4841
6285
  ;;
4842
6286
  esac
4843
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4844
 
], [
 
6287
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
6288
],[
4845
6289
  runpath_var=
4846
 
  _LT_TAGVAR(allow_undefined_flag, $1)=
4847
 
  _LT_TAGVAR(always_export_symbols, $1)=no
4848
 
  _LT_TAGVAR(archive_cmds, $1)=
4849
 
  _LT_TAGVAR(archive_expsym_cmds, $1)=
4850
 
  _LT_TAGVAR(compiler_needs_object, $1)=no
4851
 
  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4852
 
  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4853
 
  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4854
 
  _LT_TAGVAR(hardcode_automatic, $1)=no
4855
 
  _LT_TAGVAR(hardcode_direct, $1)=no
4856
 
  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4857
 
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4858
 
  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4859
 
  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4860
 
  _LT_TAGVAR(hardcode_minus_L, $1)=no
4861
 
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4862
 
  _LT_TAGVAR(inherit_rpath, $1)=no
4863
 
  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4864
 
  _LT_TAGVAR(module_cmds, $1)=
4865
 
  _LT_TAGVAR(module_expsym_cmds, $1)=
4866
 
  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4867
 
  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4868
 
  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4869
 
  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6290
  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
6291
  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 
6292
  _LT_AC_TAGVAR(archive_cmds, $1)=
 
6293
  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 
6294
  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 
6295
  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 
6296
  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6297
  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 
6298
  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 
6299
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6300
  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 
6301
  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 
6302
  _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6303
  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 
6304
  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6305
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 
6306
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 
6307
  _LT_AC_TAGVAR(module_cmds, $1)=
 
6308
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 
6309
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6310
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4870
6311
  # include_expsyms should be a list of space-separated symbols to be *always*
4871
6312
  # included in the symbol list
4872
 
  _LT_TAGVAR(include_expsyms, $1)=
 
6313
  _LT_AC_TAGVAR(include_expsyms, $1)=
4873
6314
  # exclude_expsyms can be an extended regexp of symbols to exclude
4874
6315
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4875
6316
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4876
6317
  # as well as any symbol that contains `d'.
4877
 
  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 
6318
  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4878
6319
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4879
6320
  # platforms (ab)use it in PIC code, but their linkers get confused if
4880
6321
  # the symbol is explicitly referenced.  Since portable code cannot
4883
6324
  # Exclude shared library initialization/finalization symbols.
4884
6325
dnl Note also adjust exclude_expsyms for C++ above.
4885
6326
  extract_expsyms_cmds=
4886
 
 
 
6327
  # Just being paranoid about ensuring that cc_basename is set.
 
6328
  _LT_CC_BASENAME([$compiler])
4887
6329
  case $host_os in
4888
6330
  cygwin* | mingw* | pw32*)
4889
6331
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4902
6344
    ;;
4903
6345
  esac
4904
6346
 
4905
 
  _LT_TAGVAR(ld_shlibs, $1)=yes
 
6347
  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4906
6348
  if test "$with_gnu_ld" = yes; then
4907
6349
    # If archive_cmds runs LD, not CC, wlarc should be empty
4908
6350
    wlarc='${wl}'
4911
6353
    # are reset later if shared libraries are not supported. Putting them
4912
6354
    # here allows them to be overridden if necessary.
4913
6355
    runpath_var=LD_RUN_PATH
4914
 
    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4915
 
    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 
6356
    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 
6357
    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4916
6358
    # ancient GNU ld didn't support --whole-archive et. al.
4917
 
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4918
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4919
 
    else
4920
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6359
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6360
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6361
      else
 
6362
        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4921
6363
    fi
4922
6364
    supports_anon_versioning=no
4923
 
    case `$LD -v 2>&1` in
 
6365
    case `$LD -v 2>/dev/null` in
4924
6366
      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4925
6367
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4926
6368
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4933
6375
    aix[[3-9]]*)
4934
6376
      # On AIX/PPC, the GNU linker is very broken
4935
6377
      if test "$host_cpu" != ia64; then
4936
 
        _LT_TAGVAR(ld_shlibs, $1)=no
4937
 
        cat <<_LT_EOF 1>&2
 
6378
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6379
        cat <<EOF 1>&2
4938
6380
 
4939
6381
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4940
6382
*** to be unable to reliably create shared libraries on AIX.
4942
6384
*** really care for shared libraries, you may want to modify your PATH
4943
6385
*** so that a non-GNU linker is found, and then restart.
4944
6386
 
4945
 
_LT_EOF
 
6387
EOF
4946
6388
      fi
4947
6389
      ;;
4948
6390
 
4949
6391
    amigaos*)
4950
 
      case $host_cpu in
4951
 
      powerpc)
4952
 
            # see comment about AmigaOS4 .so support
4953
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4954
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4955
 
        ;;
4956
 
      m68k)
4957
 
            _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)'
4958
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4959
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4960
 
        ;;
4961
 
      esac
 
6392
      _LT_AC_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)'
 
6393
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6394
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6395
 
 
6396
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6397
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6398
      # to version 4, is to share data among multiple programs linked
 
6399
      # with the same dynamic library.  Since this doesn't match the
 
6400
      # behavior of shared libraries on other platforms, we can't use
 
6401
      # them.
 
6402
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4962
6403
      ;;
4963
6404
 
4964
6405
    beos*)
4965
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4966
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6406
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6407
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4967
6408
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4968
6409
        # support --undefined.  This deserves some investigation.  FIXME
4969
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6410
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4970
6411
      else
4971
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6412
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4972
6413
      fi
4973
6414
      ;;
4974
6415
 
4975
6416
    cygwin* | mingw* | pw32*)
4976
 
      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 
6417
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4977
6418
      # as there is no search path for DLLs.
4978
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4979
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4980
 
      _LT_TAGVAR(always_export_symbols, $1)=no
4981
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4982
 
      _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'
 
6419
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6420
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6421
      _LT_AC_TAGVAR(always_export_symbols, $1)=no
 
6422
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6423
      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4983
6424
 
4984
 
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4985
 
        _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'
 
6425
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6426
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4986
6427
        # If the export-symbols file already is a .def file (1st line
4987
6428
        # is EXPORTS), use it as is; otherwise, prepend...
4988
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6429
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4989
6430
          cp $export_symbols $output_objdir/$soname.def;
4990
6431
        else
4991
6432
          echo EXPORTS > $output_objdir/$soname.def;
4993
6434
        fi~
4994
6435
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4995
6436
      else
4996
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6437
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4997
6438
      fi
4998
6439
      ;;
4999
6440
 
5000
6441
    interix[[3-9]]*)
5001
 
      _LT_TAGVAR(hardcode_direct, $1)=no
5002
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5003
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5004
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6442
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6443
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6444
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6445
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5005
6446
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5006
6447
      # Instead, shared libraries are loaded at an image base (0x10000000 by
5007
6448
      # default) and relocated if they conflict, which is a slow very memory
5008
6449
      # consuming and fragmenting process.  To avoid this, we pick a random,
5009
6450
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5010
6451
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5011
 
      _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'
5012
 
      _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'
 
6452
      _LT_AC_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'
 
6453
      _LT_AC_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'
5013
6454
      ;;
5014
6455
 
5015
 
    gnu* | linux* | tpf* | k*bsd*-gnu)
5016
 
      tmp_diet=no
5017
 
      if test "$host_os" = linux-dietlibc; then
5018
 
        case $cc_basename in
5019
 
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
5020
 
        esac
5021
 
      fi
5022
 
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5023
 
         && test "$tmp_diet" = no
5024
 
      then
 
6456
    gnu* | linux* | k*bsd*-gnu)
 
6457
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5025
6458
        tmp_addflag=
5026
 
        tmp_sharedflag='-shared'
5027
6459
        case $cc_basename,$host_cpu in
5028
 
        pgcc*)                          # Portland Group C compiler
5029
 
          _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'
 
6460
        pgcc*)                          # Portland Group C compiler
 
6461
          _LT_AC_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'
5030
6462
          tmp_addflag=' $pic_flag'
5031
6463
          ;;
5032
6464
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
5033
 
          _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'
 
6465
          _LT_AC_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'
5034
6466
          tmp_addflag=' $pic_flag -Mnomain' ;;
5035
 
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
6467
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
5036
6468
          tmp_addflag=' -i_dynamic' ;;
5037
6469
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
5038
6470
          tmp_addflag=' -i_dynamic -nofor_main' ;;
5039
6471
        ifc* | ifort*)                  # Intel Fortran compiler
5040
6472
          tmp_addflag=' -nofor_main' ;;
5041
 
        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
5042
 
          tmp_sharedflag='-qmkshrobj'
5043
 
          tmp_addflag= ;;
5044
6473
        esac
5045
6474
        case `$CC -V 2>&1 | sed 5q` in
5046
6475
        *Sun\ C*)                       # Sun C 5.9
5047
 
          _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'
5048
 
          _LT_TAGVAR(compiler_needs_object, $1)=yes
 
6476
          _LT_AC_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'
5049
6477
          tmp_sharedflag='-G' ;;
5050
6478
        *Sun\ F*)                       # Sun Fortran 8.3
5051
6479
          tmp_sharedflag='-G' ;;
5052
 
        esac
5053
 
        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5054
 
 
5055
 
        if test "x$supports_anon_versioning" = xyes; then
5056
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5057
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5058
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
5059
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5060
 
        fi
5061
 
 
5062
 
        case $cc_basename in
5063
 
        xlf*)
5064
 
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5065
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5066
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5067
 
          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5068
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5069
 
          if test "x$supports_anon_versioning" = xyes; then
5070
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5071
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5072
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
5073
 
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5074
 
          fi
5075
 
          ;;
5076
 
        esac
 
6480
        *)
 
6481
          tmp_sharedflag='-shared' ;;
 
6482
        esac
 
6483
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6484
 
 
6485
        if test $supports_anon_versioning = yes; then
 
6486
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 
6487
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6488
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6489
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6490
        fi
 
6491
        _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5077
6492
      else
5078
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6493
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5079
6494
      fi
5080
6495
      ;;
5081
6496
 
5082
6497
    netbsd* | netbsdelf*-gnu)
5083
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5084
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6498
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6499
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5085
6500
        wlarc=
5086
6501
      else
5087
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5088
 
        _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'
 
6502
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6503
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5089
6504
      fi
5090
6505
      ;;
5091
6506
 
5092
6507
    solaris*)
5093
 
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5094
 
        _LT_TAGVAR(ld_shlibs, $1)=no
5095
 
        cat <<_LT_EOF 1>&2
 
6508
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6509
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6510
        cat <<EOF 1>&2
5096
6511
 
5097
6512
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5098
6513
*** create shared libraries on Solaris systems.  Therefore, libtool
5101
6516
*** your PATH or compiler configuration so that the native linker is
5102
6517
*** used, and then restart.
5103
6518
 
5104
 
_LT_EOF
5105
 
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5106
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5107
 
        _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'
 
6519
EOF
 
6520
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6521
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6522
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5108
6523
      else
5109
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6524
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5110
6525
      fi
5111
6526
      ;;
5112
6527
 
5113
6528
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5114
6529
      case `$LD -v 2>&1` in
5115
6530
        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5116
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6531
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5117
6532
        cat <<_LT_EOF 1>&2
5118
6533
 
5119
6534
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5126
6541
_LT_EOF
5127
6542
        ;;
5128
6543
        *)
5129
 
          # For security reasons, it is highly recommended that you always
5130
 
          # use absolute paths for naming shared libraries, and exclude the
5131
 
          # DT_RUNPATH tag from executables and libraries.  But doing so
5132
 
          # requires that you compile everything twice, which is a pain.
5133
 
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5134
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5135
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5136
 
            _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'
 
6544
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6545
            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6546
            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6547
            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5137
6548
          else
5138
 
            _LT_TAGVAR(ld_shlibs, $1)=no
 
6549
            _LT_AC_TAGVAR(ld_shlibs, $1)=no
5139
6550
          fi
5140
6551
        ;;
5141
6552
      esac
5142
6553
      ;;
5143
6554
 
5144
6555
    sunos4*)
5145
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6556
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5146
6557
      wlarc=
5147
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5148
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6558
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6559
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5149
6560
      ;;
5150
6561
 
5151
6562
    *)
5152
 
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5153
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5154
 
        _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'
 
6563
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6564
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6565
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5155
6566
      else
5156
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6567
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5157
6568
      fi
5158
6569
      ;;
5159
6570
    esac
5160
6571
 
5161
 
    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
 
6572
    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5162
6573
      runpath_var=
5163
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5164
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5165
 
      _LT_TAGVAR(whole_archive_flag_spec, $1)=
 
6574
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 
6575
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 
6576
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5166
6577
    fi
5167
6578
  else
5168
6579
    # PORTME fill in a description of your system's linker (not GNU ld)
5169
6580
    case $host_os in
5170
6581
    aix3*)
5171
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5172
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
5173
 
      _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'
 
6582
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6583
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 
6584
      _LT_AC_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'
5174
6585
      # Note: this linker hardcodes the directories in LIBPATH if there
5175
6586
      # are no directories specified by -L.
5176
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6587
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5177
6588
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5178
6589
        # Neither direct hardcoding nor static linking is supported with a
5179
6590
        # broken collect2.
5180
 
        _LT_TAGVAR(hardcode_direct, $1)=unsupported
 
6591
        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5181
6592
      fi
5182
6593
      ;;
5183
6594
 
5191
6602
      else
5192
6603
        # If we're using GNU nm, then we don't want the "-C" option.
5193
6604
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
5194
 
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5195
 
          _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'
 
6605
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6606
          _LT_AC_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'
5196
6607
        else
5197
 
          _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'
 
6608
          _LT_AC_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'
5198
6609
        fi
5199
6610
        aix_use_runtimelinking=no
5200
6611
 
5203
6614
        # need to do runtime linking.
5204
6615
        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5205
6616
          for ld_flag in $LDFLAGS; do
5206
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5207
 
            aix_use_runtimelinking=yes
5208
 
            break
5209
 
          fi
 
6617
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6618
            aix_use_runtimelinking=yes
 
6619
            break
 
6620
          fi
5210
6621
          done
5211
6622
          ;;
5212
6623
        esac
5221
6632
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5222
6633
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5223
6634
 
5224
 
      _LT_TAGVAR(archive_cmds, $1)=''
5225
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5226
 
      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5227
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5228
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5229
 
      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
 
6635
      _LT_AC_TAGVAR(archive_cmds, $1)=''
 
6636
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6637
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
6638
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5230
6639
 
5231
6640
      if test "$GCC" = yes; then
5232
6641
        case $host_os in aix4.[[012]]|aix4.[[012]].*)
5233
6642
        # We only want to do this on AIX 4.2 and lower, the check
5234
6643
        # below for broken collect2 doesn't work under 4.3+
5235
6644
          collect2name=`${CC} -print-prog-name=collect2`
5236
 
          if test -f "$collect2name" &&
5237
 
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
6645
          if test -f "$collect2name" && \
 
6646
           strings "$collect2name" | grep resolve_lib_name >/dev/null
5238
6647
          then
5239
 
          # We have reworked collect2
5240
 
          :
 
6648
          # We have reworked collect2
 
6649
          :
5241
6650
          else
5242
 
          # We have old collect2
5243
 
          _LT_TAGVAR(hardcode_direct, $1)=unsupported
5244
 
          # It fails to find uninstalled libraries when the uninstalled
5245
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
5246
 
          # to unsupported forces relinking
5247
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
5248
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5249
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=
 
6651
          # We have old collect2
 
6652
          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 
6653
          # It fails to find uninstalled libraries when the uninstalled
 
6654
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6655
          # to unsupported forces relinking
 
6656
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6657
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6658
          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5250
6659
          fi
5251
6660
          ;;
5252
6661
        esac
5254
6663
        if test "$aix_use_runtimelinking" = yes; then
5255
6664
          shared_flag="$shared_flag "'${wl}-G'
5256
6665
        fi
5257
 
        _LT_TAGVAR(link_all_deplibs, $1)=no
5258
6666
      else
5259
6667
        # not using gcc
5260
6668
        if test "$host_cpu" = ia64; then
5261
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5262
 
        # chokes on -Wl,-G. The following line is correct:
 
6669
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6670
        # chokes on -Wl,-G. The following line is correct:
5263
6671
          shared_flag='-G'
5264
6672
        else
5265
6673
          if test "$aix_use_runtimelinking" = yes; then
5272
6680
 
5273
6681
      # It seems that -bexpall does not export symbols beginning with
5274
6682
      # underscore (_), so it is better to generate a list of symbols to export.
5275
 
      _LT_TAGVAR(always_export_symbols, $1)=yes
 
6683
      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5276
6684
      if test "$aix_use_runtimelinking" = yes; then
5277
6685
        # Warning - without using the other runtime loading flags (-brtl),
5278
6686
        # -berok will link without error, but may produce a broken library.
5279
 
        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5280
 
        # Determine the default libpath from the value encoded in an
5281
 
        # empty executable.
5282
 
        _LT_SYS_MODULE_PATH_AIX
5283
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5284
 
        _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"
5285
 
      else
 
6687
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 
6688
       # Determine the default libpath from the value encoded in an empty executable.
 
6689
       _LT_AC_SYS_LIBPATH_AIX
 
6690
       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6691
        _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6692
       else
5286
6693
        if test "$host_cpu" = ia64; then
5287
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5288
 
          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5289
 
          _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"
 
6694
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 
6695
          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 
6696
          _LT_AC_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"
5290
6697
        else
5291
 
         # Determine the default libpath from the value encoded in an
5292
 
         # empty executable.
5293
 
         _LT_SYS_MODULE_PATH_AIX
5294
 
         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6698
         # Determine the default libpath from the value encoded in an empty executable.
 
6699
         _LT_AC_SYS_LIBPATH_AIX
 
6700
         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5295
6701
          # Warning - without using the other run time loading flags,
5296
6702
          # -berok will link without error, but may produce a broken library.
5297
 
          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5298
 
          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 
6703
          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 
6704
          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5299
6705
          # Exported symbols can be pulled into shared objects from archives
5300
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5301
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
6706
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 
6707
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5302
6708
          # This is similar to how AIX traditionally builds its shared libraries.
5303
 
          _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'
 
6709
          _LT_AC_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'
5304
6710
        fi
5305
6711
      fi
5306
6712
      ;;
5307
6713
 
5308
6714
    amigaos*)
5309
 
      case $host_cpu in
5310
 
      powerpc)
5311
 
            # see comment about AmigaOS4 .so support
5312
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5313
 
            _LT_TAGVAR(archive_expsym_cmds, $1)=''
5314
 
        ;;
5315
 
      m68k)
5316
 
            _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)'
5317
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5318
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5319
 
        ;;
5320
 
      esac
 
6715
      _LT_AC_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)'
 
6716
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6717
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6718
      # see comment about different semantics on the GNU ld section
 
6719
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5321
6720
      ;;
5322
6721
 
5323
6722
    bsdi[[45]]*)
5324
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 
6723
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5325
6724
      ;;
5326
6725
 
5327
6726
    cygwin* | mingw* | pw32*)
5329
6728
      # Microsoft Visual C++.
5330
6729
      # hardcode_libdir_flag_spec is actually meaningless, as there is
5331
6730
      # no search path for DLLs.
5332
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5333
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6731
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 
6732
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5334
6733
      # Tell ltmain to make .lib files, not .a files.
5335
6734
      libext=lib
5336
6735
      # Tell ltmain to make .dll files, not .so files.
5337
6736
      shrext_cmds=".dll"
5338
6737
      # FIXME: Setting linknames here is a bad hack.
5339
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6738
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5340
6739
      # The linker will automatically build a .lib file if we build a DLL.
5341
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 
6740
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5342
6741
      # FIXME: Should let the user specify the lib program.
5343
 
      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5344
 
      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5345
 
      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 
6742
      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
6743
      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
 
6744
      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5346
6745
      ;;
5347
6746
 
5348
6747
    darwin* | rhapsody*)
5349
 
      _LT_DARWIN_LINKER_FEATURES($1)
 
6748
      case $host_os in
 
6749
        rhapsody* | darwin1.[[012]])
 
6750
         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 
6751
         ;;
 
6752
       *) # Darwin 1.3 on
 
6753
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6754
           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6755
         else
 
6756
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6757
             10.[[012]])
 
6758
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6759
               ;;
 
6760
             10.*)
 
6761
               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 
6762
               ;;
 
6763
           esac
 
6764
         fi
 
6765
         ;;
 
6766
      esac
 
6767
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
6768
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6769
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 
6770
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 
6771
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 
6772
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
6773
    if test "$GCC" = yes ; then
 
6774
        output_verbose_link_cmd='echo'
 
6775
        _LT_AC_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}"
 
6776
        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
6777
        _LT_AC_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}"
 
6778
        _LT_AC_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}"
 
6779
    else
 
6780
      case $cc_basename in
 
6781
        xlc*)
 
6782
         output_verbose_link_cmd='echo'
 
6783
         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
6784
         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6785
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6786
         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6787
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6788
          ;;
 
6789
       *)
 
6790
         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6791
          ;;
 
6792
      esac
 
6793
    fi
5350
6794
      ;;
5351
6795
 
5352
6796
    dgux*)
5353
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5354
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5355
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6797
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6798
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6799
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5356
6800
      ;;
5357
6801
 
5358
6802
    freebsd1*)
5359
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
6803
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5360
6804
      ;;
5361
6805
 
5362
6806
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5364
6808
    # does not break anything, and helps significantly (at the cost of a little
5365
6809
    # extra space).
5366
6810
    freebsd2.2*)
5367
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5368
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5369
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5370
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6811
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6812
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6813
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6814
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5371
6815
      ;;
5372
6816
 
5373
6817
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5374
6818
    freebsd2*)
5375
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5376
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5377
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5378
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6819
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6820
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6821
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6822
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5379
6823
      ;;
5380
6824
 
5381
6825
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5382
6826
    freebsd* | dragonfly*)
5383
 
      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5384
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5385
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5386
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6827
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6828
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6829
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6830
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5387
6831
      ;;
5388
6832
 
5389
6833
    hpux9*)
5390
6834
      if test "$GCC" = yes; then
5391
 
        _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'
 
6835
        _LT_AC_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'
5392
6836
      else
5393
 
        _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'
 
6837
        _LT_AC_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'
5394
6838
      fi
5395
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5396
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5397
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
 
6839
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6840
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6841
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5398
6842
 
5399
6843
      # hardcode_minus_L: Not really in the search PATH,
5400
6844
      # but as the default location of the library.
5401
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5402
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6845
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6846
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5403
6847
      ;;
5404
6848
 
5405
6849
    hpux10*)
5406
6850
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5407
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6851
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5408
6852
      else
5409
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6853
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5410
6854
      fi
5411
6855
      if test "$with_gnu_ld" = no; then
5412
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5413
 
        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5414
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5415
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5416
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5417
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6856
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6857
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6858
 
 
6859
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6860
        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6861
 
5418
6862
        # hardcode_minus_L: Not really in the search PATH,
5419
6863
        # but as the default location of the library.
5420
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6864
        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5421
6865
      fi
5422
6866
      ;;
5423
6867
 
5425
6869
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5426
6870
        case $host_cpu in
5427
6871
        hppa*64*)
5428
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6872
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5429
6873
          ;;
5430
6874
        ia64*)
5431
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6875
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5432
6876
          ;;
5433
6877
        *)
5434
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6878
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5435
6879
          ;;
5436
6880
        esac
5437
6881
      else
5438
6882
        case $host_cpu in
5439
6883
        hppa*64*)
5440
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6884
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5441
6885
          ;;
5442
6886
        ia64*)
5443
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6887
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5444
6888
          ;;
5445
6889
        *)
5446
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6890
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5447
6891
          ;;
5448
6892
        esac
5449
6893
      fi
5450
6894
      if test "$with_gnu_ld" = no; then
5451
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5452
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6895
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 
6896
        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5453
6897
 
5454
6898
        case $host_cpu in
5455
6899
        hppa*64*|ia64*)
5456
 
          _LT_TAGVAR(hardcode_direct, $1)=no
5457
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6900
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
 
6901
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
 
6902
          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5458
6903
          ;;
5459
6904
        *)
5460
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
5461
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5462
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6905
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6906
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5463
6907
 
5464
6908
          # hardcode_minus_L: Not really in the search PATH,
5465
6909
          # but as the default location of the library.
5466
 
          _LT_TAGVAR(hardcode_minus_L, $1)=yes
 
6910
          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5467
6911
          ;;
5468
6912
        esac
5469
6913
      fi
5471
6915
 
5472
6916
    irix5* | irix6* | nonstopux*)
5473
6917
      if test "$GCC" = yes; then
5474
 
        _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'
5475
 
        # Try to use the -exported_symbol ld option, if it does not
5476
 
        # work, assume that -exports_file does not work either and
5477
 
        # implicitly export all symbols.
5478
 
        save_LDFLAGS="$LDFLAGS"
5479
 
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5480
 
        AC_LINK_IFELSE(int foo(void) {},
5481
 
          _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'
5482
 
        )
5483
 
        LDFLAGS="$save_LDFLAGS"
 
6918
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5484
6919
      else
5485
 
        _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'
5486
 
        _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'
 
6920
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6921
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5487
6922
      fi
5488
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5489
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5490
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5491
 
      _LT_TAGVAR(inherit_rpath, $1)=yes
5492
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
6923
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6924
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6925
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5493
6926
      ;;
5494
6927
 
5495
6928
    netbsd* | netbsdelf*-gnu)
5496
 
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5497
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6929
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6930
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5498
6931
      else
5499
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6932
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5500
6933
      fi
5501
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5502
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5503
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6934
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6935
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6936
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5504
6937
      ;;
5505
6938
 
5506
6939
    newsos6)
5507
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5508
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5509
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5510
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5511
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5512
 
      ;;
5513
 
 
5514
 
    *nto* | *qnx*)
 
6940
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6941
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6942
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6943
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 
6944
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5515
6945
      ;;
5516
6946
 
5517
6947
    openbsd*)
5518
6948
      if test -f /usr/libexec/ld.so; then
5519
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
5520
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5521
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5522
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5523
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5524
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5525
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5526
 
          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 
6949
        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
6950
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
6951
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6952
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6953
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6954
          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6955
          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5527
6956
        else
5528
6957
          case $host_os in
5529
6958
           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5530
 
             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5531
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
6959
             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6960
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5532
6961
             ;;
5533
6962
           *)
5534
 
             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5535
 
             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 
6963
             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6964
             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5536
6965
             ;;
5537
6966
          esac
5538
 
        fi
 
6967
        fi
5539
6968
      else
5540
 
        _LT_TAGVAR(ld_shlibs, $1)=no
 
6969
        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5541
6970
      fi
5542
6971
      ;;
5543
6972
 
5544
6973
    os2*)
5545
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5546
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5547
 
      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5548
 
      _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'
5549
 
      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6974
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
6975
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
6976
      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 
6977
      _LT_AC_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'
 
6978
      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5550
6979
      ;;
5551
6980
 
5552
6981
    osf3*)
5553
6982
      if test "$GCC" = yes; then
5554
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5555
 
        _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'
 
6983
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6984
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5556
6985
      else
5557
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5558
 
        _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'
 
6986
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
6987
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5559
6988
      fi
5560
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5561
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5562
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
6989
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6990
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5563
6991
      ;;
5564
6992
 
5565
6993
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
5566
6994
      if test "$GCC" = yes; then
5567
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5568
 
        _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'
5569
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 
6995
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 
6996
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6997
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5570
6998
      else
5571
 
        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5572
 
        _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'
5573
 
        _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~
5574
 
        $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'
 
6999
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 
7000
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
7001
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7002
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5575
7003
 
5576
7004
        # Both c and cxx compiler support -rpath directly
5577
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 
7005
        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5578
7006
      fi
5579
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5580
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 
7007
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5581
7008
      ;;
5582
7009
 
5583
7010
    solaris*)
5584
 
      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 
7011
      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5585
7012
      if test "$GCC" = yes; then
5586
7013
        wlarc='${wl}'
5587
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5588
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5589
 
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
7014
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7015
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7016
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5590
7017
      else
5591
 
        case `$CC -V 2>&1` in
5592
 
        *"Compilers 5.0"*)
5593
 
          wlarc=''
5594
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5595
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5596
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5597
 
          ;;
5598
 
        *)
5599
 
          wlarc='${wl}'
5600
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5601
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5602
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5603
 
          ;;
5604
 
        esac
 
7018
        wlarc=''
 
7019
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7020
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7021
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5605
7022
      fi
5606
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5607
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7023
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 
7024
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5608
7025
      case $host_os in
5609
7026
      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5610
7027
      *)
5611
7028
        # The compiler driver will combine and reorder linker options,
5612
7029
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
5613
7030
        # but is careful enough not to reorder.
5614
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7031
        # Supported since Solaris 2.6 (maybe 2.5.1?)
5615
7032
        if test "$GCC" = yes; then
5616
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
7033
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5617
7034
        else
5618
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 
7035
          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5619
7036
        fi
5620
7037
        ;;
5621
7038
      esac
5622
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
 
7039
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5623
7040
      ;;
5624
7041
 
5625
7042
    sunos4*)
5626
7043
      if test "x$host_vendor" = xsequent; then
5627
7044
        # Use $CC to link under sequent, because it throws in some extra .o
5628
7045
        # files that make .init and .fini sections work.
5629
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7046
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5630
7047
      else
5631
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7048
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5632
7049
      fi
5633
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5634
 
      _LT_TAGVAR(hardcode_direct, $1)=yes
5635
 
      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5636
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7050
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7051
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 
7052
      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 
7053
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5637
7054
      ;;
5638
7055
 
5639
7056
    sysv4)
5640
7057
      case $host_vendor in
5641
7058
        sni)
5642
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5643
 
          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 
7059
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7060
          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5644
7061
        ;;
5645
7062
        siemens)
5646
7063
          ## LD is ld it makes a PLAMLIB
5647
7064
          ## CC just makes a GrossModule.
5648
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5649
 
          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5650
 
          _LT_TAGVAR(hardcode_direct, $1)=no
 
7065
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7066
          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 
7067
          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5651
7068
        ;;
5652
7069
        motorola)
5653
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5654
 
          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 
7070
          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7071
          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5655
7072
        ;;
5656
7073
      esac
5657
7074
      runpath_var='LD_RUN_PATH'
5658
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7075
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5659
7076
      ;;
5660
7077
 
5661
7078
    sysv4.3*)
5662
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5663
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5664
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 
7079
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7080
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7081
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5665
7082
      ;;
5666
7083
 
5667
7084
    sysv4*MP*)
5668
7085
      if test -d /usr/nec; then
5669
 
        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5670
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7086
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7087
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5671
7088
        runpath_var=LD_RUN_PATH
5672
7089
        hardcode_runpath_var=yes
5673
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
 
7090
        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5674
7091
      fi
5675
7092
      ;;
5676
7093
 
5677
7094
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5678
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5679
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5680
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7095
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7096
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7097
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5681
7098
      runpath_var='LD_RUN_PATH'
5682
7099
 
5683
7100
      if test "$GCC" = yes; then
5684
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5685
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7101
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7102
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5686
7103
      else
5687
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5688
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7104
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7105
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5689
7106
      fi
5690
7107
      ;;
5691
7108
 
5696
7113
      # ever link correctly.  If we're not using GNU ld we use -z text
5697
7114
      # though, which does catch some bad symbols but isn't as heavy-handed
5698
7115
      # as -z defs.
5699
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5700
 
      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5701
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5702
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5703
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5704
 
      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5705
 
      _LT_TAGVAR(link_all_deplibs, $1)=yes
5706
 
      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 
7116
      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 
7117
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 
7118
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 
7119
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7120
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
7121
      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 
7122
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 
7123
      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5707
7124
      runpath_var='LD_RUN_PATH'
5708
7125
 
5709
7126
      if test "$GCC" = yes; then
5710
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5711
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7127
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7128
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5712
7129
      else
5713
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5714
 
        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7130
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7131
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5715
7132
      fi
5716
7133
      ;;
5717
7134
 
5718
7135
    uts4*)
5719
 
      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5720
 
      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5721
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 
7136
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7137
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 
7138
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5722
7139
      ;;
5723
7140
 
5724
7141
    *)
5725
 
      _LT_TAGVAR(ld_shlibs, $1)=no
 
7142
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5726
7143
      ;;
5727
7144
    esac
5728
 
 
5729
 
    if test x$host_vendor = xsni; then
5730
 
      case $host in
5731
 
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5732
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5733
 
        ;;
5734
 
      esac
5735
 
    fi
5736
7145
  fi
5737
7146
])
5738
 
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5739
 
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5740
 
 
5741
 
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5742
 
 
5743
 
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5744
 
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5745
 
_LT_DECL([], [extract_expsyms_cmds], [2],
5746
 
    [The commands to extract the exported symbol list from a shared archive])
 
7147
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 
7148
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5747
7149
 
5748
7150
#
5749
7151
# Do we need to explicitly link libc?
5750
7152
#
5751
 
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 
7153
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5752
7154
x|xyes)
5753
7155
  # Assume -lc should be added
5754
 
  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7156
  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5755
7157
 
5756
7158
  if test "$enable_shared" = yes && test "$GCC" = yes; then
5757
 
    case $_LT_TAGVAR(archive_cmds, $1) in
 
7159
    case $_LT_AC_TAGVAR(archive_cmds, $1) in
5758
7160
    *'~'*)
5759
7161
      # FIXME: we may have to deal with multi-command sequences.
5760
7162
      ;;
5763
7165
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
5764
7166
      # to ld, don't add -lc before -lgcc.
5765
7167
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5766
 
      $RM conftest*
 
7168
      $rm conftest*
5767
7169
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5768
7170
 
5769
7171
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5771
7173
        lib=conftest
5772
7174
        libobjs=conftest.$ac_objext
5773
7175
        deplibs=
5774
 
        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5775
 
        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 
7176
        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 
7177
        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5776
7178
        compiler_flags=-v
5777
7179
        linker_flags=-v
5778
7180
        verstring=
5779
7181
        output_objdir=.
5780
7182
        libname=conftest
5781
 
        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5782
 
        _LT_TAGVAR(allow_undefined_flag, $1)=
5783
 
        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 
7183
        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
 
7184
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 
7185
        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5784
7186
        then
5785
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 
7187
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5786
7188
        else
5787
 
          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 
7189
          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5788
7190
        fi
5789
 
        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 
7191
        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5790
7192
      else
5791
7193
        cat conftest.err 1>&5
5792
7194
      fi
5793
 
      $RM conftest*
5794
 
      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
 
7195
      $rm conftest*
 
7196
      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5795
7197
      ;;
5796
7198
    esac
5797
7199
  fi
5798
7200
  ;;
5799
7201
esac
5800
 
 
5801
 
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5802
 
    [Whether or not to add -lc for building shared libraries])
5803
 
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5804
 
    [enable_shared_with_static_runtimes], [0],
5805
 
    [Whether or not to disallow shared libs when runtime libs are static])
5806
 
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5807
 
    [Compiler flag to allow reflexive dlopens])
5808
 
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5809
 
    [Compiler flag to generate shared objects directly from archives])
5810
 
_LT_TAGDECL([], [compiler_needs_object], [1],
5811
 
    [Whether the compiler copes with passing no objects directly])
5812
 
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5813
 
    [Create an old-style archive from a shared archive])
5814
 
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5815
 
    [Create a temporary old-style archive to link instead of a shared archive])
5816
 
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5817
 
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5818
 
_LT_TAGDECL([], [module_cmds], [2],
5819
 
    [Commands used to build a loadable module if different from building
5820
 
    a shared archive.])
5821
 
_LT_TAGDECL([], [module_expsym_cmds], [2])
5822
 
_LT_TAGDECL([], [with_gnu_ld], [1],
5823
 
    [Whether we are building with GNU ld or not])
5824
 
_LT_TAGDECL([], [allow_undefined_flag], [1],
5825
 
    [Flag that allows shared libraries with undefined symbols to be built])
5826
 
_LT_TAGDECL([], [no_undefined_flag], [1],
5827
 
    [Flag that enforces no undefined symbols])
5828
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5829
 
    [Flag to hardcode $libdir into a binary during linking.
5830
 
    This must work even if $libdir does not exist])
5831
 
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5832
 
    [[If ld is used when linking, flag to hardcode $libdir into a binary
5833
 
    during linking.  This must work even if $libdir does not exist]])
5834
 
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5835
 
    [Whether we need a single "-rpath" flag with a separated argument])
5836
 
_LT_TAGDECL([], [hardcode_direct], [0],
5837
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5838
 
    DIR into the resulting binary])
5839
 
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5840
 
    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5841
 
    DIR into the resulting binary and the resulting library dependency is
5842
 
    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5843
 
    library is relocated])
5844
 
_LT_TAGDECL([], [hardcode_minus_L], [0],
5845
 
    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5846
 
    into the resulting binary])
5847
 
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5848
 
    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5849
 
    into the resulting binary])
5850
 
_LT_TAGDECL([], [hardcode_automatic], [0],
5851
 
    [Set to "yes" if building a shared library automatically hardcodes DIR
5852
 
    into the library and all subsequent libraries and executables linked
5853
 
    against it])
5854
 
_LT_TAGDECL([], [inherit_rpath], [0],
5855
 
    [Set to yes if linker adds runtime paths of dependent libraries
5856
 
    to runtime path list])
5857
 
_LT_TAGDECL([], [link_all_deplibs], [0],
5858
 
    [Whether libtool must link a program against all its dependency libraries])
5859
 
_LT_TAGDECL([], [fix_srcfile_path], [1],
5860
 
    [Fix the shell variable $srcfile for the compiler])
5861
 
_LT_TAGDECL([], [always_export_symbols], [0],
5862
 
    [Set to "yes" if exported symbols are required])
5863
 
_LT_TAGDECL([], [export_symbols_cmds], [2],
5864
 
    [The commands to list exported symbols])
5865
 
_LT_TAGDECL([], [exclude_expsyms], [1],
5866
 
    [Symbols that should not be listed in the preloaded symbols])
5867
 
_LT_TAGDECL([], [include_expsyms], [1],
5868
 
    [Symbols that must always be exported])
5869
 
_LT_TAGDECL([], [prelink_cmds], [2],
5870
 
    [Commands necessary for linking programs (against libraries) with templates])
5871
 
_LT_TAGDECL([], [file_list_spec], [1],
5872
 
    [Specify filename containing input files])
5873
 
dnl FIXME: Not yet implemented
5874
 
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5875
 
dnl    [Compiler flag to generate thread safe objects])
5876
 
])# _LT_LINKER_SHLIBS
5877
 
 
5878
 
 
5879
 
# _LT_LANG_C_CONFIG([TAG])
5880
 
# ------------------------
5881
 
# Ensure that the configuration variables for a C compiler are suitably
5882
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5883
 
# the compiler configuration to `libtool'.
5884
 
m4_defun([_LT_LANG_C_CONFIG],
5885
 
[m4_require([_LT_DECL_EGREP])dnl
5886
 
lt_save_CC="$CC"
5887
 
AC_LANG_PUSH(C)
5888
 
 
5889
 
# Source file extension for C test sources.
5890
 
ac_ext=c
5891
 
 
5892
 
# Object file extension for compiled C test sources.
5893
 
objext=o
5894
 
_LT_TAGVAR(objext, $1)=$objext
5895
 
 
5896
 
# Code to be used in simple compile tests
5897
 
lt_simple_compile_test_code="int some_variable = 0;"
5898
 
 
5899
 
# Code to be used in simple link tests
5900
 
lt_simple_link_test_code='int main(){return(0);}'
5901
 
 
5902
 
_LT_TAG_COMPILER
5903
 
# Save the default compiler, since it gets overwritten when the other
5904
 
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5905
 
compiler_DEFAULT=$CC
5906
 
 
5907
 
# save warnings/boilerplate of simple test code
5908
 
_LT_COMPILER_BOILERPLATE
5909
 
_LT_LINKER_BOILERPLATE
5910
 
 
5911
 
if test -n "$compiler"; then
5912
 
  _LT_COMPILER_NO_RTTI($1)
5913
 
  _LT_COMPILER_PIC($1)
5914
 
  _LT_COMPILER_C_O($1)
5915
 
  _LT_COMPILER_FILE_LOCKS($1)
5916
 
  _LT_LINKER_SHLIBS($1)
5917
 
  _LT_SYS_DYNAMIC_LINKER($1)
5918
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
5919
 
  LT_SYS_DLOPEN_SELF
5920
 
  _LT_CMD_STRIPLIB
5921
 
 
5922
 
  # Report which library types will actually be built
5923
 
  AC_MSG_CHECKING([if libtool supports shared libraries])
5924
 
  AC_MSG_RESULT([$can_build_shared])
5925
 
 
5926
 
  AC_MSG_CHECKING([whether to build shared libraries])
5927
 
  test "$can_build_shared" = "no" && enable_shared=no
5928
 
 
5929
 
  # On AIX, shared libraries and static libraries use the same namespace, and
5930
 
  # are all built from PIC.
5931
 
  case $host_os in
5932
 
  aix3*)
5933
 
    test "$enable_shared" = yes && enable_static=no
5934
 
    if test -n "$RANLIB"; then
5935
 
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5936
 
      postinstall_cmds='$RANLIB $lib'
5937
 
    fi
5938
 
    ;;
5939
 
 
5940
 
  aix[[4-9]]*)
5941
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5942
 
      test "$enable_shared" = yes && enable_static=no
5943
 
    fi
5944
 
    ;;
5945
 
  esac
5946
 
  AC_MSG_RESULT([$enable_shared])
5947
 
 
5948
 
  AC_MSG_CHECKING([whether to build static libraries])
5949
 
  # Make sure either enable_shared or enable_static is yes.
5950
 
  test "$enable_shared" = yes || enable_static=yes
5951
 
  AC_MSG_RESULT([$enable_static])
5952
 
 
5953
 
  _LT_CONFIG($1)
5954
 
fi
5955
 
AC_LANG_POP
5956
 
CC="$lt_save_CC"
5957
 
])# _LT_LANG_C_CONFIG
5958
 
 
5959
 
 
5960
 
# _LT_PROG_CXX
5961
 
# ------------
5962
 
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5963
 
# compiler, we have our own version here.
5964
 
m4_defun([_LT_PROG_CXX],
5965
 
[
5966
 
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5967
 
AC_PROG_CXX
5968
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5969
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5970
 
    (test "X$CXX" != "Xg++"))) ; then
5971
 
  AC_PROG_CXXCPP
5972
 
else
5973
 
  _lt_caught_CXX_error=yes
5974
 
fi
5975
 
popdef([AC_MSG_ERROR])
5976
 
])# _LT_PROG_CXX
5977
 
 
5978
 
dnl aclocal-1.4 backwards compatibility:
5979
 
dnl AC_DEFUN([_LT_PROG_CXX], [])
5980
 
 
5981
 
 
5982
 
# _LT_LANG_CXX_CONFIG([TAG])
5983
 
# --------------------------
5984
 
# Ensure that the configuration variables for a C++ compiler are suitably
5985
 
# defined.  These variables are subsequently used by _LT_CONFIG to write
5986
 
# the compiler configuration to `libtool'.
5987
 
m4_defun([_LT_LANG_CXX_CONFIG],
5988
 
[AC_REQUIRE([_LT_PROG_CXX])dnl
5989
 
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5990
 
m4_require([_LT_DECL_EGREP])dnl
5991
 
 
5992
 
AC_LANG_PUSH(C++)
5993
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5994
 
_LT_TAGVAR(allow_undefined_flag, $1)=
5995
 
_LT_TAGVAR(always_export_symbols, $1)=no
5996
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
5997
 
_LT_TAGVAR(compiler_needs_object, $1)=no
5998
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5999
 
_LT_TAGVAR(hardcode_direct, $1)=no
6000
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6001
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6002
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6003
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6004
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
6005
 
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6006
 
_LT_TAGVAR(hardcode_automatic, $1)=no
6007
 
_LT_TAGVAR(inherit_rpath, $1)=no
6008
 
_LT_TAGVAR(module_cmds, $1)=
6009
 
_LT_TAGVAR(module_expsym_cmds, $1)=
6010
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6011
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6012
 
_LT_TAGVAR(no_undefined_flag, $1)=
6013
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6014
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6015
 
 
6016
 
# Source file extension for C++ test sources.
6017
 
ac_ext=cpp
6018
 
 
6019
 
# Object file extension for compiled C++ test sources.
6020
 
objext=o
6021
 
_LT_TAGVAR(objext, $1)=$objext
6022
 
 
6023
 
# No sense in running all these tests if we already determined that
6024
 
# the CXX compiler isn't working.  Some variables (like enable_shared)
6025
 
# are currently assumed to apply to all compilers on this platform,
6026
 
# and will be corrupted by setting them based on a non-working compiler.
6027
 
if test "$_lt_caught_CXX_error" != yes; then
6028
 
  # Code to be used in simple compile tests
6029
 
  lt_simple_compile_test_code="int some_variable = 0;"
6030
 
 
6031
 
  # Code to be used in simple link tests
6032
 
  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6033
 
 
6034
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6035
 
  _LT_TAG_COMPILER
6036
 
 
6037
 
  # save warnings/boilerplate of simple test code
6038
 
  _LT_COMPILER_BOILERPLATE
6039
 
  _LT_LINKER_BOILERPLATE
6040
 
 
6041
 
  # Allow CC to be a program name with arguments.
6042
 
  lt_save_CC=$CC
6043
 
  lt_save_LD=$LD
6044
 
  lt_save_GCC=$GCC
6045
 
  GCC=$GXX
6046
 
  lt_save_with_gnu_ld=$with_gnu_ld
6047
 
  lt_save_path_LD=$lt_cv_path_LD
6048
 
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6049
 
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6050
 
  else
6051
 
    $as_unset lt_cv_prog_gnu_ld
6052
 
  fi
6053
 
  if test -n "${lt_cv_path_LDCXX+set}"; then
6054
 
    lt_cv_path_LD=$lt_cv_path_LDCXX
6055
 
  else
6056
 
    $as_unset lt_cv_path_LD
6057
 
  fi
6058
 
  test -z "${LDCXX+set}" || LD=$LDCXX
6059
 
  CC=${CXX-"c++"}
6060
 
  compiler=$CC
6061
 
  _LT_TAGVAR(compiler, $1)=$CC
6062
 
  _LT_CC_BASENAME([$compiler])
6063
 
 
6064
 
  if test -n "$compiler"; then
6065
 
    # We don't want -fno-exception when compiling C++ code, so set the
6066
 
    # no_builtin_flag separately
6067
 
    if test "$GXX" = yes; then
6068
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6069
 
    else
6070
 
      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6071
 
    fi
6072
 
 
6073
 
    if test "$GXX" = yes; then
6074
 
      # Set up default GNU C++ configuration
6075
 
 
6076
 
      LT_PATH_LD
6077
 
 
6078
 
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
6079
 
      # archiving commands below assume that GNU ld is being used.
6080
 
      if test "$with_gnu_ld" = yes; then
6081
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6082
 
        _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'
6083
 
 
6084
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6085
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6086
 
 
6087
 
        # If archive_cmds runs LD, not CC, wlarc should be empty
6088
 
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6089
 
        #     investigate it a little bit more. (MM)
6090
 
        wlarc='${wl}'
6091
 
 
6092
 
        # ancient GNU ld didn't support --whole-archive et. al.
6093
 
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6094
 
          $GREP 'no-whole-archive' > /dev/null; then
6095
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6096
 
        else
6097
 
          _LT_TAGVAR(whole_archive_flag_spec, $1)=
6098
 
        fi
6099
 
      else
6100
 
        with_gnu_ld=no
6101
 
        wlarc=
6102
 
 
6103
 
        # A generic and very simple default shared library creation
6104
 
        # command for GNU C++ for the case where it uses the native
6105
 
        # linker, instead of GNU ld.  If possible, this setting should
6106
 
        # overridden to take advantage of the native linker features on
6107
 
        # the platform it is being used on.
6108
 
        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6109
 
      fi
6110
 
 
6111
 
      # Commands to make compiler produce verbose output that lists
6112
 
      # what "hidden" libraries, object files and flags are used when
6113
 
      # linking a shared library.
6114
 
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6115
 
 
6116
 
    else
6117
 
      GXX=no
6118
 
      with_gnu_ld=no
6119
 
      wlarc=
6120
 
    fi
6121
 
 
6122
 
    # PORTME: fill in a description of your system's C++ link characteristics
6123
 
    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6124
 
    _LT_TAGVAR(ld_shlibs, $1)=yes
6125
 
    case $host_os in
6126
 
      aix3*)
6127
 
        # FIXME: insert proper C++ library support
6128
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6129
 
        ;;
6130
 
      aix[[4-9]]*)
6131
 
        if test "$host_cpu" = ia64; then
6132
 
          # On IA64, the linker does run time linking by default, so we don't
6133
 
          # have to do anything special.
6134
 
          aix_use_runtimelinking=no
6135
 
          exp_sym_flag='-Bexport'
6136
 
          no_entry_flag=""
6137
 
        else
6138
 
          aix_use_runtimelinking=no
6139
 
 
6140
 
          # Test if we are trying to use run time linking or normal
6141
 
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6142
 
          # need to do runtime linking.
6143
 
          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6144
 
            for ld_flag in $LDFLAGS; do
6145
 
              case $ld_flag in
6146
 
              *-brtl*)
6147
 
                aix_use_runtimelinking=yes
6148
 
                break
6149
 
                ;;
6150
 
              esac
6151
 
            done
6152
 
            ;;
6153
 
          esac
6154
 
 
6155
 
          exp_sym_flag='-bexport'
6156
 
          no_entry_flag='-bnoentry'
6157
 
        fi
6158
 
 
6159
 
        # When large executables or shared objects are built, AIX ld can
6160
 
        # have problems creating the table of contents.  If linking a library
6161
 
        # or program results in "error TOC overflow" add -mminimal-toc to
6162
 
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6163
 
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6164
 
 
6165
 
        _LT_TAGVAR(archive_cmds, $1)=''
6166
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6167
 
        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6168
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6169
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6170
 
        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6171
 
 
6172
 
        if test "$GXX" = yes; then
6173
 
          case $host_os in aix4.[[012]]|aix4.[[012]].*)
6174
 
          # We only want to do this on AIX 4.2 and lower, the check
6175
 
          # below for broken collect2 doesn't work under 4.3+
6176
 
          collect2name=`${CC} -print-prog-name=collect2`
6177
 
          if test -f "$collect2name" &&
6178
 
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6179
 
          then
6180
 
            # We have reworked collect2
6181
 
            :
6182
 
          else
6183
 
            # We have old collect2
6184
 
            _LT_TAGVAR(hardcode_direct, $1)=unsupported
6185
 
            # It fails to find uninstalled libraries when the uninstalled
6186
 
            # path is not listed in the libpath.  Setting hardcode_minus_L
6187
 
            # to unsupported forces relinking
6188
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes
6189
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6190
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=
6191
 
          fi
6192
 
          esac
6193
 
          shared_flag='-shared'
6194
 
          if test "$aix_use_runtimelinking" = yes; then
6195
 
            shared_flag="$shared_flag "'${wl}-G'
6196
 
          fi
6197
 
        else
6198
 
          # not using gcc
6199
 
          if test "$host_cpu" = ia64; then
6200
 
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6201
 
          # chokes on -Wl,-G. The following line is correct:
6202
 
          shared_flag='-G'
6203
 
          else
6204
 
            if test "$aix_use_runtimelinking" = yes; then
6205
 
              shared_flag='${wl}-G'
6206
 
            else
6207
 
              shared_flag='${wl}-bM:SRE'
6208
 
            fi
6209
 
          fi
6210
 
        fi
6211
 
 
6212
 
        # It seems that -bexpall does not export symbols beginning with
6213
 
        # underscore (_), so it is better to generate a list of symbols to
6214
 
        # export.
6215
 
        _LT_TAGVAR(always_export_symbols, $1)=yes
6216
 
        if test "$aix_use_runtimelinking" = yes; then
6217
 
          # Warning - without using the other runtime loading flags (-brtl),
6218
 
          # -berok will link without error, but may produce a broken library.
6219
 
          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6220
 
          # Determine the default libpath from the value encoded in an empty
6221
 
          # executable.
6222
 
          _LT_SYS_MODULE_PATH_AIX
6223
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6224
 
 
6225
 
          _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"
6226
 
        else
6227
 
          if test "$host_cpu" = ia64; then
6228
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6229
 
            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6230
 
            _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"
6231
 
          else
6232
 
            # Determine the default libpath from the value encoded in an
6233
 
            # empty executable.
6234
 
            _LT_SYS_MODULE_PATH_AIX
6235
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6236
 
            # Warning - without using the other run time loading flags,
6237
 
            # -berok will link without error, but may produce a broken library.
6238
 
            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6239
 
            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6240
 
            # Exported symbols can be pulled into shared objects from archives
6241
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6242
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6243
 
            # This is similar to how AIX traditionally builds its shared
6244
 
            # libraries.
6245
 
            _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'
6246
 
          fi
6247
 
        fi
6248
 
        ;;
6249
 
 
6250
 
      beos*)
6251
 
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6252
 
          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6253
 
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6254
 
          # support --undefined.  This deserves some investigation.  FIXME
6255
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6256
 
        else
6257
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6258
 
        fi
6259
 
        ;;
6260
 
 
6261
 
      chorus*)
6262
 
        case $cc_basename in
6263
 
          *)
6264
 
          # FIXME: insert proper C++ library support
6265
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6266
 
          ;;
6267
 
        esac
6268
 
        ;;
6269
 
 
6270
 
      cygwin* | mingw* | pw32*)
6271
 
        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6272
 
        # as there is no search path for DLLs.
6273
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6274
 
        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6275
 
        _LT_TAGVAR(always_export_symbols, $1)=no
6276
 
        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6277
 
 
6278
 
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6279
 
          _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'
6280
 
          # If the export-symbols file already is a .def file (1st line
6281
 
          # is EXPORTS), use it as is; otherwise, prepend...
6282
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6283
 
            cp $export_symbols $output_objdir/$soname.def;
6284
 
          else
6285
 
            echo EXPORTS > $output_objdir/$soname.def;
6286
 
            cat $export_symbols >> $output_objdir/$soname.def;
6287
 
          fi~
6288
 
          $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'
6289
 
        else
6290
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6291
 
        fi
6292
 
        ;;
6293
 
      darwin* | rhapsody*)
6294
 
        _LT_DARWIN_LINKER_FEATURES($1)
6295
 
        ;;
6296
 
 
6297
 
      dgux*)
6298
 
        case $cc_basename in
6299
 
          ec++*)
6300
 
            # FIXME: insert proper C++ library support
6301
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6302
 
            ;;
6303
 
          ghcx*)
6304
 
            # Green Hills C++ Compiler
6305
 
            # FIXME: insert proper C++ library support
6306
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6307
 
            ;;
6308
 
          *)
6309
 
            # FIXME: insert proper C++ library support
6310
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6311
 
            ;;
6312
 
        esac
6313
 
        ;;
6314
 
 
6315
 
      freebsd[[12]]*)
6316
 
        # C++ shared libraries reported to be fairly broken before
6317
 
        # switch to ELF
6318
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6319
 
        ;;
6320
 
 
6321
 
      freebsd-elf*)
6322
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6323
 
        ;;
6324
 
 
6325
 
      freebsd* | dragonfly*)
6326
 
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6327
 
        # conventions
6328
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6329
 
        ;;
6330
 
 
6331
 
      gnu*)
6332
 
        ;;
6333
 
 
6334
 
      hpux9*)
6335
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6336
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6337
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6338
 
        _LT_TAGVAR(hardcode_direct, $1)=yes
6339
 
        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6340
 
                                             # but as the default
6341
 
                                             # location of the library.
6342
 
 
6343
 
        case $cc_basename in
6344
 
          CC*)
6345
 
            # FIXME: insert proper C++ library support
6346
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6347
 
            ;;
6348
 
          aCC*)
6349
 
            _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'
6350
 
            # Commands to make compiler produce verbose output that lists
6351
 
            # what "hidden" libraries, object files and flags are used when
6352
 
            # linking a shared library.
6353
 
            #
6354
 
            # There doesn't appear to be a way to prevent this compiler from
6355
 
            # explicitly linking system object files so we need to strip them
6356
 
            # from the output so that they don't get included in the library
6357
 
            # dependencies.
6358
 
            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'
6359
 
            ;;
6360
 
          *)
6361
 
            if test "$GXX" = yes; then
6362
 
              _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'
6363
 
            else
6364
 
              # FIXME: insert proper C++ library support
6365
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6366
 
            fi
6367
 
            ;;
6368
 
        esac
6369
 
        ;;
6370
 
 
6371
 
      hpux10*|hpux11*)
6372
 
        if test $with_gnu_ld = no; then
6373
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6374
 
          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6375
 
 
6376
 
          case $host_cpu in
6377
 
            hppa*64*|ia64*)
6378
 
              ;;
6379
 
            *)
6380
 
              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6381
 
              ;;
6382
 
          esac
6383
 
        fi
6384
 
        case $host_cpu in
6385
 
          hppa*64*|ia64*)
6386
 
            _LT_TAGVAR(hardcode_direct, $1)=no
6387
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6388
 
            ;;
6389
 
          *)
6390
 
            _LT_TAGVAR(hardcode_direct, $1)=yes
6391
 
            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6392
 
            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6393
 
                                                 # but as the default
6394
 
                                                 # location of the library.
6395
 
            ;;
6396
 
        esac
6397
 
 
6398
 
        case $cc_basename in
6399
 
          CC*)
6400
 
            # FIXME: insert proper C++ library support
6401
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6402
 
            ;;
6403
 
          aCC*)
6404
 
            case $host_cpu in
6405
 
              hppa*64*)
6406
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6407
 
                ;;
6408
 
              ia64*)
6409
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6410
 
                ;;
6411
 
              *)
6412
 
                _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'
6413
 
                ;;
6414
 
            esac
6415
 
            # Commands to make compiler produce verbose output that lists
6416
 
            # what "hidden" libraries, object files and flags are used when
6417
 
            # linking a shared library.
6418
 
            #
6419
 
            # There doesn't appear to be a way to prevent this compiler from
6420
 
            # explicitly linking system object files so we need to strip them
6421
 
            # from the output so that they don't get included in the library
6422
 
            # dependencies.
6423
 
            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'
6424
 
            ;;
6425
 
          *)
6426
 
            if test "$GXX" = yes; then
6427
 
              if test $with_gnu_ld = no; then
6428
 
                case $host_cpu in
6429
 
                  hppa*64*)
6430
 
                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6431
 
                    ;;
6432
 
                  ia64*)
6433
 
                    _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'
6434
 
                    ;;
6435
 
                  *)
6436
 
                    _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'
6437
 
                    ;;
6438
 
                esac
6439
 
              fi
6440
 
            else
6441
 
              # FIXME: insert proper C++ library support
6442
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6443
 
            fi
6444
 
            ;;
6445
 
        esac
6446
 
        ;;
6447
 
 
6448
 
      interix[[3-9]]*)
6449
 
        _LT_TAGVAR(hardcode_direct, $1)=no
6450
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6451
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6452
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6453
 
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6454
 
        # Instead, shared libraries are loaded at an image base (0x10000000 by
6455
 
        # default) and relocated if they conflict, which is a slow very memory
6456
 
        # consuming and fragmenting process.  To avoid this, we pick a random,
6457
 
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6458
 
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6459
 
        _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'
6460
 
        _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'
6461
 
        ;;
6462
 
      irix5* | irix6*)
6463
 
        case $cc_basename in
6464
 
          CC*)
6465
 
            # SGI C++
6466
 
            _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'
6467
 
 
6468
 
            # Archives containing C++ object files must be created using
6469
 
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
6470
 
            # necessary to make sure instantiated templates are included
6471
 
            # in the archive.
6472
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6473
 
            ;;
6474
 
          *)
6475
 
            if test "$GXX" = yes; then
6476
 
              if test "$with_gnu_ld" = no; then
6477
 
                _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'
6478
 
              else
6479
 
                _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'
6480
 
              fi
6481
 
            fi
6482
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6483
 
            ;;
6484
 
        esac
6485
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6486
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6487
 
        _LT_TAGVAR(inherit_rpath, $1)=yes
6488
 
        ;;
6489
 
 
6490
 
      linux* | k*bsd*-gnu)
6491
 
        case $cc_basename in
6492
 
          KCC*)
6493
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6494
 
 
6495
 
            # KCC will only create a shared library if the output file
6496
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6497
 
            # to its proper name (with version) after linking.
6498
 
            _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'
6499
 
            _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'
6500
 
            # Commands to make compiler produce verbose output that lists
6501
 
            # what "hidden" libraries, object files and flags are used when
6502
 
            # linking a shared library.
6503
 
            #
6504
 
            # There doesn't appear to be a way to prevent this compiler from
6505
 
            # explicitly linking system object files so we need to strip them
6506
 
            # from the output so that they don't get included in the library
6507
 
            # dependencies.
6508
 
            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'
6509
 
 
6510
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6511
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6512
 
 
6513
 
            # Archives containing C++ object files must be created using
6514
 
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6515
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6516
 
            ;;
6517
 
          icpc* | ecpc* )
6518
 
            # Intel C++
6519
 
            with_gnu_ld=yes
6520
 
            # version 8.0 and above of icpc choke on multiply defined symbols
6521
 
            # if we add $predep_objects and $postdep_objects, however 7.1 and
6522
 
            # earlier do not add the objects themselves.
6523
 
            case `$CC -V 2>&1` in
6524
 
              *"Version 7."*)
6525
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6526
 
                _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'
6527
 
                ;;
6528
 
              *)  # Version 8.0 or newer
6529
 
                tmp_idyn=
6530
 
                case $host_cpu in
6531
 
                  ia64*) tmp_idyn=' -i_dynamic';;
6532
 
                esac
6533
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6534
 
                _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'
6535
 
                ;;
6536
 
            esac
6537
 
            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6538
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6539
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6540
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6541
 
            ;;
6542
 
          pgCC* | pgcpp*)
6543
 
            # Portland Group C++ compiler
6544
 
            case `$CC -V` in
6545
 
            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6546
 
              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6547
 
                rm -rf $tpldir~
6548
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6549
 
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6550
 
              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6551
 
                rm -rf $tpldir~
6552
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6553
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6554
 
                $RANLIB $oldlib'
6555
 
              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6556
 
                rm -rf $tpldir~
6557
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6558
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6559
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6560
 
                rm -rf $tpldir~
6561
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6562
 
                $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'
6563
 
              ;;
6564
 
            *) # Version 6 will use weak symbols
6565
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6566
 
              _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'
6567
 
              ;;
6568
 
            esac
6569
 
 
6570
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6571
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6572
 
            _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'
6573
 
            ;;
6574
 
          cxx*)
6575
 
            # Compaq C++
6576
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6577
 
            _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'
6578
 
 
6579
 
            runpath_var=LD_RUN_PATH
6580
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6581
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6582
 
 
6583
 
            # Commands to make compiler produce verbose output that lists
6584
 
            # what "hidden" libraries, object files and flags are used when
6585
 
            # linking a shared library.
6586
 
            #
6587
 
            # There doesn't appear to be a way to prevent this compiler from
6588
 
            # explicitly linking system object files so we need to strip them
6589
 
            # from the output so that they don't get included in the library
6590
 
            # dependencies.
6591
 
            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'
6592
 
            ;;
6593
 
          xl*)
6594
 
            # IBM XL 8.0 on PPC, with GNU ld
6595
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6596
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6597
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6598
 
            if test "x$supports_anon_versioning" = xyes; then
6599
 
              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6600
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6601
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
6602
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6603
 
            fi
6604
 
            ;;
6605
 
          *)
6606
 
            case `$CC -V 2>&1 | sed 5q` in
6607
 
            *Sun\ C*)
6608
 
              # Sun C++ 5.9
6609
 
              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6610
 
              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6611
 
              _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'
6612
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6613
 
              _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'
6614
 
              _LT_TAGVAR(compiler_needs_object, $1)=yes
6615
 
 
6616
 
              # Not sure whether something based on
6617
 
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6618
 
              # would be better.
6619
 
              output_verbose_link_cmd='echo'
6620
 
 
6621
 
              # Archives containing C++ object files must be created using
6622
 
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6623
 
              # necessary to make sure instantiated templates are included
6624
 
              # in the archive.
6625
 
              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6626
 
              ;;
6627
 
            esac
6628
 
            ;;
6629
 
        esac
6630
 
        ;;
6631
 
 
6632
 
      lynxos*)
6633
 
        # FIXME: insert proper C++ library support
6634
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6635
 
        ;;
6636
 
 
6637
 
      m88k*)
6638
 
        # FIXME: insert proper C++ library support
6639
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6640
 
        ;;
6641
 
 
6642
 
      mvs*)
6643
 
        case $cc_basename in
6644
 
          cxx*)
6645
 
            # FIXME: insert proper C++ library support
6646
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6647
 
            ;;
6648
 
          *)
6649
 
            # FIXME: insert proper C++ library support
6650
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6651
 
            ;;
6652
 
        esac
6653
 
        ;;
6654
 
 
6655
 
      netbsd*)
6656
 
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6657
 
          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6658
 
          wlarc=
6659
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6660
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6661
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6662
 
        fi
6663
 
        # Workaround some broken pre-1.5 toolchains
6664
 
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6665
 
        ;;
6666
 
 
6667
 
      *nto* | *qnx*)
6668
 
        _LT_TAGVAR(ld_shlibs, $1)=yes
6669
 
        ;;
6670
 
 
6671
 
      openbsd2*)
6672
 
        # C++ shared libraries are fairly broken
6673
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6674
 
        ;;
6675
 
 
6676
 
      openbsd*)
6677
 
        if test -f /usr/libexec/ld.so; then
6678
 
          _LT_TAGVAR(hardcode_direct, $1)=yes
6679
 
          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6680
 
          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6681
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6682
 
          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6683
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6684
 
            _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'
6685
 
            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6686
 
            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6687
 
          fi
6688
 
          output_verbose_link_cmd=echo
6689
 
        else
6690
 
          _LT_TAGVAR(ld_shlibs, $1)=no
6691
 
        fi
6692
 
        ;;
6693
 
 
6694
 
      osf3* | osf4* | osf5*)
6695
 
        case $cc_basename in
6696
 
          KCC*)
6697
 
            # Kuck and Associates, Inc. (KAI) C++ Compiler
6698
 
 
6699
 
            # KCC will only create a shared library if the output file
6700
 
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6701
 
            # to its proper name (with version) after linking.
6702
 
            _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'
6703
 
 
6704
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6705
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6706
 
 
6707
 
            # Archives containing C++ object files must be created using
6708
 
            # the KAI C++ compiler.
6709
 
            case $host in
6710
 
              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6711
 
              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6712
 
            esac
6713
 
            ;;
6714
 
          RCC*)
6715
 
            # Rational C++ 2.4.1
6716
 
            # FIXME: insert proper C++ library support
6717
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6718
 
            ;;
6719
 
          cxx*)
6720
 
            case $host in
6721
 
              osf3*)
6722
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6723
 
                _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'
6724
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6725
 
                ;;
6726
 
              *)
6727
 
                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6728
 
                _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'
6729
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6730
 
                  echo "-hidden">> $lib.exp~
6731
 
                  $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~
6732
 
                  $RM $lib.exp'
6733
 
                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6734
 
                ;;
6735
 
            esac
6736
 
 
6737
 
            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6738
 
 
6739
 
            # Commands to make compiler produce verbose output that lists
6740
 
            # what "hidden" libraries, object files and flags are used when
6741
 
            # linking a shared library.
6742
 
            #
6743
 
            # There doesn't appear to be a way to prevent this compiler from
6744
 
            # explicitly linking system object files so we need to strip them
6745
 
            # from the output so that they don't get included in the library
6746
 
            # dependencies.
6747
 
            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'
6748
 
            ;;
6749
 
          *)
6750
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6751
 
              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6752
 
              case $host in
6753
 
                osf3*)
6754
 
                  _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'
6755
 
                  ;;
6756
 
                *)
6757
 
                  _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'
6758
 
                  ;;
6759
 
              esac
6760
 
 
6761
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6762
 
              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6763
 
 
6764
 
              # Commands to make compiler produce verbose output that lists
6765
 
              # what "hidden" libraries, object files and flags are used when
6766
 
              # linking a shared library.
6767
 
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6768
 
 
6769
 
            else
6770
 
              # FIXME: insert proper C++ library support
6771
 
              _LT_TAGVAR(ld_shlibs, $1)=no
6772
 
            fi
6773
 
            ;;
6774
 
        esac
6775
 
        ;;
6776
 
 
6777
 
      psos*)
6778
 
        # FIXME: insert proper C++ library support
6779
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6780
 
        ;;
6781
 
 
6782
 
      sunos4*)
6783
 
        case $cc_basename in
6784
 
          CC*)
6785
 
            # Sun C++ 4.x
6786
 
            # FIXME: insert proper C++ library support
6787
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6788
 
            ;;
6789
 
          lcc*)
6790
 
            # Lucid
6791
 
            # FIXME: insert proper C++ library support
6792
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6793
 
            ;;
6794
 
          *)
6795
 
            # FIXME: insert proper C++ library support
6796
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6797
 
            ;;
6798
 
        esac
6799
 
        ;;
6800
 
 
6801
 
      solaris*)
6802
 
        case $cc_basename in
6803
 
          CC*)
6804
 
            # Sun C++ 4.2, 5.x and Centerline C++
6805
 
            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6806
 
            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6807
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6808
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6809
 
              $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'
6810
 
 
6811
 
            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6812
 
            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6813
 
            case $host_os in
6814
 
              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6815
 
              *)
6816
 
                # The compiler driver will combine and reorder linker options,
6817
 
                # but understands `-z linker_flag'.
6818
 
                # Supported since Solaris 2.6 (maybe 2.5.1?)
6819
 
                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6820
 
                ;;
6821
 
            esac
6822
 
            _LT_TAGVAR(link_all_deplibs, $1)=yes
6823
 
 
6824
 
            output_verbose_link_cmd='echo'
6825
 
 
6826
 
            # Archives containing C++ object files must be created using
6827
 
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6828
 
            # necessary to make sure instantiated templates are included
6829
 
            # in the archive.
6830
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6831
 
            ;;
6832
 
          gcx*)
6833
 
            # Green Hills C++ Compiler
6834
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6835
 
 
6836
 
            # The C++ compiler must be used to create the archive.
6837
 
            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6838
 
            ;;
6839
 
          *)
6840
 
            # GNU C++ compiler with Solaris linker
6841
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6842
 
              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6843
 
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6844
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6845
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6846
 
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6847
 
 
6848
 
                # Commands to make compiler produce verbose output that lists
6849
 
                # what "hidden" libraries, object files and flags are used when
6850
 
                # linking a shared library.
6851
 
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6852
 
              else
6853
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6854
 
                # platform.
6855
 
                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6856
 
                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6857
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6858
 
 
6859
 
                # Commands to make compiler produce verbose output that lists
6860
 
                # what "hidden" libraries, object files and flags are used when
6861
 
                # linking a shared library.
6862
 
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6863
 
              fi
6864
 
 
6865
 
              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6866
 
              case $host_os in
6867
 
                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6868
 
                *)
6869
 
                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6870
 
                  ;;
6871
 
              esac
6872
 
            fi
6873
 
            ;;
6874
 
        esac
6875
 
        ;;
6876
 
 
6877
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6878
 
      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6879
 
      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6880
 
      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6881
 
      runpath_var='LD_RUN_PATH'
6882
 
 
6883
 
      case $cc_basename in
6884
 
        CC*)
6885
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6886
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6887
 
          ;;
6888
 
        *)
6889
 
          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6890
 
          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6891
 
          ;;
6892
 
      esac
6893
 
      ;;
6894
 
 
6895
 
      sysv5* | sco3.2v5* | sco5v6*)
6896
 
        # Note: We can NOT use -z defs as we might desire, because we do not
6897
 
        # link with -lc, and that would cause any symbols used from libc to
6898
 
        # always be unresolved, which means just about no library would
6899
 
        # ever link correctly.  If we're not using GNU ld we use -z text
6900
 
        # though, which does catch some bad symbols but isn't as heavy-handed
6901
 
        # as -z defs.
6902
 
        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6903
 
        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6904
 
        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6905
 
        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6906
 
        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6907
 
        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6908
 
        _LT_TAGVAR(link_all_deplibs, $1)=yes
6909
 
        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6910
 
        runpath_var='LD_RUN_PATH'
6911
 
 
6912
 
        case $cc_basename in
6913
 
          CC*)
6914
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6915
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6916
 
            ;;
6917
 
          *)
6918
 
            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6919
 
            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6920
 
            ;;
6921
 
        esac
6922
 
      ;;
6923
 
 
6924
 
      tandem*)
6925
 
        case $cc_basename in
6926
 
          NCC*)
6927
 
            # NonStop-UX NCC 3.20
6928
 
            # FIXME: insert proper C++ library support
6929
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6930
 
            ;;
6931
 
          *)
6932
 
            # FIXME: insert proper C++ library support
6933
 
            _LT_TAGVAR(ld_shlibs, $1)=no
6934
 
            ;;
6935
 
        esac
6936
 
        ;;
6937
 
 
6938
 
      vxworks*)
6939
 
        # FIXME: insert proper C++ library support
6940
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6941
 
        ;;
6942
 
 
6943
 
      *)
6944
 
        # FIXME: insert proper C++ library support
6945
 
        _LT_TAGVAR(ld_shlibs, $1)=no
6946
 
        ;;
6947
 
    esac
6948
 
 
6949
 
    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6950
 
    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6951
 
 
6952
 
    _LT_TAGVAR(GCC, $1)="$GXX"
6953
 
    _LT_TAGVAR(LD, $1)="$LD"
6954
 
 
6955
 
    ## CAVEAT EMPTOR:
6956
 
    ## There is no encapsulation within the following macros, do not change
6957
 
    ## the running order or otherwise move them around unless you know exactly
6958
 
    ## what you are doing...
6959
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
6960
 
    _LT_COMPILER_PIC($1)
6961
 
    _LT_COMPILER_C_O($1)
6962
 
    _LT_COMPILER_FILE_LOCKS($1)
6963
 
    _LT_LINKER_SHLIBS($1)
6964
 
    _LT_SYS_DYNAMIC_LINKER($1)
6965
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
6966
 
 
6967
 
    _LT_CONFIG($1)
6968
 
  fi # test -n "$compiler"
6969
 
 
6970
 
  CC=$lt_save_CC
6971
 
  LDCXX=$LD
6972
 
  LD=$lt_save_LD
6973
 
  GCC=$lt_save_GCC
6974
 
  with_gnu_ld=$lt_save_with_gnu_ld
6975
 
  lt_cv_path_LDCXX=$lt_cv_path_LD
6976
 
  lt_cv_path_LD=$lt_save_path_LD
6977
 
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6978
 
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6979
 
fi # test "$_lt_caught_CXX_error" != yes
6980
 
 
6981
 
AC_LANG_POP
6982
 
])# _LT_LANG_CXX_CONFIG
6983
 
 
6984
 
 
6985
 
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 
7202
])# AC_LIBTOOL_PROG_LD_SHLIBS
 
7203
 
 
7204
 
 
7205
# _LT_AC_FILE_LTDLL_C
 
7206
# -------------------
 
7207
# Be careful that the start marker always follows a newline.
 
7208
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
 
7209
# /* ltdll.c starts here */
 
7210
# #define WIN32_LEAN_AND_MEAN
 
7211
# #include <windows.h>
 
7212
# #undef WIN32_LEAN_AND_MEAN
 
7213
# #include <stdio.h>
 
7214
#
 
7215
# #ifndef __CYGWIN__
 
7216
# #  ifdef __CYGWIN32__
 
7217
# #    define __CYGWIN__ __CYGWIN32__
 
7218
# #  endif
 
7219
# #endif
 
7220
#
 
7221
# #ifdef __cplusplus
 
7222
# extern "C" {
 
7223
# #endif
 
7224
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
7225
# #ifdef __cplusplus
 
7226
# }
 
7227
# #endif
 
7228
#
 
7229
# #ifdef __CYGWIN__
 
7230
# #include <cygwin/cygwin_dll.h>
 
7231
# DECLARE_CYGWIN_DLL( DllMain );
 
7232
# #endif
 
7233
# HINSTANCE __hDllInstance_base;
 
7234
#
 
7235
# BOOL APIENTRY
 
7236
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
7237
# {
 
7238
#   __hDllInstance_base = hInst;
 
7239
#   return TRUE;
 
7240
# }
 
7241
# /* ltdll.c ends here */
 
7242
])# _LT_AC_FILE_LTDLL_C
 
7243
 
 
7244
 
 
7245
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6986
7246
# ---------------------------------
6987
 
# Figure out "hidden" library dependencies from verbose
6988
 
# compiler output when linking a shared library.
6989
 
# Parse the compiler output and extract the necessary
6990
 
# objects, libraries and library flags.
6991
 
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6992
 
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6993
 
# Dependencies to place before and after the object being linked:
6994
 
_LT_TAGVAR(predep_objects, $1)=
6995
 
_LT_TAGVAR(postdep_objects, $1)=
6996
 
_LT_TAGVAR(predeps, $1)=
6997
 
_LT_TAGVAR(postdeps, $1)=
6998
 
_LT_TAGVAR(compiler_lib_search_path, $1)=
6999
 
 
7000
 
dnl we can't use the lt_simple_compile_test_code here,
7001
 
dnl because it contains code intended for an executable,
7002
 
dnl not a library.  It's possible we should let each
7003
 
dnl tag define a new lt_????_link_test_code variable,
7004
 
dnl but it's only used here...
7005
 
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7006
 
int a;
7007
 
void foo (void) { a = 0; }
7008
 
_LT_EOF
7009
 
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7010
 
class Foo
7011
 
{
7012
 
public:
7013
 
  Foo (void) { a = 0; }
7014
 
private:
7015
 
  int a;
7016
 
};
7017
 
_LT_EOF
7018
 
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7019
 
      subroutine foo
7020
 
      implicit none
7021
 
      integer*4 a
7022
 
      a=0
7023
 
      return
7024
 
      end
7025
 
_LT_EOF
7026
 
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7027
 
      subroutine foo
7028
 
      implicit none
7029
 
      integer a
7030
 
      a=0
7031
 
      return
7032
 
      end
7033
 
_LT_EOF
7034
 
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7035
 
public class foo {
7036
 
  private int a;
7037
 
  public void bar (void) {
7038
 
    a = 0;
7039
 
  }
7040
 
};
7041
 
_LT_EOF
7042
 
])
7043
 
dnl Parse the compiler output and extract the necessary
7044
 
dnl objects, libraries and library flags.
7045
 
if AC_TRY_EVAL(ac_compile); then
7046
 
  # Parse the compiler output and extract the necessary
7047
 
  # objects, libraries and library flags.
7048
 
 
7049
 
  # Sentinel used to keep track of whether or not we are before
7050
 
  # the conftest object file.
7051
 
  pre_test_object_deps_done=no
7052
 
 
7053
 
  for p in `eval "$output_verbose_link_cmd"`; do
7054
 
    case $p in
7055
 
 
7056
 
    -L* | -R* | -l*)
7057
 
       # Some compilers place space between "-{L,R}" and the path.
7058
 
       # Remove the space.
7059
 
       if test $p = "-L" ||
7060
 
          test $p = "-R"; then
7061
 
         prev=$p
7062
 
         continue
7063
 
       else
7064
 
         prev=
7065
 
       fi
7066
 
 
7067
 
       if test "$pre_test_object_deps_done" = no; then
7068
 
         case $p in
7069
 
         -L* | -R*)
7070
 
           # Internal compiler library paths should come after those
7071
 
           # provided the user.  The postdeps already come after the
7072
 
           # user supplied libs so there is no need to process them.
7073
 
           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7074
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7075
 
           else
7076
 
             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7077
 
           fi
7078
 
           ;;
7079
 
         # The "-l" case would never come before the object being
7080
 
         # linked, so don't bother handling this case.
7081
 
         esac
7082
 
       else
7083
 
         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7084
 
           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7085
 
         else
7086
 
           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7087
 
         fi
7088
 
       fi
7089
 
       ;;
7090
 
 
7091
 
    *.$objext)
7092
 
       # This assumes that the test object file only shows up
7093
 
       # once in the compiler output.
7094
 
       if test "$p" = "conftest.$objext"; then
7095
 
         pre_test_object_deps_done=yes
7096
 
         continue
7097
 
       fi
7098
 
 
7099
 
       if test "$pre_test_object_deps_done" = no; then
7100
 
         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7101
 
           _LT_TAGVAR(predep_objects, $1)="$p"
7102
 
         else
7103
 
           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7104
 
         fi
7105
 
       else
7106
 
         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7107
 
           _LT_TAGVAR(postdep_objects, $1)="$p"
7108
 
         else
7109
 
           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7110
 
         fi
7111
 
       fi
7112
 
       ;;
7113
 
 
7114
 
    *) ;; # Ignore the rest.
7115
 
 
7116
 
    esac
7117
 
  done
7118
 
 
7119
 
  # Clean up.
7120
 
  rm -f a.out a.exe
 
7247
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
 
7248
 
 
7249
 
 
7250
# old names
 
7251
AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
 
7252
AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
 
7253
AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
 
7254
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
 
7255
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
 
7256
AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
 
7257
AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
 
7258
 
 
7259
# This is just to silence aclocal about the macro not being used
 
7260
ifelse([AC_DISABLE_FAST_INSTALL])
 
7261
 
 
7262
AC_DEFUN([LT_AC_PROG_GCJ],
 
7263
[AC_CHECK_TOOL(GCJ, gcj, no)
 
7264
  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
 
7265
  AC_SUBST(GCJFLAGS)
 
7266
])
 
7267
 
 
7268
AC_DEFUN([LT_AC_PROG_RC],
 
7269
[AC_CHECK_TOOL(RC, windres, no)
 
7270
])
 
7271
 
 
7272
 
 
7273
# Cheap backport of AS_EXECUTABLE_P and required macros
 
7274
# from Autoconf 2.59; we should not use $as_executable_p directly.
 
7275
 
 
7276
# _AS_TEST_PREPARE
 
7277
# ----------------
 
7278
m4_ifndef([_AS_TEST_PREPARE],
 
7279
[m4_defun([_AS_TEST_PREPARE],
 
7280
[if test -x / >/dev/null 2>&1; then
 
7281
  as_executable_p='test -x'
7121
7282
else
7122
 
  echo "libtool.m4: error: problem compiling $1 test program"
7123
 
fi
7124
 
 
7125
 
$RM -f confest.$objext
7126
 
 
7127
 
# PORTME: override above test on systems where it is broken
7128
 
m4_if([$1], [CXX],
7129
 
[case $host_os in
7130
 
interix[[3-9]]*)
7131
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
7132
 
  # hack all around it, let's just trust "g++" to DTRT.
7133
 
  _LT_TAGVAR(predep_objects,$1)=
7134
 
  _LT_TAGVAR(postdep_objects,$1)=
7135
 
  _LT_TAGVAR(postdeps,$1)=
7136
 
  ;;
7137
 
 
7138
 
linux*)
7139
 
  case `$CC -V 2>&1 | sed 5q` in
7140
 
  *Sun\ C*)
7141
 
    # Sun C++ 5.9
7142
 
 
7143
 
    # The more standards-conforming stlport4 library is
7144
 
    # incompatible with the Cstd library. Avoid specifying
7145
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7146
 
    # -library=stlport4 depends on it.
7147
 
    case " $CXX $CXXFLAGS " in
7148
 
    *" -library=stlport4 "*)
7149
 
      solaris_use_stlport4=yes
7150
 
      ;;
7151
 
    esac
7152
 
 
7153
 
    if test "$solaris_use_stlport4" != yes; then
7154
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7155
 
    fi
7156
 
    ;;
7157
 
  esac
7158
 
  ;;
7159
 
 
7160
 
solaris*)
7161
 
  case $cc_basename in
7162
 
  CC*)
7163
 
    # The more standards-conforming stlport4 library is
7164
 
    # incompatible with the Cstd library. Avoid specifying
7165
 
    # it if it's in CXXFLAGS. Ignore libCrun as
7166
 
    # -library=stlport4 depends on it.
7167
 
    case " $CXX $CXXFLAGS " in
7168
 
    *" -library=stlport4 "*)
7169
 
      solaris_use_stlport4=yes
7170
 
      ;;
7171
 
    esac
7172
 
 
7173
 
    # Adding this requires a known-good setup of shared libraries for
7174
 
    # Sun compiler versions before 5.6, else PIC objects from an old
7175
 
    # archive will be linked into the output, leading to subtle bugs.
7176
 
    if test "$solaris_use_stlport4" != yes; then
7177
 
      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7178
 
    fi
7179
 
    ;;
7180
 
  esac
7181
 
  ;;
7182
 
esac
7183
 
])
7184
 
 
7185
 
case " $_LT_TAGVAR(postdeps, $1) " in
7186
 
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7187
 
esac
7188
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7189
 
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7190
 
 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7191
 
fi
7192
 
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7193
 
    [The directories searched by this compiler when creating a shared library])
7194
 
_LT_TAGDECL([], [predep_objects], [1],
7195
 
    [Dependencies to place before and after the objects being linked to
7196
 
    create a shared library])
7197
 
_LT_TAGDECL([], [postdep_objects], [1])
7198
 
_LT_TAGDECL([], [predeps], [1])
7199
 
_LT_TAGDECL([], [postdeps], [1])
7200
 
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7201
 
    [The library search path used internally by the compiler when linking
7202
 
    a shared library])
7203
 
])# _LT_SYS_HIDDEN_LIBDEPS
7204
 
 
7205
 
 
7206
 
# _LT_PROG_F77
7207
 
# ------------
7208
 
# Since AC_PROG_F77 is broken, in that it returns the empty string
7209
 
# if there is no fortran compiler, we have our own version here.
7210
 
m4_defun([_LT_PROG_F77],
7211
 
[
7212
 
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7213
 
AC_PROG_F77
7214
 
if test -z "$F77" || test "X$F77" = "Xno"; then
7215
 
  _lt_disable_F77=yes
7216
 
fi
7217
 
popdef([AC_MSG_ERROR])
7218
 
])# _LT_PROG_F77
7219
 
 
7220
 
dnl aclocal-1.4 backwards compatibility:
7221
 
dnl AC_DEFUN([_LT_PROG_F77], [])
7222
 
 
7223
 
 
7224
 
# _LT_LANG_F77_CONFIG([TAG])
7225
 
# --------------------------
7226
 
# Ensure that the configuration variables for a Fortran 77 compiler are
7227
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7228
 
# to write the compiler configuration to `libtool'.
7229
 
m4_defun([_LT_LANG_F77_CONFIG],
7230
 
[AC_REQUIRE([_LT_PROG_F77])dnl
7231
 
AC_LANG_PUSH(Fortran 77)
7232
 
 
7233
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7234
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7235
 
_LT_TAGVAR(always_export_symbols, $1)=no
7236
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7237
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7238
 
_LT_TAGVAR(hardcode_direct, $1)=no
7239
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7240
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7241
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7242
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7243
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7244
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7245
 
_LT_TAGVAR(inherit_rpath, $1)=no
7246
 
_LT_TAGVAR(module_cmds, $1)=
7247
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7248
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7249
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7250
 
_LT_TAGVAR(no_undefined_flag, $1)=
7251
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7252
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7253
 
 
7254
 
# Source file extension for f77 test sources.
7255
 
ac_ext=f
7256
 
 
7257
 
# Object file extension for compiled f77 test sources.
7258
 
objext=o
7259
 
_LT_TAGVAR(objext, $1)=$objext
7260
 
 
7261
 
# No sense in running all these tests if we already determined that
7262
 
# the F77 compiler isn't working.  Some variables (like enable_shared)
7263
 
# are currently assumed to apply to all compilers on this platform,
7264
 
# and will be corrupted by setting them based on a non-working compiler.
7265
 
if test "$_lt_disable_F77" != yes; then
7266
 
  # Code to be used in simple compile tests
7267
 
  lt_simple_compile_test_code="\
7268
 
      subroutine t
7269
 
      return
7270
 
      end
7271
 
"
7272
 
 
7273
 
  # Code to be used in simple link tests
7274
 
  lt_simple_link_test_code="\
7275
 
      program t
7276
 
      end
7277
 
"
7278
 
 
7279
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7280
 
  _LT_TAG_COMPILER
7281
 
 
7282
 
  # save warnings/boilerplate of simple test code
7283
 
  _LT_COMPILER_BOILERPLATE
7284
 
  _LT_LINKER_BOILERPLATE
7285
 
 
7286
 
  # Allow CC to be a program name with arguments.
7287
 
  lt_save_CC="$CC"
7288
 
  lt_save_GCC=$GCC
7289
 
  CC=${F77-"f77"}
7290
 
  compiler=$CC
7291
 
  _LT_TAGVAR(compiler, $1)=$CC
7292
 
  _LT_CC_BASENAME([$compiler])
7293
 
  GCC=$G77
7294
 
  if test -n "$compiler"; then
7295
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7296
 
    AC_MSG_RESULT([$can_build_shared])
7297
 
 
7298
 
    AC_MSG_CHECKING([whether to build shared libraries])
7299
 
    test "$can_build_shared" = "no" && enable_shared=no
7300
 
 
7301
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7302
 
    # are all built from PIC.
7303
 
    case $host_os in
7304
 
      aix3*)
7305
 
        test "$enable_shared" = yes && enable_static=no
7306
 
        if test -n "$RANLIB"; then
7307
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7308
 
          postinstall_cmds='$RANLIB $lib'
7309
 
        fi
7310
 
        ;;
7311
 
      aix[[4-9]]*)
7312
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7313
 
          test "$enable_shared" = yes && enable_static=no
7314
 
        fi
7315
 
        ;;
7316
 
    esac
7317
 
    AC_MSG_RESULT([$enable_shared])
7318
 
 
7319
 
    AC_MSG_CHECKING([whether to build static libraries])
7320
 
    # Make sure either enable_shared or enable_static is yes.
7321
 
    test "$enable_shared" = yes || enable_static=yes
7322
 
    AC_MSG_RESULT([$enable_static])
7323
 
 
7324
 
    _LT_TAGVAR(GCC, $1)="$G77"
7325
 
    _LT_TAGVAR(LD, $1)="$LD"
7326
 
 
7327
 
    ## CAVEAT EMPTOR:
7328
 
    ## There is no encapsulation within the following macros, do not change
7329
 
    ## the running order or otherwise move them around unless you know exactly
7330
 
    ## what you are doing...
7331
 
    _LT_COMPILER_PIC($1)
7332
 
    _LT_COMPILER_C_O($1)
7333
 
    _LT_COMPILER_FILE_LOCKS($1)
7334
 
    _LT_LINKER_SHLIBS($1)
7335
 
    _LT_SYS_DYNAMIC_LINKER($1)
7336
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7337
 
 
7338
 
    _LT_CONFIG($1)
7339
 
  fi # test -n "$compiler"
7340
 
 
7341
 
  GCC=$lt_save_GCC
7342
 
  CC="$lt_save_CC"
7343
 
fi # test "$_lt_disable_F77" != yes
7344
 
 
7345
 
AC_LANG_POP
7346
 
])# _LT_LANG_F77_CONFIG
7347
 
 
7348
 
 
7349
 
# _LT_PROG_FC
7350
 
# -----------
7351
 
# Since AC_PROG_FC is broken, in that it returns the empty string
7352
 
# if there is no fortran compiler, we have our own version here.
7353
 
m4_defun([_LT_PROG_FC],
7354
 
[
7355
 
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7356
 
AC_PROG_FC
7357
 
if test -z "$FC" || test "X$FC" = "Xno"; then
7358
 
  _lt_disable_FC=yes
7359
 
fi
7360
 
popdef([AC_MSG_ERROR])
7361
 
])# _LT_PROG_FC
7362
 
 
7363
 
dnl aclocal-1.4 backwards compatibility:
7364
 
dnl AC_DEFUN([_LT_PROG_FC], [])
7365
 
 
7366
 
 
7367
 
# _LT_LANG_FC_CONFIG([TAG])
7368
 
# -------------------------
7369
 
# Ensure that the configuration variables for a Fortran compiler are
7370
 
# suitably defined.  These variables are subsequently used by _LT_CONFIG
7371
 
# to write the compiler configuration to `libtool'.
7372
 
m4_defun([_LT_LANG_FC_CONFIG],
7373
 
[AC_REQUIRE([_LT_PROG_FC])dnl
7374
 
AC_LANG_PUSH(Fortran)
7375
 
 
7376
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7377
 
_LT_TAGVAR(allow_undefined_flag, $1)=
7378
 
_LT_TAGVAR(always_export_symbols, $1)=no
7379
 
_LT_TAGVAR(archive_expsym_cmds, $1)=
7380
 
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7381
 
_LT_TAGVAR(hardcode_direct, $1)=no
7382
 
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7383
 
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7384
 
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7385
 
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7386
 
_LT_TAGVAR(hardcode_minus_L, $1)=no
7387
 
_LT_TAGVAR(hardcode_automatic, $1)=no
7388
 
_LT_TAGVAR(inherit_rpath, $1)=no
7389
 
_LT_TAGVAR(module_cmds, $1)=
7390
 
_LT_TAGVAR(module_expsym_cmds, $1)=
7391
 
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7392
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7393
 
_LT_TAGVAR(no_undefined_flag, $1)=
7394
 
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7395
 
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7396
 
 
7397
 
# Source file extension for fc test sources.
7398
 
ac_ext=${ac_fc_srcext-f}
7399
 
 
7400
 
# Object file extension for compiled fc test sources.
7401
 
objext=o
7402
 
_LT_TAGVAR(objext, $1)=$objext
7403
 
 
7404
 
# No sense in running all these tests if we already determined that
7405
 
# the FC compiler isn't working.  Some variables (like enable_shared)
7406
 
# are currently assumed to apply to all compilers on this platform,
7407
 
# and will be corrupted by setting them based on a non-working compiler.
7408
 
if test "$_lt_disable_FC" != yes; then
7409
 
  # Code to be used in simple compile tests
7410
 
  lt_simple_compile_test_code="\
7411
 
      subroutine t
7412
 
      return
7413
 
      end
7414
 
"
7415
 
 
7416
 
  # Code to be used in simple link tests
7417
 
  lt_simple_link_test_code="\
7418
 
      program t
7419
 
      end
7420
 
"
7421
 
 
7422
 
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7423
 
  _LT_TAG_COMPILER
7424
 
 
7425
 
  # save warnings/boilerplate of simple test code
7426
 
  _LT_COMPILER_BOILERPLATE
7427
 
  _LT_LINKER_BOILERPLATE
7428
 
 
7429
 
  # Allow CC to be a program name with arguments.
7430
 
  lt_save_CC="$CC"
7431
 
  lt_save_GCC=$GCC
7432
 
  CC=${FC-"f95"}
7433
 
  compiler=$CC
7434
 
  GCC=$ac_cv_fc_compiler_gnu
7435
 
 
7436
 
  _LT_TAGVAR(compiler, $1)=$CC
7437
 
  _LT_CC_BASENAME([$compiler])
7438
 
 
7439
 
  if test -n "$compiler"; then
7440
 
    AC_MSG_CHECKING([if libtool supports shared libraries])
7441
 
    AC_MSG_RESULT([$can_build_shared])
7442
 
 
7443
 
    AC_MSG_CHECKING([whether to build shared libraries])
7444
 
    test "$can_build_shared" = "no" && enable_shared=no
7445
 
 
7446
 
    # On AIX, shared libraries and static libraries use the same namespace, and
7447
 
    # are all built from PIC.
7448
 
    case $host_os in
7449
 
      aix3*)
7450
 
        test "$enable_shared" = yes && enable_static=no
7451
 
        if test -n "$RANLIB"; then
7452
 
          archive_cmds="$archive_cmds~\$RANLIB \$lib"
7453
 
          postinstall_cmds='$RANLIB $lib'
7454
 
        fi
7455
 
        ;;
7456
 
      aix[[4-9]]*)
7457
 
        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7458
 
          test "$enable_shared" = yes && enable_static=no
7459
 
        fi
7460
 
        ;;
7461
 
    esac
7462
 
    AC_MSG_RESULT([$enable_shared])
7463
 
 
7464
 
    AC_MSG_CHECKING([whether to build static libraries])
7465
 
    # Make sure either enable_shared or enable_static is yes.
7466
 
    test "$enable_shared" = yes || enable_static=yes
7467
 
    AC_MSG_RESULT([$enable_static])
7468
 
 
7469
 
    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7470
 
    _LT_TAGVAR(LD, $1)="$LD"
7471
 
 
7472
 
    ## CAVEAT EMPTOR:
7473
 
    ## There is no encapsulation within the following macros, do not change
7474
 
    ## the running order or otherwise move them around unless you know exactly
7475
 
    ## what you are doing...
7476
 
    _LT_SYS_HIDDEN_LIBDEPS($1)
7477
 
    _LT_COMPILER_PIC($1)
7478
 
    _LT_COMPILER_C_O($1)
7479
 
    _LT_COMPILER_FILE_LOCKS($1)
7480
 
    _LT_LINKER_SHLIBS($1)
7481
 
    _LT_SYS_DYNAMIC_LINKER($1)
7482
 
    _LT_LINKER_HARDCODE_LIBPATH($1)
7483
 
 
7484
 
    _LT_CONFIG($1)
7485
 
  fi # test -n "$compiler"
7486
 
 
7487
 
  GCC=$lt_save_GCC
7488
 
  CC="$lt_save_CC"
7489
 
fi # test "$_lt_disable_FC" != yes
7490
 
 
7491
 
AC_LANG_POP
7492
 
])# _LT_LANG_FC_CONFIG
7493
 
 
7494
 
 
7495
 
# _LT_LANG_GCJ_CONFIG([TAG])
7496
 
# --------------------------
7497
 
# Ensure that the configuration variables for the GNU Java Compiler compiler
7498
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7499
 
# to write the compiler configuration to `libtool'.
7500
 
m4_defun([_LT_LANG_GCJ_CONFIG],
7501
 
[AC_REQUIRE([LT_PROG_GCJ])dnl
7502
 
AC_LANG_SAVE
7503
 
 
7504
 
# Source file extension for Java test sources.
7505
 
ac_ext=java
7506
 
 
7507
 
# Object file extension for compiled Java test sources.
7508
 
objext=o
7509
 
_LT_TAGVAR(objext, $1)=$objext
7510
 
 
7511
 
# Code to be used in simple compile tests
7512
 
lt_simple_compile_test_code="class foo {}"
7513
 
 
7514
 
# Code to be used in simple link tests
7515
 
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7516
 
 
7517
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7518
 
_LT_TAG_COMPILER
7519
 
 
7520
 
# save warnings/boilerplate of simple test code
7521
 
_LT_COMPILER_BOILERPLATE
7522
 
_LT_LINKER_BOILERPLATE
7523
 
 
7524
 
# Allow CC to be a program name with arguments.
7525
 
lt_save_CC="$CC"
7526
 
lt_save_GCC=$GCC
7527
 
GCC=yes
7528
 
CC=${GCJ-"gcj"}
7529
 
compiler=$CC
7530
 
_LT_TAGVAR(compiler, $1)=$CC
7531
 
_LT_TAGVAR(LD, $1)="$LD"
7532
 
_LT_CC_BASENAME([$compiler])
7533
 
 
7534
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7535
 
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7536
 
 
7537
 
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7538
 
 
7539
 
if test -n "$compiler"; then
7540
 
  _LT_COMPILER_NO_RTTI($1)
7541
 
  _LT_COMPILER_PIC($1)
7542
 
  _LT_COMPILER_C_O($1)
7543
 
  _LT_COMPILER_FILE_LOCKS($1)
7544
 
  _LT_LINKER_SHLIBS($1)
7545
 
  _LT_LINKER_HARDCODE_LIBPATH($1)
7546
 
 
7547
 
  _LT_CONFIG($1)
7548
 
fi
7549
 
 
7550
 
AC_LANG_RESTORE
7551
 
 
7552
 
GCC=$lt_save_GCC
7553
 
CC="$lt_save_CC"
7554
 
])# _LT_LANG_GCJ_CONFIG
7555
 
 
7556
 
 
7557
 
# _LT_LANG_RC_CONFIG([TAG])
7558
 
# -------------------------
7559
 
# Ensure that the configuration variables for the Windows resource compiler
7560
 
# are suitably defined.  These variables are subsequently used by _LT_CONFIG
7561
 
# to write the compiler configuration to `libtool'.
7562
 
m4_defun([_LT_LANG_RC_CONFIG],
7563
 
[AC_REQUIRE([LT_PROG_RC])dnl
7564
 
AC_LANG_SAVE
7565
 
 
7566
 
# Source file extension for RC test sources.
7567
 
ac_ext=rc
7568
 
 
7569
 
# Object file extension for compiled RC test sources.
7570
 
objext=o
7571
 
_LT_TAGVAR(objext, $1)=$objext
7572
 
 
7573
 
# Code to be used in simple compile tests
7574
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7575
 
 
7576
 
# Code to be used in simple link tests
7577
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
7578
 
 
7579
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7580
 
_LT_TAG_COMPILER
7581
 
 
7582
 
# save warnings/boilerplate of simple test code
7583
 
_LT_COMPILER_BOILERPLATE
7584
 
_LT_LINKER_BOILERPLATE
7585
 
 
7586
 
# Allow CC to be a program name with arguments.
7587
 
lt_save_CC="$CC"
7588
 
lt_save_GCC=$GCC
7589
 
GCC=
7590
 
CC=${RC-"windres"}
7591
 
compiler=$CC
7592
 
_LT_TAGVAR(compiler, $1)=$CC
7593
 
_LT_CC_BASENAME([$compiler])
7594
 
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7595
 
 
7596
 
if test -n "$compiler"; then
7597
 
  :
7598
 
  _LT_CONFIG($1)
7599
 
fi
7600
 
 
7601
 
GCC=$lt_save_GCC
7602
 
AC_LANG_RESTORE
7603
 
CC="$lt_save_CC"
7604
 
])# _LT_LANG_RC_CONFIG
7605
 
 
7606
 
 
7607
 
# LT_PROG_GCJ
7608
 
# -----------
7609
 
AC_DEFUN([LT_PROG_GCJ],
7610
 
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7611
 
  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7612
 
    [AC_CHECK_TOOL(GCJ, gcj,)
7613
 
      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7614
 
      AC_SUBST(GCJFLAGS)])])[]dnl
7615
 
])
7616
 
 
7617
 
# Old name:
7618
 
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7619
 
dnl aclocal-1.4 backwards compatibility:
7620
 
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7621
 
 
7622
 
 
7623
 
# LT_PROG_RC
7624
 
# ----------
7625
 
AC_DEFUN([LT_PROG_RC],
7626
 
[AC_CHECK_TOOL(RC, windres,)
7627
 
])
7628
 
 
7629
 
# Old name:
7630
 
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7631
 
dnl aclocal-1.4 backwards compatibility:
7632
 
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7633
 
 
7634
 
 
7635
 
# _LT_DECL_EGREP
7636
 
# --------------
7637
 
# If we don't have a new enough Autoconf to choose the best grep
7638
 
# available, choose the one first in the user's PATH.
7639
 
m4_defun([_LT_DECL_EGREP],
7640
 
[AC_REQUIRE([AC_PROG_EGREP])dnl
7641
 
AC_REQUIRE([AC_PROG_FGREP])dnl
7642
 
test -z "$GREP" && GREP=grep
7643
 
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7644
 
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7645
 
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7646
 
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7647
 
AC_SUBST([GREP])
7648
 
])
7649
 
 
7650
 
 
7651
 
# _LT_DECL_SED
7652
 
# ------------
7653
 
# Check for a fully-functional sed program, that truncates
7654
 
# as few characters as possible.  Prefer GNU sed if found.
7655
 
m4_defun([_LT_DECL_SED],
7656
 
[AC_PROG_SED
7657
 
test -z "$SED" && SED=sed
7658
 
Xsed="$SED -e 1s/^X//"
7659
 
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7660
 
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7661
 
    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7662
 
])# _LT_DECL_SED
7663
 
 
7664
 
m4_ifndef([AC_PROG_SED], [
 
7283
  as_executable_p='test -f'
 
7284
fi
 
7285
])])# _AS_TEST_PREPARE
 
7286
 
 
7287
# AS_EXECUTABLE_P
 
7288
# ---------------
 
7289
# Check whether a file is executable.
 
7290
m4_ifndef([AS_EXECUTABLE_P],
 
7291
[m4_defun([AS_EXECUTABLE_P],
 
7292
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
 
7293
$as_executable_p $1[]dnl
 
7294
])])# AS_EXECUTABLE_P
 
7295
 
7665
7296
# NOTE: This macro has been submitted for inclusion into   #
7666
7297
#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7667
7298
#  a released version of Autoconf we should remove this    #
7668
7299
#  macro and use it instead.                               #
7669
 
 
7670
 
m4_defun([AC_PROG_SED],
 
7300
# LT_AC_PROG_SED
 
7301
# --------------
 
7302
# Check for a fully-functional sed program, that truncates
 
7303
# as few characters as possible.  Prefer GNU sed if found.
 
7304
AC_DEFUN([LT_AC_PROG_SED],
7671
7305
[AC_MSG_CHECKING([for a sed that does not truncate output])
7672
7306
AC_CACHE_VAL(lt_cv_path_SED,
7673
7307
[# Loop through the user's path and test for sed and gsed.
7679
7313
  test -z "$as_dir" && as_dir=.
7680
7314
  for lt_ac_prog in sed gsed; do
7681
7315
    for ac_exec_ext in '' $ac_executable_extensions; do
7682
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
7316
      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7683
7317
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7684
7318
      fi
7685
7319
    done
7720
7354
SED=$lt_cv_path_SED
7721
7355
AC_SUBST([SED])
7722
7356
AC_MSG_RESULT([$SED])
7723
 
])#AC_PROG_SED
7724
 
])#m4_ifndef
7725
 
 
7726
 
# Old name:
7727
 
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7728
 
dnl aclocal-1.4 backwards compatibility:
7729
 
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7730
 
 
7731
 
 
7732
 
# _LT_CHECK_SHELL_FEATURES
7733
 
# ------------------------
7734
 
# Find out whether the shell is Bourne or XSI compatible,
7735
 
# or has some other useful features.
7736
 
m4_defun([_LT_CHECK_SHELL_FEATURES],
7737
 
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7738
 
# Try some XSI features
7739
 
xsi_shell=no
7740
 
( _lt_dummy="a/b/c"
7741
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7742
 
      = c,a/b,, \
7743
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
7744
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7745
 
  && xsi_shell=yes
7746
 
AC_MSG_RESULT([$xsi_shell])
7747
 
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7748
 
 
7749
 
AC_MSG_CHECKING([whether the shell understands "+="])
7750
 
lt_shell_append=no
7751
 
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7752
 
    >/dev/null 2>&1 \
7753
 
  && lt_shell_append=yes
7754
 
AC_MSG_RESULT([$lt_shell_append])
7755
 
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7756
 
 
7757
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7758
 
  lt_unset=unset
7759
 
else
7760
 
  lt_unset=false
7761
 
fi
7762
 
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7763
 
 
7764
 
# test EBCDIC or ASCII
7765
 
case `echo X|tr X '\101'` in
7766
 
 A) # ASCII based system
7767
 
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7768
 
  lt_SP2NL='tr \040 \012'
7769
 
  lt_NL2SP='tr \015\012 \040\040'
7770
 
  ;;
7771
 
 *) # EBCDIC based system
7772
 
  lt_SP2NL='tr \100 \n'
7773
 
  lt_NL2SP='tr \r\n \100\100'
7774
 
  ;;
7775
 
esac
7776
 
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7777
 
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7778
 
])# _LT_CHECK_SHELL_FEATURES
7779
 
 
7780
 
 
7781
 
# _LT_PROG_XSI_SHELLFNS
7782
 
# ---------------------
7783
 
# Bourne and XSI compatible variants of some useful shell functions.
7784
 
m4_defun([_LT_PROG_XSI_SHELLFNS],
7785
 
[case $xsi_shell in
7786
 
  yes)
7787
 
    cat << \_LT_EOF >> "$cfgfile"
7788
 
 
7789
 
# func_dirname file append nondir_replacement
7790
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7791
 
# otherwise set result to NONDIR_REPLACEMENT.
7792
 
func_dirname ()
7793
 
{
7794
 
  case ${1} in
7795
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7796
 
    *  ) func_dirname_result="${3}" ;;
7797
 
  esac
7798
 
}
7799
 
 
7800
 
# func_basename file
7801
 
func_basename ()
7802
 
{
7803
 
  func_basename_result="${1##*/}"
7804
 
}
7805
 
 
7806
 
# func_dirname_and_basename file append nondir_replacement
7807
 
# perform func_basename and func_dirname in a single function
7808
 
# call:
7809
 
#   dirname:  Compute the dirname of FILE.  If nonempty,
7810
 
#             add APPEND to the result, otherwise set result
7811
 
#             to NONDIR_REPLACEMENT.
7812
 
#             value returned in "$func_dirname_result"
7813
 
#   basename: Compute filename of FILE.
7814
 
#             value retuned in "$func_basename_result"
7815
 
# Implementation must be kept synchronized with func_dirname
7816
 
# and func_basename. For efficiency, we do not delegate to
7817
 
# those functions but instead duplicate the functionality here.
7818
 
func_dirname_and_basename ()
7819
 
{
7820
 
  case ${1} in
7821
 
    */*) func_dirname_result="${1%/*}${2}" ;;
7822
 
    *  ) func_dirname_result="${3}" ;;
7823
 
  esac
7824
 
  func_basename_result="${1##*/}"
7825
 
}
7826
 
 
7827
 
# func_stripname prefix suffix name
7828
 
# strip PREFIX and SUFFIX off of NAME.
7829
 
# PREFIX and SUFFIX must not contain globbing or regex special
7830
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7831
 
# dot (in which case that matches only a dot).
7832
 
func_stripname ()
7833
 
{
7834
 
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7835
 
  # positional parameters, so assign one to ordinary parameter first.
7836
 
  func_stripname_result=${3}
7837
 
  func_stripname_result=${func_stripname_result#"${1}"}
7838
 
  func_stripname_result=${func_stripname_result%"${2}"}
7839
 
}
7840
 
 
7841
 
# func_opt_split
7842
 
func_opt_split ()
7843
 
{
7844
 
  func_opt_split_opt=${1%%=*}
7845
 
  func_opt_split_arg=${1#*=}
7846
 
}
7847
 
 
7848
 
# func_lo2o object
7849
 
func_lo2o ()
7850
 
{
7851
 
  case ${1} in
7852
 
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7853
 
    *)    func_lo2o_result=${1} ;;
7854
 
  esac
7855
 
}
7856
 
 
7857
 
# func_xform libobj-or-source
7858
 
func_xform ()
7859
 
{
7860
 
  func_xform_result=${1%.*}.lo
7861
 
}
7862
 
 
7863
 
# func_arith arithmetic-term...
7864
 
func_arith ()
7865
 
{
7866
 
  func_arith_result=$(( $[*] ))
7867
 
}
7868
 
 
7869
 
# func_len string
7870
 
# STRING may not start with a hyphen.
7871
 
func_len ()
7872
 
{
7873
 
  func_len_result=${#1}
7874
 
}
7875
 
 
7876
 
_LT_EOF
7877
 
    ;;
7878
 
  *) # Bourne compatible functions.
7879
 
    cat << \_LT_EOF >> "$cfgfile"
7880
 
 
7881
 
# func_dirname file append nondir_replacement
7882
 
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7883
 
# otherwise set result to NONDIR_REPLACEMENT.
7884
 
func_dirname ()
7885
 
{
7886
 
  # Extract subdirectory from the argument.
7887
 
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7888
 
  if test "X$func_dirname_result" = "X${1}"; then
7889
 
    func_dirname_result="${3}"
7890
 
  else
7891
 
    func_dirname_result="$func_dirname_result${2}"
7892
 
  fi
7893
 
}
7894
 
 
7895
 
# func_basename file
7896
 
func_basename ()
7897
 
{
7898
 
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7899
 
}
7900
 
 
7901
 
dnl func_dirname_and_basename
7902
 
dnl A portable version of this function is already defined in general.m4sh
7903
 
dnl so there is no need for it here.
7904
 
 
7905
 
# func_stripname prefix suffix name
7906
 
# strip PREFIX and SUFFIX off of NAME.
7907
 
# PREFIX and SUFFIX must not contain globbing or regex special
7908
 
# characters, hashes, percent signs, but SUFFIX may contain a leading
7909
 
# dot (in which case that matches only a dot).
7910
 
# func_strip_suffix prefix name
7911
 
func_stripname ()
7912
 
{
7913
 
  case ${2} in
7914
 
    .*) func_stripname_result=`$ECHO "X${3}" \
7915
 
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7916
 
    *)  func_stripname_result=`$ECHO "X${3}" \
7917
 
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7918
 
  esac
7919
 
}
7920
 
 
7921
 
# sed scripts:
7922
 
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7923
 
my_sed_long_arg='1s/^-[[^=]]*=//'
7924
 
 
7925
 
# func_opt_split
7926
 
func_opt_split ()
7927
 
{
7928
 
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7929
 
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7930
 
}
7931
 
 
7932
 
# func_lo2o object
7933
 
func_lo2o ()
7934
 
{
7935
 
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7936
 
}
7937
 
 
7938
 
# func_xform libobj-or-source
7939
 
func_xform ()
7940
 
{
7941
 
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7942
 
}
7943
 
 
7944
 
# func_arith arithmetic-term...
7945
 
func_arith ()
7946
 
{
7947
 
  func_arith_result=`expr "$[@]"`
7948
 
}
7949
 
 
7950
 
# func_len string
7951
 
# STRING may not start with a hyphen.
7952
 
func_len ()
7953
 
{
7954
 
  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7955
 
}
7956
 
 
7957
 
_LT_EOF
7958
 
esac
7959
 
 
7960
 
case $lt_shell_append in
7961
 
  yes)
7962
 
    cat << \_LT_EOF >> "$cfgfile"
7963
 
 
7964
 
# func_append var value
7965
 
# Append VALUE to the end of shell variable VAR.
7966
 
func_append ()
7967
 
{
7968
 
  eval "$[1]+=\$[2]"
7969
 
}
7970
 
_LT_EOF
7971
 
    ;;
7972
 
  *)
7973
 
    cat << \_LT_EOF >> "$cfgfile"
7974
 
 
7975
 
# func_append var value
7976
 
# Append VALUE to the end of shell variable VAR.
7977
 
func_append ()
7978
 
{
7979
 
  eval "$[1]=\$$[1]\$[2]"
7980
 
}
7981
 
 
7982
 
_LT_EOF
7983
 
    ;;
7984
 
  esac
7985
 
])
7986
 
 
7987
 
# Helper functions for option handling.                    -*- Autoconf -*-
7988
 
#
7989
 
#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7990
 
#   Written by Gary V. Vaughan, 2004
7991
 
#
7992
 
# This file is free software; the Free Software Foundation gives
7993
 
# unlimited permission to copy and/or distribute it, with or without
7994
 
# modifications, as long as this notice is preserved.
7995
 
 
7996
 
# serial 6 ltoptions.m4
7997
 
 
7998
 
# This is to help aclocal find these macros, as it can't see m4_define.
7999
 
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8000
 
 
8001
 
 
8002
 
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8003
 
# ------------------------------------------
8004
 
m4_define([_LT_MANGLE_OPTION],
8005
 
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8006
 
 
8007
 
 
8008
 
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8009
 
# ---------------------------------------
8010
 
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8011
 
# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8012
 
# saved as a flag.
8013
 
m4_define([_LT_SET_OPTION],
8014
 
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8015
 
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8016
 
        _LT_MANGLE_DEFUN([$1], [$2]),
8017
 
    [m4_warning([Unknown $1 option `$2'])])[]dnl
8018
 
])
8019
 
 
8020
 
 
8021
 
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8022
 
# ------------------------------------------------------------
8023
 
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8024
 
m4_define([_LT_IF_OPTION],
8025
 
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8026
 
 
8027
 
 
8028
 
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8029
 
# -------------------------------------------------------
8030
 
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8031
 
# are set.
8032
 
m4_define([_LT_UNLESS_OPTIONS],
8033
 
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8034
 
            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8035
 
                      [m4_define([$0_found])])])[]dnl
8036
 
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8037
 
])[]dnl
8038
 
])
8039
 
 
8040
 
 
8041
 
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8042
 
# ----------------------------------------
8043
 
# OPTION-LIST is a space-separated list of Libtool options associated
8044
 
# with MACRO-NAME.  If any OPTION has a matching handler declared with
8045
 
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8046
 
# the unknown option and exit.
8047
 
m4_defun([_LT_SET_OPTIONS],
8048
 
[# Set options
8049
 
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8050
 
    [_LT_SET_OPTION([$1], _LT_Option)])
8051
 
 
8052
 
m4_if([$1],[LT_INIT],[
8053
 
  dnl
8054
 
  dnl Simply set some default values (i.e off) if boolean options were not
8055
 
  dnl specified:
8056
 
  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8057
 
  ])
8058
 
  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8059
 
  ])
8060
 
  dnl
8061
 
  dnl If no reference was made to various pairs of opposing options, then
8062
 
  dnl we run the default mode handler for the pair.  For example, if neither
8063
 
  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8064
 
  dnl archives by default:
8065
 
  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8066
 
  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8067
 
  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8068
 
  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8069
 
                   [_LT_ENABLE_FAST_INSTALL])
8070
 
  ])
8071
 
])# _LT_SET_OPTIONS
8072
 
 
8073
 
 
8074
 
 
8075
 
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8076
 
# -----------------------------------------
8077
 
m4_define([_LT_MANGLE_DEFUN],
8078
 
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8079
 
 
8080
 
 
8081
 
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8082
 
# -----------------------------------------------
8083
 
m4_define([LT_OPTION_DEFINE],
8084
 
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8085
 
])# LT_OPTION_DEFINE
8086
 
 
8087
 
 
8088
 
# dlopen
8089
 
# ------
8090
 
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8091
 
])
8092
 
 
8093
 
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8094
 
[_LT_SET_OPTION([LT_INIT], [dlopen])
8095
 
AC_DIAGNOSE([obsolete],
8096
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8097
 
put the `dlopen' option into LT_INIT's first parameter.])
8098
 
])
8099
 
 
8100
 
dnl aclocal-1.4 backwards compatibility:
8101
 
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8102
 
 
8103
 
 
8104
 
# win32-dll
8105
 
# ---------
8106
 
# Declare package support for building win32 dll's.
8107
 
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8108
 
[enable_win32_dll=yes
8109
 
 
8110
 
case $host in
8111
 
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8112
 
  AC_CHECK_TOOL(AS, as, false)
8113
 
  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8114
 
  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8115
 
  ;;
8116
 
esac
8117
 
 
8118
 
test -z "$AS" && AS=as
8119
 
_LT_DECL([], [AS],      [0], [Assembler program])dnl
8120
 
 
8121
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
8122
 
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8123
 
 
8124
 
test -z "$OBJDUMP" && OBJDUMP=objdump
8125
 
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8126
 
])# win32-dll
8127
 
 
8128
 
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8129
 
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8130
 
_LT_SET_OPTION([LT_INIT], [win32-dll])
8131
 
AC_DIAGNOSE([obsolete],
8132
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8133
 
put the `win32-dll' option into LT_INIT's first parameter.])
8134
 
])
8135
 
 
8136
 
dnl aclocal-1.4 backwards compatibility:
8137
 
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8138
 
 
8139
 
 
8140
 
# _LT_ENABLE_SHARED([DEFAULT])
8141
 
# ----------------------------
8142
 
# implement the --enable-shared flag, and supports the `shared' and
8143
 
# `disable-shared' LT_INIT options.
8144
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8145
 
m4_define([_LT_ENABLE_SHARED],
8146
 
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8147
 
AC_ARG_ENABLE([shared],
8148
 
    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8149
 
        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8150
 
    [p=${PACKAGE-default}
8151
 
    case $enableval in
8152
 
    yes) enable_shared=yes ;;
8153
 
    no) enable_shared=no ;;
8154
 
    *)
8155
 
      enable_shared=no
8156
 
      # Look at the argument we got.  We use all the common list separators.
8157
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8158
 
      for pkg in $enableval; do
8159
 
        IFS="$lt_save_ifs"
8160
 
        if test "X$pkg" = "X$p"; then
8161
 
          enable_shared=yes
8162
 
        fi
8163
 
      done
8164
 
      IFS="$lt_save_ifs"
8165
 
      ;;
8166
 
    esac],
8167
 
    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8168
 
 
8169
 
    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8170
 
        [Whether or not to build shared libraries])
8171
 
])# _LT_ENABLE_SHARED
8172
 
 
8173
 
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8174
 
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8175
 
 
8176
 
# Old names:
8177
 
AC_DEFUN([AC_ENABLE_SHARED],
8178
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8179
 
])
8180
 
 
8181
 
AC_DEFUN([AC_DISABLE_SHARED],
8182
 
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8183
 
])
8184
 
 
8185
 
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8186
 
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8187
 
 
8188
 
dnl aclocal-1.4 backwards compatibility:
8189
 
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8190
 
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8191
 
 
8192
 
 
8193
 
 
8194
 
# _LT_ENABLE_STATIC([DEFAULT])
8195
 
# ----------------------------
8196
 
# implement the --enable-static flag, and support the `static' and
8197
 
# `disable-static' LT_INIT options.
8198
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8199
 
m4_define([_LT_ENABLE_STATIC],
8200
 
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8201
 
AC_ARG_ENABLE([static],
8202
 
    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8203
 
        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8204
 
    [p=${PACKAGE-default}
8205
 
    case $enableval in
8206
 
    yes) enable_static=yes ;;
8207
 
    no) enable_static=no ;;
8208
 
    *)
8209
 
     enable_static=no
8210
 
      # Look at the argument we got.  We use all the common list separators.
8211
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8212
 
      for pkg in $enableval; do
8213
 
        IFS="$lt_save_ifs"
8214
 
        if test "X$pkg" = "X$p"; then
8215
 
          enable_static=yes
8216
 
        fi
8217
 
      done
8218
 
      IFS="$lt_save_ifs"
8219
 
      ;;
8220
 
    esac],
8221
 
    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8222
 
 
8223
 
    _LT_DECL([build_old_libs], [enable_static], [0],
8224
 
        [Whether or not to build static libraries])
8225
 
])# _LT_ENABLE_STATIC
8226
 
 
8227
 
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8228
 
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8229
 
 
8230
 
# Old names:
8231
 
AC_DEFUN([AC_ENABLE_STATIC],
8232
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8233
 
])
8234
 
 
8235
 
AC_DEFUN([AC_DISABLE_STATIC],
8236
 
[_LT_SET_OPTION([LT_INIT], [disable-static])
8237
 
])
8238
 
 
8239
 
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8240
 
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8241
 
 
8242
 
dnl aclocal-1.4 backwards compatibility:
8243
 
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8244
 
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8245
 
 
8246
 
 
8247
 
 
8248
 
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8249
 
# ----------------------------------
8250
 
# implement the --enable-fast-install flag, and support the `fast-install'
8251
 
# and `disable-fast-install' LT_INIT options.
8252
 
# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8253
 
m4_define([_LT_ENABLE_FAST_INSTALL],
8254
 
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8255
 
AC_ARG_ENABLE([fast-install],
8256
 
    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8257
 
    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8258
 
    [p=${PACKAGE-default}
8259
 
    case $enableval in
8260
 
    yes) enable_fast_install=yes ;;
8261
 
    no) enable_fast_install=no ;;
8262
 
    *)
8263
 
      enable_fast_install=no
8264
 
      # Look at the argument we got.  We use all the common list separators.
8265
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8266
 
      for pkg in $enableval; do
8267
 
        IFS="$lt_save_ifs"
8268
 
        if test "X$pkg" = "X$p"; then
8269
 
          enable_fast_install=yes
8270
 
        fi
8271
 
      done
8272
 
      IFS="$lt_save_ifs"
8273
 
      ;;
8274
 
    esac],
8275
 
    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8276
 
 
8277
 
_LT_DECL([fast_install], [enable_fast_install], [0],
8278
 
         [Whether or not to optimize for fast installation])dnl
8279
 
])# _LT_ENABLE_FAST_INSTALL
8280
 
 
8281
 
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8282
 
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8283
 
 
8284
 
# Old names:
8285
 
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8286
 
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8287
 
AC_DIAGNOSE([obsolete],
8288
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8289
 
the `fast-install' option into LT_INIT's first parameter.])
8290
 
])
8291
 
 
8292
 
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8293
 
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8294
 
AC_DIAGNOSE([obsolete],
8295
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8296
 
the `disable-fast-install' option into LT_INIT's first parameter.])
8297
 
])
8298
 
 
8299
 
dnl aclocal-1.4 backwards compatibility:
8300
 
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8301
 
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8302
 
 
8303
 
 
8304
 
# _LT_WITH_PIC([MODE])
8305
 
# --------------------
8306
 
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8307
 
# LT_INIT options.
8308
 
# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8309
 
m4_define([_LT_WITH_PIC],
8310
 
[AC_ARG_WITH([pic],
8311
 
    [AS_HELP_STRING([--with-pic],
8312
 
        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8313
 
    [pic_mode="$withval"],
8314
 
    [pic_mode=default])
8315
 
 
8316
 
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8317
 
 
8318
 
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8319
 
])# _LT_WITH_PIC
8320
 
 
8321
 
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8322
 
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8323
 
 
8324
 
# Old name:
8325
 
AU_DEFUN([AC_LIBTOOL_PICMODE],
8326
 
[_LT_SET_OPTION([LT_INIT], [pic-only])
8327
 
AC_DIAGNOSE([obsolete],
8328
 
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8329
 
put the `pic-only' option into LT_INIT's first parameter.])
8330
 
])
8331
 
 
8332
 
dnl aclocal-1.4 backwards compatibility:
8333
 
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8334
 
 
8335
 
 
8336
 
m4_define([_LTDL_MODE], [])
8337
 
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8338
 
                 [m4_define([_LTDL_MODE], [nonrecursive])])
8339
 
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8340
 
                 [m4_define([_LTDL_MODE], [recursive])])
8341
 
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8342
 
                 [m4_define([_LTDL_MODE], [subproject])])
8343
 
 
8344
 
m4_define([_LTDL_TYPE], [])
8345
 
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8346
 
                 [m4_define([_LTDL_TYPE], [installable])])
8347
 
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8348
 
                 [m4_define([_LTDL_TYPE], [convenience])])
8349
 
 
8350
 
# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8351
 
#
8352
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8353
 
#   Written by Gary V. Vaughan, 2004
8354
 
#
8355
 
# This file is free software; the Free Software Foundation gives
8356
 
# unlimited permission to copy and/or distribute it, with or without
8357
 
# modifications, as long as this notice is preserved.
8358
 
 
8359
 
# serial 5 ltsugar.m4
8360
 
 
8361
 
# This is to help aclocal find these macros, as it can't see m4_define.
8362
 
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8363
 
 
8364
 
 
8365
 
# lt_join(SEP, ARG1, [ARG2...])
8366
 
# -----------------------------
8367
 
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8368
 
# associated separator.
8369
 
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8370
 
# versions in m4sugar had bugs.
8371
 
m4_define([lt_join],
8372
 
[m4_if([$#], [1], [],
8373
 
       [$#], [2], [[$2]],
8374
 
       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8375
 
m4_define([_lt_join],
8376
 
[m4_if([$#$2], [2], [],
8377
 
       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8378
 
 
8379
 
 
8380
 
# lt_car(LIST)
8381
 
# lt_cdr(LIST)
8382
 
# ------------
8383
 
# Manipulate m4 lists.
8384
 
# These macros are necessary as long as will still need to support
8385
 
# Autoconf-2.59 which quotes differently.
8386
 
m4_define([lt_car], [[$1]])
8387
 
m4_define([lt_cdr],
8388
 
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8389
 
       [$#], 1, [],
8390
 
       [m4_dquote(m4_shift($@))])])
8391
 
m4_define([lt_unquote], $1)
8392
 
 
8393
 
 
8394
 
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8395
 
# ------------------------------------------
8396
 
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8397
 
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8398
 
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8399
 
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8400
 
# than defined and empty).
8401
 
#
8402
 
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8403
 
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8404
 
m4_define([lt_append],
8405
 
[m4_define([$1],
8406
 
           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8407
 
 
8408
 
 
8409
 
 
8410
 
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8411
 
# ----------------------------------------------------------
8412
 
# Produce a SEP delimited list of all paired combinations of elements of
8413
 
# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8414
 
# has the form PREFIXmINFIXSUFFIXn.
8415
 
m4_define([lt_combine],
8416
 
[m4_if([$2], [], [],
8417
 
  [m4_if([$4], [], [],
8418
 
    [lt_join(m4_quote(m4_default([$1], [[, ]])),
8419
 
      lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
8420
 
                   [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
8421
 
                               [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
8422
 
])
8423
 
 
8424
 
 
8425
 
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8426
 
# -----------------------------------------------------------------------
8427
 
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8428
 
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8429
 
m4_define([lt_if_append_uniq],
8430
 
[m4_ifdef([$1],
8431
 
          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8432
 
                 [lt_append([$1], [$2], [$3])$4],
8433
 
                 [$5])],
8434
 
          [lt_append([$1], [$2], [$3])$4])])
8435
 
 
8436
 
 
8437
 
# lt_dict_add(DICT, KEY, VALUE)
8438
 
# -----------------------------
8439
 
m4_define([lt_dict_add],
8440
 
[m4_define([$1($2)], [$3])])
8441
 
 
8442
 
 
8443
 
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8444
 
# --------------------------------------------
8445
 
m4_define([lt_dict_add_subkey],
8446
 
[m4_define([$1($2:$3)], [$4])])
8447
 
 
8448
 
 
8449
 
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8450
 
# ----------------------------------
8451
 
m4_define([lt_dict_fetch],
8452
 
[m4_ifval([$3],
8453
 
        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8454
 
    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8455
 
 
8456
 
 
8457
 
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8458
 
# -----------------------------------------------------------------
8459
 
m4_define([lt_if_dict_fetch],
8460
 
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8461
 
        [$5],
8462
 
    [$6])])
8463
 
 
8464
 
 
8465
 
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8466
 
# --------------------------------------------------------------
8467
 
m4_define([lt_dict_filter],
8468
 
[m4_if([$5], [], [],
8469
 
  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8470
 
           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8471
 
                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8472
 
])
8473
 
 
8474
 
# ltversion.m4 -- version numbers                       -*- Autoconf -*-
8475
 
#
8476
 
#   Copyright (C) 2004 Free Software Foundation, Inc.
8477
 
#   Written by Scott James Remnant, 2004
8478
 
#
8479
 
# This file is free software; the Free Software Foundation gives
8480
 
# unlimited permission to copy and/or distribute it, with or without
8481
 
# modifications, as long as this notice is preserved.
8482
 
 
8483
 
# Generated from ltversion.in.
8484
 
 
8485
 
# serial 2976 ltversion.m4
8486
 
# This file is part of GNU Libtool
8487
 
 
8488
 
m4_define([LT_PACKAGE_VERSION], [2.2.4])
8489
 
m4_define([LT_PACKAGE_REVISION], [1.2976])
8490
 
 
8491
 
AC_DEFUN([LTVERSION_VERSION],
8492
 
[macro_version='2.2.4'
8493
 
macro_revision='1.2976'
8494
 
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8495
 
_LT_DECL(, macro_revision, 0)
8496
 
])
8497
 
 
8498
 
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8499
 
#
8500
 
#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8501
 
#   Written by Scott James Remnant, 2004.
8502
 
#
8503
 
# This file is free software; the Free Software Foundation gives
8504
 
# unlimited permission to copy and/or distribute it, with or without
8505
 
# modifications, as long as this notice is preserved.
8506
 
 
8507
 
# serial 4 lt~obsolete.m4
8508
 
 
8509
 
# These exist entirely to fool aclocal when bootstrapping libtool.
8510
 
#
8511
 
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8512
 
# which have later been changed to m4_define as they aren't part of the
8513
 
# exported API, or moved to Autoconf or Automake where they belong.
8514
 
#
8515
 
# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8516
 
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8517
 
# using a macro with the same name in our local m4/libtool.m4 it'll
8518
 
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8519
 
# and doesn't know about Autoconf macros at all.)
8520
 
#
8521
 
# So we provide this file, which has a silly filename so it's always
8522
 
# included after everything else.  This provides aclocal with the
8523
 
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8524
 
# because those macros already exist, or will be overwritten later.
8525
 
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 
8526
 
#
8527
 
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8528
 
# Yes, that means every name once taken will need to remain here until
8529
 
# we give up compatibility with versions before 1.7, at which point
8530
 
# we need to keep only those names which we still refer to.
8531
 
 
8532
 
# This is to help aclocal find these macros, as it can't see m4_define.
8533
 
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8534
 
 
8535
 
m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8536
 
m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8537
 
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8538
 
m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8539
 
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8540
 
m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8541
 
m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8542
 
m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8543
 
m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8544
 
m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8545
 
m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8546
 
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8547
 
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8548
 
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8549
 
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8550
 
m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8551
 
m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8552
 
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8553
 
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8554
 
m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8555
 
m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8556
 
m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8557
 
m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8558
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8559
 
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8560
 
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8561
 
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8562
 
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8563
 
m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8564
 
m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8565
 
m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8566
 
m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8567
 
m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8568
 
m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8569
 
m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8570
 
m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8571
 
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8572
 
m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8573
 
m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8574
 
m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8575
 
m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8576
 
m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8577
 
m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8578
 
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8579
 
m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8580
 
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8581
 
m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8582
 
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8583
 
m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8584
 
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8585
 
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8586
 
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8587
 
m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8588
 
m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8589
 
m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8590
 
 
8591
 
# nls.m4 serial 3 (gettext-0.15)
8592
 
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8593
 
dnl This file is free software; the Free Software Foundation
8594
 
dnl gives unlimited permission to copy and/or distribute it,
8595
 
dnl with or without modifications, as long as this notice is preserved.
8596
 
dnl
8597
 
dnl This file can can be used in projects which are not available under
8598
 
dnl the GNU General Public License or the GNU Library General Public
8599
 
dnl License but which still want to provide support for the GNU gettext
8600
 
dnl functionality.
8601
 
dnl Please note that the actual code of the GNU gettext library is covered
8602
 
dnl by the GNU Library General Public License, and the rest of the GNU
8603
 
dnl gettext package package is covered by the GNU General Public License.
8604
 
dnl They are *not* in the public domain.
8605
 
 
8606
 
dnl Authors:
8607
 
dnl   Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8608
 
dnl   Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8609
 
 
8610
 
AC_PREREQ(2.50)
8611
 
 
8612
 
AC_DEFUN([AM_NLS],
8613
 
[
8614
 
  AC_MSG_CHECKING([whether NLS is requested])
8615
 
  dnl Default is enabled NLS
8616
 
  AC_ARG_ENABLE(nls,
8617
 
    [  --disable-nls           do not use Native Language Support],
8618
 
    USE_NLS=$enableval, USE_NLS=yes)
8619
 
  AC_MSG_RESULT($USE_NLS)
8620
 
  AC_SUBST(USE_NLS)
8621
7357
])
8622
7358
 
8623
7359
# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-