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