"Fossies" - the Fresh Open Source Software Archive

Member "screentest-2.0/aclocal.m4" (5 Aug 2007, 293908 Bytes) of package /linux/privat/old/screentest-2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
    2 
    3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
    4 # 2005  Free Software Foundation, Inc.
    5 # This file is free software; the Free Software Foundation
    6 # gives unlimited permission to copy and/or distribute it,
    7 # with or without modifications, as long as this notice is preserved.
    8 
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   12 # PARTICULAR PURPOSE.
   13 
   14 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
   15 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
   16 #
   17 # This file is free software, distributed under the terms of the GNU
   18 # General Public License.  As a special exception to the GNU General
   19 # Public License, this file may be distributed as part of a program
   20 # that contains a configuration script generated by Autoconf, under
   21 # the same distribution terms as the rest of that program.
   22 #
   23 # This file can be copied and used freely without restrictions.  It can
   24 # be used in projects which are not available under the GNU Public License
   25 # but which still want to provide support for the GNU gettext functionality.
   26 #
   27 # Macro to add for using GNU gettext.
   28 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
   29 #
   30 # Modified to never use included libintl. 
   31 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
   32 #
   33 # Major rework to remove unused code
   34 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
   35 #
   36 # Added better handling of ALL_LINGUAS from GNU gettext version 
   37 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
   38 #
   39 # Modified to require ngettext
   40 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
   41 #
   42 # We need this here as well, since someone might use autoconf-2.5x
   43 # to configure GLib then an older version to configure a package
   44 # using AM_GLIB_GNU_GETTEXT
   45 AC_PREREQ(2.53)
   46 
   47 dnl
   48 dnl We go to great lengths to make sure that aclocal won't 
   49 dnl try to pull in the installed version of these macros
   50 dnl when running aclocal in the glib directory.
   51 dnl
   52 m4_copy([AC_DEFUN],[glib_DEFUN])
   53 m4_copy([AC_REQUIRE],[glib_REQUIRE])
   54 dnl
   55 dnl At the end, if we're not within glib, we'll define the public
   56 dnl definitions in terms of our private definitions.
   57 dnl
   58 
   59 # GLIB_LC_MESSAGES
   60 #--------------------
   61 glib_DEFUN([GLIB_LC_MESSAGES],
   62   [AC_CHECK_HEADERS([locale.h])
   63     if test $ac_cv_header_locale_h = yes; then
   64     AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
   65       [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
   66        am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
   67     if test $am_cv_val_LC_MESSAGES = yes; then
   68       AC_DEFINE(HAVE_LC_MESSAGES, 1,
   69         [Define if your <locale.h> file defines LC_MESSAGES.])
   70     fi
   71   fi])
   72 
   73 # GLIB_PATH_PROG_WITH_TEST
   74 #----------------------------
   75 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
   76 dnl   TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
   77 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
   78 [# Extract the first word of "$2", so it can be a program name with args.
   79 set dummy $2; ac_word=[$]2
   80 AC_MSG_CHECKING([for $ac_word])
   81 AC_CACHE_VAL(ac_cv_path_$1,
   82 [case "[$]$1" in
   83   /*)
   84   ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
   85   ;;
   86   *)
   87   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
   88   for ac_dir in ifelse([$5], , $PATH, [$5]); do
   89     test -z "$ac_dir" && ac_dir=.
   90     if test -f $ac_dir/$ac_word; then
   91       if [$3]; then
   92     ac_cv_path_$1="$ac_dir/$ac_word"
   93     break
   94       fi
   95     fi
   96   done
   97   IFS="$ac_save_ifs"
   98 dnl If no 4th arg is given, leave the cache variable unset,
   99 dnl so AC_PATH_PROGS will keep looking.
  100 ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  101 ])dnl
  102   ;;
  103 esac])dnl
  104 $1="$ac_cv_path_$1"
  105 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
  106   AC_MSG_RESULT([$]$1)
  107 else
  108   AC_MSG_RESULT(no)
  109 fi
  110 AC_SUBST($1)dnl
  111 ])
  112 
  113 # GLIB_WITH_NLS
  114 #-----------------
  115 glib_DEFUN([GLIB_WITH_NLS],
  116   dnl NLS is obligatory
  117   [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  118     USE_NLS=yes
  119     AC_SUBST(USE_NLS)
  120 
  121     gt_cv_have_gettext=no
  122 
  123     CATOBJEXT=NONE
  124     XGETTEXT=:
  125     INTLLIBS=
  126 
  127     AC_CHECK_HEADER(libintl.h,
  128      [gt_cv_func_dgettext_libintl="no"
  129       libintl_extra_libs=""
  130 
  131       #
  132       # First check in libc
  133       #
  134       AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
  135         [AC_TRY_LINK([
  136 #include <libintl.h>
  137 ],
  138          [return !ngettext ("","", 1)],
  139       gt_cv_func_ngettext_libc=yes,
  140           gt_cv_func_ngettext_libc=no)
  141         ])
  142   
  143       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  144           AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
  145             [AC_TRY_LINK([
  146 #include <libintl.h>
  147 ],
  148               [return !dgettext ("","")],
  149           gt_cv_func_dgettext_libc=yes,
  150               gt_cv_func_dgettext_libc=no)
  151             ])
  152       fi
  153   
  154       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
  155         AC_CHECK_FUNCS(bind_textdomain_codeset)
  156       fi
  157 
  158       #
  159       # If we don't have everything we want, check in libintl
  160       #
  161       if test "$gt_cv_func_dgettext_libc" != "yes" \
  162      || test "$gt_cv_func_ngettext_libc" != "yes" \
  163          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
  164         
  165         AC_CHECK_LIB(intl, bindtextdomain,
  166         [AC_CHECK_LIB(intl, ngettext,
  167             [AC_CHECK_LIB(intl, dgettext,
  168                       gt_cv_func_dgettext_libintl=yes)])])
  169 
  170     if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
  171       AC_MSG_CHECKING([if -liconv is needed to use gettext])
  172       AC_MSG_RESULT([])
  173       AC_CHECK_LIB(intl, ngettext,
  174             [AC_CHECK_LIB(intl, dcgettext,
  175                [gt_cv_func_dgettext_libintl=yes
  176             libintl_extra_libs=-liconv],
  177             :,-liconv)],
  178         :,-liconv)
  179         fi
  180 
  181         #
  182         # If we found libintl, then check in it for bind_textdomain_codeset();
  183         # we'll prefer libc if neither have bind_textdomain_codeset(),
  184         # and both have dgettext and ngettext
  185         #
  186         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
  187           glib_save_LIBS="$LIBS"
  188           LIBS="$LIBS -lintl $libintl_extra_libs"
  189           unset ac_cv_func_bind_textdomain_codeset
  190           AC_CHECK_FUNCS(bind_textdomain_codeset)
  191           LIBS="$glib_save_LIBS"
  192 
  193           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
  194             gt_cv_func_dgettext_libc=no
  195           else
  196             if test "$gt_cv_func_dgettext_libc" = "yes" \
  197         && test "$gt_cv_func_ngettext_libc" = "yes"; then
  198               gt_cv_func_dgettext_libintl=no
  199             fi
  200           fi
  201         fi
  202       fi
  203 
  204       if test "$gt_cv_func_dgettext_libc" = "yes" \
  205     || test "$gt_cv_func_dgettext_libintl" = "yes"; then
  206         gt_cv_have_gettext=yes
  207       fi
  208   
  209       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
  210         INTLLIBS="-lintl $libintl_extra_libs"
  211       fi
  212   
  213       if test "$gt_cv_have_gettext" = "yes"; then
  214     AC_DEFINE(HAVE_GETTEXT,1,
  215       [Define if the GNU gettext() function is already present or preinstalled.])
  216     GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
  217       [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
  218     if test "$MSGFMT" != "no"; then
  219           glib_save_LIBS="$LIBS"
  220           LIBS="$LIBS $INTLLIBS"
  221       AC_CHECK_FUNCS(dcgettext)
  222       MSGFMT_OPTS=
  223       AC_MSG_CHECKING([if msgfmt accepts -c])
  224       GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
  225 msgid ""
  226 msgstr ""
  227 "Content-Type: text/plain; charset=UTF-8\n"
  228 "Project-Id-Version: test 1.0\n"
  229 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
  230 "Last-Translator: test <foo@bar.xx>\n"
  231 "Language-Team: C <LL@li.org>\n"
  232 "MIME-Version: 1.0\n"
  233 "Content-Transfer-Encoding: 8bit\n"
  234 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
  235       AC_SUBST(MSGFMT_OPTS)
  236       AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
  237       GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
  238         [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
  239       AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
  240              return _nl_msg_cat_cntr],
  241         [CATOBJEXT=.gmo 
  242              DATADIRNAME=share],
  243         [case $host in
  244         *-*-solaris*)
  245         dnl On Solaris, if bind_textdomain_codeset is in libc,
  246         dnl GNU format message catalog is always supported,
  247             dnl since both are added to the libc all together.
  248         dnl Hence, we'd like to go with DATADIRNAME=share and
  249         dnl and CATOBJEXT=.gmo in this case.
  250             AC_CHECK_FUNC(bind_textdomain_codeset,
  251           [CATOBJEXT=.gmo 
  252                DATADIRNAME=share],
  253           [CATOBJEXT=.mo
  254                DATADIRNAME=lib])
  255         ;;
  256         *)
  257         CATOBJEXT=.mo
  258             DATADIRNAME=lib
  259         ;;
  260         esac])
  261           LIBS="$glib_save_LIBS"
  262       INSTOBJEXT=.mo
  263     else
  264       gt_cv_have_gettext=no
  265     fi
  266       fi
  267     ])
  268 
  269     if test "$gt_cv_have_gettext" = "yes" ; then
  270       AC_DEFINE(ENABLE_NLS, 1,
  271         [always defined to indicate that i18n is enabled])
  272     fi
  273 
  274     dnl Test whether we really found GNU xgettext.
  275     if test "$XGETTEXT" != ":"; then
  276       dnl If it is not GNU xgettext we define it as : so that the
  277       dnl Makefiles still can work.
  278       if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
  279         : ;
  280       else
  281         AC_MSG_RESULT(
  282       [found xgettext program is not GNU xgettext; ignore it])
  283         XGETTEXT=":"
  284       fi
  285     fi
  286 
  287     # We need to process the po/ directory.
  288     POSUB=po
  289 
  290     AC_OUTPUT_COMMANDS(
  291       [case "$CONFIG_FILES" in *po/Makefile.in*)
  292         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
  293       esac])
  294 
  295     dnl These rules are solely for the distribution goal.  While doing this
  296     dnl we only have to keep exactly one list of the available catalogs
  297     dnl in configure.in.
  298     for lang in $ALL_LINGUAS; do
  299       GMOFILES="$GMOFILES $lang.gmo"
  300       POFILES="$POFILES $lang.po"
  301     done
  302 
  303     dnl Make all variables we use known to autoconf.
  304     AC_SUBST(CATALOGS)
  305     AC_SUBST(CATOBJEXT)
  306     AC_SUBST(DATADIRNAME)
  307     AC_SUBST(GMOFILES)
  308     AC_SUBST(INSTOBJEXT)
  309     AC_SUBST(INTLLIBS)
  310     AC_SUBST(PO_IN_DATADIR_TRUE)
  311     AC_SUBST(PO_IN_DATADIR_FALSE)
  312     AC_SUBST(POFILES)
  313     AC_SUBST(POSUB)
  314   ])
  315 
  316 # AM_GLIB_GNU_GETTEXT
  317 # -------------------
  318 # Do checks necessary for use of gettext. If a suitable implementation 
  319 # of gettext is found in either in libintl or in the C library,
  320 # it will set INTLLIBS to the libraries needed for use of gettext
  321 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
  322 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
  323 # on various variables needed by the Makefile.in.in installed by 
  324 # glib-gettextize.
  325 dnl
  326 glib_DEFUN([GLIB_GNU_GETTEXT],
  327   [AC_REQUIRE([AC_PROG_CC])dnl
  328    AC_REQUIRE([AC_HEADER_STDC])dnl
  329    
  330    GLIB_LC_MESSAGES
  331    GLIB_WITH_NLS
  332 
  333    if test "$gt_cv_have_gettext" = "yes"; then
  334      if test "x$ALL_LINGUAS" = "x"; then
  335        LINGUAS=
  336      else
  337        AC_MSG_CHECKING(for catalogs to be installed)
  338        NEW_LINGUAS=
  339        for presentlang in $ALL_LINGUAS; do
  340          useit=no
  341          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
  342            desiredlanguages="$LINGUAS"
  343          else
  344            desiredlanguages="$ALL_LINGUAS"
  345          fi
  346          for desiredlang in $desiredlanguages; do
  347        # Use the presentlang catalog if desiredlang is
  348            #   a. equal to presentlang, or
  349            #   b. a variant of presentlang (because in this case,
  350            #      presentlang can be used as a fallback for messages
  351            #      which are not translated in the desiredlang catalog).
  352            case "$desiredlang" in
  353              "$presentlang"*) useit=yes;;
  354            esac
  355          done
  356          if test $useit = yes; then
  357            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
  358          fi
  359        done
  360        LINGUAS=$NEW_LINGUAS
  361        AC_MSG_RESULT($LINGUAS)
  362      fi
  363 
  364      dnl Construct list of names of catalog files to be constructed.
  365      if test -n "$LINGUAS"; then
  366        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
  367      fi
  368    fi
  369 
  370    dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
  371    dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
  372    dnl Try to locate is.
  373    MKINSTALLDIRS=
  374    if test -n "$ac_aux_dir"; then
  375      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
  376    fi
  377    if test -z "$MKINSTALLDIRS"; then
  378      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  379    fi
  380    AC_SUBST(MKINSTALLDIRS)
  381 
  382    dnl Generate list of files to be processed by xgettext which will
  383    dnl be included in po/Makefile.
  384    test -d po || mkdir po
  385    if test "x$srcdir" != "x."; then
  386      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
  387        posrcprefix="$srcdir/"
  388      else
  389        posrcprefix="../$srcdir/"
  390      fi
  391    else
  392      posrcprefix="../"
  393    fi
  394    rm -f po/POTFILES
  395    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
  396     < $srcdir/po/POTFILES.in > po/POTFILES
  397   ])
  398 
  399 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
  400 # -------------------------------
  401 # Define VARIABLE to the location where catalog files will
  402 # be installed by po/Makefile.
  403 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
  404 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
  405 glib_save_prefix="$prefix"
  406 glib_save_exec_prefix="$exec_prefix"
  407 glib_save_datarootdir="$datarootdir"
  408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
  409 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
  410 datarootdir=`eval echo "${datarootdir}"`
  411 if test "x$CATOBJEXT" = "x.mo" ; then
  412   localedir=`eval echo "${libdir}/locale"`
  413 else
  414   localedir=`eval echo "${datadir}/locale"`
  415 fi
  416 prefix="$glib_save_prefix"
  417 exec_prefix="$glib_save_exec_prefix"
  418 datarootdir="$glib_save_datarootdir"
  419 AC_DEFINE_UNQUOTED($1, "$localedir",
  420   [Define the location where the catalogs will be installed])
  421 ])
  422 
  423 dnl
  424 dnl Now the definitions that aclocal will find
  425 dnl
  426 ifdef(glib_configure_in,[],[
  427 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
  428 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
  429 ])dnl
  430 
  431 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
  432 # 
  433 # Create a temporary file with TEST-FILE as its contents and pass the
  434 # file name to PROGRAM.  Perform ACTION-IF-PASS if PROGRAM exits with
  435 # 0 and perform ACTION-IF-FAIL for any other exit status.
  436 AC_DEFUN([GLIB_RUN_PROG],
  437 [cat >conftest.foo <<_ACEOF
  438 $2
  439 _ACEOF
  440 if AC_RUN_LOG([$1 conftest.foo]); then
  441   m4_ifval([$3], [$3], [:])
  442 m4_ifvaln([$4], [else $4])dnl
  443 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
  444 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
  445 fi])
  446 
  447 
  448 # Configure paths for GTK+
  449 # Owen Taylor     1997-2001
  450 
  451 dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
  452 dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES, 
  453 dnl pass to pkg-config
  454 dnl
  455 AC_DEFUN([AM_PATH_GTK_2_0],
  456 [dnl 
  457 dnl Get the cflags and libraries from pkg-config
  458 dnl
  459 AC_ARG_ENABLE(gtktest, [  --disable-gtktest       do not try to compile and run a test GTK+ program],
  460             , enable_gtktest=yes)
  461 
  462   pkg_config_args=gtk+-2.0
  463   for module in . $4
  464   do
  465       case "$module" in
  466          gthread) 
  467              pkg_config_args="$pkg_config_args gthread-2.0"
  468          ;;
  469       esac
  470   done
  471 
  472   no_gtk=""
  473 
  474   AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  475 
  476   if test x$PKG_CONFIG != xno ; then
  477     if pkg-config --atleast-pkgconfig-version 0.7 ; then
  478       :
  479     else
  480       echo "*** pkg-config too old; version 0.7 or better required."
  481       no_gtk=yes
  482       PKG_CONFIG=no
  483     fi
  484   else
  485     no_gtk=yes
  486   fi
  487 
  488   min_gtk_version=ifelse([$1], ,2.0.0,$1)
  489   AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
  490 
  491   if test x$PKG_CONFIG != xno ; then
  492     ## don't try to run the test against uninstalled libtool libs
  493     if $PKG_CONFIG --uninstalled $pkg_config_args; then
  494       echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
  495       enable_gtktest=no
  496     fi
  497 
  498     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
  499       :
  500     else
  501       no_gtk=yes
  502     fi
  503   fi
  504 
  505   if test x"$no_gtk" = x ; then
  506     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
  507     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
  508     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  509            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
  510     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  511            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
  512     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  513            sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
  514     if test "x$enable_gtktest" = "xyes" ; then
  515       ac_save_CFLAGS="$CFLAGS"
  516       ac_save_LIBS="$LIBS"
  517       CFLAGS="$CFLAGS $GTK_CFLAGS"
  518       LIBS="$GTK_LIBS $LIBS"
  519 dnl
  520 dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
  521 dnl checks the results of pkg-config to some extent)
  522 dnl
  523       rm -f conf.gtktest
  524       AC_TRY_RUN([
  525 #include <gtk/gtk.h>
  526 #include <stdio.h>
  527 #include <stdlib.h>
  528 
  529 int 
  530 main ()
  531 {
  532   int major, minor, micro;
  533   char *tmp_version;
  534 
  535   system ("touch conf.gtktest");
  536 
  537   /* HP/UX 9 (%@#!) writes to sscanf strings */
  538   tmp_version = g_strdup("$min_gtk_version");
  539   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  540      printf("%s, bad version string\n", "$min_gtk_version");
  541      exit(1);
  542    }
  543 
  544   if ((gtk_major_version != $gtk_config_major_version) ||
  545       (gtk_minor_version != $gtk_config_minor_version) ||
  546       (gtk_micro_version != $gtk_config_micro_version))
  547     {
  548       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  549              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  550              gtk_major_version, gtk_minor_version, gtk_micro_version);
  551       printf ("*** was found! If pkg-config was correct, then it is best\n");
  552       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  553       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  554       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  555       printf("*** required on your system.\n");
  556       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
  557       printf("*** to point to the correct configuration files\n");
  558     } 
  559   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  560        (gtk_minor_version != GTK_MINOR_VERSION) ||
  561            (gtk_micro_version != GTK_MICRO_VERSION))
  562     {
  563       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  564          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  565       printf("*** library (version %d.%d.%d)\n",
  566          gtk_major_version, gtk_minor_version, gtk_micro_version);
  567     }
  568   else
  569     {
  570       if ((gtk_major_version > major) ||
  571         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  572         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  573       {
  574         return 0;
  575        }
  576      else
  577       {
  578         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  579                gtk_major_version, gtk_minor_version, gtk_micro_version);
  580         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  581            major, minor, micro);
  582         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  583         printf("***\n");
  584         printf("*** If you have already installed a sufficiently new version, this error\n");
  585         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
  586         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  587         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
  588         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
  589         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  590         printf("*** so that the correct libraries are found at run-time))\n");
  591       }
  592     }
  593   return 1;
  594 }
  595 ],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
  596        CFLAGS="$ac_save_CFLAGS"
  597        LIBS="$ac_save_LIBS"
  598      fi
  599   fi
  600   if test "x$no_gtk" = x ; then
  601      AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
  602      ifelse([$2], , :, [$2])     
  603   else
  604      AC_MSG_RESULT(no)
  605      if test "$PKG_CONFIG" = "no" ; then
  606        echo "*** A new enough version of pkg-config was not found."
  607        echo "*** See http://pkgconfig.sourceforge.net"
  608      else
  609        if test -f conf.gtktest ; then
  610         :
  611        else
  612           echo "*** Could not run GTK+ test program, checking why..."
  613       ac_save_CFLAGS="$CFLAGS"
  614       ac_save_LIBS="$LIBS"
  615           CFLAGS="$CFLAGS $GTK_CFLAGS"
  616           LIBS="$LIBS $GTK_LIBS"
  617           AC_TRY_LINK([
  618 #include <gtk/gtk.h>
  619 #include <stdio.h>
  620 ],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
  621         [ echo "*** The test program compiled, but did not run. This usually means"
  622           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
  623           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
  624           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  625           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  626           echo "*** is required on your system"
  627       echo "***"
  628           echo "*** If you have an old version installed, it is best to remove it, although"
  629           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
  630         [ echo "*** The test program failed to compile or link. See the file config.log for the"
  631           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
  632           CFLAGS="$ac_save_CFLAGS"
  633           LIBS="$ac_save_LIBS"
  634        fi
  635      fi
  636      GTK_CFLAGS=""
  637      GTK_LIBS=""
  638      ifelse([$3], , :, [$3])
  639   fi
  640   AC_SUBST(GTK_CFLAGS)
  641   AC_SUBST(GTK_LIBS)
  642   rm -f conf.gtktest
  643 ])
  644 
  645 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  646 
  647 # serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
  648 
  649 
  650 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  651 # -----------------------------------------------------------
  652 # If this macro is not defined by Autoconf, define it here.
  653 m4_ifdef([AC_PROVIDE_IFELSE],
  654          [],
  655          [m4_define([AC_PROVIDE_IFELSE],
  656              [m4_ifdef([AC_PROVIDE_$1],
  657                    [$2], [$3])])])
  658 
  659 
  660 # AC_PROG_LIBTOOL
  661 # ---------------
  662 AC_DEFUN([AC_PROG_LIBTOOL],
  663 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  664 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  665 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  666   AC_PROVIDE_IFELSE([AC_PROG_CXX],
  667     [AC_LIBTOOL_CXX],
  668     [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  669   ])])
  670 dnl And a similar setup for Fortran 77 support
  671   AC_PROVIDE_IFELSE([AC_PROG_F77],
  672     [AC_LIBTOOL_F77],
  673     [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  674 ])])
  675 
  676 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  677 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  678 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  679   AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  680     [AC_LIBTOOL_GCJ],
  681     [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  682       [AC_LIBTOOL_GCJ],
  683       [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  684     [AC_LIBTOOL_GCJ],
  685       [ifdef([AC_PROG_GCJ],
  686          [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  687        ifdef([A][M_PROG_GCJ],
  688          [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  689        ifdef([LT_AC_PROG_GCJ],
  690          [define([LT_AC_PROG_GCJ],
  691         defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  692 ])])# AC_PROG_LIBTOOL
  693 
  694 
  695 # _AC_PROG_LIBTOOL
  696 # ----------------
  697 AC_DEFUN([_AC_PROG_LIBTOOL],
  698 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  699 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  700 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  701 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  702 
  703 # This can be used to rebuild libtool when needed
  704 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  705 
  706 # Always use our own libtool.
  707 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  708 AC_SUBST(LIBTOOL)dnl
  709 
  710 # Prevent multiple expansion
  711 define([AC_PROG_LIBTOOL], [])
  712 ])# _AC_PROG_LIBTOOL
  713 
  714 
  715 # AC_LIBTOOL_SETUP
  716 # ----------------
  717 AC_DEFUN([AC_LIBTOOL_SETUP],
  718 [AC_PREREQ(2.50)dnl
  719 AC_REQUIRE([AC_ENABLE_SHARED])dnl
  720 AC_REQUIRE([AC_ENABLE_STATIC])dnl
  721 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  722 AC_REQUIRE([AC_CANONICAL_HOST])dnl
  723 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  724 AC_REQUIRE([AC_PROG_CC])dnl
  725 AC_REQUIRE([AC_PROG_LD])dnl
  726 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  727 AC_REQUIRE([AC_PROG_NM])dnl
  728 
  729 AC_REQUIRE([AC_PROG_LN_S])dnl
  730 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  731 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  732 AC_REQUIRE([AC_OBJEXT])dnl
  733 AC_REQUIRE([AC_EXEEXT])dnl
  734 dnl
  735 
  736 AC_LIBTOOL_SYS_MAX_CMD_LEN
  737 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  738 AC_LIBTOOL_OBJDIR
  739 
  740 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  741 _LT_AC_PROG_ECHO_BACKSLASH
  742 
  743 case $host_os in
  744 aix3*)
  745   # AIX sometimes has problems with the GCC collect2 program.  For some
  746   # reason, if we set the COLLECT_NAMES environment variable, the problems
  747   # vanish in a puff of smoke.
  748   if test "X${COLLECT_NAMES+set}" != Xset; then
  749     COLLECT_NAMES=
  750     export COLLECT_NAMES
  751   fi
  752   ;;
  753 esac
  754 
  755 # Sed substitution that helps us do robust quoting.  It backslashifies
  756 # metacharacters that are still active within double-quoted strings.
  757 Xsed='sed -e 1s/^X//'
  758 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  759 
  760 # Same as above, but do not quote variable references.
  761 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  762 
  763 # Sed substitution to delay expansion of an escaped shell variable in a
  764 # double_quote_subst'ed string.
  765 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  766 
  767 # Sed substitution to avoid accidental globbing in evaled expressions
  768 no_glob_subst='s/\*/\\\*/g'
  769 
  770 # Constants:
  771 rm="rm -f"
  772 
  773 # Global variables:
  774 default_ofile=libtool
  775 can_build_shared=yes
  776 
  777 # All known linkers require a `.a' archive for static linking (except MSVC,
  778 # which needs '.lib').
  779 libext=a
  780 ltmain="$ac_aux_dir/ltmain.sh"
  781 ofile="$default_ofile"
  782 with_gnu_ld="$lt_cv_prog_gnu_ld"
  783 
  784 AC_CHECK_TOOL(AR, ar, false)
  785 AC_CHECK_TOOL(RANLIB, ranlib, :)
  786 AC_CHECK_TOOL(STRIP, strip, :)
  787 
  788 old_CC="$CC"
  789 old_CFLAGS="$CFLAGS"
  790 
  791 # Set sane defaults for various variables
  792 test -z "$AR" && AR=ar
  793 test -z "$AR_FLAGS" && AR_FLAGS=cru
  794 test -z "$AS" && AS=as
  795 test -z "$CC" && CC=cc
  796 test -z "$LTCC" && LTCC=$CC
  797 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  798 test -z "$DLLTOOL" && DLLTOOL=dlltool
  799 test -z "$LD" && LD=ld
  800 test -z "$LN_S" && LN_S="ln -s"
  801 test -z "$MAGIC_CMD" && MAGIC_CMD=file
  802 test -z "$NM" && NM=nm
  803 test -z "$SED" && SED=sed
  804 test -z "$OBJDUMP" && OBJDUMP=objdump
  805 test -z "$RANLIB" && RANLIB=:
  806 test -z "$STRIP" && STRIP=:
  807 test -z "$ac_objext" && ac_objext=o
  808 
  809 # Determine commands to create old-style static archives.
  810 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  811 old_postinstall_cmds='chmod 644 $oldlib'
  812 old_postuninstall_cmds=
  813 
  814 if test -n "$RANLIB"; then
  815   case $host_os in
  816   openbsd*)
  817     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  818     ;;
  819   *)
  820     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  821     ;;
  822   esac
  823   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  824 fi
  825 
  826 _LT_CC_BASENAME([$compiler])
  827 
  828 # Only perform the check for file, if the check method requires it
  829 case $deplibs_check_method in
  830 file_magic*)
  831   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  832     AC_PATH_MAGIC
  833   fi
  834   ;;
  835 esac
  836 
  837 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  838 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  839 enable_win32_dll=yes, enable_win32_dll=no)
  840 
  841 AC_ARG_ENABLE([libtool-lock],
  842     [AC_HELP_STRING([--disable-libtool-lock],
  843     [avoid locking (might break parallel builds)])])
  844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  845 
  846 AC_ARG_WITH([pic],
  847     [AC_HELP_STRING([--with-pic],
  848     [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  849     [pic_mode="$withval"],
  850     [pic_mode=default])
  851 test -z "$pic_mode" && pic_mode=default
  852 
  853 # Use C for the default configuration in the libtool script
  854 tagname=
  855 AC_LIBTOOL_LANG_C_CONFIG
  856 _LT_AC_TAGCONFIG
  857 ])# AC_LIBTOOL_SETUP
  858 
  859 
  860 # _LT_AC_SYS_COMPILER
  861 # -------------------
  862 AC_DEFUN([_LT_AC_SYS_COMPILER],
  863 [AC_REQUIRE([AC_PROG_CC])dnl
  864 
  865 # If no C compiler was specified, use CC.
  866 LTCC=${LTCC-"$CC"}
  867 
  868 # If no C compiler flags were specified, use CFLAGS.
  869 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  870 
  871 # Allow CC to be a program name with arguments.
  872 compiler=$CC
  873 ])# _LT_AC_SYS_COMPILER
  874 
  875 
  876 # _LT_CC_BASENAME(CC)
  877 # -------------------
  878 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  879 AC_DEFUN([_LT_CC_BASENAME],
  880 [for cc_temp in $1""; do
  881   case $cc_temp in
  882     compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  883     distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  884     \-*) ;;
  885     *) break;;
  886   esac
  887 done
  888 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  889 ])
  890 
  891 
  892 # _LT_COMPILER_BOILERPLATE
  893 # ------------------------
  894 # Check for compiler boilerplate output or warnings with
  895 # the simple compiler test code.
  896 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  897 [AC_REQUIRE([LT_AC_PROG_SED])dnl
  898 ac_outfile=conftest.$ac_objext
  899 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  901 _lt_compiler_boilerplate=`cat conftest.err`
  902 $rm conftest*
  903 ])# _LT_COMPILER_BOILERPLATE
  904 
  905 
  906 # _LT_LINKER_BOILERPLATE
  907 # ----------------------
  908 # Check for linker boilerplate output or warnings with
  909 # the simple link test code.
  910 AC_DEFUN([_LT_LINKER_BOILERPLATE],
  911 [AC_REQUIRE([LT_AC_PROG_SED])dnl
  912 ac_outfile=conftest.$ac_objext
  913 echo "$lt_simple_link_test_code" >conftest.$ac_ext
  914 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  915 _lt_linker_boilerplate=`cat conftest.err`
  916 $rm conftest*
  917 ])# _LT_LINKER_BOILERPLATE
  918 
  919 
  920 # _LT_AC_SYS_LIBPATH_AIX
  921 # ----------------------
  922 # Links a minimal program and checks the executable
  923 # for the system default hardcoded library path. In most cases,
  924 # this is /usr/lib:/lib, but when the MPI compilers are used
  925 # the location of the communication and MPI libs are included too.
  926 # If we don't find anything, use the default library path according
  927 # to the aix ld manual.
  928 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  929 [AC_REQUIRE([LT_AC_PROG_SED])dnl
  930 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  931 lt_aix_libpath_sed='
  932     /Import File Strings/,/^$/ {
  933     /^0/ {
  934         s/^0  *\(.*\)$/\1/
  935         p
  936     }
  937     }'
  938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  939 # Check for a 64-bit object if we didn't find anything.
  940 if test -z "$aix_libpath"; then
  941   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  942 fi],[])
  943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  944 ])# _LT_AC_SYS_LIBPATH_AIX
  945 
  946 
  947 # _LT_AC_SHELL_INIT(ARG)
  948 # ----------------------
  949 AC_DEFUN([_LT_AC_SHELL_INIT],
  950 [ifdef([AC_DIVERSION_NOTICE],
  951          [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  952      [AC_DIVERT_PUSH(NOTICE)])
  953 $1
  954 AC_DIVERT_POP
  955 ])# _LT_AC_SHELL_INIT
  956 
  957 
  958 # _LT_AC_PROG_ECHO_BACKSLASH
  959 # --------------------------
  960 # Add some code to the start of the generated configure script which
  961 # will find an echo command which doesn't interpret backslashes.
  962 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  963 [_LT_AC_SHELL_INIT([
  964 # Check that we are running under the correct shell.
  965 SHELL=${CONFIG_SHELL-/bin/sh}
  966 
  967 case X$ECHO in
  968 X*--fallback-echo)
  969   # Remove one level of quotation (which was required for Make).
  970   ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  971   ;;
  972 esac
  973 
  974 echo=${ECHO-echo}
  975 if test "X[$]1" = X--no-reexec; then
  976   # Discard the --no-reexec flag, and continue.
  977   shift
  978 elif test "X[$]1" = X--fallback-echo; then
  979   # Avoid inline document here, it may be left over
  980   :
  981 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  982   # Yippee, $echo works!
  983   :
  984 else
  985   # Restart under the correct shell.
  986   exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  987 fi
  988 
  989 if test "X[$]1" = X--fallback-echo; then
  990   # used as fallback echo
  991   shift
  992   cat <<EOF
  993 [$]*
  994 EOF
  995   exit 0
  996 fi
  997 
  998 # The HP-UX ksh and POSIX shell print the target directory to stdout
  999 # if CDPATH is set.
 1000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 1001 
 1002 if test -z "$ECHO"; then
 1003 if test "X${echo_test_string+set}" != Xset; then
 1004 # find a string as large as possible, as long as the shell can cope with it
 1005   for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
 1006     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 1007     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 1008        echo_test_string=`eval $cmd` &&
 1009        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 1010     then
 1011       break
 1012     fi
 1013   done
 1014 fi
 1015 
 1016 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 1017    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 1018    test "X$echo_testing_string" = "X$echo_test_string"; then
 1019   :
 1020 else
 1021   # The Solaris, AIX, and Digital Unix default echo programs unquote
 1022   # backslashes.  This makes it impossible to quote backslashes using
 1023   #   echo "$something" | sed 's/\\/\\\\/g'
 1024   #
 1025   # So, first we look for a working echo in the user's PATH.
 1026 
 1027   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 1028   for dir in $PATH /usr/ucb; do
 1029     IFS="$lt_save_ifs"
 1030     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 1031        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 1032        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 1033        test "X$echo_testing_string" = "X$echo_test_string"; then
 1034       echo="$dir/echo"
 1035       break
 1036     fi
 1037   done
 1038   IFS="$lt_save_ifs"
 1039 
 1040   if test "X$echo" = Xecho; then
 1041     # We didn't find a better echo, so look for alternatives.
 1042     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 1043        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 1044        test "X$echo_testing_string" = "X$echo_test_string"; then
 1045       # This shell has a builtin print -r that does the trick.
 1046       echo='print -r'
 1047     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 1048      test "X$CONFIG_SHELL" != X/bin/ksh; then
 1049       # If we have ksh, try running configure again with it.
 1050       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 1051       export ORIGINAL_CONFIG_SHELL
 1052       CONFIG_SHELL=/bin/ksh
 1053       export CONFIG_SHELL
 1054       exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
 1055     else
 1056       # Try using printf.
 1057       echo='printf %s\n'
 1058       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 1059      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 1060      test "X$echo_testing_string" = "X$echo_test_string"; then
 1061     # Cool, printf works
 1062     :
 1063       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 1064        test "X$echo_testing_string" = 'X\t' &&
 1065        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 1066        test "X$echo_testing_string" = "X$echo_test_string"; then
 1067     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 1068     export CONFIG_SHELL
 1069     SHELL="$CONFIG_SHELL"
 1070     export SHELL
 1071     echo="$CONFIG_SHELL [$]0 --fallback-echo"
 1072       elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
 1073        test "X$echo_testing_string" = 'X\t' &&
 1074        echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 1075        test "X$echo_testing_string" = "X$echo_test_string"; then
 1076     echo="$CONFIG_SHELL [$]0 --fallback-echo"
 1077       else
 1078     # maybe with a smaller string...
 1079     prev=:
 1080 
 1081     for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
 1082       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 1083       then
 1084         break
 1085       fi
 1086       prev="$cmd"
 1087     done
 1088 
 1089     if test "$prev" != 'sed 50q "[$]0"'; then
 1090       echo_test_string=`eval $prev`
 1091       export echo_test_string
 1092       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
 1093     else
 1094       # Oops.  We lost completely, so just stick with echo.
 1095       echo=echo
 1096     fi
 1097       fi
 1098     fi
 1099   fi
 1100 fi
 1101 fi
 1102 
 1103 # Copy echo and quote the copy suitably for passing to libtool from
 1104 # the Makefile, instead of quoting the original, which is used later.
 1105 ECHO=$echo
 1106 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
 1107    ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
 1108 fi
 1109 
 1110 AC_SUBST(ECHO)
 1111 ])])# _LT_AC_PROG_ECHO_BACKSLASH
 1112 
 1113 
 1114 # _LT_AC_LOCK
 1115 # -----------
 1116 AC_DEFUN([_LT_AC_LOCK],
 1117 [AC_ARG_ENABLE([libtool-lock],
 1118     [AC_HELP_STRING([--disable-libtool-lock],
 1119     [avoid locking (might break parallel builds)])])
 1120 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 1121 
 1122 # Some flags need to be propagated to the compiler or linker for good
 1123 # libtool support.
 1124 case $host in
 1125 ia64-*-hpux*)
 1126   # Find out which ABI we are using.
 1127   echo 'int i;' > conftest.$ac_ext
 1128   if AC_TRY_EVAL(ac_compile); then
 1129     case `/usr/bin/file conftest.$ac_objext` in
 1130     *ELF-32*)
 1131       HPUX_IA64_MODE="32"
 1132       ;;
 1133     *ELF-64*)
 1134       HPUX_IA64_MODE="64"
 1135       ;;
 1136     esac
 1137   fi
 1138   rm -rf conftest*
 1139   ;;
 1140 *-*-irix6*)
 1141   # Find out which ABI we are using.
 1142   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
 1143   if AC_TRY_EVAL(ac_compile); then
 1144    if test "$lt_cv_prog_gnu_ld" = yes; then
 1145     case `/usr/bin/file conftest.$ac_objext` in
 1146     *32-bit*)
 1147       LD="${LD-ld} -melf32bsmip"
 1148       ;;
 1149     *N32*)
 1150       LD="${LD-ld} -melf32bmipn32"
 1151       ;;
 1152     *64-bit*)
 1153       LD="${LD-ld} -melf64bmip"
 1154       ;;
 1155     esac
 1156    else
 1157     case `/usr/bin/file conftest.$ac_objext` in
 1158     *32-bit*)
 1159       LD="${LD-ld} -32"
 1160       ;;
 1161     *N32*)
 1162       LD="${LD-ld} -n32"
 1163       ;;
 1164     *64-bit*)
 1165       LD="${LD-ld} -64"
 1166       ;;
 1167     esac
 1168    fi
 1169   fi
 1170   rm -rf conftest*
 1171   ;;
 1172 
 1173 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 1174 s390*-*linux*|sparc*-*linux*)
 1175   # Find out which ABI we are using.
 1176   echo 'int i;' > conftest.$ac_ext
 1177   if AC_TRY_EVAL(ac_compile); then
 1178     case `/usr/bin/file conftest.o` in
 1179     *32-bit*)
 1180       case $host in
 1181         x86_64-*kfreebsd*-gnu)
 1182           LD="${LD-ld} -m elf_i386_fbsd"
 1183           ;;
 1184         x86_64-*linux*)
 1185           LD="${LD-ld} -m elf_i386"
 1186           ;;
 1187         ppc64-*linux*|powerpc64-*linux*)
 1188           LD="${LD-ld} -m elf32ppclinux"
 1189           ;;
 1190         s390x-*linux*)
 1191           LD="${LD-ld} -m elf_s390"
 1192           ;;
 1193         sparc64-*linux*)
 1194           LD="${LD-ld} -m elf32_sparc"
 1195           ;;
 1196       esac
 1197       ;;
 1198     *64-bit*)
 1199       case $host in
 1200         x86_64-*kfreebsd*-gnu)
 1201           LD="${LD-ld} -m elf_x86_64_fbsd"
 1202           ;;
 1203         x86_64-*linux*)
 1204           LD="${LD-ld} -m elf_x86_64"
 1205           ;;
 1206         ppc*-*linux*|powerpc*-*linux*)
 1207           LD="${LD-ld} -m elf64ppc"
 1208           ;;
 1209         s390*-*linux*)
 1210           LD="${LD-ld} -m elf64_s390"
 1211           ;;
 1212         sparc*-*linux*)
 1213           LD="${LD-ld} -m elf64_sparc"
 1214           ;;
 1215       esac
 1216       ;;
 1217     esac
 1218   fi
 1219   rm -rf conftest*
 1220   ;;
 1221 
 1222 *-*-sco3.2v5*)
 1223   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 1224   SAVE_CFLAGS="$CFLAGS"
 1225   CFLAGS="$CFLAGS -belf"
 1226   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 1227     [AC_LANG_PUSH(C)
 1228      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 1229      AC_LANG_POP])
 1230   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 1231     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 1232     CFLAGS="$SAVE_CFLAGS"
 1233   fi
 1234   ;;
 1235 sparc*-*solaris*)
 1236   # Find out which ABI we are using.
 1237   echo 'int i;' > conftest.$ac_ext
 1238   if AC_TRY_EVAL(ac_compile); then
 1239     case `/usr/bin/file conftest.o` in
 1240     *64-bit*)
 1241       case $lt_cv_prog_gnu_ld in
 1242       yes*) LD="${LD-ld} -m elf64_sparc" ;;
 1243       *)    LD="${LD-ld} -64" ;;
 1244       esac
 1245       ;;
 1246     esac
 1247   fi
 1248   rm -rf conftest*
 1249   ;;
 1250 
 1251 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
 1252 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 1253   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 1254   AC_CHECK_TOOL(AS, as, false)
 1255   AC_CHECK_TOOL(OBJDUMP, objdump, false)
 1256   ;;
 1257   ])
 1258 esac
 1259 
 1260 need_locks="$enable_libtool_lock"
 1261 
 1262 ])# _LT_AC_LOCK
 1263 
 1264 
 1265 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1266 #       [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 1267 # ----------------------------------------------------------------
 1268 # Check whether the given compiler option works
 1269 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
 1270 [AC_REQUIRE([LT_AC_PROG_SED])
 1271 AC_CACHE_CHECK([$1], [$2],
 1272   [$2=no
 1273   ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 1274    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 1275    lt_compiler_flag="$3"
 1276    # Insert the option either (1) after the last *FLAGS variable, or
 1277    # (2) before a word containing "conftest.", or (3) at the end.
 1278    # Note that $ac_compile itself does not contain backslashes and begins
 1279    # with a dollar sign (not a hyphen), so the echo should work correctly.
 1280    # The option is referenced via a variable to avoid confusing sed.
 1281    lt_compile=`echo "$ac_compile" | $SED \
 1282    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 1283    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 1284    -e 's:$: $lt_compiler_flag:'`
 1285    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 1286    (eval "$lt_compile" 2>conftest.err)
 1287    ac_status=$?
 1288    cat conftest.err >&AS_MESSAGE_LOG_FD
 1289    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1290    if (exit $ac_status) && test -s "$ac_outfile"; then
 1291      # The compiler can only warn and ignore the option if not recognized
 1292      # So say no if there are warnings other than the usual output.
 1293      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 1294      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1295      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 1296        $2=yes
 1297      fi
 1298    fi
 1299    $rm conftest*
 1300 ])
 1301 
 1302 if test x"[$]$2" = xyes; then
 1303     ifelse([$5], , :, [$5])
 1304 else
 1305     ifelse([$6], , :, [$6])
 1306 fi
 1307 ])# AC_LIBTOOL_COMPILER_OPTION
 1308 
 1309 
 1310 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1311 #                          [ACTION-SUCCESS], [ACTION-FAILURE])
 1312 # ------------------------------------------------------------
 1313 # Check whether the given compiler option works
 1314 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
 1315 [AC_REQUIRE([LT_AC_PROG_SED])dnl
 1316 AC_CACHE_CHECK([$1], [$2],
 1317   [$2=no
 1318    save_LDFLAGS="$LDFLAGS"
 1319    LDFLAGS="$LDFLAGS $3"
 1320    echo "$lt_simple_link_test_code" > conftest.$ac_ext
 1321    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 1322      # The linker can only warn and ignore the option if not recognized
 1323      # So say no if there are warnings
 1324      if test -s conftest.err; then
 1325        # Append any errors to the config.log.
 1326        cat conftest.err 1>&AS_MESSAGE_LOG_FD
 1327        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 1328        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1329        if diff conftest.exp conftest.er2 >/dev/null; then
 1330          $2=yes
 1331        fi
 1332      else
 1333        $2=yes
 1334      fi
 1335    fi
 1336    $rm conftest*
 1337    LDFLAGS="$save_LDFLAGS"
 1338 ])
 1339 
 1340 if test x"[$]$2" = xyes; then
 1341     ifelse([$4], , :, [$4])
 1342 else
 1343     ifelse([$5], , :, [$5])
 1344 fi
 1345 ])# AC_LIBTOOL_LINKER_OPTION
 1346 
 1347 
 1348 # AC_LIBTOOL_SYS_MAX_CMD_LEN
 1349 # --------------------------
 1350 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
 1351 [# find the maximum length of command line arguments
 1352 AC_MSG_CHECKING([the maximum length of command line arguments])
 1353 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 1354   i=0
 1355   teststring="ABCD"
 1356 
 1357   case $build_os in
 1358   msdosdjgpp*)
 1359     # On DJGPP, this test can blow up pretty badly due to problems in libc
 1360     # (any single argument exceeding 2000 bytes causes a buffer overrun
 1361     # during glob expansion).  Even if it were fixed, the result of this
 1362     # check would be larger than it should be.
 1363     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 1364     ;;
 1365 
 1366   gnu*)
 1367     # Under GNU Hurd, this test is not required because there is
 1368     # no limit to the length of command line arguments.
 1369     # Libtool will interpret -1 as no limit whatsoever
 1370     lt_cv_sys_max_cmd_len=-1;
 1371     ;;
 1372 
 1373   cygwin* | mingw*)
 1374     # On Win9x/ME, this test blows up -- it succeeds, but takes
 1375     # about 5 minutes as the teststring grows exponentially.
 1376     # Worse, since 9x/ME are not pre-emptively multitasking,
 1377     # you end up with a "frozen" computer, even though with patience
 1378     # the test eventually succeeds (with a max line length of 256k).
 1379     # Instead, let's just punt: use the minimum linelength reported by
 1380     # all of the supported platforms: 8192 (on NT/2K/XP).
 1381     lt_cv_sys_max_cmd_len=8192;
 1382     ;;
 1383 
 1384   amigaos*)
 1385     # On AmigaOS with pdksh, this test takes hours, literally.
 1386     # So we just punt and use a minimum line length of 8192.
 1387     lt_cv_sys_max_cmd_len=8192;
 1388     ;;
 1389 
 1390   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 1391     # This has been around since 386BSD, at least.  Likely further.
 1392     if test -x /sbin/sysctl; then
 1393       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 1394     elif test -x /usr/sbin/sysctl; then
 1395       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 1396     else
 1397       lt_cv_sys_max_cmd_len=65536   # usable default for all BSDs
 1398     fi
 1399     # And add a safety zone
 1400     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1401     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1402     ;;
 1403 
 1404   interix*)
 1405     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 1406     lt_cv_sys_max_cmd_len=196608
 1407     ;;
 1408 
 1409   osf*)
 1410     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 1411     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 1412     # nice to cause kernel panics so lets avoid the loop below.
 1413     # First set a reasonable default.
 1414     lt_cv_sys_max_cmd_len=16384
 1415     #
 1416     if test -x /sbin/sysconfig; then
 1417       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 1418         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 1419       esac
 1420     fi
 1421     ;;
 1422   sco3.2v5*)
 1423     lt_cv_sys_max_cmd_len=102400
 1424     ;;
 1425   sysv5* | sco5v6* | sysv4.2uw2*)
 1426     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 1427     if test -n "$kargmax"; then
 1428       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[    ]]//'`
 1429     else
 1430       lt_cv_sys_max_cmd_len=32768
 1431     fi
 1432     ;;
 1433   *)
 1434     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 1435     if test -n "$lt_cv_sys_max_cmd_len"; then
 1436       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1437       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1438     else
 1439       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 1440       while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 1441            = "XX$teststring") >/dev/null 2>&1 &&
 1442           new_result=`expr "X$teststring" : ".*" 2>&1` &&
 1443           lt_cv_sys_max_cmd_len=$new_result &&
 1444           test $i != 17 # 1/2 MB should be enough
 1445       do
 1446         i=`expr $i + 1`
 1447         teststring=$teststring$teststring
 1448       done
 1449       teststring=
 1450       # Add a significant safety factor because C++ compilers can tack on massive
 1451       # amounts of additional arguments before passing them to the linker.
 1452       # It appears as though 1/2 is a usable value.
 1453       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 1454     fi
 1455     ;;
 1456   esac
 1457 ])
 1458 if test -n $lt_cv_sys_max_cmd_len ; then
 1459   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 1460 else
 1461   AC_MSG_RESULT(none)
 1462 fi
 1463 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
 1464 
 1465 
 1466 # _LT_AC_CHECK_DLFCN
 1467 # ------------------
 1468 AC_DEFUN([_LT_AC_CHECK_DLFCN],
 1469 [AC_CHECK_HEADERS(dlfcn.h)dnl
 1470 ])# _LT_AC_CHECK_DLFCN
 1471 
 1472 
 1473 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 1474 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 1475 # ---------------------------------------------------------------------
 1476 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
 1477 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 1478 if test "$cross_compiling" = yes; then :
 1479   [$4]
 1480 else
 1481   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 1482   lt_status=$lt_dlunknown
 1483   cat > conftest.$ac_ext <<EOF
 1484 [#line __oline__ "configure"
 1485 #include "confdefs.h"
 1486 
 1487 #if HAVE_DLFCN_H
 1488 #include <dlfcn.h>
 1489 #endif
 1490 
 1491 #include <stdio.h>
 1492 
 1493 #ifdef RTLD_GLOBAL
 1494 #  define LT_DLGLOBAL       RTLD_GLOBAL
 1495 #else
 1496 #  ifdef DL_GLOBAL
 1497 #    define LT_DLGLOBAL     DL_GLOBAL
 1498 #  else
 1499 #    define LT_DLGLOBAL     0
 1500 #  endif
 1501 #endif
 1502 
 1503 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 1504    find out it does not work in some platform. */
 1505 #ifndef LT_DLLAZY_OR_NOW
 1506 #  ifdef RTLD_LAZY
 1507 #    define LT_DLLAZY_OR_NOW        RTLD_LAZY
 1508 #  else
 1509 #    ifdef DL_LAZY
 1510 #      define LT_DLLAZY_OR_NOW      DL_LAZY
 1511 #    else
 1512 #      ifdef RTLD_NOW
 1513 #        define LT_DLLAZY_OR_NOW    RTLD_NOW
 1514 #      else
 1515 #        ifdef DL_NOW
 1516 #          define LT_DLLAZY_OR_NOW  DL_NOW
 1517 #        else
 1518 #          define LT_DLLAZY_OR_NOW  0
 1519 #        endif
 1520 #      endif
 1521 #    endif
 1522 #  endif
 1523 #endif
 1524 
 1525 #ifdef __cplusplus
 1526 extern "C" void exit (int);
 1527 #endif
 1528 
 1529 void fnord() { int i=42;}
 1530 int main ()
 1531 {
 1532   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 1533   int status = $lt_dlunknown;
 1534 
 1535   if (self)
 1536     {
 1537       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 1538       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 1539       /* dlclose (self); */
 1540     }
 1541   else
 1542     puts (dlerror ());
 1543 
 1544     exit (status);
 1545 }]
 1546 EOF
 1547   if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
 1548     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 1549     lt_status=$?
 1550     case x$lt_status in
 1551       x$lt_dlno_uscore) $1 ;;
 1552       x$lt_dlneed_uscore) $2 ;;
 1553       x$lt_dlunknown|x*) $3 ;;
 1554     esac
 1555   else :
 1556     # compilation failed
 1557     $3
 1558   fi
 1559 fi
 1560 rm -fr conftest*
 1561 ])# _LT_AC_TRY_DLOPEN_SELF
 1562 
 1563 
 1564 # AC_LIBTOOL_DLOPEN_SELF
 1565 # ----------------------
 1566 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
 1567 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 1568 if test "x$enable_dlopen" != xyes; then
 1569   enable_dlopen=unknown
 1570   enable_dlopen_self=unknown
 1571   enable_dlopen_self_static=unknown
 1572 else
 1573   lt_cv_dlopen=no
 1574   lt_cv_dlopen_libs=
 1575 
 1576   case $host_os in
 1577   beos*)
 1578     lt_cv_dlopen="load_add_on"
 1579     lt_cv_dlopen_libs=
 1580     lt_cv_dlopen_self=yes
 1581     ;;
 1582 
 1583   mingw* | pw32*)
 1584     lt_cv_dlopen="LoadLibrary"
 1585     lt_cv_dlopen_libs=
 1586    ;;
 1587 
 1588   cygwin*)
 1589     lt_cv_dlopen="dlopen"
 1590     lt_cv_dlopen_libs=
 1591    ;;
 1592 
 1593   darwin*)
 1594   # if libdl is installed we need to link against it
 1595     AC_CHECK_LIB([dl], [dlopen],
 1596         [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
 1597     lt_cv_dlopen="dyld"
 1598     lt_cv_dlopen_libs=
 1599     lt_cv_dlopen_self=yes
 1600     ])
 1601    ;;
 1602 
 1603   *)
 1604     AC_CHECK_FUNC([shl_load],
 1605       [lt_cv_dlopen="shl_load"],
 1606       [AC_CHECK_LIB([dld], [shl_load],
 1607         [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
 1608     [AC_CHECK_FUNC([dlopen],
 1609           [lt_cv_dlopen="dlopen"],
 1610       [AC_CHECK_LIB([dl], [dlopen],
 1611         [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
 1612         [AC_CHECK_LIB([svld], [dlopen],
 1613           [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
 1614           [AC_CHECK_LIB([dld], [dld_link],
 1615             [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
 1616           ])
 1617         ])
 1618       ])
 1619     ])
 1620       ])
 1621     ;;
 1622   esac
 1623 
 1624   if test "x$lt_cv_dlopen" != xno; then
 1625     enable_dlopen=yes
 1626   else
 1627     enable_dlopen=no
 1628   fi
 1629 
 1630   case $lt_cv_dlopen in
 1631   dlopen)
 1632     save_CPPFLAGS="$CPPFLAGS"
 1633     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 1634 
 1635     save_LDFLAGS="$LDFLAGS"
 1636     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 1637 
 1638     save_LIBS="$LIBS"
 1639     LIBS="$lt_cv_dlopen_libs $LIBS"
 1640 
 1641     AC_CACHE_CHECK([whether a program can dlopen itself],
 1642       lt_cv_dlopen_self, [dnl
 1643       _LT_AC_TRY_DLOPEN_SELF(
 1644         lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 1645         lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 1646     ])
 1647 
 1648     if test "x$lt_cv_dlopen_self" = xyes; then
 1649       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 1650       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 1651           lt_cv_dlopen_self_static, [dnl
 1652       _LT_AC_TRY_DLOPEN_SELF(
 1653         lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 1654         lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 1655       ])
 1656     fi
 1657 
 1658     CPPFLAGS="$save_CPPFLAGS"
 1659     LDFLAGS="$save_LDFLAGS"
 1660     LIBS="$save_LIBS"
 1661     ;;
 1662   esac
 1663 
 1664   case $lt_cv_dlopen_self in
 1665   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 1666   *) enable_dlopen_self=unknown ;;
 1667   esac
 1668 
 1669   case $lt_cv_dlopen_self_static in
 1670   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 1671   *) enable_dlopen_self_static=unknown ;;
 1672   esac
 1673 fi
 1674 ])# AC_LIBTOOL_DLOPEN_SELF
 1675 
 1676 
 1677 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
 1678 # ---------------------------------
 1679 # Check to see if options -c and -o are simultaneously supported by compiler
 1680 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
 1681 [AC_REQUIRE([LT_AC_PROG_SED])dnl
 1682 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 1683 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 1684   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 1685   [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 1686    $rm -r conftest 2>/dev/null
 1687    mkdir conftest
 1688    cd conftest
 1689    mkdir out
 1690    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 1691 
 1692    lt_compiler_flag="-o out/conftest2.$ac_objext"
 1693    # Insert the option either (1) after the last *FLAGS variable, or
 1694    # (2) before a word containing "conftest.", or (3) at the end.
 1695    # Note that $ac_compile itself does not contain backslashes and begins
 1696    # with a dollar sign (not a hyphen), so the echo should work correctly.
 1697    lt_compile=`echo "$ac_compile" | $SED \
 1698    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 1699    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 1700    -e 's:$: $lt_compiler_flag:'`
 1701    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 1702    (eval "$lt_compile" 2>out/conftest.err)
 1703    ac_status=$?
 1704    cat out/conftest.err >&AS_MESSAGE_LOG_FD
 1705    echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1706    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 1707    then
 1708      # The compiler can only warn and ignore the option if not recognized
 1709      # So say no if there are warnings
 1710      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 1711      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 1712      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 1713        _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 1714      fi
 1715    fi
 1716    chmod u+w . 2>&AS_MESSAGE_LOG_FD
 1717    $rm conftest*
 1718    # SGI C++ compiler will create directory out/ii_files/ for
 1719    # template instantiation
 1720    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 1721    $rm out/* && rmdir out
 1722    cd ..
 1723    rmdir conftest
 1724    $rm conftest*
 1725 ])
 1726 ])# AC_LIBTOOL_PROG_CC_C_O
 1727 
 1728 
 1729 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
 1730 # -----------------------------------------
 1731 # Check to see if we can do hard links to lock some files if needed
 1732 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
 1733 [AC_REQUIRE([_LT_AC_LOCK])dnl
 1734 
 1735 hard_links="nottested"
 1736 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
 1737   # do not overwrite the value of need_locks provided by the user
 1738   AC_MSG_CHECKING([if we can lock with hard links])
 1739   hard_links=yes
 1740   $rm conftest*
 1741   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 1742   touch conftest.a
 1743   ln conftest.a conftest.b 2>&5 || hard_links=no
 1744   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 1745   AC_MSG_RESULT([$hard_links])
 1746   if test "$hard_links" = no; then
 1747     AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
 1748     need_locks=warn
 1749   fi
 1750 else
 1751   need_locks=no
 1752 fi
 1753 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
 1754 
 1755 
 1756 # AC_LIBTOOL_OBJDIR
 1757 # -----------------
 1758 AC_DEFUN([AC_LIBTOOL_OBJDIR],
 1759 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 1760 [rm -f .libs 2>/dev/null
 1761 mkdir .libs 2>/dev/null
 1762 if test -d .libs; then
 1763   lt_cv_objdir=.libs
 1764 else
 1765   # MS-DOS does not allow filenames that begin with a dot.
 1766   lt_cv_objdir=_libs
 1767 fi
 1768 rmdir .libs 2>/dev/null])
 1769 objdir=$lt_cv_objdir
 1770 ])# AC_LIBTOOL_OBJDIR
 1771 
 1772 
 1773 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
 1774 # ----------------------------------------------
 1775 # Check hardcoding attributes.
 1776 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
 1777 [AC_MSG_CHECKING([how to hardcode library paths into programs])
 1778 _LT_AC_TAGVAR(hardcode_action, $1)=
 1779 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
 1780    test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
 1781    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
 1782 
 1783   # We can hardcode non-existant directories.
 1784   if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
 1785      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 1786      # have to relink, otherwise we might link with an installed library
 1787      # when we should be linking with a yet-to-be-installed one
 1788      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
 1789      test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
 1790     # Linking always hardcodes the temporary library directory.
 1791     _LT_AC_TAGVAR(hardcode_action, $1)=relink
 1792   else
 1793     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 1794     _LT_AC_TAGVAR(hardcode_action, $1)=immediate
 1795   fi
 1796 else
 1797   # We cannot hardcode anything, or else we can only hardcode existing
 1798   # directories.
 1799   _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
 1800 fi
 1801 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
 1802 
 1803 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
 1804   # Fast installation is not supported
 1805   enable_fast_install=no
 1806 elif test "$shlibpath_overrides_runpath" = yes ||
 1807      test "$enable_shared" = no; then
 1808   # Fast installation is not necessary
 1809   enable_fast_install=needless
 1810 fi
 1811 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
 1812 
 1813 
 1814 # AC_LIBTOOL_SYS_LIB_STRIP
 1815 # ------------------------
 1816 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
 1817 [striplib=
 1818 old_striplib=
 1819 AC_MSG_CHECKING([whether stripping libraries is possible])
 1820 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 1821   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 1822   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 1823   AC_MSG_RESULT([yes])
 1824 else
 1825 # FIXME - insert some real tests, host_os isn't really good enough
 1826   case $host_os in
 1827    darwin*)
 1828        if test -n "$STRIP" ; then
 1829          striplib="$STRIP -x"
 1830          old_striplib="$STRIP -S"
 1831          AC_MSG_RESULT([yes])
 1832        else
 1833   AC_MSG_RESULT([no])
 1834 fi
 1835        ;;
 1836    *)
 1837   AC_MSG_RESULT([no])
 1838     ;;
 1839   esac
 1840 fi
 1841 ])# AC_LIBTOOL_SYS_LIB_STRIP
 1842 
 1843 
 1844 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
 1845 # -----------------------------
 1846 # PORTME Fill in your ld.so characteristics
 1847 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
 1848 [AC_REQUIRE([LT_AC_PROG_SED])dnl
 1849 AC_MSG_CHECKING([dynamic linker characteristics])
 1850 library_names_spec=
 1851 libname_spec='lib$name'
 1852 soname_spec=
 1853 shrext_cmds=".so"
 1854 postinstall_cmds=
 1855 postuninstall_cmds=
 1856 finish_cmds=
 1857 finish_eval=
 1858 shlibpath_var=
 1859 shlibpath_overrides_runpath=unknown
 1860 version_type=none
 1861 dynamic_linker="$host_os ld.so"
 1862 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 1863 m4_if($1,[],[
 1864 if test "$GCC" = yes; then
 1865   case $host_os in
 1866     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 1867     *) lt_awk_arg="/^libraries:/" ;;
 1868   esac
 1869   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 1870   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 1871     # if the path contains ";" then we assume it to be the separator
 1872     # otherwise default to the standard path separator (i.e. ":") - it is
 1873     # assumed that no part of a normal pathname contains ";" but that should
 1874     # okay in the real world where ";" in dirpaths is itself problematic.
 1875     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 1876   else
 1877     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 1878   fi
 1879   # Ok, now we have the path, separated by spaces, we can step through it
 1880   # and add multilib dir if necessary.
 1881   lt_tmp_lt_search_path_spec=
 1882   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 1883   for lt_sys_path in $lt_search_path_spec; do
 1884     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 1885       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 1886     else
 1887       test -d "$lt_sys_path" && \
 1888     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 1889     fi
 1890   done
 1891   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 1892 BEGIN {RS=" "; FS="/|\n";} {
 1893   lt_foo="";
 1894   lt_count=0;
 1895   for (lt_i = NF; lt_i > 0; lt_i--) {
 1896     if ($lt_i != "" && $lt_i != ".") {
 1897       if ($lt_i == "..") {
 1898         lt_count++;
 1899       } else {
 1900         if (lt_count == 0) {
 1901           lt_foo="/" $lt_i lt_foo;
 1902         } else {
 1903           lt_count--;
 1904         }
 1905       }
 1906     }
 1907   }
 1908   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 1909   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 1910 }'`
 1911   sys_lib_search_path_spec=`echo $lt_search_path_spec`
 1912 else
 1913   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 1914 fi])
 1915 need_lib_prefix=unknown
 1916 hardcode_into_libs=no
 1917 
 1918 # when you set need_version to no, make sure it does not cause -set_version
 1919 # flags to be left without arguments
 1920 need_version=unknown
 1921 
 1922 case $host_os in
 1923 aix3*)
 1924   version_type=linux
 1925   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 1926   shlibpath_var=LIBPATH
 1927 
 1928   # AIX 3 has no versioning support, so we append a major version to the name.
 1929   soname_spec='${libname}${release}${shared_ext}$major'
 1930   ;;
 1931 
 1932 aix4* | aix5*)
 1933   version_type=linux
 1934   need_lib_prefix=no
 1935   need_version=no
 1936   hardcode_into_libs=yes
 1937   if test "$host_cpu" = ia64; then
 1938     # AIX 5 supports IA64
 1939     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 1940     shlibpath_var=LD_LIBRARY_PATH
 1941   else
 1942     # With GCC up to 2.95.x, collect2 would create an import file
 1943     # for dependence libraries.  The import file would start with
 1944     # the line `#! .'.  This would cause the generated library to
 1945     # depend on `.', always an invalid library.  This was fixed in
 1946     # development snapshots of GCC prior to 3.0.
 1947     case $host_os in
 1948       aix4 | aix4.[[01]] | aix4.[[01]].*)
 1949       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 1950        echo ' yes '
 1951        echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 1952     :
 1953       else
 1954     can_build_shared=no
 1955       fi
 1956       ;;
 1957     esac
 1958     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 1959     # soname into executable. Probably we can add versioning support to
 1960     # collect2, so additional links can be useful in future.
 1961     if test "$aix_use_runtimelinking" = yes; then
 1962       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 1963       # instead of lib<name>.a to let people know that these are not
 1964       # typical AIX shared libraries.
 1965       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 1966     else
 1967       # We preserve .a as extension for shared libraries through AIX4.2
 1968       # and later when we are not doing run time linking.
 1969       library_names_spec='${libname}${release}.a $libname.a'
 1970       soname_spec='${libname}${release}${shared_ext}$major'
 1971     fi
 1972     shlibpath_var=LIBPATH
 1973   fi
 1974   ;;
 1975 
 1976 amigaos*)
 1977   library_names_spec='$libname.ixlibrary $libname.a'
 1978   # Create ${libname}_ixlibrary.a entries in /sys/libs.
 1979   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'
 1980   ;;
 1981 
 1982 beos*)
 1983   library_names_spec='${libname}${shared_ext}'
 1984   dynamic_linker="$host_os ld.so"
 1985   shlibpath_var=LIBRARY_PATH
 1986   ;;
 1987 
 1988 bsdi[[45]]*)
 1989   version_type=linux
 1990   need_version=no
 1991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 1992   soname_spec='${libname}${release}${shared_ext}$major'
 1993   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 1994   shlibpath_var=LD_LIBRARY_PATH
 1995   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 1996   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 1997   # the default ld.so.conf also contains /usr/contrib/lib and
 1998   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 1999   # libtool to hard-code these into programs
 2000   ;;
 2001 
 2002 cygwin* | mingw* | pw32*)
 2003   version_type=windows
 2004   shrext_cmds=".dll"
 2005   need_version=no
 2006   need_lib_prefix=no
 2007 
 2008   case $GCC,$host_os in
 2009   yes,cygwin* | yes,mingw* | yes,pw32*)
 2010     library_names_spec='$libname.dll.a'
 2011     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2012     postinstall_cmds='base_file=`basename \${file}`~
 2013       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 2014       dldir=$destdir/`dirname \$dlpath`~
 2015       test -d \$dldir || mkdir -p \$dldir~
 2016       $install_prog $dir/$dlname \$dldir/$dlname~
 2017       chmod a+x \$dldir/$dlname'
 2018     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2019       dlpath=$dir/\$dldll~
 2020        $rm \$dlpath'
 2021     shlibpath_overrides_runpath=yes
 2022 
 2023     case $host_os in
 2024     cygwin*)
 2025       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 2026       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 2027       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 2028       ;;
 2029     mingw*)
 2030       # MinGW DLLs use traditional 'lib' prefix
 2031       soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 2032       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 2033       if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
 2034         # It is most probably a Windows format PATH printed by
 2035         # mingw gcc, but we are running on Cygwin. Gcc prints its search
 2036         # path with ; separators, and with drive letters. We can handle the
 2037         # drive letters (cygwin fileutils understands them), so leave them,
 2038         # especially as we might pass files found there to a mingw objdump,
 2039         # which wouldn't understand a cygwinified path. Ahh.
 2040         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 2041       else
 2042         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 2043       fi
 2044       ;;
 2045     pw32*)
 2046       # pw32 DLLs use 'pw' prefix rather than 'lib'
 2047       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
 2048       ;;
 2049     esac
 2050     ;;
 2051 
 2052   *)
 2053     library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
 2054     ;;
 2055   esac
 2056   dynamic_linker='Win32 ld.exe'
 2057   # FIXME: first we should search . and the directory the executable is in
 2058   shlibpath_var=PATH
 2059   ;;
 2060 
 2061 darwin* | rhapsody*)
 2062   dynamic_linker="$host_os dyld"
 2063   version_type=darwin
 2064   need_lib_prefix=no
 2065   need_version=no
 2066   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 2067   soname_spec='${libname}${release}${major}$shared_ext'
 2068   shlibpath_overrides_runpath=yes
 2069   shlibpath_var=DYLD_LIBRARY_PATH
 2070   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 2071   m4_if([$1], [],[
 2072   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 
 2073   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 2074   ;;
 2075 
 2076 dgux*)
 2077   version_type=linux
 2078   need_lib_prefix=no
 2079   need_version=no
 2080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 2081   soname_spec='${libname}${release}${shared_ext}$major'
 2082   shlibpath_var=LD_LIBRARY_PATH
 2083   ;;
 2084 
 2085 freebsd1*)
 2086   dynamic_linker=no
 2087   ;;
 2088 
 2089 freebsd* | dragonfly*)
 2090   # DragonFly does not have aout.  When/if they implement a new
 2091   # versioning mechanism, adjust this.
 2092   if test -x /usr/bin/objformat; then
 2093     objformat=`/usr/bin/objformat`
 2094   else
 2095     case $host_os in
 2096     freebsd[[123]]*) objformat=aout ;;
 2097     *) objformat=elf ;;
 2098     esac
 2099   fi
 2100   version_type=freebsd-$objformat
 2101   case $version_type in
 2102     freebsd-elf*)
 2103       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 2104       need_version=no
 2105       need_lib_prefix=no
 2106       ;;
 2107     freebsd-*)
 2108       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 2109       need_version=yes
 2110       ;;
 2111   esac
 2112   shlibpath_var=LD_LIBRARY_PATH
 2113   case $host_os in
 2114   freebsd2*)
 2115     shlibpath_overrides_runpath=yes
 2116     ;;
 2117   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 2118     shlibpath_overrides_runpath=yes
 2119     hardcode_into_libs=yes
 2120     ;;
 2121   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 2122   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 2123     shlibpath_overrides_runpath=no
 2124     hardcode_into_libs=yes
 2125     ;;
 2126   *) # from 4.6 on, and DragonFly
 2127     shlibpath_overrides_runpath=yes
 2128     hardcode_into_libs=yes
 2129     ;;
 2130   esac
 2131   ;;
 2132 
 2133 gnu*)
 2134   version_type=linux
 2135   need_lib_prefix=no
 2136   need_version=no
 2137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 2138   soname_spec='${libname}${release}${shared_ext}$major'
 2139   shlibpath_var=LD_LIBRARY_PATH
 2140   hardcode_into_libs=yes
 2141   ;;
 2142 
 2143 hpux9* | hpux10* | hpux11*)
 2144   # Give a soname corresponding to the major version so that dld.sl refuses to
 2145   # link against other versions.
 2146   version_type=sunos
 2147   need_lib_prefix=no
 2148   need_version=no
 2149   case $host_cpu in
 2150   ia64*)
 2151     shrext_cmds='.so'
 2152     hardcode_into_libs=yes
 2153     dynamic_linker="$host_os dld.so"
 2154     shlibpath_var=LD_LIBRARY_PATH
 2155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2157     soname_spec='${libname}${release}${shared_ext}$major'
 2158     if test "X$HPUX_IA64_MODE" = X32; then
 2159       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 2160     else
 2161       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 2162     fi
 2163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 2164     ;;
 2165    hppa*64*)
 2166      shrext_cmds='.sl'
 2167      hardcode_into_libs=yes
 2168      dynamic_linker="$host_os dld.sl"
 2169      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 2170      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2172      soname_spec='${libname}${release}${shared_ext}$major'
 2173      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 2174      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 2175      ;;
 2176    *)
 2177     shrext_cmds='.sl'
 2178     dynamic_linker="$host_os dld.sl"
 2179     shlibpath_var=SHLIB_PATH
 2180     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 2181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2182     soname_spec='${libname}${release}${shared_ext}$major'
 2183     ;;
 2184   esac
 2185   # HP-UX runs *really* slowly unless shared libraries are mode 555.
 2186   postinstall_cmds='chmod 555 $lib'
 2187   ;;
 2188 
 2189 interix[[3-9]]*)
 2190   version_type=linux
 2191   need_lib_prefix=no
 2192   need_version=no
 2193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 2194   soname_spec='${libname}${release}${shared_ext}$major'
 2195   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 2196   shlibpath_var=LD_LIBRARY_PATH
 2197   shlibpath_overrides_runpath=no
 2198   hardcode_into_libs=yes
 2199   ;;
 2200 
 2201 irix5* | irix6* | nonstopux*)
 2202   case $host_os in
 2203     nonstopux*) version_type=nonstopux ;;
 2204     *)
 2205     if test "$lt_cv_prog_gnu_ld" = yes; then
 2206         version_type=linux
 2207     else
 2208         version_type=irix
 2209     fi ;;
 2210   esac
 2211   need_lib_prefix=no
 2212   need_version=no
 2213   soname_spec='${libname}${release}${shared_ext}$major'
 2214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 2215   case $host_os in
 2216   irix5* | nonstopux*)
 2217     libsuff= shlibsuff=
 2218     ;;
 2219   *)
 2220     case $LD in # libtool.m4 will add one of these switches to LD
 2221     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 2222       libsuff= shlibsuff= libmagic=32-bit;;
 2223     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 2224       libsuff=32 shlibsuff=N32 libmagic=N32;;
 2225     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 2226       libsuff=64 shlibsuff=64 libmagic=64-bit;;
 2227     *) libsuff= shlibsuff= libmagic=never-match;;
 2228     esac
 2229     ;;
 2230   esac
 2231   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 2232   shlibpath_overrides_runpath=no
 2233   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 2234   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 2235   hardcode_into_libs=yes
 2236   ;;
 2237 
 2238 # No shared lib support for Linux oldld, aout, or coff.
 2239 linux*oldld* | linux*aout* | linux*coff*)
 2240   dynamic_linker=no
 2241   ;;
 2242 
 2243 # This must be Linux ELF.
 2244 linux* | k*bsd*-gnu)
 2245   version_type=linux
 2246   need_lib_prefix=no
 2247   need_version=no
 2248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2249   soname_spec='${libname}${release}${shared_ext}$major'
 2250   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 2251   shlibpath_var=LD_LIBRARY_PATH
 2252   shlibpath_overrides_runpath=no
 2253   # This implies no fast_install, which is unacceptable.
 2254   # Some rework will be needed to allow for fast_install
 2255   # before this can be enabled.
 2256   hardcode_into_libs=yes
 2257 
 2258   # Append ld.so.conf contents to the search path
 2259   if test -f /etc/ld.so.conf; then
 2260     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' ' '`
 2261     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 2262   fi
 2263 
 2264   # We used to test for /lib/ld.so.1 and disable shared libraries on
 2265   # powerpc, because MkLinux only supported shared libraries with the
 2266   # GNU dynamic linker.  Since this was broken with cross compilers,
 2267   # most powerpc-linux boxes support dynamic linking these days and
 2268   # people can always --disable-shared, the test was removed, and we
 2269   # assume the GNU/Linux dynamic linker is in use.
 2270   dynamic_linker='GNU/Linux ld.so'
 2271   ;;
 2272 
 2273 netbsdelf*-gnu)
 2274   version_type=linux
 2275   need_lib_prefix=no
 2276   need_version=no
 2277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 2278   soname_spec='${libname}${release}${shared_ext}$major'
 2279   shlibpath_var=LD_LIBRARY_PATH
 2280   shlibpath_overrides_runpath=no
 2281   hardcode_into_libs=yes
 2282   dynamic_linker='NetBSD ld.elf_so'
 2283   ;;
 2284 
 2285 netbsd*)
 2286   version_type=sunos
 2287   need_lib_prefix=no
 2288   need_version=no
 2289   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 2290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 2291     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 2292     dynamic_linker='NetBSD (a.out) ld.so'
 2293   else
 2294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 2295     soname_spec='${libname}${release}${shared_ext}$major'
 2296     dynamic_linker='NetBSD ld.elf_so'
 2297   fi
 2298   shlibpath_var=LD_LIBRARY_PATH
 2299   shlibpath_overrides_runpath=yes
 2300   hardcode_into_libs=yes
 2301   ;;
 2302 
 2303 newsos6)
 2304   version_type=linux
 2305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2306   shlibpath_var=LD_LIBRARY_PATH
 2307   shlibpath_overrides_runpath=yes
 2308   ;;
 2309 
 2310 nto-qnx*)
 2311   version_type=linux
 2312   need_lib_prefix=no
 2313   need_version=no
 2314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2315   soname_spec='${libname}${release}${shared_ext}$major'
 2316   shlibpath_var=LD_LIBRARY_PATH
 2317   shlibpath_overrides_runpath=yes
 2318   ;;
 2319 
 2320 openbsd*)
 2321   version_type=sunos
 2322   sys_lib_dlsearch_path_spec="/usr/lib"
 2323   need_lib_prefix=no
 2324   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 2325   case $host_os in
 2326     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 2327     *)                         need_version=no  ;;
 2328   esac
 2329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 2330   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 2331   shlibpath_var=LD_LIBRARY_PATH
 2332   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 2333     case $host_os in
 2334       openbsd2.[[89]] | openbsd2.[[89]].*)
 2335     shlibpath_overrides_runpath=no
 2336     ;;
 2337       *)
 2338     shlibpath_overrides_runpath=yes
 2339     ;;
 2340       esac
 2341   else
 2342     shlibpath_overrides_runpath=yes
 2343   fi
 2344   ;;
 2345 
 2346 os2*)
 2347   libname_spec='$name'
 2348   shrext_cmds=".dll"
 2349   need_lib_prefix=no
 2350   library_names_spec='$libname${shared_ext} $libname.a'
 2351   dynamic_linker='OS/2 ld.exe'
 2352   shlibpath_var=LIBPATH
 2353   ;;
 2354 
 2355 osf3* | osf4* | osf5*)
 2356   version_type=osf
 2357   need_lib_prefix=no
 2358   need_version=no
 2359   soname_spec='${libname}${release}${shared_ext}$major'
 2360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2361   shlibpath_var=LD_LIBRARY_PATH
 2362   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 2363   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 2364   ;;
 2365 
 2366 rdos*)
 2367   dynamic_linker=no
 2368   ;;
 2369 
 2370 solaris*)
 2371   version_type=linux
 2372   need_lib_prefix=no
 2373   need_version=no
 2374   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2375   soname_spec='${libname}${release}${shared_ext}$major'
 2376   shlibpath_var=LD_LIBRARY_PATH
 2377   shlibpath_overrides_runpath=yes
 2378   hardcode_into_libs=yes
 2379   # ldd complains unless libraries are executable
 2380   postinstall_cmds='chmod +x $lib'
 2381   ;;
 2382 
 2383 sunos4*)
 2384   version_type=sunos
 2385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 2386   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 2387   shlibpath_var=LD_LIBRARY_PATH
 2388   shlibpath_overrides_runpath=yes
 2389   if test "$with_gnu_ld" = yes; then
 2390     need_lib_prefix=no
 2391   fi
 2392   need_version=yes
 2393   ;;
 2394 
 2395 sysv4 | sysv4.3*)
 2396   version_type=linux
 2397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2398   soname_spec='${libname}${release}${shared_ext}$major'
 2399   shlibpath_var=LD_LIBRARY_PATH
 2400   case $host_vendor in
 2401     sni)
 2402       shlibpath_overrides_runpath=no
 2403       need_lib_prefix=no
 2404       export_dynamic_flag_spec='${wl}-Blargedynsym'
 2405       runpath_var=LD_RUN_PATH
 2406       ;;
 2407     siemens)
 2408       need_lib_prefix=no
 2409       ;;
 2410     motorola)
 2411       need_lib_prefix=no
 2412       need_version=no
 2413       shlibpath_overrides_runpath=no
 2414       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 2415       ;;
 2416   esac
 2417   ;;
 2418 
 2419 sysv4*MP*)
 2420   if test -d /usr/nec ;then
 2421     version_type=linux
 2422     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 2423     soname_spec='$libname${shared_ext}.$major'
 2424     shlibpath_var=LD_LIBRARY_PATH
 2425   fi
 2426   ;;
 2427 
 2428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 2429   version_type=freebsd-elf
 2430   need_lib_prefix=no
 2431   need_version=no
 2432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 2433   soname_spec='${libname}${release}${shared_ext}$major'
 2434   shlibpath_var=LD_LIBRARY_PATH
 2435   hardcode_into_libs=yes
 2436   if test "$with_gnu_ld" = yes; then
 2437     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 2438     shlibpath_overrides_runpath=no
 2439   else
 2440     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 2441     shlibpath_overrides_runpath=yes
 2442     case $host_os in
 2443       sco3.2v5*)
 2444         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 2445     ;;
 2446     esac
 2447   fi
 2448   sys_lib_dlsearch_path_spec='/usr/lib'
 2449   ;;
 2450 
 2451 uts4*)
 2452   version_type=linux
 2453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 2454   soname_spec='${libname}${release}${shared_ext}$major'
 2455   shlibpath_var=LD_LIBRARY_PATH
 2456   ;;
 2457 
 2458 *)
 2459   dynamic_linker=no
 2460   ;;
 2461 esac
 2462 AC_MSG_RESULT([$dynamic_linker])
 2463 test "$dynamic_linker" = no && can_build_shared=no
 2464 
 2465 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 2466 if test "$GCC" = yes; then
 2467   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 2468 fi
 2469 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
 2470 
 2471 
 2472 # _LT_AC_TAGCONFIG
 2473 # ----------------
 2474 AC_DEFUN([_LT_AC_TAGCONFIG],
 2475 [AC_REQUIRE([LT_AC_PROG_SED])dnl
 2476 AC_ARG_WITH([tags],
 2477     [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
 2478         [include additional configurations @<:@automatic@:>@])],
 2479     [tagnames="$withval"])
 2480 
 2481 if test -f "$ltmain" && test -n "$tagnames"; then
 2482   if test ! -f "${ofile}"; then
 2483     AC_MSG_WARN([output file `$ofile' does not exist])
 2484   fi
 2485 
 2486   if test -z "$LTCC"; then
 2487     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 2488     if test -z "$LTCC"; then
 2489       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
 2490     else
 2491       AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
 2492     fi
 2493   fi
 2494   if test -z "$LTCFLAGS"; then
 2495     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 2496   fi
 2497 
 2498   # Extract list of available tagged configurations in $ofile.
 2499   # Note that this assumes the entire list is on one line.
 2500   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 2501 
 2502   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 2503   for tagname in $tagnames; do
 2504     IFS="$lt_save_ifs"
 2505     # Check whether tagname contains only valid characters
 2506     case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
 2507     "") ;;
 2508     *)  AC_MSG_ERROR([invalid tag name: $tagname])
 2509     ;;
 2510     esac
 2511 
 2512     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 2513     then
 2514       AC_MSG_ERROR([tag name \"$tagname\" already exists])
 2515     fi
 2516 
 2517     # Update the list of available tags.
 2518     if test -n "$tagname"; then
 2519       echo appending configuration tag \"$tagname\" to $ofile
 2520 
 2521       case $tagname in
 2522       CXX)
 2523     if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 2524         ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 2525         (test "X$CXX" != "Xg++"))) ; then
 2526       AC_LIBTOOL_LANG_CXX_CONFIG
 2527     else
 2528       tagname=""
 2529     fi
 2530     ;;
 2531 
 2532       F77)
 2533     if test -n "$F77" && test "X$F77" != "Xno"; then
 2534       AC_LIBTOOL_LANG_F77_CONFIG
 2535     else
 2536       tagname=""
 2537     fi
 2538     ;;
 2539 
 2540       GCJ)
 2541     if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 2542       AC_LIBTOOL_LANG_GCJ_CONFIG
 2543     else
 2544       tagname=""
 2545     fi
 2546     ;;
 2547 
 2548       RC)
 2549     AC_LIBTOOL_LANG_RC_CONFIG
 2550     ;;
 2551 
 2552       *)
 2553     AC_MSG_ERROR([Unsupported tag name: $tagname])
 2554     ;;
 2555       esac
 2556 
 2557       # Append the new tag name to the list of available tags.
 2558       if test -n "$tagname" ; then
 2559       available_tags="$available_tags $tagname"
 2560     fi
 2561     fi
 2562   done
 2563   IFS="$lt_save_ifs"
 2564 
 2565   # Now substitute the updated list of available tags.
 2566   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 2567     mv "${ofile}T" "$ofile"
 2568     chmod +x "$ofile"
 2569   else
 2570     rm -f "${ofile}T"
 2571     AC_MSG_ERROR([unable to update list of available tagged configurations.])
 2572   fi
 2573 fi
 2574 ])# _LT_AC_TAGCONFIG
 2575 
 2576 
 2577 # AC_LIBTOOL_DLOPEN
 2578 # -----------------
 2579 # enable checks for dlopen support
 2580 AC_DEFUN([AC_LIBTOOL_DLOPEN],
 2581  [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
 2582 ])# AC_LIBTOOL_DLOPEN
 2583 
 2584 
 2585 # AC_LIBTOOL_WIN32_DLL
 2586 # --------------------
 2587 # declare package support for building win32 DLLs
 2588 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
 2589 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
 2590 ])# AC_LIBTOOL_WIN32_DLL
 2591 
 2592 
 2593 # AC_ENABLE_SHARED([DEFAULT])
 2594 # ---------------------------
 2595 # implement the --enable-shared flag
 2596 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 2597 AC_DEFUN([AC_ENABLE_SHARED],
 2598 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
 2599 AC_ARG_ENABLE([shared],
 2600     [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
 2601     [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
 2602     [p=${PACKAGE-default}
 2603     case $enableval in
 2604     yes) enable_shared=yes ;;
 2605     no) enable_shared=no ;;
 2606     *)
 2607       enable_shared=no
 2608       # Look at the argument we got.  We use all the common list separators.
 2609       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 2610       for pkg in $enableval; do
 2611     IFS="$lt_save_ifs"
 2612     if test "X$pkg" = "X$p"; then
 2613       enable_shared=yes
 2614     fi
 2615       done
 2616       IFS="$lt_save_ifs"
 2617       ;;
 2618     esac],
 2619     [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
 2620 ])# AC_ENABLE_SHARED
 2621 
 2622 
 2623 # AC_DISABLE_SHARED
 2624 # -----------------
 2625 # set the default shared flag to --disable-shared
 2626 AC_DEFUN([AC_DISABLE_SHARED],
 2627 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 2628 AC_ENABLE_SHARED(no)
 2629 ])# AC_DISABLE_SHARED
 2630 
 2631 
 2632 # AC_ENABLE_STATIC([DEFAULT])
 2633 # ---------------------------
 2634 # implement the --enable-static flag
 2635 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 2636 AC_DEFUN([AC_ENABLE_STATIC],
 2637 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
 2638 AC_ARG_ENABLE([static],
 2639     [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
 2640     [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
 2641     [p=${PACKAGE-default}
 2642     case $enableval in
 2643     yes) enable_static=yes ;;
 2644     no) enable_static=no ;;
 2645     *)
 2646      enable_static=no
 2647       # Look at the argument we got.  We use all the common list separators.
 2648       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 2649       for pkg in $enableval; do
 2650     IFS="$lt_save_ifs"
 2651     if test "X$pkg" = "X$p"; then
 2652       enable_static=yes
 2653     fi
 2654       done
 2655       IFS="$lt_save_ifs"
 2656       ;;
 2657     esac],
 2658     [enable_static=]AC_ENABLE_STATIC_DEFAULT)
 2659 ])# AC_ENABLE_STATIC
 2660 
 2661 
 2662 # AC_DISABLE_STATIC
 2663 # -----------------
 2664 # set the default static flag to --disable-static
 2665 AC_DEFUN([AC_DISABLE_STATIC],
 2666 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 2667 AC_ENABLE_STATIC(no)
 2668 ])# AC_DISABLE_STATIC
 2669 
 2670 
 2671 # AC_ENABLE_FAST_INSTALL([DEFAULT])
 2672 # ---------------------------------
 2673 # implement the --enable-fast-install flag
 2674 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
 2675 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
 2676 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
 2677 AC_ARG_ENABLE([fast-install],
 2678     [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
 2679     [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
 2680     [p=${PACKAGE-default}
 2681     case $enableval in
 2682     yes) enable_fast_install=yes ;;
 2683     no) enable_fast_install=no ;;
 2684     *)
 2685       enable_fast_install=no
 2686       # Look at the argument we got.  We use all the common list separators.
 2687       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 2688       for pkg in $enableval; do
 2689     IFS="$lt_save_ifs"
 2690     if test "X$pkg" = "X$p"; then
 2691       enable_fast_install=yes
 2692     fi
 2693       done
 2694       IFS="$lt_save_ifs"
 2695       ;;
 2696     esac],
 2697     [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
 2698 ])# AC_ENABLE_FAST_INSTALL
 2699 
 2700 
 2701 # AC_DISABLE_FAST_INSTALL
 2702 # -----------------------
 2703 # set the default to --disable-fast-install
 2704 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
 2705 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 2706 AC_ENABLE_FAST_INSTALL(no)
 2707 ])# AC_DISABLE_FAST_INSTALL
 2708 
 2709 
 2710 # AC_LIBTOOL_PICMODE([MODE])
 2711 # --------------------------
 2712 # implement the --with-pic flag
 2713 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
 2714 AC_DEFUN([AC_LIBTOOL_PICMODE],
 2715 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 2716 pic_mode=ifelse($#,1,$1,default)
 2717 ])# AC_LIBTOOL_PICMODE
 2718 
 2719 
 2720 # AC_PROG_EGREP
 2721 # -------------
 2722 # This is predefined starting with Autoconf 2.54, so this conditional
 2723 # definition can be removed once we require Autoconf 2.54 or later.
 2724 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
 2725 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
 2726    [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 2727     then ac_cv_prog_egrep='grep -E'
 2728     else ac_cv_prog_egrep='egrep'
 2729     fi])
 2730  EGREP=$ac_cv_prog_egrep
 2731  AC_SUBST([EGREP])
 2732 ])])
 2733 
 2734 
 2735 # AC_PATH_TOOL_PREFIX
 2736 # -------------------
 2737 # find a file program which can recognize shared library
 2738 AC_DEFUN([AC_PATH_TOOL_PREFIX],
 2739 [AC_REQUIRE([AC_PROG_EGREP])dnl
 2740 AC_MSG_CHECKING([for $1])
 2741 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 2742 [case $MAGIC_CMD in
 2743 [[\\/*] |  ?:[\\/]*])
 2744   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 2745   ;;
 2746 *)
 2747   lt_save_MAGIC_CMD="$MAGIC_CMD"
 2748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 2749 dnl $ac_dummy forces splitting on constant user-supplied paths.
 2750 dnl POSIX.2 word splitting is done only on the output of word expansions,
 2751 dnl not every word.  This closes a longstanding sh security hole.
 2752   ac_dummy="ifelse([$2], , $PATH, [$2])"
 2753   for ac_dir in $ac_dummy; do
 2754     IFS="$lt_save_ifs"
 2755     test -z "$ac_dir" && ac_dir=.
 2756     if test -f $ac_dir/$1; then
 2757       lt_cv_path_MAGIC_CMD="$ac_dir/$1"
 2758       if test -n "$file_magic_test_file"; then
 2759     case $deplibs_check_method in
 2760     "file_magic "*)
 2761       file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 2762       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2763       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 2764         $EGREP "$file_magic_regex" > /dev/null; then
 2765         :
 2766       else
 2767         cat <<EOF 1>&2
 2768 
 2769 *** Warning: the command libtool uses to detect shared libraries,
 2770 *** $file_magic_cmd, produces output that libtool cannot recognize.
 2771 *** The result is that libtool may fail to recognize shared libraries
 2772 *** as such.  This will affect the creation of libtool libraries that
 2773 *** depend on shared libraries, but programs linked with such libtool
 2774 *** libraries will work regardless of this problem.  Nevertheless, you
 2775 *** may want to report the problem to your system manager and/or to
 2776 *** bug-libtool@gnu.org
 2777 
 2778 EOF
 2779       fi ;;
 2780     esac
 2781       fi
 2782       break
 2783     fi
 2784   done
 2785   IFS="$lt_save_ifs"
 2786   MAGIC_CMD="$lt_save_MAGIC_CMD"
 2787   ;;
 2788 esac])
 2789 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2790 if test -n "$MAGIC_CMD"; then
 2791   AC_MSG_RESULT($MAGIC_CMD)
 2792 else
 2793   AC_MSG_RESULT(no)
 2794 fi
 2795 ])# AC_PATH_TOOL_PREFIX
 2796 
 2797 
 2798 # AC_PATH_MAGIC
 2799 # -------------
 2800 # find a file program which can recognize a shared library
 2801 AC_DEFUN([AC_PATH_MAGIC],
 2802 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 2803 if test -z "$lt_cv_path_MAGIC_CMD"; then
 2804   if test -n "$ac_tool_prefix"; then
 2805     AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 2806   else
 2807     MAGIC_CMD=:
 2808   fi
 2809 fi
 2810 ])# AC_PATH_MAGIC
 2811 
 2812 
 2813 # AC_PROG_LD
 2814 # ----------
 2815 # find the pathname to the GNU or non-GNU linker
 2816 AC_DEFUN([AC_PROG_LD],
 2817 [AC_ARG_WITH([gnu-ld],
 2818     [AC_HELP_STRING([--with-gnu-ld],
 2819     [assume the C compiler uses GNU ld @<:@default=no@:>@])],
 2820     [test "$withval" = no || with_gnu_ld=yes],
 2821     [with_gnu_ld=no])
 2822 AC_REQUIRE([LT_AC_PROG_SED])dnl
 2823 AC_REQUIRE([AC_PROG_CC])dnl
 2824 AC_REQUIRE([AC_CANONICAL_HOST])dnl
 2825 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 2826 ac_prog=ld
 2827 if test "$GCC" = yes; then
 2828   # Check if gcc -print-prog-name=ld gives a path.
 2829   AC_MSG_CHECKING([for ld used by $CC])
 2830   case $host in
 2831   *-*-mingw*)
 2832     # gcc leaves a trailing carriage return which upsets mingw
 2833     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 2834   *)
 2835     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 2836   esac
 2837   case $ac_prog in
 2838     # Accept absolute paths.
 2839     [[\\/]]* | ?:[[\\/]]*)
 2840       re_direlt='/[[^/]][[^/]]*/\.\./'
 2841       # Canonicalize the pathname of ld
 2842       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 2843       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 2844     ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 2845       done
 2846       test -z "$LD" && LD="$ac_prog"
 2847       ;;
 2848   "")
 2849     # If it fails, then pretend we aren't using GCC.
 2850     ac_prog=ld
 2851     ;;
 2852   *)
 2853     # If it is relative, then search for the first ld in PATH.
 2854     with_gnu_ld=unknown
 2855     ;;
 2856   esac
 2857 elif test "$with_gnu_ld" = yes; then
 2858   AC_MSG_CHECKING([for GNU ld])
 2859 else
 2860   AC_MSG_CHECKING([for non-GNU ld])
 2861 fi
 2862 AC_CACHE_VAL(lt_cv_path_LD,
 2863 [if test -z "$LD"; then
 2864   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 2865   for ac_dir in $PATH; do
 2866     IFS="$lt_save_ifs"
 2867     test -z "$ac_dir" && ac_dir=.
 2868     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 2869       lt_cv_path_LD="$ac_dir/$ac_prog"
 2870       # Check to see if the program is GNU ld.  I'd rather use --version,
 2871       # but apparently some variants of GNU ld only accept -v.
 2872       # Break only if it was the GNU/non-GNU ld that we prefer.
 2873       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 2874       *GNU* | *'with BFD'*)
 2875     test "$with_gnu_ld" != no && break
 2876     ;;
 2877       *)
 2878     test "$with_gnu_ld" != yes && break
 2879     ;;
 2880       esac
 2881     fi
 2882   done
 2883   IFS="$lt_save_ifs"
 2884 else
 2885   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 2886 fi])
 2887 LD="$lt_cv_path_LD"
 2888 if test -n "$LD"; then
 2889   AC_MSG_RESULT($LD)
 2890 else
 2891   AC_MSG_RESULT(no)
 2892 fi
 2893 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 2894 AC_PROG_LD_GNU
 2895 ])# AC_PROG_LD
 2896 
 2897 
 2898 # AC_PROG_LD_GNU
 2899 # --------------
 2900 AC_DEFUN([AC_PROG_LD_GNU],
 2901 [AC_REQUIRE([AC_PROG_EGREP])dnl
 2902 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 2903 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
 2904 case `$LD -v 2>&1 </dev/null` in
 2905 *GNU* | *'with BFD'*)
 2906   lt_cv_prog_gnu_ld=yes
 2907   ;;
 2908 *)
 2909   lt_cv_prog_gnu_ld=no
 2910   ;;
 2911 esac])
 2912 with_gnu_ld=$lt_cv_prog_gnu_ld
 2913 ])# AC_PROG_LD_GNU
 2914 
 2915 
 2916 # AC_PROG_LD_RELOAD_FLAG
 2917 # ----------------------
 2918 # find reload flag for linker
 2919 #   -- PORTME Some linkers may need a different reload flag.
 2920 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
 2921 [AC_CACHE_CHECK([for $LD option to reload object files],
 2922   lt_cv_ld_reload_flag,
 2923   [lt_cv_ld_reload_flag='-r'])
 2924 reload_flag=$lt_cv_ld_reload_flag
 2925 case $reload_flag in
 2926 "" | " "*) ;;
 2927 *) reload_flag=" $reload_flag" ;;
 2928 esac
 2929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 2930 case $host_os in
 2931   darwin*)
 2932     if test "$GCC" = yes; then
 2933       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 2934     else
 2935       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 2936     fi
 2937     ;;
 2938 esac
 2939 ])# AC_PROG_LD_RELOAD_FLAG
 2940 
 2941 
 2942 # AC_DEPLIBS_CHECK_METHOD
 2943 # -----------------------
 2944 # how to check for library dependencies
 2945 #  -- PORTME fill in with the dynamic library characteristics
 2946 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
 2947 [AC_CACHE_CHECK([how to recognize dependent libraries],
 2948 lt_cv_deplibs_check_method,
 2949 [lt_cv_file_magic_cmd='$MAGIC_CMD'
 2950 lt_cv_file_magic_test_file=
 2951 lt_cv_deplibs_check_method='unknown'
 2952 # Need to set the preceding variable on all platforms that support
 2953 # interlibrary dependencies.
 2954 # 'none' -- dependencies not supported.
 2955 # `unknown' -- same as none, but documents that we really don't know.
 2956 # 'pass_all' -- all dependencies passed with no checks.
 2957 # 'test_compile' -- check by making test program.
 2958 # 'file_magic [[regex]]' -- check by looking for files in library path
 2959 # which responds to the $file_magic_cmd with a given extended regex.
 2960 # If you have `file' or equivalent on your system and you're not sure
 2961 # whether `pass_all' will *always* work, you probably want this one.
 2962 
 2963 case $host_os in
 2964 aix4* | aix5*)
 2965   lt_cv_deplibs_check_method=pass_all
 2966   ;;
 2967 
 2968 beos*)
 2969   lt_cv_deplibs_check_method=pass_all
 2970   ;;
 2971 
 2972 bsdi[[45]]*)
 2973   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 2974   lt_cv_file_magic_cmd='/usr/bin/file -L'
 2975   lt_cv_file_magic_test_file=/shlib/libc.so
 2976   ;;
 2977 
 2978 cygwin*)
 2979   # func_win32_libid is a shell function defined in ltmain.sh
 2980   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 2981   lt_cv_file_magic_cmd='func_win32_libid'
 2982   ;;
 2983 
 2984 mingw* | pw32*)
 2985   # Base MSYS/MinGW do not provide the 'file' command needed by
 2986   # func_win32_libid shell function, so use a weaker test based on 'objdump',
 2987   # unless we find 'file', for example because we are cross-compiling.
 2988   if ( file / ) >/dev/null 2>&1; then
 2989     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 2990     lt_cv_file_magic_cmd='func_win32_libid'
 2991   else
 2992     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 2993     lt_cv_file_magic_cmd='$OBJDUMP -f'
 2994   fi
 2995   ;;
 2996 
 2997 darwin* | rhapsody*)
 2998   lt_cv_deplibs_check_method=pass_all
 2999   ;;
 3000 
 3001 freebsd* | dragonfly*)
 3002   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 3003     case $host_cpu in
 3004     i*86 )
 3005       # Not sure whether the presence of OpenBSD here was a mistake.
 3006       # Let's accept both of them until this is cleared up.
 3007       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 3008       lt_cv_file_magic_cmd=/usr/bin/file
 3009       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 3010       ;;
 3011     esac
 3012   else
 3013     lt_cv_deplibs_check_method=pass_all
 3014   fi
 3015   ;;
 3016 
 3017 gnu*)
 3018   lt_cv_deplibs_check_method=pass_all
 3019   ;;
 3020 
 3021 hpux10.20* | hpux11*)
 3022   lt_cv_file_magic_cmd=/usr/bin/file
 3023   case $host_cpu in
 3024   ia64*)
 3025     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 3026     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 3027     ;;
 3028   hppa*64*)
 3029     [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
 3030     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 3031     ;;
 3032   *)
 3033     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
 3034     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 3035     ;;
 3036   esac
 3037   ;;
 3038 
 3039 interix[[3-9]]*)
 3040   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 3041   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 3042   ;;
 3043 
 3044 irix5* | irix6* | nonstopux*)
 3045   case $LD in
 3046   *-32|*"-32 ") libmagic=32-bit;;
 3047   *-n32|*"-n32 ") libmagic=N32;;
 3048   *-64|*"-64 ") libmagic=64-bit;;
 3049   *) libmagic=never-match;;
 3050   esac
 3051   lt_cv_deplibs_check_method=pass_all
 3052   ;;
 3053 
 3054 # This must be Linux ELF.
 3055 linux* | k*bsd*-gnu)
 3056   lt_cv_deplibs_check_method=pass_all
 3057   ;;
 3058 
 3059 netbsd* | netbsdelf*-gnu)
 3060   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 3061     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3062   else
 3063     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 3064   fi
 3065   ;;
 3066 
 3067 newos6*)
 3068   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 3069   lt_cv_file_magic_cmd=/usr/bin/file
 3070   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 3071   ;;
 3072 
 3073 nto-qnx*)
 3074   lt_cv_deplibs_check_method=unknown
 3075   ;;
 3076 
 3077 openbsd*)
 3078   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 3079     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 3080   else
 3081     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3082   fi
 3083   ;;
 3084 
 3085 osf3* | osf4* | osf5*)
 3086   lt_cv_deplibs_check_method=pass_all
 3087   ;;
 3088 
 3089 rdos*)
 3090   lt_cv_deplibs_check_method=pass_all
 3091   ;;
 3092 
 3093 solaris*)
 3094   lt_cv_deplibs_check_method=pass_all
 3095   ;;
 3096 
 3097 sysv4 | sysv4.3*)
 3098   case $host_vendor in
 3099   motorola)
 3100     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 3101     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 3102     ;;
 3103   ncr)
 3104     lt_cv_deplibs_check_method=pass_all
 3105     ;;
 3106   sequent)
 3107     lt_cv_file_magic_cmd='/bin/file'
 3108     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 3109     ;;
 3110   sni)
 3111     lt_cv_file_magic_cmd='/bin/file'
 3112     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 3113     lt_cv_file_magic_test_file=/lib/libc.so
 3114     ;;
 3115   siemens)
 3116     lt_cv_deplibs_check_method=pass_all
 3117     ;;
 3118   pc)
 3119     lt_cv_deplibs_check_method=pass_all
 3120     ;;
 3121   esac
 3122   ;;
 3123 
 3124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3125   lt_cv_deplibs_check_method=pass_all
 3126   ;;
 3127 esac
 3128 ])
 3129 file_magic_cmd=$lt_cv_file_magic_cmd
 3130 deplibs_check_method=$lt_cv_deplibs_check_method
 3131 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 3132 ])# AC_DEPLIBS_CHECK_METHOD
 3133 
 3134 
 3135 # AC_PROG_NM
 3136 # ----------
 3137 # find the pathname to a BSD-compatible name lister
 3138 AC_DEFUN([AC_PROG_NM],
 3139 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
 3140 [if test -n "$NM"; then
 3141   # Let the user override the test.
 3142   lt_cv_path_NM="$NM"
 3143 else
 3144   lt_nm_to_check="${ac_tool_prefix}nm"
 3145   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 3146     lt_nm_to_check="$lt_nm_to_check nm"
 3147   fi
 3148   for lt_tmp_nm in $lt_nm_to_check; do
 3149     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 3150     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 3151       IFS="$lt_save_ifs"
 3152       test -z "$ac_dir" && ac_dir=.
 3153       tmp_nm="$ac_dir/$lt_tmp_nm"
 3154       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 3155     # Check to see if the nm accepts a BSD-compat flag.
 3156     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 3157     #   nm: unknown option "B" ignored
 3158     # Tru64's nm complains that /dev/null is an invalid object file
 3159     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 3160     */dev/null* | *'Invalid file or object type'*)
 3161       lt_cv_path_NM="$tmp_nm -B"
 3162       break
 3163       ;;
 3164     *)
 3165       case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 3166       */dev/null*)
 3167         lt_cv_path_NM="$tmp_nm -p"
 3168         break
 3169         ;;
 3170       *)
 3171         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 3172         continue # so that we can try to find one that supports BSD flags
 3173         ;;
 3174       esac
 3175       ;;
 3176     esac
 3177       fi
 3178     done
 3179     IFS="$lt_save_ifs"
 3180   done
 3181   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 3182 fi])
 3183 NM="$lt_cv_path_NM"
 3184 ])# AC_PROG_NM
 3185 
 3186 
 3187 # AC_CHECK_LIBM
 3188 # -------------
 3189 # check for math library
 3190 AC_DEFUN([AC_CHECK_LIBM],
 3191 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3192 LIBM=
 3193 case $host in
 3194 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
 3195   # These system don't have libm, or don't need it
 3196   ;;
 3197 *-ncr-sysv4.3*)
 3198   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
 3199   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 3200   ;;
 3201 *)
 3202   AC_CHECK_LIB(m, cos, LIBM="-lm")
 3203   ;;
 3204 esac
 3205 ])# AC_CHECK_LIBM
 3206 
 3207 
 3208 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
 3209 # -----------------------------------
 3210 # sets LIBLTDL to the link flags for the libltdl convenience library and
 3211 # LTDLINCL to the include flags for the libltdl header and adds
 3212 # --enable-ltdl-convenience to the configure arguments.  Note that
 3213 # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 3214 # it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
 3215 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
 3216 # (note the single quotes!).  If your package is not flat and you're not
 3217 # using automake, define top_builddir and top_srcdir appropriately in
 3218 # the Makefiles.
 3219 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
 3220 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 3221   case $enable_ltdl_convenience in
 3222   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
 3223   "") enable_ltdl_convenience=yes
 3224       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
 3225   esac
 3226   LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
 3227   LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 3228   # For backwards non-gettext consistent compatibility...
 3229   INCLTDL="$LTDLINCL"
 3230 ])# AC_LIBLTDL_CONVENIENCE
 3231 
 3232 
 3233 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
 3234 # -----------------------------------
 3235 # sets LIBLTDL to the link flags for the libltdl installable library and
 3236 # LTDLINCL to the include flags for the libltdl header and adds
 3237 # --enable-ltdl-install to the configure arguments.  Note that
 3238 # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
 3239 # and an installed libltdl is not found, it is assumed to be `libltdl'.
 3240 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
 3241 # '${top_srcdir}/' (note the single quotes!).  If your package is not
 3242 # flat and you're not using automake, define top_builddir and top_srcdir
 3243 # appropriately in the Makefiles.
 3244 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
 3245 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
 3246 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
 3247   AC_CHECK_LIB(ltdl, lt_dlinit,
 3248   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
 3249   [if test x"$enable_ltdl_install" = xno; then
 3250      AC_MSG_WARN([libltdl not installed, but installation disabled])
 3251    else
 3252      enable_ltdl_install=yes
 3253    fi
 3254   ])
 3255   if test x"$enable_ltdl_install" = x"yes"; then
 3256     ac_configure_args="$ac_configure_args --enable-ltdl-install"
 3257     LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
 3258     LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
 3259   else
 3260     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
 3261     LIBLTDL="-lltdl"
 3262     LTDLINCL=
 3263   fi
 3264   # For backwards non-gettext consistent compatibility...
 3265   INCLTDL="$LTDLINCL"
 3266 ])# AC_LIBLTDL_INSTALLABLE
 3267 
 3268 
 3269 # AC_LIBTOOL_CXX
 3270 # --------------
 3271 # enable support for C++ libraries
 3272 AC_DEFUN([AC_LIBTOOL_CXX],
 3273 [AC_REQUIRE([_LT_AC_LANG_CXX])
 3274 ])# AC_LIBTOOL_CXX
 3275 
 3276 
 3277 # _LT_AC_LANG_CXX
 3278 # ---------------
 3279 AC_DEFUN([_LT_AC_LANG_CXX],
 3280 [AC_REQUIRE([AC_PROG_CXX])
 3281 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 3282 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
 3283 ])# _LT_AC_LANG_CXX
 3284 
 3285 # _LT_AC_PROG_CXXCPP
 3286 # ------------------
 3287 AC_DEFUN([_LT_AC_PROG_CXXCPP],
 3288 [
 3289 AC_REQUIRE([AC_PROG_CXX])
 3290 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 3291     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 3292     (test "X$CXX" != "Xg++"))) ; then
 3293   AC_PROG_CXXCPP
 3294 fi
 3295 ])# _LT_AC_PROG_CXXCPP
 3296 
 3297 # AC_LIBTOOL_F77
 3298 # --------------
 3299 # enable support for Fortran 77 libraries
 3300 AC_DEFUN([AC_LIBTOOL_F77],
 3301 [AC_REQUIRE([_LT_AC_LANG_F77])
 3302 ])# AC_LIBTOOL_F77
 3303 
 3304 
 3305 # _LT_AC_LANG_F77
 3306 # ---------------
 3307 AC_DEFUN([_LT_AC_LANG_F77],
 3308 [AC_REQUIRE([AC_PROG_F77])
 3309 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
 3310 ])# _LT_AC_LANG_F77
 3311 
 3312 
 3313 # AC_LIBTOOL_GCJ
 3314 # --------------
 3315 # enable support for GCJ libraries
 3316 AC_DEFUN([AC_LIBTOOL_GCJ],
 3317 [AC_REQUIRE([_LT_AC_LANG_GCJ])
 3318 ])# AC_LIBTOOL_GCJ
 3319 
 3320 
 3321 # _LT_AC_LANG_GCJ
 3322 # ---------------
 3323 AC_DEFUN([_LT_AC_LANG_GCJ],
 3324 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
 3325   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
 3326     [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
 3327       [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
 3328      [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
 3329        [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
 3330 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
 3331 ])# _LT_AC_LANG_GCJ
 3332 
 3333 
 3334 # AC_LIBTOOL_RC
 3335 # -------------
 3336 # enable support for Windows resource files
 3337 AC_DEFUN([AC_LIBTOOL_RC],
 3338 [AC_REQUIRE([LT_AC_PROG_RC])
 3339 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
 3340 ])# AC_LIBTOOL_RC
 3341 
 3342 
 3343 # AC_LIBTOOL_LANG_C_CONFIG
 3344 # ------------------------
 3345 # Ensure that the configuration vars for the C compiler are
 3346 # suitably defined.  Those variables are subsequently used by
 3347 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 3348 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
 3349 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
 3350 [lt_save_CC="$CC"
 3351 AC_LANG_PUSH(C)
 3352 
 3353 # Source file extension for C test sources.
 3354 ac_ext=c
 3355 
 3356 # Object file extension for compiled C test sources.
 3357 objext=o
 3358 _LT_AC_TAGVAR(objext, $1)=$objext
 3359 
 3360 # Code to be used in simple compile tests
 3361 lt_simple_compile_test_code="int some_variable = 0;"
 3362 
 3363 # Code to be used in simple link tests
 3364 lt_simple_link_test_code='int main(){return(0);}'
 3365 
 3366 _LT_AC_SYS_COMPILER
 3367 
 3368 # save warnings/boilerplate of simple test code
 3369 _LT_COMPILER_BOILERPLATE
 3370 _LT_LINKER_BOILERPLATE
 3371 
 3372 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 3373 AC_LIBTOOL_PROG_COMPILER_PIC($1)
 3374 AC_LIBTOOL_PROG_CC_C_O($1)
 3375 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 3376 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 3377 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 3378 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 3379 AC_LIBTOOL_SYS_LIB_STRIP
 3380 AC_LIBTOOL_DLOPEN_SELF
 3381 
 3382 # Report which library types will actually be built
 3383 AC_MSG_CHECKING([if libtool supports shared libraries])
 3384 AC_MSG_RESULT([$can_build_shared])
 3385 
 3386 AC_MSG_CHECKING([whether to build shared libraries])
 3387 test "$can_build_shared" = "no" && enable_shared=no
 3388 
 3389 # On AIX, shared libraries and static libraries use the same namespace, and
 3390 # are all built from PIC.
 3391 case $host_os in
 3392 aix3*)
 3393   test "$enable_shared" = yes && enable_static=no
 3394   if test -n "$RANLIB"; then
 3395     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 3396     postinstall_cmds='$RANLIB $lib'
 3397   fi
 3398   ;;
 3399 
 3400 aix4* | aix5*)
 3401   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 3402     test "$enable_shared" = yes && enable_static=no
 3403   fi
 3404     ;;
 3405 esac
 3406 AC_MSG_RESULT([$enable_shared])
 3407 
 3408 AC_MSG_CHECKING([whether to build static libraries])
 3409 # Make sure either enable_shared or enable_static is yes.
 3410 test "$enable_shared" = yes || enable_static=yes
 3411 AC_MSG_RESULT([$enable_static])
 3412 
 3413 AC_LIBTOOL_CONFIG($1)
 3414 
 3415 AC_LANG_POP
 3416 CC="$lt_save_CC"
 3417 ])# AC_LIBTOOL_LANG_C_CONFIG
 3418 
 3419 
 3420 # AC_LIBTOOL_LANG_CXX_CONFIG
 3421 # --------------------------
 3422 # Ensure that the configuration vars for the C compiler are
 3423 # suitably defined.  Those variables are subsequently used by
 3424 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 3425 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
 3426 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
 3427 [AC_LANG_PUSH(C++)
 3428 AC_REQUIRE([AC_PROG_CXX])
 3429 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
 3430 
 3431 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 3432 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 3433 _LT_AC_TAGVAR(always_export_symbols, $1)=no
 3434 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 3435 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 3436 _LT_AC_TAGVAR(hardcode_direct, $1)=no
 3437 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 3438 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 3439 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 3440 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 3441 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 3442 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 3443 _LT_AC_TAGVAR(module_cmds, $1)=
 3444 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 3445 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 3446 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 3447 _LT_AC_TAGVAR(no_undefined_flag, $1)=
 3448 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 3449 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 3450 
 3451 # Dependencies to place before and after the object being linked:
 3452 _LT_AC_TAGVAR(predep_objects, $1)=
 3453 _LT_AC_TAGVAR(postdep_objects, $1)=
 3454 _LT_AC_TAGVAR(predeps, $1)=
 3455 _LT_AC_TAGVAR(postdeps, $1)=
 3456 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
 3457 
 3458 # Source file extension for C++ test sources.
 3459 ac_ext=cpp
 3460 
 3461 # Object file extension for compiled C++ test sources.
 3462 objext=o
 3463 _LT_AC_TAGVAR(objext, $1)=$objext
 3464 
 3465 # Code to be used in simple compile tests
 3466 lt_simple_compile_test_code="int some_variable = 0;"
 3467 
 3468 # Code to be used in simple link tests
 3469 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 3470 
 3471 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 3472 _LT_AC_SYS_COMPILER
 3473 
 3474 # save warnings/boilerplate of simple test code
 3475 _LT_COMPILER_BOILERPLATE
 3476 _LT_LINKER_BOILERPLATE
 3477 
 3478 # Allow CC to be a program name with arguments.
 3479 lt_save_CC=$CC
 3480 lt_save_LD=$LD
 3481 lt_save_GCC=$GCC
 3482 GCC=$GXX
 3483 lt_save_with_gnu_ld=$with_gnu_ld
 3484 lt_save_path_LD=$lt_cv_path_LD
 3485 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 3486   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 3487 else
 3488   $as_unset lt_cv_prog_gnu_ld
 3489 fi
 3490 if test -n "${lt_cv_path_LDCXX+set}"; then
 3491   lt_cv_path_LD=$lt_cv_path_LDCXX
 3492 else
 3493   $as_unset lt_cv_path_LD
 3494 fi
 3495 test -z "${LDCXX+set}" || LD=$LDCXX
 3496 CC=${CXX-"c++"}
 3497 compiler=$CC
 3498 _LT_AC_TAGVAR(compiler, $1)=$CC
 3499 _LT_CC_BASENAME([$compiler])
 3500 
 3501 # We don't want -fno-exception wen compiling C++ code, so set the
 3502 # no_builtin_flag separately
 3503 if test "$GXX" = yes; then
 3504   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 3505 else
 3506   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 3507 fi
 3508 
 3509 if test "$GXX" = yes; then
 3510   # Set up default GNU C++ configuration
 3511 
 3512   AC_PROG_LD
 3513 
 3514   # Check if GNU C++ uses GNU ld as the underlying linker, since the
 3515   # archiving commands below assume that GNU ld is being used.
 3516   if test "$with_gnu_ld" = yes; then
 3517     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3518     _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'
 3519 
 3520     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 3521     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 3522 
 3523     # If archive_cmds runs LD, not CC, wlarc should be empty
 3524     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 3525     #     investigate it a little bit more. (MM)
 3526     wlarc='${wl}'
 3527 
 3528     # ancient GNU ld didn't support --whole-archive et. al.
 3529     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 3530     grep 'no-whole-archive' > /dev/null; then
 3531       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 3532     else
 3533       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 3534     fi
 3535   else
 3536     with_gnu_ld=no
 3537     wlarc=
 3538 
 3539     # A generic and very simple default shared library creation
 3540     # command for GNU C++ for the case where it uses the native
 3541     # linker, instead of GNU ld.  If possible, this setting should
 3542     # overridden to take advantage of the native linker features on
 3543     # the platform it is being used on.
 3544     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 3545   fi
 3546 
 3547   # Commands to make compiler produce verbose output that lists
 3548   # what "hidden" libraries, object files and flags are used when
 3549   # linking a shared library.
 3550   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 3551 
 3552 else
 3553   GXX=no
 3554   with_gnu_ld=no
 3555   wlarc=
 3556 fi
 3557 
 3558 # PORTME: fill in a description of your system's C++ link characteristics
 3559 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 3560 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 3561 case $host_os in
 3562   aix3*)
 3563     # FIXME: insert proper C++ library support
 3564     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3565     ;;
 3566   aix4* | aix5*)
 3567     if test "$host_cpu" = ia64; then
 3568       # On IA64, the linker does run time linking by default, so we don't
 3569       # have to do anything special.
 3570       aix_use_runtimelinking=no
 3571       exp_sym_flag='-Bexport'
 3572       no_entry_flag=""
 3573     else
 3574       aix_use_runtimelinking=no
 3575 
 3576       # Test if we are trying to use run time linking or normal
 3577       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 3578       # need to do runtime linking.
 3579       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
 3580     for ld_flag in $LDFLAGS; do
 3581       case $ld_flag in
 3582       *-brtl*)
 3583         aix_use_runtimelinking=yes
 3584         break
 3585         ;;
 3586       esac
 3587     done
 3588     ;;
 3589       esac
 3590 
 3591       exp_sym_flag='-bexport'
 3592       no_entry_flag='-bnoentry'
 3593     fi
 3594 
 3595     # When large executables or shared objects are built, AIX ld can
 3596     # have problems creating the table of contents.  If linking a library
 3597     # or program results in "error TOC overflow" add -mminimal-toc to
 3598     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 3599     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 3600 
 3601     _LT_AC_TAGVAR(archive_cmds, $1)=''
 3602     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 3603     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 3604     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 3605 
 3606     if test "$GXX" = yes; then
 3607       case $host_os in aix4.[[012]]|aix4.[[012]].*)
 3608       # We only want to do this on AIX 4.2 and lower, the check
 3609       # below for broken collect2 doesn't work under 4.3+
 3610     collect2name=`${CC} -print-prog-name=collect2`
 3611     if test -f "$collect2name" && \
 3612        strings "$collect2name" | grep resolve_lib_name >/dev/null
 3613     then
 3614       # We have reworked collect2
 3615       :
 3616     else
 3617       # We have old collect2
 3618       _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
 3619       # It fails to find uninstalled libraries when the uninstalled
 3620       # path is not listed in the libpath.  Setting hardcode_minus_L
 3621       # to unsupported forces relinking
 3622       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 3623       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 3624       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 3625     fi
 3626     ;;
 3627       esac
 3628       shared_flag='-shared'
 3629       if test "$aix_use_runtimelinking" = yes; then
 3630     shared_flag="$shared_flag "'${wl}-G'
 3631       fi
 3632     else
 3633       # not using gcc
 3634       if test "$host_cpu" = ia64; then
 3635     # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 3636     # chokes on -Wl,-G. The following line is correct:
 3637     shared_flag='-G'
 3638       else
 3639     if test "$aix_use_runtimelinking" = yes; then
 3640       shared_flag='${wl}-G'
 3641     else
 3642       shared_flag='${wl}-bM:SRE'
 3643     fi
 3644       fi
 3645     fi
 3646 
 3647     # It seems that -bexpall does not export symbols beginning with
 3648     # underscore (_), so it is better to generate a list of symbols to export.
 3649     _LT_AC_TAGVAR(always_export_symbols, $1)=yes
 3650     if test "$aix_use_runtimelinking" = yes; then
 3651       # Warning - without using the other runtime loading flags (-brtl),
 3652       # -berok will link without error, but may produce a broken library.
 3653       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
 3654       # Determine the default libpath from the value encoded in an empty executable.
 3655       _LT_AC_SYS_LIBPATH_AIX
 3656       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 3657 
 3658       _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"
 3659      else
 3660       if test "$host_cpu" = ia64; then
 3661     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
 3662     _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 3663     _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"
 3664       else
 3665     # Determine the default libpath from the value encoded in an empty executable.
 3666     _LT_AC_SYS_LIBPATH_AIX
 3667     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
 3668     # Warning - without using the other run time loading flags,
 3669     # -berok will link without error, but may produce a broken library.
 3670     _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
 3671     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
 3672     # Exported symbols can be pulled into shared objects from archives
 3673     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 3674     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
 3675     # This is similar to how AIX traditionally builds its shared libraries.
 3676     _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'
 3677       fi
 3678     fi
 3679     ;;
 3680 
 3681   beos*)
 3682     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 3683       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 3684       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 3685       # support --undefined.  This deserves some investigation.  FIXME
 3686       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3687     else
 3688       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3689     fi
 3690     ;;
 3691 
 3692   chorus*)
 3693     case $cc_basename in
 3694       *)
 3695     # FIXME: insert proper C++ library support
 3696     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3697     ;;
 3698     esac
 3699     ;;
 3700 
 3701   cygwin* | mingw* | pw32*)
 3702     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 3703     # as there is no search path for DLLs.
 3704     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 3705     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 3706     _LT_AC_TAGVAR(always_export_symbols, $1)=no
 3707     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 3708 
 3709     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 3710       _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'
 3711       # If the export-symbols file already is a .def file (1st line
 3712       # is EXPORTS), use it as is; otherwise, prepend...
 3713       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 3714     cp $export_symbols $output_objdir/$soname.def;
 3715       else
 3716     echo EXPORTS > $output_objdir/$soname.def;
 3717     cat $export_symbols >> $output_objdir/$soname.def;
 3718       fi~
 3719       $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'
 3720     else
 3721       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3722     fi
 3723   ;;
 3724       darwin* | rhapsody*)
 3725         case $host_os in
 3726         rhapsody* | darwin1.[[012]])
 3727          _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
 3728          ;;
 3729        *) # Darwin 1.3 on
 3730          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 3731            _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 3732          else
 3733            case ${MACOSX_DEPLOYMENT_TARGET} in
 3734              10.[[012]])
 3735                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 3736                ;;
 3737              10.*)
 3738                _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
 3739                ;;
 3740            esac
 3741          fi
 3742          ;;
 3743         esac
 3744       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 3745       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 3746       _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
 3747       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 3748       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
 3749       _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 3750 
 3751     if test "$GXX" = yes ; then
 3752       lt_int_apple_cc_single_mod=no
 3753       output_verbose_link_cmd='echo'
 3754       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 3755        lt_int_apple_cc_single_mod=yes
 3756       fi
 3757       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 3758        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 3759       else
 3760           _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'
 3761         fi
 3762         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 3763         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 3764           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 3765             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 3766           else
 3767             _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 3768           fi
 3769             _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}'
 3770       else
 3771       case $cc_basename in
 3772         xlc*)
 3773          output_verbose_link_cmd='echo'
 3774           _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'
 3775           _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 3776           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 3777           _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}'
 3778           _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}'
 3779           ;;
 3780        *)
 3781          _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3782           ;;
 3783       esac
 3784       fi
 3785         ;;
 3786 
 3787   dgux*)
 3788     case $cc_basename in
 3789       ec++*)
 3790     # FIXME: insert proper C++ library support
 3791     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3792     ;;
 3793       ghcx*)
 3794     # Green Hills C++ Compiler
 3795     # FIXME: insert proper C++ library support
 3796     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3797     ;;
 3798       *)
 3799     # FIXME: insert proper C++ library support
 3800     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3801     ;;
 3802     esac
 3803     ;;
 3804   freebsd[[12]]*)
 3805     # C++ shared libraries reported to be fairly broken before switch to ELF
 3806     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3807     ;;
 3808   freebsd-elf*)
 3809     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 3810     ;;
 3811   freebsd* | dragonfly*)
 3812     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 3813     # conventions
 3814     _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 3815     ;;
 3816   gnu*)
 3817     ;;
 3818   hpux9*)
 3819     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 3820     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 3821     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 3822     _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 3823     _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 3824                 # but as the default
 3825                 # location of the library.
 3826 
 3827     case $cc_basename in
 3828     CC*)
 3829       # FIXME: insert proper C++ library support
 3830       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3831       ;;
 3832     aCC*)
 3833       _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'
 3834       # Commands to make compiler produce verbose output that lists
 3835       # what "hidden" libraries, object files and flags are used when
 3836       # linking a shared library.
 3837       #
 3838       # There doesn't appear to be a way to prevent this compiler from
 3839       # explicitly linking system object files so we need to strip them
 3840       # from the output so that they don't get included in the library
 3841       # dependencies.
 3842       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'
 3843       ;;
 3844     *)
 3845       if test "$GXX" = yes; then
 3846         _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'
 3847       else
 3848         # FIXME: insert proper C++ library support
 3849         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3850       fi
 3851       ;;
 3852     esac
 3853     ;;
 3854   hpux10*|hpux11*)
 3855     if test $with_gnu_ld = no; then
 3856       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
 3857       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 3858 
 3859       case $host_cpu in
 3860       hppa*64*|ia64*) ;;
 3861       *)
 3862     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 3863         ;;
 3864       esac
 3865     fi
 3866     case $host_cpu in
 3867     hppa*64*|ia64*)
 3868       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 3869       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 3870       ;;
 3871     *)
 3872       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 3873       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 3874                           # but as the default
 3875                           # location of the library.
 3876       ;;
 3877     esac
 3878 
 3879     case $cc_basename in
 3880       CC*)
 3881     # FIXME: insert proper C++ library support
 3882     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3883     ;;
 3884       aCC*)
 3885     case $host_cpu in
 3886     hppa*64*)
 3887       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 3888       ;;
 3889     ia64*)
 3890       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 3891       ;;
 3892     *)
 3893       _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'
 3894       ;;
 3895     esac
 3896     # Commands to make compiler produce verbose output that lists
 3897     # what "hidden" libraries, object files and flags are used when
 3898     # linking a shared library.
 3899     #
 3900     # There doesn't appear to be a way to prevent this compiler from
 3901     # explicitly linking system object files so we need to strip them
 3902     # from the output so that they don't get included in the library
 3903     # dependencies.
 3904     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'
 3905     ;;
 3906       *)
 3907     if test "$GXX" = yes; then
 3908       if test $with_gnu_ld = no; then
 3909         case $host_cpu in
 3910         hppa*64*)
 3911           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 3912           ;;
 3913         ia64*)
 3914           _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'
 3915           ;;
 3916         *)
 3917           _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'
 3918           ;;
 3919         esac
 3920       fi
 3921     else
 3922       # FIXME: insert proper C++ library support
 3923       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 3924     fi
 3925     ;;
 3926     esac
 3927     ;;
 3928   interix[[3-9]]*)
 3929     _LT_AC_TAGVAR(hardcode_direct, $1)=no
 3930     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 3931     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 3932     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 3933     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 3934     # Instead, shared libraries are loaded at an image base (0x10000000 by
 3935     # default) and relocated if they conflict, which is a slow very memory
 3936     # consuming and fragmenting process.  To avoid this, we pick a random,
 3937     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 3938     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 3939     _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'
 3940     _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'
 3941     ;;
 3942   irix5* | irix6*)
 3943     case $cc_basename in
 3944       CC*)
 3945     # SGI C++
 3946     _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'
 3947 
 3948     # Archives containing C++ object files must be created using
 3949     # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 3950     # necessary to make sure instantiated templates are included
 3951     # in the archive.
 3952     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 3953     ;;
 3954       *)
 3955     if test "$GXX" = yes; then
 3956       if test "$with_gnu_ld" = no; then
 3957         _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'
 3958       else
 3959         _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'
 3960       fi
 3961     fi
 3962     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 3963     ;;
 3964     esac
 3965     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 3966     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 3967     ;;
 3968   linux* | k*bsd*-gnu)
 3969     case $cc_basename in
 3970       KCC*)
 3971     # Kuck and Associates, Inc. (KAI) C++ Compiler
 3972 
 3973     # KCC will only create a shared library if the output file
 3974     # ends with ".so" (or ".sl" for HP-UX), so rename the library
 3975     # to its proper name (with version) after linking.
 3976     _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'
 3977     _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'
 3978     # Commands to make compiler produce verbose output that lists
 3979     # what "hidden" libraries, object files and flags are used when
 3980     # linking a shared library.
 3981     #
 3982     # There doesn't appear to be a way to prevent this compiler from
 3983     # explicitly linking system object files so we need to strip them
 3984     # from the output so that they don't get included in the library
 3985     # dependencies.
 3986     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'
 3987 
 3988     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
 3989     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 3990 
 3991     # Archives containing C++ object files must be created using
 3992     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 3993     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 3994     ;;
 3995       icpc*)
 3996     # Intel C++
 3997     with_gnu_ld=yes
 3998     # version 8.0 and above of icpc choke on multiply defined symbols
 3999     # if we add $predep_objects and $postdep_objects, however 7.1 and
 4000     # earlier do not add the objects themselves.
 4001     case `$CC -V 2>&1` in
 4002     *"Version 7."*)
 4003       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 4004       _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'
 4005       ;;
 4006     *)  # Version 8.0 or newer
 4007       tmp_idyn=
 4008       case $host_cpu in
 4009         ia64*) tmp_idyn=' -i_dynamic';;
 4010       esac
 4011       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 4012       _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'
 4013       ;;
 4014     esac
 4015     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 4016     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 4017     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 4018     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 4019     ;;
 4020       pgCC*)
 4021         # Portland Group C++ compiler
 4022     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 4023     _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'
 4024 
 4025     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 4026     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 4027     _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'
 4028         ;;
 4029       cxx*)
 4030     # Compaq C++
 4031     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 4032     _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'
 4033 
 4034     runpath_var=LD_RUN_PATH
 4035     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 4036     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4037 
 4038     # Commands to make compiler produce verbose output that lists
 4039     # what "hidden" libraries, object files and flags are used when
 4040     # linking a shared library.
 4041     #
 4042     # There doesn't appear to be a way to prevent this compiler from
 4043     # explicitly linking system object files so we need to strip them
 4044     # from the output so that they don't get included in the library
 4045     # dependencies.
 4046     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'
 4047     ;;
 4048       *)
 4049     case `$CC -V 2>&1 | sed 5q` in
 4050     *Sun\ C*)
 4051       # Sun C++ 5.9
 4052       _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 4053       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 4054       _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'
 4055       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 4056       _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'
 4057 
 4058       # Not sure whether something based on
 4059       # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 4060       # would be better.
 4061       output_verbose_link_cmd='echo'
 4062 
 4063       # Archives containing C++ object files must be created using
 4064       # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 4065       # necessary to make sure instantiated templates are included
 4066       # in the archive.
 4067       _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 4068       ;;
 4069     esac
 4070     ;;
 4071     esac
 4072     ;;
 4073   lynxos*)
 4074     # FIXME: insert proper C++ library support
 4075     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4076     ;;
 4077   m88k*)
 4078     # FIXME: insert proper C++ library support
 4079     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4080     ;;
 4081   mvs*)
 4082     case $cc_basename in
 4083       cxx*)
 4084     # FIXME: insert proper C++ library support
 4085     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4086     ;;
 4087       *)
 4088     # FIXME: insert proper C++ library support
 4089     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4090     ;;
 4091     esac
 4092     ;;
 4093   netbsd* | netbsdelf*-gnu)
 4094     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 4095       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 4096       wlarc=
 4097       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 4098       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 4099       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 4100     fi
 4101     # Workaround some broken pre-1.5 toolchains
 4102     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 4103     ;;
 4104   openbsd2*)
 4105     # C++ shared libraries are fairly broken
 4106     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4107     ;;
 4108   openbsd*)
 4109     if test -f /usr/libexec/ld.so; then
 4110       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 4111       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 4112       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 4113       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 4114       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 4115     _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'
 4116     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 4117     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 4118       fi
 4119       output_verbose_link_cmd='echo'
 4120     else
 4121       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4122     fi
 4123     ;;
 4124   osf3*)
 4125     case $cc_basename in
 4126       KCC*)
 4127     # Kuck and Associates, Inc. (KAI) C++ Compiler
 4128 
 4129     # KCC will only create a shared library if the output file
 4130     # ends with ".so" (or ".sl" for HP-UX), so rename the library
 4131     # to its proper name (with version) after linking.
 4132     _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'
 4133 
 4134     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 4135     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4136 
 4137     # Archives containing C++ object files must be created using
 4138     # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 4139     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 4140 
 4141     ;;
 4142       RCC*)
 4143     # Rational C++ 2.4.1
 4144     # FIXME: insert proper C++ library support
 4145     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4146     ;;
 4147       cxx*)
 4148     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 4149     _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'
 4150 
 4151     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 4152     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4153 
 4154     # Commands to make compiler produce verbose output that lists
 4155     # what "hidden" libraries, object files and flags are used when
 4156     # linking a shared library.
 4157     #
 4158     # There doesn't appear to be a way to prevent this compiler from
 4159     # explicitly linking system object files so we need to strip them
 4160     # from the output so that they don't get included in the library
 4161     # dependencies.
 4162     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'
 4163     ;;
 4164       *)
 4165     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 4166       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 4167       _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'
 4168 
 4169       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 4170       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4171 
 4172       # Commands to make compiler produce verbose output that lists
 4173       # what "hidden" libraries, object files and flags are used when
 4174       # linking a shared library.
 4175       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 4176 
 4177     else
 4178       # FIXME: insert proper C++ library support
 4179       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4180     fi
 4181     ;;
 4182     esac
 4183     ;;
 4184   osf4* | osf5*)
 4185     case $cc_basename in
 4186       KCC*)
 4187     # Kuck and Associates, Inc. (KAI) C++ Compiler
 4188 
 4189     # KCC will only create a shared library if the output file
 4190     # ends with ".so" (or ".sl" for HP-UX), so rename the library
 4191     # to its proper name (with version) after linking.
 4192     _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'
 4193 
 4194     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 4195     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4196 
 4197     # Archives containing C++ object files must be created using
 4198     # the KAI C++ compiler.
 4199     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
 4200     ;;
 4201       RCC*)
 4202     # Rational C++ 2.4.1
 4203     # FIXME: insert proper C++ library support
 4204     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4205     ;;
 4206       cxx*)
 4207     _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 4208     _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'
 4209     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 4210       echo "-hidden">> $lib.exp~
 4211       $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~
 4212       $rm $lib.exp'
 4213 
 4214     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 4215     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4216 
 4217     # Commands to make compiler produce verbose output that lists
 4218     # what "hidden" libraries, object files and flags are used when
 4219     # linking a shared library.
 4220     #
 4221     # There doesn't appear to be a way to prevent this compiler from
 4222     # explicitly linking system object files so we need to strip them
 4223     # from the output so that they don't get included in the library
 4224     # dependencies.
 4225     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'
 4226     ;;
 4227       *)
 4228     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 4229       _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
 4230      _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'
 4231 
 4232       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
 4233       _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
 4234 
 4235       # Commands to make compiler produce verbose output that lists
 4236       # what "hidden" libraries, object files and flags are used when
 4237       # linking a shared library.
 4238       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 4239 
 4240     else
 4241       # FIXME: insert proper C++ library support
 4242       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4243     fi
 4244     ;;
 4245     esac
 4246     ;;
 4247   psos*)
 4248     # FIXME: insert proper C++ library support
 4249     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4250     ;;
 4251   sunos4*)
 4252     case $cc_basename in
 4253       CC*)
 4254     # Sun C++ 4.x
 4255     # FIXME: insert proper C++ library support
 4256     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4257     ;;
 4258       lcc*)
 4259     # Lucid
 4260     # FIXME: insert proper C++ library support
 4261     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4262     ;;
 4263       *)
 4264     # FIXME: insert proper C++ library support
 4265     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4266     ;;
 4267     esac
 4268     ;;
 4269   solaris*)
 4270     case $cc_basename in
 4271       CC*)
 4272     # Sun C++ 4.2, 5.x and Centerline C++
 4273         _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
 4274     _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 4275     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 4276     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 4277     $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'
 4278 
 4279     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 4280     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 4281     case $host_os in
 4282       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 4283       *)
 4284         # The compiler driver will combine and reorder linker options,
 4285         # but understands `-z linker_flag'.
 4286         # Supported since Solaris 2.6 (maybe 2.5.1?)
 4287         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 4288         ;;
 4289     esac
 4290     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 4291 
 4292     output_verbose_link_cmd='echo'
 4293 
 4294     # Archives containing C++ object files must be created using
 4295     # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 4296     # necessary to make sure instantiated templates are included
 4297     # in the archive.
 4298     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 4299     ;;
 4300       gcx*)
 4301     # Green Hills C++ Compiler
 4302     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 4303 
 4304     # The C++ compiler must be used to create the archive.
 4305     _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 4306     ;;
 4307       *)
 4308     # GNU C++ compiler with Solaris linker
 4309     if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 4310       _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
 4311       if $CC --version | grep -v '^2\.7' > /dev/null; then
 4312         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 4313         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 4314         $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 4315 
 4316         # Commands to make compiler produce verbose output that lists
 4317         # what "hidden" libraries, object files and flags are used when
 4318         # linking a shared library.
 4319         output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 4320       else
 4321         # g++ 2.7 appears to require `-G' NOT `-shared' on this
 4322         # platform.
 4323         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 4324         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 4325         $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 4326 
 4327         # Commands to make compiler produce verbose output that lists
 4328         # what "hidden" libraries, object files and flags are used when
 4329         # linking a shared library.
 4330         output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 4331       fi
 4332 
 4333       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
 4334       case $host_os in
 4335       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 4336       *)
 4337         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 4338         ;;
 4339       esac
 4340     fi
 4341     ;;
 4342     esac
 4343     ;;
 4344   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 4345     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 4346     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 4347     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 4348     runpath_var='LD_RUN_PATH'
 4349 
 4350     case $cc_basename in
 4351       CC*)
 4352     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 4353     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 4354     ;;
 4355       *)
 4356     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 4357     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 4358     ;;
 4359     esac
 4360     ;;
 4361   sysv5* | sco3.2v5* | sco5v6*)
 4362     # Note: We can NOT use -z defs as we might desire, because we do not
 4363     # link with -lc, and that would cause any symbols used from libc to
 4364     # always be unresolved, which means just about no library would
 4365     # ever link correctly.  If we're not using GNU ld we use -z text
 4366     # though, which does catch some bad symbols but isn't as heavy-handed
 4367     # as -z defs.
 4368     # For security reasons, it is highly recommended that you always
 4369     # use absolute paths for naming shared libraries, and exclude the
 4370     # DT_RUNPATH tag from executables and libraries.  But doing so
 4371     # requires that you compile everything twice, which is a pain.
 4372     # So that behaviour is only enabled if SCOABSPATH is set to a
 4373     # non-empty value in the environment.  Most likely only useful for
 4374     # creating official distributions of packages.
 4375     # This is a hack until libtool officially supports absolute path
 4376     # names for shared libraries.
 4377     _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
 4378     _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
 4379     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 4380     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 4381     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 4382     _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
 4383     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
 4384     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
 4385     runpath_var='LD_RUN_PATH'
 4386 
 4387     case $cc_basename in
 4388       CC*)
 4389     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 4390     _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'
 4391     ;;
 4392       *)
 4393     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 4394     _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'
 4395     ;;
 4396     esac
 4397     ;;
 4398   tandem*)
 4399     case $cc_basename in
 4400       NCC*)
 4401     # NonStop-UX NCC 3.20
 4402     # FIXME: insert proper C++ library support
 4403     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4404     ;;
 4405       *)
 4406     # FIXME: insert proper C++ library support
 4407     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4408     ;;
 4409     esac
 4410     ;;
 4411   vxworks*)
 4412     # FIXME: insert proper C++ library support
 4413     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4414     ;;
 4415   *)
 4416     # FIXME: insert proper C++ library support
 4417     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 4418     ;;
 4419 esac
 4420 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
 4421 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
 4422 
 4423 _LT_AC_TAGVAR(GCC, $1)="$GXX"
 4424 _LT_AC_TAGVAR(LD, $1)="$LD"
 4425 
 4426 AC_LIBTOOL_POSTDEP_PREDEP($1)
 4427 AC_LIBTOOL_PROG_COMPILER_PIC($1)
 4428 AC_LIBTOOL_PROG_CC_C_O($1)
 4429 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 4430 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 4431 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 4432 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 4433 
 4434 AC_LIBTOOL_CONFIG($1)
 4435 
 4436 AC_LANG_POP
 4437 CC=$lt_save_CC
 4438 LDCXX=$LD
 4439 LD=$lt_save_LD
 4440 GCC=$lt_save_GCC
 4441 with_gnu_ldcxx=$with_gnu_ld
 4442 with_gnu_ld=$lt_save_with_gnu_ld
 4443 lt_cv_path_LDCXX=$lt_cv_path_LD
 4444 lt_cv_path_LD=$lt_save_path_LD
 4445 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 4446 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 4447 ])# AC_LIBTOOL_LANG_CXX_CONFIG
 4448 
 4449 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
 4450 # ------------------------------------
 4451 # Figure out "hidden" library dependencies from verbose
 4452 # compiler output when linking a shared library.
 4453 # Parse the compiler output and extract the necessary
 4454 # objects, libraries and library flags.
 4455 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
 4456 dnl we can't use the lt_simple_compile_test_code here,
 4457 dnl because it contains code intended for an executable,
 4458 dnl not a library.  It's possible we should let each
 4459 dnl tag define a new lt_????_link_test_code variable,
 4460 dnl but it's only used here...
 4461 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
 4462 int a;
 4463 void foo (void) { a = 0; }
 4464 EOF
 4465 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
 4466 class Foo
 4467 {
 4468 public:
 4469   Foo (void) { a = 0; }
 4470 private:
 4471   int a;
 4472 };
 4473 EOF
 4474 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
 4475       subroutine foo
 4476       implicit none
 4477       integer*4 a
 4478       a=0
 4479       return
 4480       end
 4481 EOF
 4482 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
 4483 public class foo {
 4484   private int a;
 4485   public void bar (void) {
 4486     a = 0;
 4487   }
 4488 };
 4489 EOF
 4490 ])
 4491 dnl Parse the compiler output and extract the necessary
 4492 dnl objects, libraries and library flags.
 4493 if AC_TRY_EVAL(ac_compile); then
 4494   # Parse the compiler output and extract the necessary
 4495   # objects, libraries and library flags.
 4496 
 4497   # Sentinel used to keep track of whether or not we are before
 4498   # the conftest object file.
 4499   pre_test_object_deps_done=no
 4500 
 4501   # The `*' in the case matches for architectures that use `case' in
 4502   # $output_verbose_cmd can trigger glob expansion during the loop
 4503   # eval without this substitution.
 4504   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 4505 
 4506   for p in `eval $output_verbose_link_cmd`; do
 4507     case $p in
 4508 
 4509     -L* | -R* | -l*)
 4510        # Some compilers place space between "-{L,R}" and the path.
 4511        # Remove the space.
 4512        if test $p = "-L" \
 4513       || test $p = "-R"; then
 4514      prev=$p
 4515      continue
 4516        else
 4517      prev=
 4518        fi
 4519 
 4520        if test "$pre_test_object_deps_done" = no; then
 4521      case $p in
 4522      -L* | -R*)
 4523        # Internal compiler library paths should come after those
 4524        # provided the user.  The postdeps already come after the
 4525        # user supplied libs so there is no need to process them.
 4526        if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
 4527          _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
 4528        else
 4529          _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
 4530        fi
 4531        ;;
 4532      # The "-l" case would never come before the object being
 4533      # linked, so don't bother handling this case.
 4534      esac
 4535        else
 4536      if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
 4537        _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
 4538      else
 4539        _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
 4540      fi
 4541        fi
 4542        ;;
 4543 
 4544     *.$objext)
 4545        # This assumes that the test object file only shows up
 4546        # once in the compiler output.
 4547        if test "$p" = "conftest.$objext"; then
 4548      pre_test_object_deps_done=yes
 4549      continue
 4550        fi
 4551 
 4552        if test "$pre_test_object_deps_done" = no; then
 4553      if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
 4554        _LT_AC_TAGVAR(predep_objects, $1)="$p"
 4555      else
 4556        _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
 4557      fi
 4558        else
 4559      if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
 4560        _LT_AC_TAGVAR(postdep_objects, $1)="$p"
 4561      else
 4562        _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
 4563      fi
 4564        fi
 4565        ;;
 4566 
 4567     *) ;; # Ignore the rest.
 4568 
 4569     esac
 4570   done
 4571 
 4572   # Clean up.
 4573   rm -f a.out a.exe
 4574 else
 4575   echo "libtool.m4: error: problem compiling $1 test program"
 4576 fi
 4577 
 4578 $rm -f confest.$objext
 4579 
 4580 # PORTME: override above test on systems where it is broken
 4581 ifelse([$1],[CXX],
 4582 [case $host_os in
 4583 interix[[3-9]]*)
 4584   # Interix 3.5 installs completely hosed .la files for C++, so rather than
 4585   # hack all around it, let's just trust "g++" to DTRT.
 4586   _LT_AC_TAGVAR(predep_objects,$1)=
 4587   _LT_AC_TAGVAR(postdep_objects,$1)=
 4588   _LT_AC_TAGVAR(postdeps,$1)=
 4589   ;;
 4590 
 4591 linux*)
 4592   case `$CC -V 2>&1 | sed 5q` in
 4593   *Sun\ C*)
 4594     # Sun C++ 5.9
 4595     #
 4596     # The more standards-conforming stlport4 library is
 4597     # incompatible with the Cstd library. Avoid specifying
 4598     # it if it's in CXXFLAGS. Ignore libCrun as
 4599     # -library=stlport4 depends on it.
 4600     case " $CXX $CXXFLAGS " in
 4601     *" -library=stlport4 "*)
 4602       solaris_use_stlport4=yes
 4603       ;;
 4604     esac
 4605     if test "$solaris_use_stlport4" != yes; then
 4606       _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 4607     fi
 4608     ;;
 4609   esac
 4610   ;;
 4611 
 4612 solaris*)
 4613   case $cc_basename in
 4614   CC*)
 4615     # The more standards-conforming stlport4 library is
 4616     # incompatible with the Cstd library. Avoid specifying
 4617     # it if it's in CXXFLAGS. Ignore libCrun as
 4618     # -library=stlport4 depends on it.
 4619     case " $CXX $CXXFLAGS " in
 4620     *" -library=stlport4 "*)
 4621       solaris_use_stlport4=yes
 4622       ;;
 4623     esac
 4624 
 4625     # Adding this requires a known-good setup of shared libraries for
 4626     # Sun compiler versions before 5.6, else PIC objects from an old
 4627     # archive will be linked into the output, leading to subtle bugs.
 4628     if test "$solaris_use_stlport4" != yes; then
 4629       _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
 4630     fi
 4631     ;;
 4632   esac
 4633   ;;
 4634 esac
 4635 ])
 4636 
 4637 case " $_LT_AC_TAGVAR(postdeps, $1) " in
 4638 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 4639 esac
 4640 ])# AC_LIBTOOL_POSTDEP_PREDEP
 4641 
 4642 # AC_LIBTOOL_LANG_F77_CONFIG
 4643 # --------------------------
 4644 # Ensure that the configuration vars for the C compiler are
 4645 # suitably defined.  Those variables are subsequently used by
 4646 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 4647 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
 4648 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
 4649 [AC_REQUIRE([AC_PROG_F77])
 4650 AC_LANG_PUSH(Fortran 77)
 4651 
 4652 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 4653 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 4654 _LT_AC_TAGVAR(always_export_symbols, $1)=no
 4655 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 4656 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 4657 _LT_AC_TAGVAR(hardcode_direct, $1)=no
 4658 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 4659 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 4660 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 4661 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 4662 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 4663 _LT_AC_TAGVAR(module_cmds, $1)=
 4664 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 4665 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 4666 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 4667 _LT_AC_TAGVAR(no_undefined_flag, $1)=
 4668 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 4669 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 4670 
 4671 # Source file extension for f77 test sources.
 4672 ac_ext=f
 4673 
 4674 # Object file extension for compiled f77 test sources.
 4675 objext=o
 4676 _LT_AC_TAGVAR(objext, $1)=$objext
 4677 
 4678 # Code to be used in simple compile tests
 4679 lt_simple_compile_test_code="\
 4680       subroutine t
 4681       return
 4682       end
 4683 "
 4684 
 4685 # Code to be used in simple link tests
 4686 lt_simple_link_test_code="\
 4687       program t
 4688       end
 4689 "
 4690 
 4691 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 4692 _LT_AC_SYS_COMPILER
 4693 
 4694 # save warnings/boilerplate of simple test code
 4695 _LT_COMPILER_BOILERPLATE
 4696 _LT_LINKER_BOILERPLATE
 4697 
 4698 # Allow CC to be a program name with arguments.
 4699 lt_save_CC="$CC"
 4700 CC=${F77-"f77"}
 4701 compiler=$CC
 4702 _LT_AC_TAGVAR(compiler, $1)=$CC
 4703 _LT_CC_BASENAME([$compiler])
 4704 
 4705 AC_MSG_CHECKING([if libtool supports shared libraries])
 4706 AC_MSG_RESULT([$can_build_shared])
 4707 
 4708 AC_MSG_CHECKING([whether to build shared libraries])
 4709 test "$can_build_shared" = "no" && enable_shared=no
 4710 
 4711 # On AIX, shared libraries and static libraries use the same namespace, and
 4712 # are all built from PIC.
 4713 case $host_os in
 4714 aix3*)
 4715   test "$enable_shared" = yes && enable_static=no
 4716   if test -n "$RANLIB"; then
 4717     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 4718     postinstall_cmds='$RANLIB $lib'
 4719   fi
 4720   ;;
 4721 aix4* | aix5*)
 4722   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 4723     test "$enable_shared" = yes && enable_static=no
 4724   fi
 4725   ;;
 4726 esac
 4727 AC_MSG_RESULT([$enable_shared])
 4728 
 4729 AC_MSG_CHECKING([whether to build static libraries])
 4730 # Make sure either enable_shared or enable_static is yes.
 4731 test "$enable_shared" = yes || enable_static=yes
 4732 AC_MSG_RESULT([$enable_static])
 4733 
 4734 _LT_AC_TAGVAR(GCC, $1)="$G77"
 4735 _LT_AC_TAGVAR(LD, $1)="$LD"
 4736 
 4737 AC_LIBTOOL_PROG_COMPILER_PIC($1)
 4738 AC_LIBTOOL_PROG_CC_C_O($1)
 4739 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 4740 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 4741 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 4742 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 4743 
 4744 AC_LIBTOOL_CONFIG($1)
 4745 
 4746 AC_LANG_POP
 4747 CC="$lt_save_CC"
 4748 ])# AC_LIBTOOL_LANG_F77_CONFIG
 4749 
 4750 
 4751 # AC_LIBTOOL_LANG_GCJ_CONFIG
 4752 # --------------------------
 4753 # Ensure that the configuration vars for the C compiler are
 4754 # suitably defined.  Those variables are subsequently used by
 4755 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 4756 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
 4757 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
 4758 [AC_LANG_SAVE
 4759 
 4760 # Source file extension for Java test sources.
 4761 ac_ext=java
 4762 
 4763 # Object file extension for compiled Java test sources.
 4764 objext=o
 4765 _LT_AC_TAGVAR(objext, $1)=$objext
 4766 
 4767 # Code to be used in simple compile tests
 4768 lt_simple_compile_test_code="class foo {}"
 4769 
 4770 # Code to be used in simple link tests
 4771 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 4772 
 4773 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 4774 _LT_AC_SYS_COMPILER
 4775 
 4776 # save warnings/boilerplate of simple test code
 4777 _LT_COMPILER_BOILERPLATE
 4778 _LT_LINKER_BOILERPLATE
 4779 
 4780 # Allow CC to be a program name with arguments.
 4781 lt_save_CC="$CC"
 4782 CC=${GCJ-"gcj"}
 4783 compiler=$CC
 4784 _LT_AC_TAGVAR(compiler, $1)=$CC
 4785 _LT_CC_BASENAME([$compiler])
 4786 
 4787 # GCJ did not exist at the time GCC didn't implicitly link libc in.
 4788 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
 4789 
 4790 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 4791 
 4792 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
 4793 AC_LIBTOOL_PROG_COMPILER_PIC($1)
 4794 AC_LIBTOOL_PROG_CC_C_O($1)
 4795 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
 4796 AC_LIBTOOL_PROG_LD_SHLIBS($1)
 4797 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 4798 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
 4799 
 4800 AC_LIBTOOL_CONFIG($1)
 4801 
 4802 AC_LANG_RESTORE
 4803 CC="$lt_save_CC"
 4804 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
 4805 
 4806 
 4807 # AC_LIBTOOL_LANG_RC_CONFIG
 4808 # -------------------------
 4809 # Ensure that the configuration vars for the Windows resource compiler are
 4810 # suitably defined.  Those variables are subsequently used by
 4811 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
 4812 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
 4813 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
 4814 [AC_LANG_SAVE
 4815 
 4816 # Source file extension for RC test sources.
 4817 ac_ext=rc
 4818 
 4819 # Object file extension for compiled RC test sources.
 4820 objext=o
 4821 _LT_AC_TAGVAR(objext, $1)=$objext
 4822 
 4823 # Code to be used in simple compile tests
 4824 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 4825 
 4826 # Code to be used in simple link tests
 4827 lt_simple_link_test_code="$lt_simple_compile_test_code"
 4828 
 4829 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 4830 _LT_AC_SYS_COMPILER
 4831 
 4832 # save warnings/boilerplate of simple test code
 4833 _LT_COMPILER_BOILERPLATE
 4834 _LT_LINKER_BOILERPLATE
 4835 
 4836 # Allow CC to be a program name with arguments.
 4837 lt_save_CC="$CC"
 4838 CC=${RC-"windres"}
 4839 compiler=$CC
 4840 _LT_AC_TAGVAR(compiler, $1)=$CC
 4841 _LT_CC_BASENAME([$compiler])
 4842 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 4843 
 4844 AC_LIBTOOL_CONFIG($1)
 4845 
 4846 AC_LANG_RESTORE
 4847 CC="$lt_save_CC"
 4848 ])# AC_LIBTOOL_LANG_RC_CONFIG
 4849 
 4850 
 4851 # AC_LIBTOOL_CONFIG([TAGNAME])
 4852 # ----------------------------
 4853 # If TAGNAME is not passed, then create an initial libtool script
 4854 # with a default configuration from the untagged config vars.  Otherwise
 4855 # add code to config.status for appending the configuration named by
 4856 # TAGNAME from the matching tagged config vars.
 4857 AC_DEFUN([AC_LIBTOOL_CONFIG],
 4858 [# The else clause should only fire when bootstrapping the
 4859 # libtool distribution, otherwise you forgot to ship ltmain.sh
 4860 # with your package, and you will get complaints that there are
 4861 # no rules to generate ltmain.sh.
 4862 if test -f "$ltmain"; then
 4863   # See if we are running on zsh, and set the options which allow our commands through
 4864   # without removal of \ escapes.
 4865   if test -n "${ZSH_VERSION+set}" ; then
 4866     setopt NO_GLOB_SUBST
 4867   fi
 4868   # Now quote all the things that may contain metacharacters while being
 4869   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 4870   # variables and quote the copies for generation of the libtool script.
 4871   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 4872     SED SHELL STRIP \
 4873     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 4874     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 4875     deplibs_check_method reload_flag reload_cmds need_locks \
 4876     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 4877     lt_cv_sys_global_symbol_to_c_name_address \
 4878     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 4879     old_postinstall_cmds old_postuninstall_cmds \
 4880     _LT_AC_TAGVAR(compiler, $1) \
 4881     _LT_AC_TAGVAR(CC, $1) \
 4882     _LT_AC_TAGVAR(LD, $1) \
 4883     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
 4884     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
 4885     _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
 4886     _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
 4887     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
 4888     _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
 4889     _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
 4890     _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
 4891     _LT_AC_TAGVAR(old_archive_cmds, $1) \
 4892     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
 4893     _LT_AC_TAGVAR(predep_objects, $1) \
 4894     _LT_AC_TAGVAR(postdep_objects, $1) \
 4895     _LT_AC_TAGVAR(predeps, $1) \
 4896     _LT_AC_TAGVAR(postdeps, $1) \
 4897     _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
 4898     _LT_AC_TAGVAR(archive_cmds, $1) \
 4899     _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
 4900     _LT_AC_TAGVAR(postinstall_cmds, $1) \
 4901     _LT_AC_TAGVAR(postuninstall_cmds, $1) \
 4902     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
 4903     _LT_AC_TAGVAR(allow_undefined_flag, $1) \
 4904     _LT_AC_TAGVAR(no_undefined_flag, $1) \
 4905     _LT_AC_TAGVAR(export_symbols_cmds, $1) \
 4906     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
 4907     _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
 4908     _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
 4909     _LT_AC_TAGVAR(hardcode_automatic, $1) \
 4910     _LT_AC_TAGVAR(module_cmds, $1) \
 4911     _LT_AC_TAGVAR(module_expsym_cmds, $1) \
 4912     _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
 4913     _LT_AC_TAGVAR(fix_srcfile_path, $1) \
 4914     _LT_AC_TAGVAR(exclude_expsyms, $1) \
 4915     _LT_AC_TAGVAR(include_expsyms, $1); do
 4916 
 4917     case $var in
 4918     _LT_AC_TAGVAR(old_archive_cmds, $1) | \
 4919     _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
 4920     _LT_AC_TAGVAR(archive_cmds, $1) | \
 4921     _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
 4922     _LT_AC_TAGVAR(module_cmds, $1) | \
 4923     _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
 4924     _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
 4925     _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
 4926     extract_expsyms_cmds | reload_cmds | finish_cmds | \
 4927     postinstall_cmds | postuninstall_cmds | \
 4928     old_postinstall_cmds | old_postuninstall_cmds | \
 4929     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 4930       # Double-quote double-evaled strings.
 4931       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 4932       ;;
 4933     *)
 4934       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 4935       ;;
 4936     esac
 4937   done
 4938 
 4939   case $lt_echo in
 4940   *'\[$]0 --fallback-echo"')
 4941     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
 4942     ;;
 4943   esac
 4944 
 4945 ifelse([$1], [],
 4946   [cfgfile="${ofile}T"
 4947   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 4948   $rm -f "$cfgfile"
 4949   AC_MSG_NOTICE([creating $ofile])],
 4950   [cfgfile="$ofile"])
 4951 
 4952   cat <<__EOF__ >> "$cfgfile"
 4953 ifelse([$1], [],
 4954 [#! $SHELL
 4955 
 4956 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 4957 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 4958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 4959 #
 4960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 4961 # Free Software Foundation, Inc.
 4962 #
 4963 # This file is part of GNU Libtool:
 4964 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 4965 #
 4966 # This program is free software; you can redistribute it and/or modify
 4967 # it under the terms of the GNU General Public License as published by
 4968 # the Free Software Foundation; either version 2 of the License, or
 4969 # (at your option) any later version.
 4970 #
 4971 # This program is distributed in the hope that it will be useful, but
 4972 # WITHOUT ANY WARRANTY; without even the implied warranty of
 4973 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 4974 # General Public License for more details.
 4975 #
 4976 # You should have received a copy of the GNU General Public License
 4977 # along with this program; if not, write to the Free Software
 4978 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 4979 #
 4980 # As a special exception to the GNU General Public License, if you
 4981 # distribute this file as part of a program that contains a
 4982 # configuration script generated by Autoconf, you may include it under
 4983 # the same distribution terms that you use for the rest of that program.
 4984 
 4985 # A sed program that does not truncate output.
 4986 SED=$lt_SED
 4987 
 4988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 4989 Xsed="$SED -e 1s/^X//"
 4990 
 4991 # The HP-UX ksh and POSIX shell print the target directory to stdout
 4992 # if CDPATH is set.
 4993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 4994 
 4995 # The names of the tagged configurations supported by this script.
 4996 available_tags=
 4997 
 4998 # ### BEGIN LIBTOOL CONFIG],
 4999 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
 5000 
 5001 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 5002 
 5003 # Shell to use when invoking shell scripts.
 5004 SHELL=$lt_SHELL
 5005 
 5006 # Whether or not to build shared libraries.
 5007 build_libtool_libs=$enable_shared
 5008 
 5009 # Whether or not to build static libraries.
 5010 build_old_libs=$enable_static
 5011 
 5012 # Whether or not to add -lc for building shared libraries.
 5013 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
 5014 
 5015 # Whether or not to disallow shared libs when runtime libs are static
 5016 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
 5017 
 5018 # Whether or not to optimize for fast installation.
 5019 fast_install=$enable_fast_install
 5020 
 5021 # The host system.
 5022 host_alias=$host_alias
 5023 host=$host
 5024 host_os=$host_os
 5025 
 5026 # The build system.
 5027 build_alias=$build_alias
 5028 build=$build
 5029 build_os=$build_os
 5030 
 5031 # An echo program that does not interpret backslashes.
 5032 echo=$lt_echo
 5033 
 5034 # The archiver.
 5035 AR=$lt_AR
 5036 AR_FLAGS=$lt_AR_FLAGS
 5037 
 5038 # A C compiler.
 5039 LTCC=$lt_LTCC
 5040 
 5041 # LTCC compiler flags.
 5042 LTCFLAGS=$lt_LTCFLAGS
 5043 
 5044 # A language-specific compiler.
 5045 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
 5046 
 5047 # Is the compiler the GNU C compiler?
 5048 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
 5049 
 5050 # An ERE matcher.
 5051 EGREP=$lt_EGREP
 5052 
 5053 # The linker used to build libraries.
 5054 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
 5055 
 5056 # Whether we need hard or soft links.
 5057 LN_S=$lt_LN_S
 5058 
 5059 # A BSD-compatible nm program.
 5060 NM=$lt_NM
 5061 
 5062 # A symbol stripping program
 5063 STRIP=$lt_STRIP
 5064 
 5065 # Used to examine libraries when file_magic_cmd begins "file"
 5066 MAGIC_CMD=$MAGIC_CMD
 5067 
 5068 # Used on cygwin: DLL creation program.
 5069 DLLTOOL="$DLLTOOL"
 5070 
 5071 # Used on cygwin: object dumper.
 5072 OBJDUMP="$OBJDUMP"
 5073 
 5074 # Used on cygwin: assembler.
 5075 AS="$AS"
 5076 
 5077 # The name of the directory that contains temporary libtool files.
 5078 objdir=$objdir
 5079 
 5080 # How to create reloadable object files.
 5081 reload_flag=$lt_reload_flag
 5082 reload_cmds=$lt_reload_cmds
 5083 
 5084 # How to pass a linker flag through the compiler.
 5085 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
 5086 
 5087 # Object file suffix (normally "o").
 5088 objext="$ac_objext"
 5089 
 5090 # Old archive suffix (normally "a").
 5091 libext="$libext"
 5092 
 5093 # Shared library suffix (normally ".so").
 5094 shrext_cmds='$shrext_cmds'
 5095 
 5096 # Executable file suffix (normally "").
 5097 exeext="$exeext"
 5098 
 5099 # Additional compiler flags for building library objects.
 5100 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
 5101 pic_mode=$pic_mode
 5102 
 5103 # What is the maximum length of a command?
 5104 max_cmd_len=$lt_cv_sys_max_cmd_len
 5105 
 5106 # Does compiler simultaneously support -c and -o options?
 5107 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
 5108 
 5109 # Must we lock files when doing compilation?
 5110 need_locks=$lt_need_locks
 5111 
 5112 # Do we need the lib prefix for modules?
 5113 need_lib_prefix=$need_lib_prefix
 5114 
 5115 # Do we need a version for libraries?
 5116 need_version=$need_version
 5117 
 5118 # Whether dlopen is supported.
 5119 dlopen_support=$enable_dlopen
 5120 
 5121 # Whether dlopen of programs is supported.
 5122 dlopen_self=$enable_dlopen_self
 5123 
 5124 # Whether dlopen of statically linked programs is supported.
 5125 dlopen_self_static=$enable_dlopen_self_static
 5126 
 5127 # Compiler flag to prevent dynamic linking.
 5128 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
 5129 
 5130 # Compiler flag to turn off builtin functions.
 5131 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
 5132 
 5133 # Compiler flag to allow reflexive dlopens.
 5134 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
 5135 
 5136 # Compiler flag to generate shared objects directly from archives.
 5137 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
 5138 
 5139 # Compiler flag to generate thread-safe objects.
 5140 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
 5141 
 5142 # Library versioning type.
 5143 version_type=$version_type
 5144 
 5145 # Format of library name prefix.
 5146 libname_spec=$lt_libname_spec
 5147 
 5148 # List of archive names.  First name is the real one, the rest are links.
 5149 # The last name is the one that the linker finds with -lNAME.
 5150 library_names_spec=$lt_library_names_spec
 5151 
 5152 # The coded name of the library, if different from the real name.
 5153 soname_spec=$lt_soname_spec
 5154 
 5155 # Commands used to build and install an old-style archive.
 5156 RANLIB=$lt_RANLIB
 5157 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
 5158 old_postinstall_cmds=$lt_old_postinstall_cmds
 5159 old_postuninstall_cmds=$lt_old_postuninstall_cmds
 5160 
 5161 # Create an old-style archive from a shared archive.
 5162 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
 5163 
 5164 # Create a temporary old-style archive to link instead of a shared archive.
 5165 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
 5166 
 5167 # Commands used to build and install a shared archive.
 5168 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
 5169 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
 5170 postinstall_cmds=$lt_postinstall_cmds
 5171 postuninstall_cmds=$lt_postuninstall_cmds
 5172 
 5173 # Commands used to build a loadable module (assumed same as above if empty)
 5174 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
 5175 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
 5176 
 5177 # Commands to strip libraries.
 5178 old_striplib=$lt_old_striplib
 5179 striplib=$lt_striplib
 5180 
 5181 # Dependencies to place before the objects being linked to create a
 5182 # shared library.
 5183 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
 5184 
 5185 # Dependencies to place after the objects being linked to create a
 5186 # shared library.
 5187 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
 5188 
 5189 # Dependencies to place before the objects being linked to create a
 5190 # shared library.
 5191 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
 5192 
 5193 # Dependencies to place after the objects being linked to create a
 5194 # shared library.
 5195 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
 5196 
 5197 # The library search path used internally by the compiler when linking
 5198 # a shared library.
 5199 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
 5200 
 5201 # Method to check whether dependent libraries are shared objects.
 5202 deplibs_check_method=$lt_deplibs_check_method
 5203 
 5204 # Command to use when deplibs_check_method == file_magic.
 5205 file_magic_cmd=$lt_file_magic_cmd
 5206 
 5207 # Flag that allows shared libraries with undefined symbols to be built.
 5208 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
 5209 
 5210 # Flag that forces no undefined symbols.
 5211 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
 5212 
 5213 # Commands used to finish a libtool library installation in a directory.
 5214 finish_cmds=$lt_finish_cmds
 5215 
 5216 # Same as above, but a single script fragment to be evaled but not shown.
 5217 finish_eval=$lt_finish_eval
 5218 
 5219 # Take the output of nm and produce a listing of raw symbols and C names.
 5220 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 5221 
 5222 # Transform the output of nm in a proper C declaration
 5223 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 5224 
 5225 # Transform the output of nm in a C name address pair
 5226 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 5227 
 5228 # This is the shared library runtime path variable.
 5229 runpath_var=$runpath_var
 5230 
 5231 # This is the shared library path variable.
 5232 shlibpath_var=$shlibpath_var
 5233 
 5234 # Is shlibpath searched before the hard-coded library search path?
 5235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 5236 
 5237 # How to hardcode a shared library path into an executable.
 5238 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
 5239 
 5240 # Whether we should hardcode library paths into libraries.
 5241 hardcode_into_libs=$hardcode_into_libs
 5242 
 5243 # Flag to hardcode \$libdir into a binary during linking.
 5244 # This must work even if \$libdir does not exist.
 5245 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
 5246 
 5247 # If ld is used when linking, flag to hardcode \$libdir into
 5248 # a binary during linking. This must work even if \$libdir does
 5249 # not exist.
 5250 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
 5251 
 5252 # Whether we need a single -rpath flag with a separated argument.
 5253 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
 5254 
 5255 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 5256 # resulting binary.
 5257 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
 5258 
 5259 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 5260 # resulting binary.
 5261 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
 5262 
 5263 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 5264 # the resulting binary.
 5265 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
 5266 
 5267 # Set to yes if building a shared library automatically hardcodes DIR into the library
 5268 # and all subsequent libraries and executables linked against it.
 5269 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
 5270 
 5271 # Variables whose values should be saved in libtool wrapper scripts and
 5272 # restored at relink time.
 5273 variables_saved_for_relink="$variables_saved_for_relink"
 5274 
 5275 # Whether libtool must link a program against all its dependency libraries.
 5276 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
 5277 
 5278 # Compile-time system search path for libraries
 5279 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 5280 
 5281 # Run-time system search path for libraries
 5282 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 5283 
 5284 # Fix the shell variable \$srcfile for the compiler.
 5285 fix_srcfile_path=$lt_fix_srcfile_path
 5286 
 5287 # Set to yes if exported symbols are required.
 5288 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
 5289 
 5290 # The commands to list exported symbols.
 5291 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
 5292 
 5293 # The commands to extract the exported symbol list from a shared archive.
 5294 extract_expsyms_cmds=$lt_extract_expsyms_cmds
 5295 
 5296 # Symbols that should not be listed in the preloaded symbols.
 5297 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
 5298 
 5299 # Symbols that must always be exported.
 5300 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
 5301 
 5302 ifelse([$1],[],
 5303 [# ### END LIBTOOL CONFIG],
 5304 [# ### END LIBTOOL TAG CONFIG: $tagname])
 5305 
 5306 __EOF__
 5307 
 5308 ifelse([$1],[], [
 5309   case $host_os in
 5310   aix3*)
 5311     cat <<\EOF >> "$cfgfile"
 5312 
 5313 # AIX sometimes has problems with the GCC collect2 program.  For some
 5314 # reason, if we set the COLLECT_NAMES environment variable, the problems
 5315 # vanish in a puff of smoke.
 5316 if test "X${COLLECT_NAMES+set}" != Xset; then
 5317   COLLECT_NAMES=
 5318   export COLLECT_NAMES
 5319 fi
 5320 EOF
 5321     ;;
 5322   esac
 5323 
 5324   # We use sed instead of cat because bash on DJGPP gets confused if
 5325   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 5326   # text mode, it properly converts lines to CR/LF.  This bash problem
 5327   # is reportedly fixed, but why not run on old versions too?
 5328   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 5329 
 5330   mv -f "$cfgfile" "$ofile" || \
 5331     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 5332   chmod +x "$ofile"
 5333 ])
 5334 else
 5335   # If there is no Makefile yet, we rely on a make rule to execute
 5336   # `config.status --recheck' to rerun these tests and create the
 5337   # libtool script then.
 5338   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 5339   if test -f "$ltmain_in"; then
 5340     test -f Makefile && make "$ltmain"
 5341   fi
 5342 fi
 5343 ])# AC_LIBTOOL_CONFIG
 5344 
 5345 
 5346 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
 5347 # -------------------------------------------
 5348 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
 5349 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
 5350 
 5351 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 5352 
 5353 if test "$GCC" = yes; then
 5354   _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 5355 
 5356   AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 5357     lt_cv_prog_compiler_rtti_exceptions,
 5358     [-fno-rtti -fno-exceptions], [],
 5359     [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 5360 fi
 5361 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
 5362 
 5363 
 5364 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 5365 # ---------------------------------
 5366 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
 5367 [AC_REQUIRE([AC_CANONICAL_HOST])
 5368 AC_REQUIRE([LT_AC_PROG_SED])
 5369 AC_REQUIRE([AC_PROG_NM])
 5370 AC_REQUIRE([AC_OBJEXT])
 5371 # Check for command to grab the raw symbol name followed by C symbol from nm.
 5372 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 5373 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 5374 [
 5375 # These are sane defaults that work on at least a few old systems.
 5376 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 5377 
 5378 # Character class describing NM global symbol codes.
 5379 symcode='[[BCDEGRST]]'
 5380 
 5381 # Regexp to match symbols that can be accessed directly from C.
 5382 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 5383 
 5384 # Transform an extracted symbol line into a proper C declaration
 5385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 5386 
 5387 # Transform an extracted symbol line into symbol name and symbol address
 5388 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'"
 5389 
 5390 # Define system-specific variables.
 5391 case $host_os in
 5392 aix*)
 5393   symcode='[[BCDT]]'
 5394   ;;
 5395 cygwin* | mingw* | pw32*)
 5396   symcode='[[ABCDGISTW]]'
 5397   ;;
 5398 hpux*) # Its linker distinguishes data from code symbols
 5399   if test "$host_cpu" = ia64; then
 5400     symcode='[[ABCDEGRST]]'
 5401   fi
 5402   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 5403   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'"
 5404   ;;
 5405 linux* | k*bsd*-gnu)
 5406   if test "$host_cpu" = ia64; then
 5407     symcode='[[ABCDGIRSTW]]'
 5408     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 5409     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'"
 5410   fi
 5411   ;;
 5412 irix* | nonstopux*)
 5413   symcode='[[BCDEGRST]]'
 5414   ;;
 5415 osf*)
 5416   symcode='[[BCDEGQRST]]'
 5417   ;;
 5418 solaris*)
 5419   symcode='[[BDRT]]'
 5420   ;;
 5421 sco3.2v5*)
 5422   symcode='[[DT]]'
 5423   ;;
 5424 sysv4.2uw2*)
 5425   symcode='[[DT]]'
 5426   ;;
 5427 sysv5* | sco5v6* | unixware* | OpenUNIX*)
 5428   symcode='[[ABDT]]'
 5429   ;;
 5430 sysv4)
 5431   symcode='[[DFNSTU]]'
 5432   ;;
 5433 esac
 5434 
 5435 # Handle CRLF in mingw tool chain
 5436 opt_cr=
 5437 case $build_os in
 5438 mingw*)
 5439   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 5440   ;;
 5441 esac
 5442 
 5443 # If we're using GNU nm, then use its standard symbol codes.
 5444 case `$NM -V 2>&1` in
 5445 *GNU* | *'with BFD'*)
 5446   symcode='[[ABCDGIRSTW]]' ;;
 5447 esac
 5448 
 5449 # Try without a prefix undercore, then with it.
 5450 for ac_symprfx in "" "_"; do
 5451 
 5452   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 5453   symxfrm="\\1 $ac_symprfx\\2 \\2"
 5454 
 5455   # Write the raw and C identifiers.
 5456   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[  ]]\($symcode$symcode*\)[[   ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 5457 
 5458   # Check to see that the pipe works correctly.
 5459   pipe_works=no
 5460 
 5461   rm -f conftest*
 5462   cat > conftest.$ac_ext <<EOF
 5463 #ifdef __cplusplus
 5464 extern "C" {
 5465 #endif
 5466 char nm_test_var;
 5467 void nm_test_func(){}
 5468 #ifdef __cplusplus
 5469 }
 5470 #endif
 5471 int main(){nm_test_var='a';nm_test_func();return(0);}
 5472 EOF
 5473 
 5474   if AC_TRY_EVAL(ac_compile); then
 5475     # Now try to grab the symbols.
 5476     nlist=conftest.nm
 5477     if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
 5478       # Try sorting and uniquifying the output.
 5479       if sort "$nlist" | uniq > "$nlist"T; then
 5480     mv -f "$nlist"T "$nlist"
 5481       else
 5482     rm -f "$nlist"T
 5483       fi
 5484 
 5485       # Make sure that we snagged all the symbols we need.
 5486       if grep ' nm_test_var$' "$nlist" >/dev/null; then
 5487     if grep ' nm_test_func$' "$nlist" >/dev/null; then
 5488       cat <<EOF > conftest.$ac_ext
 5489 #ifdef __cplusplus
 5490 extern "C" {
 5491 #endif
 5492 
 5493 EOF
 5494       # Now generate the symbol file.
 5495       eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 5496 
 5497       cat <<EOF >> conftest.$ac_ext
 5498 #if defined (__STDC__) && __STDC__
 5499 # define lt_ptr_t void *
 5500 #else
 5501 # define lt_ptr_t char *
 5502 # define const
 5503 #endif
 5504 
 5505 /* The mapping between symbol names and symbols. */
 5506 const struct {
 5507   const char *name;
 5508   lt_ptr_t address;
 5509 }
 5510 lt_preloaded_symbols[[]] =
 5511 {
 5512 EOF
 5513       $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 5514       cat <<\EOF >> conftest.$ac_ext
 5515   {0, (lt_ptr_t) 0}
 5516 };
 5517 
 5518 #ifdef __cplusplus
 5519 }
 5520 #endif
 5521 EOF
 5522       # Now try linking the two files.
 5523       mv conftest.$ac_objext conftstm.$ac_objext
 5524       lt_save_LIBS="$LIBS"
 5525       lt_save_CFLAGS="$CFLAGS"
 5526       LIBS="conftstm.$ac_objext"
 5527       CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 5528       if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
 5529         pipe_works=yes
 5530       fi
 5531       LIBS="$lt_save_LIBS"
 5532       CFLAGS="$lt_save_CFLAGS"
 5533     else
 5534       echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 5535     fi
 5536       else
 5537     echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 5538       fi
 5539     else
 5540       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 5541     fi
 5542   else
 5543     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 5544     cat conftest.$ac_ext >&5
 5545   fi
 5546   rm -f conftest* conftst*
 5547 
 5548   # Do not use the global_symbol_pipe unless it works.
 5549   if test "$pipe_works" = yes; then
 5550     break
 5551   else
 5552     lt_cv_sys_global_symbol_pipe=
 5553   fi
 5554 done
 5555 ])
 5556 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 5557   lt_cv_sys_global_symbol_to_cdecl=
 5558 fi
 5559 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 5560   AC_MSG_RESULT(failed)
 5561 else
 5562   AC_MSG_RESULT(ok)
 5563 fi
 5564 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
 5565 
 5566 
 5567 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
 5568 # ---------------------------------------
 5569 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
 5570 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
 5571 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 5572 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
 5573 
 5574 AC_MSG_CHECKING([for $compiler option to produce PIC])
 5575  ifelse([$1],[CXX],[
 5576   # C++ specific cases for pic, static, wl, etc.
 5577   if test "$GXX" = yes; then
 5578     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5579     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 5580 
 5581     case $host_os in
 5582     aix*)
 5583       # All AIX code is PIC.
 5584       if test "$host_cpu" = ia64; then
 5585     # AIX 5 now supports IA64 processor
 5586     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5587       fi
 5588       ;;
 5589     amigaos*)
 5590       # FIXME: we need at least 68020 code to build shared libraries, but
 5591       # adding the `-m68020' flag to GCC prevents building anything better,
 5592       # like `-m68040'.
 5593       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 5594       ;;
 5595     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 5596       # PIC is the default for these OSes.
 5597       ;;
 5598     mingw* | cygwin* | os2* | pw32*)
 5599       # This hack is so that the source file can tell whether it is being
 5600       # built for inclusion in a dll (and should export symbols for example).
 5601       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 5602       # (--disable-auto-import) libraries
 5603       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 5604       ;;
 5605     darwin* | rhapsody*)
 5606       # PIC is the default on this platform
 5607       # Common symbols not allowed in MH_DYLIB files
 5608       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 5609       ;;
 5610     *djgpp*)
 5611       # DJGPP does not support shared libraries at all
 5612       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 5613       ;;
 5614     interix[[3-9]]*)
 5615       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 5616       # Instead, we relocate shared libraries at runtime.
 5617       ;;
 5618     sysv4*MP*)
 5619       if test -d /usr/nec; then
 5620     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 5621       fi
 5622       ;;
 5623     hpux*)
 5624       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 5625       # not for PA HP-UX.
 5626       case $host_cpu in
 5627       hppa*64*|ia64*)
 5628     ;;
 5629       *)
 5630     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 5631     ;;
 5632       esac
 5633       ;;
 5634     *)
 5635       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 5636       ;;
 5637     esac
 5638   else
 5639     case $host_os in
 5640       aix4* | aix5*)
 5641     # All AIX code is PIC.
 5642     if test "$host_cpu" = ia64; then
 5643       # AIX 5 now supports IA64 processor
 5644       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5645     else
 5646       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 5647     fi
 5648     ;;
 5649       chorus*)
 5650     case $cc_basename in
 5651     cxch68*)
 5652       # Green Hills C++ Compiler
 5653       # _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"
 5654       ;;
 5655     esac
 5656     ;;
 5657        darwin*)
 5658          # PIC is the default on this platform
 5659          # Common symbols not allowed in MH_DYLIB files
 5660          case $cc_basename in
 5661            xlc*)
 5662            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 5663            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5664            ;;
 5665          esac
 5666        ;;
 5667       dgux*)
 5668     case $cc_basename in
 5669       ec++*)
 5670         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5671         ;;
 5672       ghcx*)
 5673         # Green Hills C++ Compiler
 5674         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 5675         ;;
 5676       *)
 5677         ;;
 5678     esac
 5679     ;;
 5680       freebsd* | dragonfly*)
 5681     # FreeBSD uses GNU C++
 5682     ;;
 5683       hpux9* | hpux10* | hpux11*)
 5684     case $cc_basename in
 5685       CC*)
 5686         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5687         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 5688         if test "$host_cpu" != ia64; then
 5689           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 5690         fi
 5691         ;;
 5692       aCC*)
 5693         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5694         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 5695         case $host_cpu in
 5696         hppa*64*|ia64*)
 5697           # +Z the default
 5698           ;;
 5699         *)
 5700           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 5701           ;;
 5702         esac
 5703         ;;
 5704       *)
 5705         ;;
 5706     esac
 5707     ;;
 5708       interix*)
 5709     # This is c89, which is MS Visual C++ (no shared libs)
 5710     # Anyone wants to do a port?
 5711     ;;
 5712       irix5* | irix6* | nonstopux*)
 5713     case $cc_basename in
 5714       CC*)
 5715         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5716         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 5717         # CC pic flag -KPIC is the default.
 5718         ;;
 5719       *)
 5720         ;;
 5721     esac
 5722     ;;
 5723       linux* | k*bsd*-gnu)
 5724     case $cc_basename in
 5725       KCC*)
 5726         # KAI C++ Compiler
 5727         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 5728         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 5729         ;;
 5730       icpc* | ecpc*)
 5731         # Intel C++
 5732         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5733         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5734         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 5735         ;;
 5736       pgCC*)
 5737         # Portland Group C++ compiler.
 5738         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5739         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 5740         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5741         ;;
 5742       cxx*)
 5743         # Compaq C++
 5744         # Make sure the PIC flag is empty.  It appears that all Alpha
 5745         # Linux and Compaq Tru64 Unix objects are PIC.
 5746         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 5747         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 5748         ;;
 5749       *)
 5750         case `$CC -V 2>&1 | sed 5q` in
 5751         *Sun\ C*)
 5752           # Sun C++ 5.9
 5753           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5754           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5755           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 5756           ;;
 5757         esac
 5758         ;;
 5759     esac
 5760     ;;
 5761       lynxos*)
 5762     ;;
 5763       m88k*)
 5764     ;;
 5765       mvs*)
 5766     case $cc_basename in
 5767       cxx*)
 5768         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 5769         ;;
 5770       *)
 5771         ;;
 5772     esac
 5773     ;;
 5774       netbsd* | netbsdelf*-gnu)
 5775     ;;
 5776       osf3* | osf4* | osf5*)
 5777     case $cc_basename in
 5778       KCC*)
 5779         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 5780         ;;
 5781       RCC*)
 5782         # Rational C++ 2.4.1
 5783         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 5784         ;;
 5785       cxx*)
 5786         # Digital/Compaq C++
 5787         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5788         # Make sure the PIC flag is empty.  It appears that all Alpha
 5789         # Linux and Compaq Tru64 Unix objects are PIC.
 5790         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 5791         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 5792         ;;
 5793       *)
 5794         ;;
 5795     esac
 5796     ;;
 5797       psos*)
 5798     ;;
 5799       solaris*)
 5800     case $cc_basename in
 5801       CC*)
 5802         # Sun C++ 4.2, 5.x and Centerline C++
 5803         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5804         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5805         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 5806         ;;
 5807       gcx*)
 5808         # Green Hills C++ Compiler
 5809         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 5810         ;;
 5811       *)
 5812         ;;
 5813     esac
 5814     ;;
 5815       sunos4*)
 5816     case $cc_basename in
 5817       CC*)
 5818         # Sun C++ 4.x
 5819         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 5820         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5821         ;;
 5822       lcc*)
 5823         # Lucid
 5824         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 5825         ;;
 5826       *)
 5827         ;;
 5828     esac
 5829     ;;
 5830       tandem*)
 5831     case $cc_basename in
 5832       NCC*)
 5833         # NonStop-UX NCC 3.20
 5834         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5835         ;;
 5836       *)
 5837         ;;
 5838     esac
 5839     ;;
 5840       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 5841     case $cc_basename in
 5842       CC*)
 5843         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5844         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5845         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5846         ;;
 5847     esac
 5848     ;;
 5849       vxworks*)
 5850     ;;
 5851       *)
 5852     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 5853     ;;
 5854     esac
 5855   fi
 5856 ],
 5857 [
 5858   if test "$GCC" = yes; then
 5859     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5860     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 5861 
 5862     case $host_os in
 5863       aix*)
 5864       # All AIX code is PIC.
 5865       if test "$host_cpu" = ia64; then
 5866     # AIX 5 now supports IA64 processor
 5867     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5868       fi
 5869       ;;
 5870 
 5871     amigaos*)
 5872       # FIXME: we need at least 68020 code to build shared libraries, but
 5873       # adding the `-m68020' flag to GCC prevents building anything better,
 5874       # like `-m68040'.
 5875       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 5876       ;;
 5877 
 5878     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 5879       # PIC is the default for these OSes.
 5880       ;;
 5881 
 5882     mingw* | cygwin* | pw32* | os2*)
 5883       # This hack is so that the source file can tell whether it is being
 5884       # built for inclusion in a dll (and should export symbols for example).
 5885       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 5886       # (--disable-auto-import) libraries
 5887       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 5888       ;;
 5889 
 5890     darwin* | rhapsody*)
 5891       # PIC is the default on this platform
 5892       # Common symbols not allowed in MH_DYLIB files
 5893       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 5894       ;;
 5895 
 5896     interix[[3-9]]*)
 5897       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 5898       # Instead, we relocate shared libraries at runtime.
 5899       ;;
 5900 
 5901     msdosdjgpp*)
 5902       # Just because we use GCC doesn't mean we suddenly get shared libraries
 5903       # on systems that don't support them.
 5904       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 5905       enable_shared=no
 5906       ;;
 5907 
 5908     sysv4*MP*)
 5909       if test -d /usr/nec; then
 5910     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 5911       fi
 5912       ;;
 5913 
 5914     hpux*)
 5915       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 5916       # not for PA HP-UX.
 5917       case $host_cpu in
 5918       hppa*64*|ia64*)
 5919     # +Z the default
 5920     ;;
 5921       *)
 5922     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 5923     ;;
 5924       esac
 5925       ;;
 5926 
 5927     *)
 5928       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 5929       ;;
 5930     esac
 5931   else
 5932     # PORTME Check for flag to pass linker flags through the system compiler.
 5933     case $host_os in
 5934     aix*)
 5935       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5936       if test "$host_cpu" = ia64; then
 5937     # AIX 5 now supports IA64 processor
 5938     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5939       else
 5940     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 5941       fi
 5942       ;;
 5943       darwin*)
 5944         # PIC is the default on this platform
 5945         # Common symbols not allowed in MH_DYLIB files
 5946        case $cc_basename in
 5947          xlc*)
 5948          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
 5949          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5950          ;;
 5951        esac
 5952        ;;
 5953 
 5954     mingw* | cygwin* | pw32* | os2*)
 5955       # This hack is so that the source file can tell whether it is being
 5956       # built for inclusion in a dll (and should export symbols for example).
 5957       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
 5958       ;;
 5959 
 5960     hpux9* | hpux10* | hpux11*)
 5961       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5962       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 5963       # not for PA HP-UX.
 5964       case $host_cpu in
 5965       hppa*64*|ia64*)
 5966     # +Z the default
 5967     ;;
 5968       *)
 5969     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 5970     ;;
 5971       esac
 5972       # Is there a better lt_prog_compiler_static that works with the bundled CC?
 5973       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
 5974       ;;
 5975 
 5976     irix5* | irix6* | nonstopux*)
 5977       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5978       # PIC (with -KPIC) is the default.
 5979       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 5980       ;;
 5981 
 5982     newsos6)
 5983       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5984       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 5985       ;;
 5986 
 5987     linux* | k*bsd*-gnu)
 5988       case $cc_basename in
 5989       icc* | ecc*)
 5990     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5991     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 5992     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
 5993         ;;
 5994       pgcc* | pgf77* | pgf90* | pgf95*)
 5995         # Portland Group compilers (*not* the Pentium gcc compiler,
 5996     # which looks to be a dead project)
 5997     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 5998     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 5999     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6000         ;;
 6001       ccc*)
 6002         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 6003         # All Alpha code is PIC.
 6004         _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 6005         ;;
 6006       *)
 6007         case `$CC -V 2>&1 | sed 5q` in
 6008     *Sun\ C*)
 6009       # Sun C 5.9
 6010       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 6011       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6012       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 6013       ;;
 6014     *Sun\ F*)
 6015       # Sun Fortran 8.3 passes all unrecognized flags to the linker
 6016       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 6017       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6018       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
 6019       ;;
 6020     esac
 6021     ;;
 6022       esac
 6023       ;;
 6024 
 6025     osf3* | osf4* | osf5*)
 6026       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 6027       # All OSF/1 code is PIC.
 6028       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 6029       ;;
 6030 
 6031     rdos*)
 6032       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 6033       ;;
 6034 
 6035     solaris*)
 6036       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 6037       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6038       case $cc_basename in
 6039       f77* | f90* | f95*)
 6040     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 6041       *)
 6042     _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 6043       esac
 6044       ;;
 6045 
 6046     sunos4*)
 6047       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 6048       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 6049       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6050       ;;
 6051 
 6052     sysv4 | sysv4.2uw2* | sysv4.3*)
 6053       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 6054       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 6055       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6056       ;;
 6057 
 6058     sysv4*MP*)
 6059       if test -d /usr/nec ;then
 6060     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 6061     _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6062       fi
 6063       ;;
 6064 
 6065     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 6066       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 6067       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 6068       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6069       ;;
 6070 
 6071     unicos*)
 6072       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 6073       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 6074       ;;
 6075 
 6076     uts4*)
 6077       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 6078       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 6079       ;;
 6080 
 6081     *)
 6082       _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 6083       ;;
 6084     esac
 6085   fi
 6086 ])
 6087 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
 6088 
 6089 #
 6090 # Check to make sure the PIC flag actually works.
 6091 #
 6092 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
 6093   AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
 6094     _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
 6095     [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
 6096     [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
 6097      "" | " "*) ;;
 6098      *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 6099      esac],
 6100     [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 6101      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 6102 fi
 6103 case $host_os in
 6104   # For platforms which do not support PIC, -DPIC is meaningless:
 6105   *djgpp*)
 6106     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
 6107     ;;
 6108   *)
 6109     _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
 6110     ;;
 6111 esac
 6112 
 6113 #
 6114 # Check to make sure the static flag actually works.
 6115 #
 6116 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
 6117 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 6118   _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
 6119   $lt_tmp_static_flag,
 6120   [],
 6121   [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
 6122 ])
 6123 
 6124 
 6125 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
 6126 # ------------------------------------
 6127 # See if the linker supports building shared libraries.
 6128 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
 6129 [AC_REQUIRE([LT_AC_PROG_SED])dnl
 6130 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 6131 ifelse([$1],[CXX],[
 6132   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 6133   case $host_os in
 6134   aix4* | aix5*)
 6135     # If we're using GNU nm, then we don't want the "-C" option.
 6136     # -C means demangle to AIX nm, but means don't demangle with GNU nm
 6137     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 6138       _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'
 6139     else
 6140       _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'
 6141     fi
 6142     ;;
 6143   pw32*)
 6144     _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
 6145   ;;
 6146   cygwin* | mingw*)
 6147     _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'
 6148   ;;
 6149   linux* | k*bsd*-gnu)
 6150     _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 6151   ;;
 6152   *)
 6153     _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 6154   ;;
 6155   esac
 6156 ],[
 6157   runpath_var=
 6158   _LT_AC_TAGVAR(allow_undefined_flag, $1)=
 6159   _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 6160   _LT_AC_TAGVAR(archive_cmds, $1)=
 6161   _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
 6162   _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
 6163   _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 6164   _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
 6165   _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 6166   _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
 6167   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
 6168   _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
 6169   _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
 6170   _LT_AC_TAGVAR(hardcode_direct, $1)=no
 6171   _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
 6172   _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 6173   _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
 6174   _LT_AC_TAGVAR(hardcode_automatic, $1)=no
 6175   _LT_AC_TAGVAR(module_cmds, $1)=
 6176   _LT_AC_TAGVAR(module_expsym_cmds, $1)=
 6177   _LT_AC_TAGVAR(always_export_symbols, $1)=no
 6178   _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 6179   # include_expsyms should be a list of space-separated symbols to be *always*
 6180   # included in the symbol list
 6181   _LT_AC_TAGVAR(include_expsyms, $1)=
 6182   # exclude_expsyms can be an extended regexp of symbols to exclude
 6183   # it will be wrapped by ` (' and `)$', so one must not match beginning or
 6184   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 6185   # as well as any symbol that contains `d'.
 6186   _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
 6187   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 6188   # platforms (ab)use it in PIC code, but their linkers get confused if
 6189   # the symbol is explicitly referenced.  Since portable code cannot
 6190   # rely on this symbol name, it's probably fine to never include it in
 6191   # preloaded symbol tables.
 6192   extract_expsyms_cmds=
 6193   # Just being paranoid about ensuring that cc_basename is set.
 6194   _LT_CC_BASENAME([$compiler])
 6195   case $host_os in
 6196   cygwin* | mingw* | pw32*)
 6197     # FIXME: the MSVC++ port hasn't been tested in a loooong time
 6198     # When not using gcc, we currently assume that we are using
 6199     # Microsoft Visual C++.
 6200     if test "$GCC" != yes; then
 6201       with_gnu_ld=no
 6202     fi
 6203     ;;
 6204   interix*)
 6205     # we just hope/assume this is gcc and not c89 (= MSVC++)
 6206     with_gnu_ld=yes
 6207     ;;
 6208   openbsd*)
 6209     with_gnu_ld=no
 6210     ;;
 6211   esac
 6212 
 6213   _LT_AC_TAGVAR(ld_shlibs, $1)=yes
 6214   if test "$with_gnu_ld" = yes; then
 6215     # If archive_cmds runs LD, not CC, wlarc should be empty
 6216     wlarc='${wl}'
 6217 
 6218     # Set some defaults for GNU ld with shared library support. These
 6219     # are reset later if shared libraries are not supported. Putting them
 6220     # here allows them to be overridden if necessary.
 6221     runpath_var=LD_RUN_PATH
 6222     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
 6223     _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
 6224     # ancient GNU ld didn't support --whole-archive et. al.
 6225     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 6226     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 6227       else
 6228     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
 6229     fi
 6230     supports_anon_versioning=no
 6231     case `$LD -v 2>/dev/null` in
 6232       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 6233       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 6234       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 6235       *\ 2.11.*) ;; # other 2.11 versions
 6236       *) supports_anon_versioning=yes ;;
 6237     esac
 6238 
 6239     # See if GNU ld supports shared libraries.
 6240     case $host_os in
 6241     aix3* | aix4* | aix5*)
 6242       # On AIX/PPC, the GNU linker is very broken
 6243       if test "$host_cpu" != ia64; then
 6244     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6245     cat <<EOF 1>&2
 6246 
 6247 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
 6248 *** to be unable to reliably create shared libraries on AIX.
 6249 *** Therefore, libtool is disabling shared libraries support.  If you
 6250 *** really care for shared libraries, you may want to modify your PATH
 6251 *** so that a non-GNU linker is found, and then restart.
 6252 
 6253 EOF
 6254       fi
 6255       ;;
 6256 
 6257     amigaos*)
 6258       _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)'
 6259       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6260       _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
 6261 
 6262       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 6263       # that the semantics of dynamic libraries on AmigaOS, at least up
 6264       # to version 4, is to share data among multiple programs linked
 6265       # with the same dynamic library.  Since this doesn't match the
 6266       # behavior of shared libraries on other platforms, we can't use
 6267       # them.
 6268       _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6269       ;;
 6270 
 6271     beos*)
 6272       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6273     _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 6274     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 6275     # support --undefined.  This deserves some investigation.  FIXME
 6276     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6277       else
 6278     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6279       fi
 6280       ;;
 6281 
 6282     cygwin* | mingw* | pw32*)
 6283       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 6284       # as there is no search path for DLLs.
 6285       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6286       _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
 6287       _LT_AC_TAGVAR(always_export_symbols, $1)=no
 6288       _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6289       _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'
 6290 
 6291       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 6292         _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'
 6293     # If the export-symbols file already is a .def file (1st line
 6294     # is EXPORTS), use it as is; otherwise, prepend...
 6295     _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 6296       cp $export_symbols $output_objdir/$soname.def;
 6297     else
 6298       echo EXPORTS > $output_objdir/$soname.def;
 6299       cat $export_symbols >> $output_objdir/$soname.def;
 6300     fi~
 6301     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 6302       else
 6303     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6304       fi
 6305       ;;
 6306 
 6307     interix[[3-9]]*)
 6308       _LT_AC_TAGVAR(hardcode_direct, $1)=no
 6309       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 6310       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
 6311       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
 6312       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 6313       # Instead, shared libraries are loaded at an image base (0x10000000 by
 6314       # default) and relocated if they conflict, which is a slow very memory
 6315       # consuming and fragmenting process.  To avoid this, we pick a random,
 6316       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 6317       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 6318       _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'
 6319       _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'
 6320       ;;
 6321 
 6322     gnu* | linux* | k*bsd*-gnu)
 6323       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6324     tmp_addflag=
 6325     case $cc_basename,$host_cpu in
 6326     pgcc*)              # Portland Group C compiler
 6327       _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'
 6328       tmp_addflag=' $pic_flag'
 6329       ;;
 6330     pgf77* | pgf90* | pgf95*)   # Portland Group f77 and f90 compilers
 6331       _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'
 6332       tmp_addflag=' $pic_flag -Mnomain' ;;
 6333     ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 6334       tmp_addflag=' -i_dynamic' ;;
 6335     efc*,ia64* | ifort*,ia64*)  # Intel Fortran compiler on ia64
 6336       tmp_addflag=' -i_dynamic -nofor_main' ;;
 6337     ifc* | ifort*)          # Intel Fortran compiler
 6338       tmp_addflag=' -nofor_main' ;;
 6339     esac
 6340     case `$CC -V 2>&1 | sed 5q` in
 6341     *Sun\ C*)           # Sun C 5.9
 6342       _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'
 6343       tmp_sharedflag='-G' ;;
 6344     *Sun\ F*)           # Sun Fortran 8.3
 6345       tmp_sharedflag='-G' ;;
 6346     *)
 6347       tmp_sharedflag='-shared' ;;
 6348     esac
 6349     _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6350 
 6351     if test $supports_anon_versioning = yes; then
 6352       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
 6353   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 6354   $echo "local: *; };" >> $output_objdir/$libname.ver~
 6355       $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 6356     fi
 6357     _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 6358       else
 6359     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6360       fi
 6361       ;;
 6362 
 6363     netbsd* | netbsdelf*-gnu)
 6364       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 6365     _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 6366     wlarc=
 6367       else
 6368     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6369     _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'
 6370       fi
 6371       ;;
 6372 
 6373     solaris*)
 6374       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 6375     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6376     cat <<EOF 1>&2
 6377 
 6378 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 6379 *** create shared libraries on Solaris systems.  Therefore, libtool
 6380 *** is disabling shared libraries support.  We urge you to upgrade GNU
 6381 *** binutils to release 2.9.1 or newer.  Another option is to modify
 6382 *** your PATH or compiler configuration so that the native linker is
 6383 *** used, and then restart.
 6384 
 6385 EOF
 6386       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6387     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6388     _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'
 6389       else
 6390     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6391       fi
 6392       ;;
 6393 
 6394     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 6395       case `$LD -v 2>&1` in
 6396         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 6397     _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6398     cat <<_LT_EOF 1>&2
 6399 
 6400 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 6401 *** reliably create shared libraries on SCO systems.  Therefore, libtool
 6402 *** is disabling shared libraries support.  We urge you to upgrade GNU
 6403 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 6404 *** your PATH or compiler configuration so that the native linker is
 6405 *** used, and then restart.
 6406 
 6407 _LT_EOF
 6408     ;;
 6409     *)
 6410       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6411         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 6412         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 6413         _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'
 6414       else
 6415         _LT_AC_TAGVAR(ld_shlibs, $1)=no
 6416       fi
 6417     ;;
 6418       esac
 6419       ;;
 6420 
 6421     sunos4*)
 6422       _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 6423       wlarc=
 6424       _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 6425       _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
 6426       ;;
 6427