/[debian]/cdck/trunk/aclocal.m4
ViewVC logotype

Diff of /cdck/trunk/aclocal.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 201 by gregoa, Mon Apr 17 15:16:59 2006 UTC revision 303 by gregoa, Tue Jun 27 17:59:26 2006 UTC
# Line 1  Line 1 
1  # aclocal.m4 generated automatically by aclocal 1.6.3 -*- Autoconf -*-  # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2    
3  # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002  # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4  # Free Software Foundation, Inc.  # 2005  Free Software Foundation, Inc.
5  # This file is free software; the Free Software Foundation  # This file is free software; the Free Software Foundation
6  # gives unlimited permission to copy and/or distribute it,  # gives unlimited permission to copy and/or distribute it,
7  # with or without modifications, as long as this notice is preserved.  # with or without modifications, as long as this notice is preserved.
# Line 11  Line 11 
11  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A  # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12  # PARTICULAR PURPOSE.  # PARTICULAR PURPOSE.
13    
14  # Do all the work for Automake.                            -*- Autoconf -*-  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
   
 # This macro actually does too much some checks are only needed if  
 # your package does certain things.  But this isn't really a big deal.  
   
 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002  
 # Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 8  
   
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  
 # written in clear, in which case automake, when reading aclocal.m4,  
 # will think it sees a *use*, and therefore will trigger all it's  
 # C support machinery.  Also note that it means that autoscan, seeing  
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  
   
   
 AC_PREREQ([2.52])  
   
 # Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow  
 # the ones we care about.  
 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl  
   
 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])  
 # AM_INIT_AUTOMAKE([OPTIONS])  
 # -----------------------------------------------  
 # The call with PACKAGE and VERSION arguments is the old style  
 # call (pre autoconf-2.50), which is being phased out.  PACKAGE  
 # and VERSION should now be passed to AC_INIT and removed from  
 # the call to AM_INIT_AUTOMAKE.  
 # We support both call styles for the transition.  After  
 # the next Automake release, Autoconf can make the AC_INIT  
 # arguments mandatory, and then we can depend on a new Autoconf  
 # release and drop the old call support.  
 AC_DEFUN([AM_INIT_AUTOMAKE],  
 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl  
  AC_REQUIRE([AC_PROG_INSTALL])dnl  
 # test to see if srcdir already configured  
 if test "`cd $srcdir && pwd`" != "`pwd`" &&  
    test -f $srcdir/config.status; then  
   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])  
 fi  
   
 # Define the identity of the package.  
 dnl Distinguish between old-style and new-style calls.  
 m4_ifval([$2],  
 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl  
  AC_SUBST([PACKAGE], [$1])dnl  
  AC_SUBST([VERSION], [$2])],  
 [_AM_SET_OPTIONS([$1])dnl  
  AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl  
  AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl  
   
 _AM_IF_OPTION([no-define],,  
 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])  
  AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl  
   
 # Some tools Automake needs.  
 AC_REQUIRE([AM_SANITY_CHECK])dnl  
 AC_REQUIRE([AC_ARG_PROGRAM])dnl  
 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})  
 AM_MISSING_PROG(AUTOCONF, autoconf)  
 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})  
 AM_MISSING_PROG(AUTOHEADER, autoheader)  
 AM_MISSING_PROG(MAKEINFO, makeinfo)  
 AM_MISSING_PROG(AMTAR, tar)  
 AM_PROG_INSTALL_SH  
 AM_PROG_INSTALL_STRIP  
 # We need awk for the "check" target.  The system "awk" is bad on  
 # some platforms.  
 AC_REQUIRE([AC_PROG_AWK])dnl  
 AC_REQUIRE([AC_PROG_MAKE_SET])dnl  
   
 _AM_IF_OPTION([no-dependencies],,  
 [AC_PROVIDE_IFELSE([AC_PROG_][CC],  
                   [_AM_DEPENDENCIES(CC)],  
                   [define([AC_PROG_][CC],  
                           defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl  
 AC_PROVIDE_IFELSE([AC_PROG_][CXX],  
                   [_AM_DEPENDENCIES(CXX)],  
                   [define([AC_PROG_][CXX],  
                           defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl  
 ])  
 ])  
   
 # Copyright 2002  Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
   
 # AM_AUTOMAKE_VERSION(VERSION)  
 # ----------------------------  
 # Automake X.Y traces this macro to ensure aclocal.m4 has been  
 # generated from the m4 files accompanying Automake X.Y.  
 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])  
   
 # AM_SET_CURRENT_AUTOMAKE_VERSION  
 # -------------------------------  
 # Call AM_AUTOMAKE_VERSION so it can be traced.  
 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.  
 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],  
          [AM_AUTOMAKE_VERSION([1.6.3])])  
   
 # Helper functions for option handling.                    -*- Autoconf -*-  
   
 # Copyright 2001, 2002  Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 2  
   
 # _AM_MANGLE_OPTION(NAME)  
 # -----------------------  
 AC_DEFUN([_AM_MANGLE_OPTION],  
 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])  
   
 # _AM_SET_OPTION(NAME)  
 # ------------------------------  
 # Set option NAME.  Presently that only means defining a flag for this option.  
 AC_DEFUN([_AM_SET_OPTION],  
 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])  
   
 # _AM_SET_OPTIONS(OPTIONS)  
 # ----------------------------------  
 # OPTIONS is a space-separated list of Automake options.  
 AC_DEFUN([_AM_SET_OPTIONS],  
 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])  
   
 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])  
 # -------------------------------------------  
 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.  
 AC_DEFUN([_AM_IF_OPTION],  
 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])  
   
 #  
 # Check to make sure that the build environment is sane.  
 #  
15    
16  # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.  # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
17    
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
18    
19  # You should have received a copy of the GNU General Public License  # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20  # along with this program; if not, write to the Free Software  # -----------------------------------------------------------
21  # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  # If this macro is not defined by Autoconf, define it here.
22  # 02111-1307, USA.  m4_ifdef([AC_PROVIDE_IFELSE],
23             [],
24             [m4_define([AC_PROVIDE_IFELSE],
25                     [m4_ifdef([AC_PROVIDE_$1],
26                               [$2], [$3])])])
27    
 # serial 3  
28    
29  # AM_SANITY_CHECK  # AC_PROG_LIBTOOL
30  # ---------------  # ---------------
 AC_DEFUN([AM_SANITY_CHECK],  
 [AC_MSG_CHECKING([whether build environment is sane])  
 # Just in case  
 sleep 1  
 echo timestamp > conftest.file  
 # Do `set' in a subshell so we don't clobber the current shell's  
 # arguments.  Must try -L first in case configure is actually a  
 # symlink; some systems play weird games with the mod time of symlinks  
 # (eg FreeBSD returns the mod time of the symlink's containing  
 # directory).  
 if (  
    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`  
    if test "$[*]" = "X"; then  
       # -L didn't work.  
       set X `ls -t $srcdir/configure conftest.file`  
    fi  
    rm -f conftest.file  
    if test "$[*]" != "X $srcdir/configure conftest.file" \  
       && test "$[*]" != "X conftest.file $srcdir/configure"; then  
   
       # If neither matched, then we have a broken ls.  This can happen  
       # if, for instance, CONFIG_SHELL is bash and it inherits a  
       # broken ls alias from the environment.  This has actually  
       # happened.  Such a system could not be considered "sane".  
       AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken  
 alias in your environment])  
    fi  
   
    test "$[2]" = conftest.file  
    )  
 then  
    # Ok.  
    :  
 else  
    AC_MSG_ERROR([newly created file is older than distributed files!  
 Check your system clock])  
 fi  
 AC_MSG_RESULT(yes)])  
   
 #  -*- Autoconf -*-  
   
   
 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 3  
   
 # AM_MISSING_PROG(NAME, PROGRAM)  
 # ------------------------------  
 AC_DEFUN([AM_MISSING_PROG],  
 [AC_REQUIRE([AM_MISSING_HAS_RUN])  
 $1=${$1-"${am_missing_run}$2"}  
 AC_SUBST($1)])  
   
   
 # AM_MISSING_HAS_RUN  
 # ------------------  
 # Define MISSING if not defined so far and test if it supports --run.  
 # If it does, set am_missing_run to use it, otherwise, to nothing.  
 AC_DEFUN([AM_MISSING_HAS_RUN],  
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  
 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"  
 # Use eval to expand $SHELL  
 if eval "$MISSING --run true"; then  
   am_missing_run="$MISSING --run "  
 else  
   am_missing_run=  
   AC_MSG_WARN([`missing' script is too old or missing])  
 fi  
 ])  
   
 # AM_AUX_DIR_EXPAND  
   
 # Copyright 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets  
 # $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to  
 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.  
 #  
 # Of course, Automake must honor this variable whenever it calls a  
 # tool from the auxiliary directory.  The problem is that $srcdir (and  
 # therefore $ac_aux_dir as well) can be either absolute or relative,  
 # depending on how configure is run.  This is pretty annoying, since  
 # it makes $ac_aux_dir quite unusable in subdirectories: in the top  
 # source directory, any form will work fine, but in subdirectories a  
 # relative path needs to be adjusted first.  
 #  
 # $ac_aux_dir/missing  
 #    fails when called from a subdirectory if $ac_aux_dir is relative  
 # $top_srcdir/$ac_aux_dir/missing  
 #    fails if $ac_aux_dir is absolute,  
 #    fails when called from a subdirectory in a VPATH build with  
 #          a relative $ac_aux_dir  
 #  
 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir  
 # are both prefixed by $srcdir.  In an in-source build this is usually  
 # harmless because $srcdir is `.', but things will broke when you  
 # start a VPATH build or use an absolute $srcdir.  
 #  
 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,  
 # iff we strip the leading $srcdir from $ac_aux_dir.  That would be:  
 #   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`  
 # and then we would define $MISSING as  
 #   MISSING="\${SHELL} $am_aux_dir/missing"  
 # This will work as long as MISSING is not called from configure, because  
 # unfortunately $(top_srcdir) has no meaning in configure.  
 # However there are other variables, like CC, which are often used in  
 # configure, and could therefore not use this "fixed" $ac_aux_dir.  
 #  
 # Another solution, used here, is to always expand $ac_aux_dir to an  
 # absolute PATH.  The drawback is that using absolute paths prevent a  
 # configured tree to be moved without reconfiguration.  
   
 # Rely on autoconf to set up CDPATH properly.  
 AC_PREREQ([2.50])  
   
 AC_DEFUN([AM_AUX_DIR_EXPAND], [  
 # expand $ac_aux_dir to an absolute path  
 am_aux_dir=`cd $ac_aux_dir && pwd`  
 ])  
   
 # AM_PROG_INSTALL_SH  
 # ------------------  
 # Define $install_sh.  
   
 # Copyright 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 AC_DEFUN([AM_PROG_INSTALL_SH],  
 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl  
 install_sh=${install_sh-"$am_aux_dir/install-sh"}  
 AC_SUBST(install_sh)])  
   
 # AM_PROG_INSTALL_STRIP  
   
 # Copyright 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # One issue with vendor `install' (even GNU) is that you can't  
 # specify the program used to strip binaries.  This is especially  
 # annoying in cross-compiling environments, where the build's strip  
 # is unlikely to handle the host's binaries.  
 # Fortunately install-sh will honor a STRIPPROG variable, so we  
 # always use install-sh in `make install-strip', and initialize  
 # STRIPPROG with the value of the STRIP variable (set by the user).  
 AC_DEFUN([AM_PROG_INSTALL_STRIP],  
 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl  
 # Installed binaries are usually stripped using `strip' when the user  
 # run `make install-strip'.  However `strip' might not be the right  
 # tool to use in cross-compilation environments, therefore Automake  
 # will honor the `STRIP' environment variable to overrule this program.  
 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.  
 if test "$cross_compiling" != no; then  
   AC_CHECK_TOOL([STRIP], [strip], :)  
 fi  
 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"  
 AC_SUBST([INSTALL_STRIP_PROGRAM])])  
   
 # serial 4                                              -*- Autoconf -*-  
   
 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
   
 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be  
 # written in clear, in which case automake, when reading aclocal.m4,  
 # will think it sees a *use*, and therefore will trigger all it's  
 # C support machinery.  Also note that it means that autoscan, seeing  
 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...  
   
   
   
 # _AM_DEPENDENCIES(NAME)  
 # ----------------------  
 # See how the compiler implements dependency checking.  
 # NAME is "CC", "CXX", "GCJ", or "OBJC".  
 # We try a few techniques and use that to set a single cache variable.  
 #  
 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was  
 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular  
 # dependency, and given that the user is not expected to run this macro,  
 # just rely on AC_PROG_CC.  
 AC_DEFUN([_AM_DEPENDENCIES],  
 [AC_REQUIRE([AM_SET_DEPDIR])dnl  
 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl  
 AC_REQUIRE([AM_MAKE_INCLUDE])dnl  
 AC_REQUIRE([AM_DEP_TRACK])dnl  
   
 ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],  
        [$1], CXX,  [depcc="$CXX"  am_compiler_list=],  
        [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],  
        [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],  
                    [depcc="$$1"   am_compiler_list=])  
   
 AC_CACHE_CHECK([dependency style of $depcc],  
                [am_cv_$1_dependencies_compiler_type],  
 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then  
   # We make a subdir and do the tests there.  Otherwise we can end up  
   # making bogus files that we don't know about and never remove.  For  
   # instance it was reported that on HP-UX the gcc test will end up  
   # making a dummy file named `D' -- because `-MD' means `put the output  
   # in D'.  
   mkdir conftest.dir  
   # Copy depcomp to subdir because otherwise we won't find it if we're  
   # using a relative directory.  
   cp "$am_depcomp" conftest.dir  
   cd conftest.dir  
   
   am_cv_$1_dependencies_compiler_type=none  
   if test "$am_compiler_list" = ""; then  
      am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`  
   fi  
   for depmode in $am_compiler_list; do  
     # We need to recreate these files for each test, as the compiler may  
     # overwrite some of them when testing with obscure command lines.  
     # This happens at least with the AIX C compiler.  
     echo '#include "conftest.h"' > conftest.c  
     echo 'int i;' > conftest.h  
     echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf  
   
     case $depmode in  
     nosideeffect)  
       # after this tag, mechanisms are not by side-effect, so they'll  
       # only be used when explicitly requested  
       if test "x$enable_dependency_tracking" = xyes; then  
         continue  
       else  
         break  
       fi  
       ;;  
     none) break ;;  
     esac  
     # We check with `-c' and `-o' for the sake of the "dashmstdout"  
     # mode.  It turns out that the SunPro C++ compiler does not properly  
     # handle `-M -o', and we need to detect this.  
     if depmode=$depmode \  
        source=conftest.c object=conftest.o \  
        depfile=conftest.Po tmpdepfile=conftest.TPo \  
        $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&  
        grep conftest.h conftest.Po > /dev/null 2>&1 &&  
        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then  
       am_cv_$1_dependencies_compiler_type=$depmode  
       break  
     fi  
   done  
   
   cd ..  
   rm -rf conftest.dir  
 else  
   am_cv_$1_dependencies_compiler_type=none  
 fi  
 ])  
 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])  
 ])  
   
   
 # AM_SET_DEPDIR  
 # -------------  
 # Choose a directory name for dependency files.  
 # This macro is AC_REQUIREd in _AM_DEPENDENCIES  
 AC_DEFUN([AM_SET_DEPDIR],  
 [rm -f .deps 2>/dev/null  
 mkdir .deps 2>/dev/null  
 if test -d .deps; then  
   DEPDIR=.deps  
 else  
   # MS-DOS does not allow filenames that begin with a dot.  
   DEPDIR=_deps  
 fi  
 rmdir .deps 2>/dev/null  
 AC_SUBST([DEPDIR])  
 ])  
   
   
 # AM_DEP_TRACK  
 # ------------  
 AC_DEFUN([AM_DEP_TRACK],  
 [AC_ARG_ENABLE(dependency-tracking,  
 [  --disable-dependency-tracking Speeds up one-time builds  
   --enable-dependency-tracking  Do not reject slow dependency extractors])  
 if test "x$enable_dependency_tracking" != xno; then  
   am_depcomp="$ac_aux_dir/depcomp"  
   AMDEPBACKSLASH='\'  
 fi  
 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])  
 AC_SUBST([AMDEPBACKSLASH])  
 ])  
   
 # Generate code to set up dependency tracking.   -*- Autoconf -*-  
   
 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 #serial 2  
   
 # _AM_OUTPUT_DEPENDENCY_COMMANDS  
 # ------------------------------  
 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],  
 [for mf in $CONFIG_FILES; do  
   # Strip MF so we end up with the name of the file.  
   mf=`echo "$mf" | sed -e 's/:.*$//'`  
   # Check whether this is an Automake generated Makefile or not.  
   # We used to match only the files named `Makefile.in', but  
   # some people rename them; so instead we look at the file content.  
   # Grep'ing the first line is not enough: some people post-process  
   # each Makefile.in and add a new line on top of each file to say so.  
   # So let's grep whole file.  
   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then  
     dirpart=`AS_DIRNAME("$mf")`  
   else  
     continue  
   fi  
   grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue  
   # Extract the definition of DEP_FILES from the Makefile without  
   # running `make'.  
   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`  
   test -z "$DEPDIR" && continue  
   # When using ansi2knr, U may be empty or an underscore; expand it  
   U=`sed -n -e '/^U = / s///p' < "$mf"`  
   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"  
   # We invoke sed twice because it is the simplest approach to  
   # changing $(DEPDIR) to its actual value in the expansion.  
   for file in `sed -n -e '  
     /^DEP_FILES = .*\\\\$/ {  
       s/^DEP_FILES = //  
       :loop  
         s/\\\\$//  
         p  
         n  
         /\\\\$/ b loop  
       p  
     }  
     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \  
        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do  
     # Make sure the directory exists.  
     test -f "$dirpart/$file" && continue  
     fdir=`AS_DIRNAME(["$file"])`  
     AS_MKDIR_P([$dirpart/$fdir])  
     # echo "creating $dirpart/$file"  
     echo '# dummy' > "$dirpart/$file"  
   done  
 done  
 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS  
   
   
 # AM_OUTPUT_DEPENDENCY_COMMANDS  
 # -----------------------------  
 # This macro should only be invoked once -- use via AC_REQUIRE.  
 #  
 # This code is only required when automatic dependency tracking  
 # is enabled.  FIXME.  This creates each `.P' file that we will  
 # need in order to bootstrap the dependency handling code.  
 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],  
 [AC_CONFIG_COMMANDS([depfiles],  
      [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],  
      [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])  
 ])  
   
 # Copyright 2001 Free Software Foundation, Inc.             -*- Autoconf -*-  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 2  
   
 # AM_MAKE_INCLUDE()  
 # -----------------  
 # Check to see how make treats includes.  
 AC_DEFUN([AM_MAKE_INCLUDE],  
 [am_make=${MAKE-make}  
 cat > confinc << 'END'  
 doit:  
         @echo done  
 END  
 # If we don't find an include directive, just comment out the code.  
 AC_MSG_CHECKING([for style of include used by $am_make])  
 am__include="#"  
 am__quote=  
 _am_result=none  
 # First try GNU make style include.  
 echo "include confinc" > confmf  
 # We grep out `Entering directory' and `Leaving directory'  
 # messages which can occur if `w' ends up in MAKEFLAGS.  
 # In particular we don't look at `^make:' because GNU make might  
 # be invoked under some other name (usually "gmake"), in which  
 # case it prints its new name instead of `make'.  
 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then  
    am__include=include  
    am__quote=  
    _am_result=GNU  
 fi  
 # Now try BSD make style include.  
 if test "$am__include" = "#"; then  
    echo '.include "confinc"' > confmf  
    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then  
       am__include=.include  
       am__quote="\""  
       _am_result=BSD  
    fi  
 fi  
 AC_SUBST(am__include)  
 AC_SUBST(am__quote)  
 AC_MSG_RESULT($_am_result)  
 rm -f confinc confmf  
 ])  
   
 # AM_CONDITIONAL                                              -*- Autoconf -*-  
   
 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.  
   
 # This program is free software; you can redistribute it and/or modify  
 # it under the terms of the GNU General Public License as published by  
 # the Free Software Foundation; either version 2, or (at your option)  
 # any later version.  
   
 # This program is distributed in the hope that it will be useful,  
 # but WITHOUT ANY WARRANTY; without even the implied warranty of  
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 # GNU General Public License for more details.  
   
 # You should have received a copy of the GNU General Public License  
 # along with this program; if not, write to the Free Software  
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
 # 02111-1307, USA.  
   
 # serial 5  
   
 AC_PREREQ(2.52)  
   
 # AM_CONDITIONAL(NAME, SHELL-CONDITION)  
 # -------------------------------------  
 # Define a conditional.  
 AC_DEFUN([AM_CONDITIONAL],  
 [ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],  
         [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl  
 AC_SUBST([$1_TRUE])  
 AC_SUBST([$1_FALSE])  
 if $2; then  
   $1_TRUE=  
   $1_FALSE='#'  
 else  
   $1_TRUE='#'  
   $1_FALSE=  
 fi  
 AC_CONFIG_COMMANDS_PRE(  
 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then  
   AC_MSG_ERROR([conditional \"$1\" was never defined.  
 Usually this means the macro was only invoked conditionally.])  
 fi])])  
   
 # isc-posix.m4 serial 2 (gettext-0.11.2)  
 dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.  
 dnl This file is free software, distributed under the terms of the GNU  
 dnl General Public License.  As a special exception to the GNU General  
 dnl Public License, this file may be distributed as part of a program  
 dnl that contains a configuration script generated by Autoconf, under  
 dnl the same distribution terms as the rest of that program.  
   
 # This file is not needed with autoconf-2.53 and newer.  Remove it in 2005.  
   
 # This test replaces the one in autoconf.  
 # Currently this macro should have the same name as the autoconf macro  
 # because gettext's gettext.m4 (distributed in the automake package)  
 # still uses it.  Otherwise, the use in gettext.m4 makes autoheader  
 # give these diagnostics:  
 #   configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX  
 #   configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX  
   
 undefine([AC_ISC_POSIX])  
   
 AC_DEFUN([AC_ISC_POSIX],  
   [  
     dnl This test replaces the obsolescent AC_ISC_POSIX kludge.  
     AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])  
   ]  
 )  
   
 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-  
   
 # serial 46 AC_PROG_LIBTOOL  
   
31  AC_DEFUN([AC_PROG_LIBTOOL],  AC_DEFUN([AC_PROG_LIBTOOL],
32    [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
33    dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
34    dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
35      AC_PROVIDE_IFELSE([AC_PROG_CXX],
36        [AC_LIBTOOL_CXX],
37        [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
38      ])])
39    dnl And a similar setup for Fortran 77 support
40      AC_PROVIDE_IFELSE([AC_PROG_F77],
41        [AC_LIBTOOL_F77],
42        [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
43    ])])
44    
45    dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
46    dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
47    dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
48      AC_PROVIDE_IFELSE([AC_PROG_GCJ],
49        [AC_LIBTOOL_GCJ],
50        [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
51          [AC_LIBTOOL_GCJ],
52          [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
53            [AC_LIBTOOL_GCJ],
54          [ifdef([AC_PROG_GCJ],
55                 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
56           ifdef([A][M_PROG_GCJ],
57                 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
58           ifdef([LT_AC_PROG_GCJ],
59                 [define([LT_AC_PROG_GCJ],
60                    defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
61    ])])# AC_PROG_LIBTOOL
62    
63    
64    # _AC_PROG_LIBTOOL
65    # ----------------
66    AC_DEFUN([_AC_PROG_LIBTOOL],
67  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl  [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
68    AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
69    AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
70    AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
71    
72  # This can be used to rebuild libtool when needed  # This can be used to rebuild libtool when needed
73  LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"  LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
# Line 799  AC_SUBST(LIBTOOL)dnl Line 78  AC_SUBST(LIBTOOL)dnl
78    
79  # Prevent multiple expansion  # Prevent multiple expansion
80  define([AC_PROG_LIBTOOL], [])  define([AC_PROG_LIBTOOL], [])
81  ])  ])# _AC_PROG_LIBTOOL
82    
83    
84    # AC_LIBTOOL_SETUP
85    # ----------------
86  AC_DEFUN([AC_LIBTOOL_SETUP],  AC_DEFUN([AC_LIBTOOL_SETUP],
87  [AC_PREREQ(2.13)dnl  [AC_PREREQ(2.50)dnl
88  AC_REQUIRE([AC_ENABLE_SHARED])dnl  AC_REQUIRE([AC_ENABLE_SHARED])dnl
89  AC_REQUIRE([AC_ENABLE_STATIC])dnl  AC_REQUIRE([AC_ENABLE_STATIC])dnl
90  AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl  AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
# Line 812  AC_REQUIRE([AC_PROG_CC])dnl Line 94  AC_REQUIRE([AC_PROG_CC])dnl
94  AC_REQUIRE([AC_PROG_LD])dnl  AC_REQUIRE([AC_PROG_LD])dnl
95  AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl  AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
96  AC_REQUIRE([AC_PROG_NM])dnl  AC_REQUIRE([AC_PROG_NM])dnl
 AC_REQUIRE([LT_AC_PROG_SED])dnl  
97    
98  AC_REQUIRE([AC_PROG_LN_S])dnl  AC_REQUIRE([AC_PROG_LN_S])dnl
99  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl  AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
100    # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
101  AC_REQUIRE([AC_OBJEXT])dnl  AC_REQUIRE([AC_OBJEXT])dnl
102  AC_REQUIRE([AC_EXEEXT])dnl  AC_REQUIRE([AC_EXEEXT])dnl
103  dnl  dnl
104    
105    AC_LIBTOOL_SYS_MAX_CMD_LEN
106    AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
107    AC_LIBTOOL_OBJDIR
108    
109    AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
110  _LT_AC_PROG_ECHO_BACKSLASH  _LT_AC_PROG_ECHO_BACKSLASH
111  # Only perform the check for file, if the check method requires it  
112  case $deplibs_check_method in  case $host_os in
113  file_magic*)  aix3*)
114    if test "$file_magic_cmd" = '$MAGIC_CMD'; then    # AIX sometimes has problems with the GCC collect2 program.  For some
115      AC_PATH_MAGIC    # reason, if we set the COLLECT_NAMES environment variable, the problems
116      # vanish in a puff of smoke.
117      if test "X${COLLECT_NAMES+set}" != Xset; then
118        COLLECT_NAMES=
119        export COLLECT_NAMES
120    fi    fi
121    ;;    ;;
122  esac  esac
123    
124  AC_CHECK_TOOL(RANLIB, ranlib, :)  # Sed substitution that helps us do robust quoting.  It backslashifies
125  AC_CHECK_TOOL(STRIP, strip, :)  # metacharacters that are still active within double-quoted strings.
126    Xsed='sed -e 1s/^X//'
127    [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
128    
129  ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)  # Same as above, but do not quote variable references.
130  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],  [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
 enable_win32_dll=yes, enable_win32_dll=no)  
131    
132  AC_ARG_ENABLE(libtool-lock,  # Sed substitution to delay expansion of an escaped shell variable in a
133    [  --disable-libtool-lock  avoid locking (might break parallel builds)])  # double_quote_subst'ed string.
134  test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes  delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
135    
136  # Some flags need to be propagated to the compiler or linker for good  # Sed substitution to avoid accidental globbing in evaled expressions
137  # libtool support.  no_glob_subst='s/\*/\\\*/g'
 case $host in  
 *-*-irix6*)  
   # Find out which ABI we are using.  
   echo '[#]line __oline__ "configure"' > conftest.$ac_ext  
   if AC_TRY_EVAL(ac_compile); then  
     case `/usr/bin/file conftest.$ac_objext` in  
     *32-bit*)  
       LD="${LD-ld} -32"  
       ;;  
     *N32*)  
       LD="${LD-ld} -n32"  
       ;;  
     *64-bit*)  
       LD="${LD-ld} -64"  
       ;;  
     esac  
   fi  
   rm -rf conftest*  
   ;;  
138    
139  *-*-sco3.2v5*)  # Constants:
140    # On SCO OpenServer 5, we need -belf to get full-featured binaries.  rm="rm -f"
   SAVE_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -belf"  
   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,  
     [AC_LANG_SAVE  
      AC_LANG_C  
      AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])  
      AC_LANG_RESTORE])  
   if test x"$lt_cv_cc_needs_belf" != x"yes"; then  
     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf  
     CFLAGS="$SAVE_CFLAGS"  
   fi  
   ;;  
141    
142  ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],  # Global variables:
143  [*-*-cygwin* | *-*-mingw* | *-*-pw32*)  default_ofile=libtool
144    AC_CHECK_TOOL(DLLTOOL, dlltool, false)  can_build_shared=yes
   AC_CHECK_TOOL(AS, as, false)  
   AC_CHECK_TOOL(OBJDUMP, objdump, false)  
145    
146    # recent cygwin and mingw systems supply a stub DllMain which the user  # All known linkers require a `.a' archive for static linking (except MSVC,
147    # can override, but on older systems we have to supply one  # which needs '.lib').
148    AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,  libext=a
149      [AC_TRY_LINK([],  ltmain="$ac_aux_dir/ltmain.sh"
150        [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);  ofile="$default_ofile"
151        DllMain (0, 0, 0);],  with_gnu_ld="$lt_cv_prog_gnu_ld"
       [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])  
   
   case $host/$CC in  
   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)  
     # old mingw systems require "-dll" to link a DLL, while more recent ones  
     # require "-mdll"  
     SAVE_CFLAGS="$CFLAGS"  
     CFLAGS="$CFLAGS -mdll"  
     AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,  
       [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])  
     CFLAGS="$SAVE_CFLAGS" ;;  
   *-*-cygwin* | *-*-pw32*)  
     # cygwin systems need to pass --dll to the linker, and not link  
     # crt.o which will require a WinMain@16 definition.  
     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;  
   esac  
   ;;  
   ])  
 esac  
152    
153  _LT_AC_LTCONFIG_HACK  AC_CHECK_TOOL(AR, ar, false)
154    AC_CHECK_TOOL(RANLIB, ranlib, :)
155    AC_CHECK_TOOL(STRIP, strip, :)
156    
157  ])  old_CC="$CC"
158    old_CFLAGS="$CFLAGS"
159    
160  # AC_LIBTOOL_HEADER_ASSERT  # Set sane defaults for various variables
161  # ------------------------  test -z "$AR" && AR=ar
162  AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],  test -z "$AR_FLAGS" && AR_FLAGS=cru
163  [AC_CACHE_CHECK([whether $CC supports assert without backlinking],  test -z "$AS" && AS=as
164      [lt_cv_func_assert_works],  test -z "$CC" && CC=cc
165      [case $host in  test -z "$LTCC" && LTCC=$CC
166      *-*-solaris*)  test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167        if test "$GCC" = yes && test "$with_gnu_ld" != yes; then  test -z "$DLLTOOL" && DLLTOOL=dlltool
168          case `$CC --version 2>/dev/null` in  test -z "$LD" && LD=ld
169          [[12]].*) lt_cv_func_assert_works=no ;;  test -z "$LN_S" && LN_S="ln -s"
170          *)        lt_cv_func_assert_works=yes ;;  test -z "$MAGIC_CMD" && MAGIC_CMD=file
171          esac  test -z "$NM" && NM=nm
172        fi  test -z "$SED" && SED=sed
173        ;;  test -z "$OBJDUMP" && OBJDUMP=objdump
174      esac])  test -z "$RANLIB" && RANLIB=:
175    test -z "$STRIP" && STRIP=:
176    test -z "$ac_objext" && ac_objext=o
177    
178    # Determine commands to create old-style static archives.
179    old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
180    old_postinstall_cmds='chmod 644 $oldlib'
181    old_postuninstall_cmds=
182    
183  if test "x$lt_cv_func_assert_works" = xyes; then  if test -n "$RANLIB"; then
184    AC_CHECK_HEADERS(assert.h)    case $host_os in
185      openbsd*)
186        old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
187        ;;
188      *)
189        old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
190        ;;
191      esac
192      old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
193  fi  fi
 ])# AC_LIBTOOL_HEADER_ASSERT  
194    
195  # _LT_AC_CHECK_DLFCN  _LT_CC_BASENAME([$compiler])
 # --------------------  
 AC_DEFUN([_LT_AC_CHECK_DLFCN],  
 [AC_CHECK_HEADERS(dlfcn.h)  
 ])# _LT_AC_CHECK_DLFCN  
196    
197  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  # Only perform the check for file, if the check method requires it
198  # ---------------------------------  case $deplibs_check_method in
199  AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],  file_magic*)
200  [AC_REQUIRE([AC_CANONICAL_HOST])    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
201  AC_REQUIRE([AC_PROG_NM])      AC_PATH_MAGIC
202  AC_REQUIRE([AC_OBJEXT])    fi
203  # Check for command to grab the raw symbol name followed by C symbol from nm.    ;;
204  AC_MSG_CHECKING([command to parse $NM output])  esac
 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl  
205    
206  # These are sane defaults that work on at least a few old systems.  AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
207  # [They come from Ultrix.  What could be older than Ultrix?!! ;)]  AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
208    enable_win32_dll=yes, enable_win32_dll=no)
209    
210  # Character class describing NM global symbol codes.  AC_ARG_ENABLE([libtool-lock],
211  symcode='[[BCDEGRST]]'      [AC_HELP_STRING([--disable-libtool-lock],
212            [avoid locking (might break parallel builds)])])
213    test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
214    
215  # Regexp to match symbols that can be accessed directly from C.  AC_ARG_WITH([pic],
216  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'      [AC_HELP_STRING([--with-pic],
217            [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
218        [pic_mode="$withval"],
219        [pic_mode=default])
220    test -z "$pic_mode" && pic_mode=default
221    
222  # Transform the above into a raw symbol and a C symbol.  # Use C for the default configuration in the libtool script
223  symxfrm='\1 \2\3 \3'  tagname=
224    AC_LIBTOOL_LANG_C_CONFIG
225    _LT_AC_TAGCONFIG
226    ])# AC_LIBTOOL_SETUP
227    
 # Transform an extracted symbol line into a proper C declaration  
 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"  
228    
229  # Transform an extracted symbol line into symbol name and symbol address  # _LT_AC_SYS_COMPILER
230  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"  # -------------------
231    AC_DEFUN([_LT_AC_SYS_COMPILER],
232    [AC_REQUIRE([AC_PROG_CC])dnl
233    
234  # Define system-specific variables.  # If no C compiler was specified, use CC.
235  case $host_os in  LTCC=${LTCC-"$CC"}
 aix*)  
   symcode='[[BCDT]]'  
   ;;  
 cygwin* | mingw* | pw32*)  
   symcode='[[ABCDGISTW]]'  
   ;;  
 hpux*) # Its linker distinguishes data from code symbols  
   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"  
   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"  
   ;;  
 irix* | nonstopux*)  
   symcode='[[BCDEGRST]]'  
   ;;  
 osf*)  
   symcode='[[BCDEGQRST]]'  
   ;;  
 solaris* | sysv5*)  
   symcode='[[BDT]]'  
   ;;  
 sysv4)  
   symcode='[[DFNSTU]]'  
   ;;  
 esac  
236    
237  # Handle CRLF in mingw tool chain  # If no C compiler flags were specified, use CFLAGS.
238  opt_cr=  LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 case $host_os in  
 mingw*)  
   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp  
   ;;  
 esac  
239    
240  # If we're using GNU nm, then use its standard symbol codes.  # Allow CC to be a program name with arguments.
241  if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then  compiler=$CC
242    symcode='[[ABCDGISTW]]'  ])# _LT_AC_SYS_COMPILER
 fi  
243    
 # Try without a prefix undercore, then with it.  
 for ac_symprfx in "" "_"; do  
244    
245    # Write the raw and C identifiers.  # _LT_CC_BASENAME(CC)
246  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[        ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"  # -------------------
247    # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
248    AC_DEFUN([_LT_CC_BASENAME],
249    [for cc_temp in $1""; do
250      case $cc_temp in
251        compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
252        distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
253        \-*) ;;
254        *) break;;
255      esac
256    done
257    cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
258    ])
259    
   # Check to see that the pipe works correctly.  
   pipe_works=no  
   rm -f conftest*  
   cat > conftest.$ac_ext <<EOF  
 #ifdef __cplusplus  
 extern "C" {  
 #endif  
 char nm_test_var;  
 void nm_test_func(){}  
 #ifdef __cplusplus  
 }  
 #endif  
 int main(){nm_test_var='a';nm_test_func();return(0);}  
 EOF  
260    
261    if AC_TRY_EVAL(ac_compile); then  # _LT_COMPILER_BOILERPLATE
262      # Now try to grab the symbols.  # ------------------------
263      nlist=conftest.nm  # Check for compiler boilerplate output or warnings with
264      if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then  # the simple compiler test code.
265        # Try sorting and uniquifying the output.  AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266        if sort "$nlist" | uniq > "$nlist"T; then  [ac_outfile=conftest.$ac_objext
267          mv -f "$nlist"T "$nlist"  printf "$lt_simple_compile_test_code" >conftest.$ac_ext
268        else  eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
269          rm -f "$nlist"T  _lt_compiler_boilerplate=`cat conftest.err`
270        fi  $rm conftest*
271    ])# _LT_COMPILER_BOILERPLATE
272    
       # Make sure that we snagged all the symbols we need.  
       if egrep ' nm_test_var$' "$nlist" >/dev/null; then  
         if egrep ' nm_test_func$' "$nlist" >/dev/null; then  
           cat <<EOF > conftest.$ac_ext  
 #ifdef __cplusplus  
 extern "C" {  
 #endif  
273    
274  EOF  # _LT_LINKER_BOILERPLATE
275            # Now generate the symbol file.  # ----------------------
276            eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'  # Check for linker boilerplate output or warnings with
277    # the simple link test code.
278    AC_DEFUN([_LT_LINKER_BOILERPLATE],
279    [ac_outfile=conftest.$ac_objext
280    printf "$lt_simple_link_test_code" >conftest.$ac_ext
281    eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
282    _lt_linker_boilerplate=`cat conftest.err`
283    $rm conftest*
284    ])# _LT_LINKER_BOILERPLATE
285    
           cat <<EOF >> conftest.$ac_ext  
 #if defined (__STDC__) && __STDC__  
 # define lt_ptr void *  
 #else  
 # define lt_ptr char *  
 # define const  
 #endif  
286    
287  /* The mapping between symbol names and symbols. */  # _LT_AC_SYS_LIBPATH_AIX
288  const struct {  # ----------------------
289    const char *name;  # Links a minimal program and checks the executable
290    lt_ptr address;  # for the system default hardcoded library path. In most cases,
291  }  # this is /usr/lib:/lib, but when the MPI compilers are used
292  lt_preloaded_symbols[[]] =  # the location of the communication and MPI libs are included too.
293  {  # If we don't find anything, use the default library path according
294  EOF  # to the aix ld manual.
295            sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext  AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
296            cat <<\EOF >> conftest.$ac_ext  [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297    {0, (lt_ptr) 0}  aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
298  };  }'`
299    # Check for a 64-bit object if we didn't find anything.
300    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; }
301    }'`; fi],[])
302    if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
303    ])# _LT_AC_SYS_LIBPATH_AIX
304    
 #ifdef __cplusplus  
 }  
 #endif  
 EOF  
           # Now try linking the two files.  
           mv conftest.$ac_objext conftstm.$ac_objext  
           save_LIBS="$LIBS"  
           save_CFLAGS="$CFLAGS"  
           LIBS="conftstm.$ac_objext"  
           CFLAGS="$CFLAGS$no_builtin_flag"  
           if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then  
             pipe_works=yes  
           fi  
           LIBS="$save_LIBS"  
           CFLAGS="$save_CFLAGS"  
         else  
           echo "cannot find nm_test_func in $nlist" >&AC_FD_CC  
         fi  
       else  
         echo "cannot find nm_test_var in $nlist" >&AC_FD_CC  
       fi  
     else  
       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC  
     fi  
   else  
     echo "$progname: failed program was:" >&AC_FD_CC  
     cat conftest.$ac_ext >&5  
   fi  
   rm -f conftest* conftst*  
305    
306    # Do not use the global_symbol_pipe unless it works.  # _LT_AC_SHELL_INIT(ARG)
307    if test "$pipe_works" = yes; then  # ----------------------
308      break  AC_DEFUN([_LT_AC_SHELL_INIT],
309    else  [ifdef([AC_DIVERSION_NOTICE],
310      lt_cv_sys_global_symbol_pipe=               [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
311    fi           [AC_DIVERT_PUSH(NOTICE)])
312  done  $1
313  ])  AC_DIVERT_POP
314  global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"  ])# _LT_AC_SHELL_INIT
 if test -z "$lt_cv_sys_global_symbol_pipe"; then  
   global_symbol_to_cdecl=  
   global_symbol_to_c_name_address=  
 else  
   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"  
   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"  
 fi  
 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";  
 then  
   AC_MSG_RESULT(failed)  
 else  
   AC_MSG_RESULT(ok)  
 fi  
 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE  
315    
 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
 # ---------------------------------  
 AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],  
 [# Find the correct PATH separator.  Usually this is `:', but  
 # DJGPP uses `;' like DOS.  
 if test "X${PATH_SEPARATOR+set}" != Xset; then  
   UNAME=${UNAME-`uname 2>/dev/null`}  
   case X$UNAME in  
     *-DOS) lt_cv_sys_path_separator=';' ;;  
     *)     lt_cv_sys_path_separator=':' ;;  
   esac  
   PATH_SEPARATOR=$lt_cv_sys_path_separator  
 fi  
 ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
316    
317  # _LT_AC_PROG_ECHO_BACKSLASH  # _LT_AC_PROG_ECHO_BACKSLASH
318  # --------------------------  # --------------------------
319  # Add some code to the start of the generated configure script which  # Add some code to the start of the generated configure script which
320  # will find an echo command which doesn't interpret backslashes.  # will find an echo command which doesn't interpret backslashes.
321  AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],  AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
322  [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],  [_LT_AC_SHELL_INIT([
                               [AC_DIVERT_PUSH(NOTICE)])  
 _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR  
   
323  # Check that we are running under the correct shell.  # Check that we are running under the correct shell.
324  SHELL=${CONFIG_SHELL-/bin/sh}  SHELL=${CONFIG_SHELL-/bin/sh}
325    
# Line 1168  if test "X[$]1" = X--no-reexec; then Line 337  if test "X[$]1" = X--no-reexec; then
337  elif test "X[$]1" = X--fallback-echo; then  elif test "X[$]1" = X--fallback-echo; then
338    # Avoid inline document here, it may be left over    # Avoid inline document here, it may be left over
339    :    :
340  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then  elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
341    # Yippee, $echo works!    # Yippee, $echo works!
342    :    :
343  else  else
# Line 1180  if test "X[$]1" = X--fallback-echo; then Line 349  if test "X[$]1" = X--fallback-echo; then
349    # used as fallback echo    # used as fallback echo
350    shift    shift
351    cat <<EOF    cat <<EOF
352  $*  [$]*
353  EOF  EOF
354    exit 0    exit 0
355  fi  fi
356    
357  # The HP-UX ksh and POSIX shell print the target directory to stdout  # The HP-UX ksh and POSIX shell print the target directory to stdout
358  # if CDPATH is set.  # if CDPATH is set.
359  if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi  (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
360    
361  if test -z "$ECHO"; then  if test -z "$ECHO"; then
362  if test "X${echo_test_string+set}" != Xset; then  if test "X${echo_test_string+set}" != Xset; then
363  # find a string as large as possible, as long as the shell can cope with it  # find a string as large as possible, as long as the shell can cope with it
364    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
365      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
366      if (echo_test_string="`eval $cmd`") 2>/dev/null &&      if (echo_test_string=`eval $cmd`) 2>/dev/null &&
367         echo_test_string="`eval $cmd`" &&         echo_test_string=`eval $cmd` &&
368         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null         (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
369      then      then
370        break        break
# Line 1214  else Line 383  else
383    #    #
384    # So, first we look for a working echo in the user's PATH.    # So, first we look for a working echo in the user's PATH.
385    
386    IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
387    for dir in $PATH /usr/ucb; do    for dir in $PATH /usr/ucb; do
388        IFS="$lt_save_ifs"
389      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
390         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
391         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
# Line 1224  else Line 394  else
394        break        break
395      fi      fi
396    done    done
397    IFS="$save_ifs"    IFS="$lt_save_ifs"
398    
399    if test "X$echo" = Xecho; then    if test "X$echo" = Xecho; then
400      # We didn't find a better echo, so look for alternatives.      # We didn't find a better echo, so look for alternatives.
# Line 1297  if test "X$ECHO" = "X$CONFIG_SHELL [$]0 Line 467  if test "X$ECHO" = "X$CONFIG_SHELL [$]0
467  fi  fi
468    
469  AC_SUBST(ECHO)  AC_SUBST(ECHO)
470  AC_DIVERT_POP  ])])# _LT_AC_PROG_ECHO_BACKSLASH
471  ])# _LT_AC_PROG_ECHO_BACKSLASH  
472    
473    # _LT_AC_LOCK
474    # -----------
475    AC_DEFUN([_LT_AC_LOCK],
476    [AC_ARG_ENABLE([libtool-lock],
477        [AC_HELP_STRING([--disable-libtool-lock],
478            [avoid locking (might break parallel builds)])])
479    test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
480    
481    # Some flags need to be propagated to the compiler or linker for good
482    # libtool support.
483    case $host in
484    ia64-*-hpux*)
485      # Find out which ABI we are using.
486      echo 'int i;' > conftest.$ac_ext
487      if AC_TRY_EVAL(ac_compile); then
488        case `/usr/bin/file conftest.$ac_objext` in
489        *ELF-32*)
490          HPUX_IA64_MODE="32"
491          ;;
492        *ELF-64*)
493          HPUX_IA64_MODE="64"
494          ;;
495        esac
496      fi
497      rm -rf conftest*
498      ;;
499    *-*-irix6*)
500      # Find out which ABI we are using.
501      echo '[#]line __oline__ "configure"' > conftest.$ac_ext
502      if AC_TRY_EVAL(ac_compile); then
503       if test "$lt_cv_prog_gnu_ld" = yes; then
504        case `/usr/bin/file conftest.$ac_objext` in
505        *32-bit*)
506          LD="${LD-ld} -melf32bsmip"
507          ;;
508        *N32*)
509          LD="${LD-ld} -melf32bmipn32"
510          ;;
511        *64-bit*)
512          LD="${LD-ld} -melf64bmip"
513          ;;
514        esac
515       else
516        case `/usr/bin/file conftest.$ac_objext` in
517        *32-bit*)
518          LD="${LD-ld} -32"
519          ;;
520        *N32*)
521          LD="${LD-ld} -n32"
522          ;;
523        *64-bit*)
524          LD="${LD-ld} -64"
525          ;;
526        esac
527       fi
528      fi
529      rm -rf conftest*
530      ;;
531    
532    x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
533      # Find out which ABI we are using.
534      echo 'int i;' > conftest.$ac_ext
535      if AC_TRY_EVAL(ac_compile); then
536        case `/usr/bin/file conftest.o` in
537        *32-bit*)
538          case $host in
539            x86_64-*linux*)
540              LD="${LD-ld} -m elf_i386"
541              ;;
542            ppc64-*linux*|powerpc64-*linux*)
543              LD="${LD-ld} -m elf32ppclinux"
544              ;;
545            s390x-*linux*)
546              LD="${LD-ld} -m elf_s390"
547              ;;
548            sparc64-*linux*)
549              LD="${LD-ld} -m elf32_sparc"
550              ;;
551          esac
552          ;;
553        *64-bit*)
554          case $host in
555            x86_64-*linux*)
556              LD="${LD-ld} -m elf_x86_64"
557              ;;
558            ppc*-*linux*|powerpc*-*linux*)
559              LD="${LD-ld} -m elf64ppc"
560              ;;
561            s390*-*linux*)
562              LD="${LD-ld} -m elf64_s390"
563              ;;
564            sparc*-*linux*)
565              LD="${LD-ld} -m elf64_sparc"
566              ;;
567          esac
568          ;;
569        esac
570      fi
571      rm -rf conftest*
572      ;;
573    
574    *-*-sco3.2v5*)
575      # On SCO OpenServer 5, we need -belf to get full-featured binaries.
576      SAVE_CFLAGS="$CFLAGS"
577      CFLAGS="$CFLAGS -belf"
578      AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
579        [AC_LANG_PUSH(C)
580         AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
581         AC_LANG_POP])
582      if test x"$lt_cv_cc_needs_belf" != x"yes"; then
583        # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
584        CFLAGS="$SAVE_CFLAGS"
585      fi
586      ;;
587    sparc*-*solaris*)
588      # Find out which ABI we are using.
589      echo 'int i;' > conftest.$ac_ext
590      if AC_TRY_EVAL(ac_compile); then
591        case `/usr/bin/file conftest.o` in
592        *64-bit*)
593          case $lt_cv_prog_gnu_ld in
594          yes*) LD="${LD-ld} -m elf64_sparc" ;;
595          *)    LD="${LD-ld} -64" ;;
596          esac
597          ;;
598        esac
599      fi
600      rm -rf conftest*
601      ;;
602    
603    AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
604    [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
605      AC_CHECK_TOOL(DLLTOOL, dlltool, false)
606      AC_CHECK_TOOL(AS, as, false)
607      AC_CHECK_TOOL(OBJDUMP, objdump, false)
608      ;;
609      ])
610    esac
611    
612    need_locks="$enable_libtool_lock"
613    
614    ])# _LT_AC_LOCK
615    
616    
617    # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
618    #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
619    # ----------------------------------------------------------------
620    # Check whether the given compiler option works
621    AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
622    [AC_REQUIRE([LT_AC_PROG_SED])
623    AC_CACHE_CHECK([$1], [$2],
624      [$2=no
625      ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
626       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
627       lt_compiler_flag="$3"
628       # Insert the option either (1) after the last *FLAGS variable, or
629       # (2) before a word containing "conftest.", or (3) at the end.
630       # Note that $ac_compile itself does not contain backslashes and begins
631       # with a dollar sign (not a hyphen), so the echo should work correctly.
632       # The option is referenced via a variable to avoid confusing sed.
633       lt_compile=`echo "$ac_compile" | $SED \
634       -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
635       -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
636       -e 's:$: $lt_compiler_flag:'`
637       (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
638       (eval "$lt_compile" 2>conftest.err)
639       ac_status=$?
640       cat conftest.err >&AS_MESSAGE_LOG_FD
641       echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
642       if (exit $ac_status) && test -s "$ac_outfile"; then
643         # The compiler can only warn and ignore the option if not recognized
644         # So say no if there are warnings other than the usual output.
645         $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
646         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
647         if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
648           $2=yes
649         fi
650       fi
651       $rm conftest*
652    ])
653    
654    if test x"[$]$2" = xyes; then
655        ifelse([$5], , :, [$5])
656    else
657        ifelse([$6], , :, [$6])
658    fi
659    ])# AC_LIBTOOL_COMPILER_OPTION
660    
661    
662    # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
663    #                          [ACTION-SUCCESS], [ACTION-FAILURE])
664    # ------------------------------------------------------------
665    # Check whether the given compiler option works
666    AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
667    [AC_CACHE_CHECK([$1], [$2],
668      [$2=no
669       save_LDFLAGS="$LDFLAGS"
670       LDFLAGS="$LDFLAGS $3"
671       printf "$lt_simple_link_test_code" > conftest.$ac_ext
672       if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
673         # The linker can only warn and ignore the option if not recognized
674         # So say no if there are warnings
675         if test -s conftest.err; then
676           # Append any errors to the config.log.
677           cat conftest.err 1>&AS_MESSAGE_LOG_FD
678           $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
679           $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
680           if diff conftest.exp conftest.er2 >/dev/null; then
681             $2=yes
682           fi
683         else
684           $2=yes
685         fi
686       fi
687       $rm conftest*
688       LDFLAGS="$save_LDFLAGS"
689    ])
690    
691    if test x"[$]$2" = xyes; then
692        ifelse([$4], , :, [$4])
693    else
694        ifelse([$5], , :, [$5])
695    fi
696    ])# AC_LIBTOOL_LINKER_OPTION
697    
698    
699    # AC_LIBTOOL_SYS_MAX_CMD_LEN
700    # --------------------------
701    AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
702    [# find the maximum length of command line arguments
703    AC_MSG_CHECKING([the maximum length of command line arguments])
704    AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
705      i=0
706      teststring="ABCD"
707    
708      case $build_os in
709      msdosdjgpp*)
710        # On DJGPP, this test can blow up pretty badly due to problems in libc
711        # (any single argument exceeding 2000 bytes causes a buffer overrun
712        # during glob expansion).  Even if it were fixed, the result of this
713        # check would be larger than it should be.
714        lt_cv_sys_max_cmd_len=12288;    # 12K is about right
715        ;;
716    
717      gnu*)
718        # Under GNU Hurd, this test is not required because there is
719        # no limit to the length of command line arguments.
720        # Libtool will interpret -1 as no limit whatsoever
721        lt_cv_sys_max_cmd_len=-1;
722        ;;
723    
724      cygwin* | mingw*)
725        # On Win9x/ME, this test blows up -- it succeeds, but takes
726        # about 5 minutes as the teststring grows exponentially.
727        # Worse, since 9x/ME are not pre-emptively multitasking,
728        # you end up with a "frozen" computer, even though with patience
729        # the test eventually succeeds (with a max line length of 256k).
730        # Instead, let's just punt: use the minimum linelength reported by
731        # all of the supported platforms: 8192 (on NT/2K/XP).
732        lt_cv_sys_max_cmd_len=8192;
733        ;;
734    
735      amigaos*)
736        # On AmigaOS with pdksh, this test takes hours, literally.
737        # So we just punt and use a minimum line length of 8192.
738        lt_cv_sys_max_cmd_len=8192;
739        ;;
740    
741      netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
742        # This has been around since 386BSD, at least.  Likely further.
743        if test -x /sbin/sysctl; then
744          lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
745        elif test -x /usr/sbin/sysctl; then
746          lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
747        else
748          lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
749        fi
750        # And add a safety zone
751        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
752        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
753        ;;
754    
755      interix*)
756        # We know the value 262144 and hardcode it with a safety zone (like BSD)
757        lt_cv_sys_max_cmd_len=196608
758        ;;
759    
760      osf*)
761        # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
762        # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
763        # nice to cause kernel panics so lets avoid the loop below.
764        # First set a reasonable default.
765        lt_cv_sys_max_cmd_len=16384
766        #
767        if test -x /sbin/sysconfig; then
768          case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
769            *1*) lt_cv_sys_max_cmd_len=-1 ;;
770          esac
771        fi
772        ;;
773      sco3.2v5*)
774        lt_cv_sys_max_cmd_len=102400
775        ;;
776      sysv5* | sco5v6* | sysv4.2uw2*)
777        kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
778        if test -n "$kargmax"; then
779          lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
780        else
781          lt_cv_sys_max_cmd_len=32768
782        fi
783        ;;
784      *)
785        # If test is not a shell built-in, we'll probably end up computing a
786        # maximum length that is only half of the actual maximum length, but
787        # we can't tell.
788        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789        while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
790                   = "XX$teststring") >/dev/null 2>&1 &&
791                new_result=`expr "X$teststring" : ".*" 2>&1` &&
792                lt_cv_sys_max_cmd_len=$new_result &&
793                test $i != 17 # 1/2 MB should be enough
794        do
795          i=`expr $i + 1`
796          teststring=$teststring$teststring
797        done
798        teststring=
799        # Add a significant safety factor because C++ compilers can tack on massive
800        # amounts of additional arguments before passing them to the linker.
801        # It appears as though 1/2 is a usable value.
802        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
803        ;;
804      esac
805    ])
806    if test -n $lt_cv_sys_max_cmd_len ; then
807      AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
808    else
809      AC_MSG_RESULT(none)
810    fi
811    ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
812    
813    
814    # _LT_AC_CHECK_DLFCN
815    # ------------------
816    AC_DEFUN([_LT_AC_CHECK_DLFCN],
817    [AC_CHECK_HEADERS(dlfcn.h)dnl
818    ])# _LT_AC_CHECK_DLFCN
819    
820    
821  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,  # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
822  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)  #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
823  # ------------------------------------------------------------------  # ---------------------------------------------------------------------
824  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],  AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
825  [if test "$cross_compiling" = yes; then :  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
826    if test "$cross_compiling" = yes; then :
827    [$4]    [$4]
828  else  else
   AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  
829    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
830    lt_status=$lt_dlunknown    lt_status=$lt_dlunknown
831    cat > conftest.$ac_ext <<EOF    cat > conftest.$ac_ext <<EOF
# Line 1368  int main () Line 886  int main ()
886        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;        else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
887        /* dlclose (self); */        /* dlclose (self); */
888      }      }
889      else
890        puts (dlerror ());
891    
892      exit (status);      exit (status);
893  }]  }]
894  EOF  EOF
895    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
896      (./conftest; exit; ) 2>/dev/null      (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
897      lt_status=$?      lt_status=$?
898      case x$lt_status in      case x$lt_status in
899        x$lt_dlno_uscore) $1 ;;        x$lt_dlno_uscore) $1 ;;
900        x$lt_dlneed_uscore) $2 ;;        x$lt_dlneed_uscore) $2 ;;
901        x$lt_unknown|x*) $3 ;;        x$lt_dlunknown|x*) $3 ;;
902      esac      esac
903    else :    else :
904      # compilation failed      # compilation failed
# Line 1388  fi Line 908  fi
908  rm -fr conftest*  rm -fr conftest*
909  ])# _LT_AC_TRY_DLOPEN_SELF  ])# _LT_AC_TRY_DLOPEN_SELF
910    
911    
912  # AC_LIBTOOL_DLOPEN_SELF  # AC_LIBTOOL_DLOPEN_SELF
913  # -------------------  # ----------------------
914  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],  AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
915  [if test "x$enable_dlopen" != xyes; then  [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
916    if test "x$enable_dlopen" != xyes; then
917    enable_dlopen=unknown    enable_dlopen=unknown
918    enable_dlopen_self=unknown    enable_dlopen_self=unknown
919    enable_dlopen_self_static=unknown    enable_dlopen_self_static=unknown
# Line 1406  else Line 928  else
928      lt_cv_dlopen_self=yes      lt_cv_dlopen_self=yes
929      ;;      ;;
930    
931    cygwin* | mingw* | pw32*)    mingw* | pw32*)
932      lt_cv_dlopen="LoadLibrary"      lt_cv_dlopen="LoadLibrary"
933      lt_cv_dlopen_libs=      lt_cv_dlopen_libs=
934     ;;     ;;
935    
936      cygwin*)
937        lt_cv_dlopen="dlopen"
938        lt_cv_dlopen_libs=
939       ;;
940    
941      darwin*)
942      # if libdl is installed we need to link against it
943        AC_CHECK_LIB([dl], [dlopen],
944                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
945        lt_cv_dlopen="dyld"
946        lt_cv_dlopen_libs=
947        lt_cv_dlopen_self=yes
948        ])
949       ;;
950    
951    *)    *)
952      AC_CHECK_FUNC([shl_load],      AC_CHECK_FUNC([shl_load],
953            [lt_cv_dlopen="shl_load"],            [lt_cv_dlopen="shl_load"],
954        [AC_CHECK_LIB([dld], [shl_load],        [AC_CHECK_LIB([dld], [shl_load],
955              [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],              [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
956          [AC_CHECK_FUNC([dlopen],          [AC_CHECK_FUNC([dlopen],
957                [lt_cv_dlopen="dlopen"],                [lt_cv_dlopen="dlopen"],
958            [AC_CHECK_LIB([dl], [dlopen],            [AC_CHECK_LIB([dl], [dlopen],
959                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
960              [AC_CHECK_LIB([svld], [dlopen],              [AC_CHECK_LIB([svld], [dlopen],
961                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],                    [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
962                [AC_CHECK_LIB([dld], [dld_link],                [AC_CHECK_LIB([dld], [dld_link],
963                      [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])                      [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
964                ])                ])
965              ])              ])
966            ])            ])
# Line 1441  else Line 978  else
978    case $lt_cv_dlopen in    case $lt_cv_dlopen in
979    dlopen)    dlopen)
980      save_CPPFLAGS="$CPPFLAGS"      save_CPPFLAGS="$CPPFLAGS"
     AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl  
981      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"      test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
982    
983      save_LDFLAGS="$LDFLAGS"      save_LDFLAGS="$LDFLAGS"
984      eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
985    
986      save_LIBS="$LIBS"      save_LIBS="$LIBS"
987      LIBS="$lt_cv_dlopen_libs $LIBS"      LIBS="$lt_cv_dlopen_libs $LIBS"
# Line 1458  else Line 994  else
994      ])      ])
995    
996      if test "x$lt_cv_dlopen_self" = xyes; then      if test "x$lt_cv_dlopen_self" = xyes; then
997        LDFLAGS="$LDFLAGS $link_static_flag"        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
998        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
999            lt_cv_dlopen_self_static, [dnl            lt_cv_dlopen_self_static, [dnl
1000            _LT_AC_TRY_DLOPEN_SELF(            _LT_AC_TRY_DLOPEN_SELF(
# Line 1485  else Line 1021  else
1021  fi  fi
1022  ])# AC_LIBTOOL_DLOPEN_SELF  ])# AC_LIBTOOL_DLOPEN_SELF
1023    
 AC_DEFUN([_LT_AC_LTCONFIG_HACK],  
 [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl  
 # Sed substitution that helps us do robust quoting.  It backslashifies  
 # metacharacters that are still active within double-quoted strings.  
 Xsed='sed -e s/^X//'  
 sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'  
   
 # Same as above, but do not quote variable references.  
 double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'  
   
 # Sed substitution to delay expansion of an escaped shell variable in a  
 # double_quote_subst'ed string.  
 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'  
   
 # Constants:  
 rm="rm -f"  
1024    
1025  # Global variables:  # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1026  default_ofile=libtool  # ---------------------------------
1027  can_build_shared=yes  # Check to see if options -c and -o are simultaneously supported by compiler
1028    AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1029  # All known linkers require a `.a' archive for static linking (except M$VC,  [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1030  # which needs '.lib').  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1031  libext=a    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1032  ltmain="$ac_aux_dir/ltmain.sh"    [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1033  ofile="$default_ofile"     $rm -r conftest 2>/dev/null
1034  with_gnu_ld="$lt_cv_prog_gnu_ld"     mkdir conftest
1035  need_locks="$enable_libtool_lock"     cd conftest
1036       mkdir out
1037  old_CC="$CC"     printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1038  old_CFLAGS="$CFLAGS"  
1039       lt_compiler_flag="-o out/conftest2.$ac_objext"
1040  # Set sane defaults for various variables     # Insert the option either (1) after the last *FLAGS variable, or
1041  test -z "$AR" && AR=ar     # (2) before a word containing "conftest.", or (3) at the end.
1042  test -z "$AR_FLAGS" && AR_FLAGS=cru     # Note that $ac_compile itself does not contain backslashes and begins
1043  test -z "$AS" && AS=as     # with a dollar sign (not a hyphen), so the echo should work correctly.
1044  test -z "$CC" && CC=cc     lt_compile=`echo "$ac_compile" | $SED \
1045  test -z "$DLLTOOL" && DLLTOOL=dlltool     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1046  test -z "$LD" && LD=ld     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1047  test -z "$LN_S" && LN_S="ln -s"     -e 's:$: $lt_compiler_flag:'`
1048  test -z "$MAGIC_CMD" && MAGIC_CMD=file     (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1049  test -z "$NM" && NM=nm     (eval "$lt_compile" 2>out/conftest.err)
1050  test -z "$OBJDUMP" && OBJDUMP=objdump     ac_status=$?
1051  test -z "$RANLIB" && RANLIB=:     cat out/conftest.err >&AS_MESSAGE_LOG_FD
1052  test -z "$STRIP" && STRIP=:     echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1053  test -z "$ac_objext" && ac_objext=o     if (exit $ac_status) && test -s out/conftest2.$ac_objext
1054       then
1055  if test x"$host" != x"$build"; then       # The compiler can only warn and ignore the option if not recognized
1056    ac_tool_prefix=${host_alias}-       # So say no if there are warnings
1057  else       $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1058    ac_tool_prefix=       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1059  fi       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1060           _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1061  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.       fi
1062  case $host_os in     fi
1063  linux-gnu*) ;;     chmod u+w . 2>&AS_MESSAGE_LOG_FD
1064  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`     $rm conftest*
1065  esac     # SGI C++ compiler will create directory out/ii_files/ for
1066       # template instantiation
1067  case $host_os in     test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1068  aix3*)     $rm out/* && rmdir out
1069    # AIX sometimes has problems with the GCC collect2 program.  For some     cd ..
1070    # reason, if we set the COLLECT_NAMES environment variable, the problems     rmdir conftest
1071    # vanish in a puff of smoke.     $rm conftest*
   if test "X${COLLECT_NAMES+set}" != Xset; then  
     COLLECT_NAMES=  
     export COLLECT_NAMES  
   fi  
   ;;  
 esac  
   
 # Determine commands to create old-style static archives.  
 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'  
 old_postinstall_cmds='chmod 644 $oldlib'  
 old_postuninstall_cmds=  
   
 if test -n "$RANLIB"; then  
   case $host_os in  
   openbsd*)  
     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"  
     ;;  
   *)  
     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"  
     ;;  
   esac  
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"  
 fi  
   
 # Allow CC to be a program name with arguments.  
 set dummy $CC  
 compiler="[$]2"  
   
 AC_MSG_CHECKING([for objdir])  
 rm -f .libs 2>/dev/null  
 mkdir .libs 2>/dev/null  
 if test -d .libs; then  
   objdir=.libs  
 else  
   # MS-DOS does not allow filenames that begin with a dot.  
   objdir=_libs  
 fi  
 rmdir .libs 2>/dev/null  
 AC_MSG_RESULT($objdir)  
   
   
 AC_ARG_WITH(pic,  
 [  --with-pic              try to use only PIC/non-PIC objects [default=use both]],  
 pic_mode="$withval", pic_mode=default)  
 test -z "$pic_mode" && pic_mode=default  
   
 # We assume here that the value for lt_cv_prog_cc_pic will not be cached  
 # in isolation, and that seeing it set (from the cache) indicates that  
 # the associated values are set (in the cache) correctly too.  
 AC_MSG_CHECKING([for $compiler option to produce PIC])  
 AC_CACHE_VAL(lt_cv_prog_cc_pic,  
 [ lt_cv_prog_cc_pic=  
   lt_cv_prog_cc_shlib=  
   lt_cv_prog_cc_wl=  
   lt_cv_prog_cc_static=  
   lt_cv_prog_cc_no_builtin=  
   lt_cv_prog_cc_can_build_shared=$can_build_shared  
   
   if test "$GCC" = yes; then  
     lt_cv_prog_cc_wl='-Wl,'  
     lt_cv_prog_cc_static='-static'  
   
     case $host_os in  
     aix*)  
       # Below there is a dirty hack to force normal static linking with -ldl  
       # The problem is because libdl dynamically linked with both libc and  
       # libC (AIX C++ library), which obviously doesn't included in libraries  
       # list by gcc. This cause undefined symbols with -static flags.  
       # This hack allows C programs to be linked with "-static -ldl", but  
       # not sure about C++ programs.  
       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"  
       ;;  
     amigaos*)  
       # FIXME: we need at least 68020 code to build shared libraries, but  
       # adding the `-m68020' flag to GCC prevents building anything better,  
       # like `-m68040'.  
       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'  
       ;;  
     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)  
       # PIC is the default for these OSes.  
       ;;  
     darwin* | rhapsody*)  
       # PIC is the default on this platform  
       # Common symbols not allowed in MH_DYLIB files  
       lt_cv_prog_cc_pic='-fno-common'  
       ;;  
     cygwin* | mingw* | pw32* | os2*)  
       # This hack is so that the source file can tell whether it is being  
       # built for inclusion in a dll (and should export symbols for example).  
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
       ;;  
     sysv4*MP*)  
       if test -d /usr/nec; then  
          lt_cv_prog_cc_pic=-Kconform_pic  
       fi  
       ;;  
     *)  
       lt_cv_prog_cc_pic='-fPIC'  
       ;;  
     esac  
   else  
     # PORTME Check for PIC flags for the system compiler.  
     case $host_os in  
     aix3* | aix4* | aix5*)  
       lt_cv_prog_cc_wl='-Wl,'  
       # All AIX code is PIC.  
       if test "$host_cpu" = ia64; then  
         # AIX 5 now supports IA64 processor  
         lt_cv_prog_cc_static='-Bstatic'  
       else  
         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'  
       fi  
       ;;  
   
     hpux9* | hpux10* | hpux11*)  
       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?  
       lt_cv_prog_cc_wl='-Wl,'  
       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"  
       lt_cv_prog_cc_pic='+Z'  
       ;;  
   
     irix5* | irix6* | nonstopux*)  
       lt_cv_prog_cc_wl='-Wl,'  
       lt_cv_prog_cc_static='-non_shared'  
       # PIC (with -KPIC) is the default.  
       ;;  
   
     cygwin* | mingw* | pw32* | os2*)  
       # This hack is so that the source file can tell whether it is being  
       # built for inclusion in a dll (and should export symbols for example).  
       lt_cv_prog_cc_pic='-DDLL_EXPORT'  
       ;;  
   
     newsos6)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       ;;  
   
     osf3* | osf4* | osf5*)  
       # All OSF/1 code is PIC.  
       lt_cv_prog_cc_wl='-Wl,'  
       lt_cv_prog_cc_static='-non_shared'  
       ;;  
   
     sco3.2v5*)  
       lt_cv_prog_cc_pic='-Kpic'  
       lt_cv_prog_cc_static='-dn'  
       lt_cv_prog_cc_shlib='-belf'  
       ;;  
   
     solaris*)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Wl,'  
       ;;  
   
     sunos4*)  
       lt_cv_prog_cc_pic='-PIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Qoption ld '  
       ;;  
   
     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  
       lt_cv_prog_cc_pic='-KPIC'  
       lt_cv_prog_cc_static='-Bstatic'  
       lt_cv_prog_cc_wl='-Wl,'  
       ;;  
   
     uts4*)  
       lt_cv_prog_cc_pic='-pic'  
       lt_cv_prog_cc_static='-Bstatic'  
       ;;  
   
     sysv4*MP*)  
       if test -d /usr/nec ;then  
         lt_cv_prog_cc_pic='-Kconform_pic'  
         lt_cv_prog_cc_static='-Bstatic'  
       fi  
       ;;  
   
     *)  
       lt_cv_prog_cc_can_build_shared=no  
       ;;  
     esac  
   fi  
 ])  
 if test -z "$lt_cv_prog_cc_pic"; then  
   AC_MSG_RESULT([none])  
 else  
   AC_MSG_RESULT([$lt_cv_prog_cc_pic])  
   
   # Check to make sure the pic_flag actually works.  
   AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])  
   AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl  
     save_CFLAGS="$CFLAGS"  
     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"  
     AC_TRY_COMPILE([], [], [dnl  
       case $host_os in  
       hpux9* | hpux10* | hpux11*)  
         # On HP-UX, both CC and GCC only warn that PIC is supported... then  
         # they create non-PIC objects.  So, if there were any warnings, we  
         # assume that PIC is not supported.  
         if test -s conftest.err; then  
           lt_cv_prog_cc_pic_works=no  
         else  
           lt_cv_prog_cc_pic_works=yes  
         fi  
         ;;  
       *)  
         lt_cv_prog_cc_pic_works=yes  
         ;;  
       esac  
     ], [dnl  
       lt_cv_prog_cc_pic_works=no  
     ])  
     CFLAGS="$save_CFLAGS"  
   ])  
   
   if test "X$lt_cv_prog_cc_pic_works" = Xno; then  
     lt_cv_prog_cc_pic=  
     lt_cv_prog_cc_can_build_shared=no  
   else  
     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"  
   fi  
   
   AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])  
 fi  
   
 # Check for any special shared library compilation flags.  
 if test -n "$lt_cv_prog_cc_shlib"; then  
   AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])  
   if echo "$old_CC $old_CFLAGS " | egrep -e "[[         ]]$lt_cv_prog_cc_shlib[[        ]]" >/dev/null; then :  
   else  
    AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])  
     lt_cv_prog_cc_can_build_shared=no  
   fi  
 fi  
   
 AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])  
 AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl  
   lt_cv_prog_cc_static_works=no  
   save_LDFLAGS="$LDFLAGS"  
   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"  
   AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])  
   LDFLAGS="$save_LDFLAGS"  
 ])  
   
 # Belt *and* braces to stop my trousers falling down:  
 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=  
 AC_MSG_RESULT([$lt_cv_prog_cc_static_works])  
   
 pic_flag="$lt_cv_prog_cc_pic"  
 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"  
 wl="$lt_cv_prog_cc_wl"  
 link_static_flag="$lt_cv_prog_cc_static"  
 no_builtin_flag="$lt_cv_prog_cc_no_builtin"  
 can_build_shared="$lt_cv_prog_cc_can_build_shared"  
   
   
 # Check to see if options -o and -c are simultaneously supported by compiler  
 AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])  
 AC_CACHE_VAL([lt_cv_compiler_c_o], [  
 $rm -r conftest 2>/dev/null  
 mkdir conftest  
 cd conftest  
 echo "int some_variable = 0;" > conftest.$ac_ext  
 mkdir out  
 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers  
 # that will create temporary files in the current directory regardless of  
 # the output directory.  Thus, making CWD read-only will cause this test  
 # to fail, enabling locking or at least warning the user not to do parallel  
 # builds.  
 chmod -w .  
 save_CFLAGS="$CFLAGS"  
 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"  
 compiler_c_o=no  
 if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then  
   # The compiler can only warn and ignore the option if not recognized  
   # So say no if there are warnings  
   if test -s out/conftest.err; then  
     lt_cv_compiler_c_o=no  
   else  
     lt_cv_compiler_c_o=yes  
   fi  
 else  
   # Append any errors to the config.log.  
   cat out/conftest.err 1>&AC_FD_CC  
   lt_cv_compiler_c_o=no  
 fi  
 CFLAGS="$save_CFLAGS"  
 chmod u+w .  
 $rm conftest* out/*  
 rmdir out  
 cd ..  
 rmdir conftest  
 $rm -r conftest 2>/dev/null  
1072  ])  ])
1073  compiler_c_o=$lt_cv_compiler_c_o  ])# AC_LIBTOOL_PROG_CC_C_O
 AC_MSG_RESULT([$compiler_c_o])  
1074    
 if test x"$compiler_c_o" = x"yes"; then  
   # Check to see if we can write to a .lo  
   AC_MSG_CHECKING([if $compiler supports -c -o file.lo])  
   AC_CACHE_VAL([lt_cv_compiler_o_lo], [  
   lt_cv_compiler_o_lo=no  
   save_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -c -o conftest.lo"  
   save_objext="$ac_objext"  
   ac_objext=lo  
   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl  
     # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       lt_cv_compiler_o_lo=no  
     else  
       lt_cv_compiler_o_lo=yes  
     fi  
   ])  
   ac_objext="$save_objext"  
   CFLAGS="$save_CFLAGS"  
   ])  
   compiler_o_lo=$lt_cv_compiler_o_lo  
   AC_MSG_RESULT([$compiler_o_lo])  
 else  
   compiler_o_lo=no  
 fi  
1075    
1076    # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1077    # -----------------------------------------
1078  # Check to see if we can do hard links to lock some files if needed  # Check to see if we can do hard links to lock some files if needed
1079    AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1080    [AC_REQUIRE([_LT_AC_LOCK])dnl
1081    
1082  hard_links="nottested"  hard_links="nottested"
1083  if test "$compiler_c_o" = no && test "$need_locks" != no; then  if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1084    # do not overwrite the value of need_locks provided by the user    # do not overwrite the value of need_locks provided by the user
1085    AC_MSG_CHECKING([if we can lock with hard links])    AC_MSG_CHECKING([if we can lock with hard links])
1086    hard_links=yes    hard_links=yes
# Line 1889  if test "$compiler_c_o" = no && test "$n Line 1091  if test "$compiler_c_o" = no && test "$n
1091    ln conftest.a conftest.b 2>/dev/null && hard_links=no    ln conftest.a conftest.b 2>/dev/null && hard_links=no
1092    AC_MSG_RESULT([$hard_links])    AC_MSG_RESULT([$hard_links])
1093    if test "$hard_links" = no; then    if test "$hard_links" = no; then
1094      AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])      AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1095      need_locks=warn      need_locks=warn
1096    fi    fi
1097  else  else
1098    need_locks=no    need_locks=no
1099  fi  fi
1100    ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1101    
 if test "$GCC" = yes; then  
   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler  
   AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])  
   echo "int some_variable = 0;" > conftest.$ac_ext  
   save_CFLAGS="$CFLAGS"  
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"  
   compiler_rtti_exceptions=no  
   AC_TRY_COMPILE([], [int some_variable = 0;], [dnl  
     # The compiler can only warn and ignore the option if not recognized  
     # So say no if there are warnings  
     if test -s conftest.err; then  
       compiler_rtti_exceptions=no  
     else  
       compiler_rtti_exceptions=yes  
     fi  
   ])  
   CFLAGS="$save_CFLAGS"  
   AC_MSG_RESULT([$compiler_rtti_exceptions])  
   
   if test "$compiler_rtti_exceptions" = "yes"; then  
     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'  
   else  
     no_builtin_flag=' -fno-builtin'  
   fi  
 fi  
   
 # See if the linker supports building shared libraries.  
 AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])  
   
 allow_undefined_flag=  
 no_undefined_flag=  
 need_lib_prefix=unknown  
 need_version=unknown  
 # when you set need_version to no, make sure it does not cause -set_version  
 # flags to be left without arguments  
 archive_cmds=  
 archive_expsym_cmds=  
 old_archive_from_new_cmds=  
 old_archive_from_expsyms_cmds=  
 export_dynamic_flag_spec=  
 whole_archive_flag_spec=  
 thread_safe_flag_spec=  
 hardcode_into_libs=no  
 hardcode_libdir_flag_spec=  
 hardcode_libdir_separator=  
 hardcode_direct=no  
 hardcode_minus_L=no  
 hardcode_shlibpath_var=unsupported  
 runpath_var=  
 link_all_deplibs=unknown  
 always_export_symbols=no  
 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'  
 # include_expsyms should be a list of space-separated symbols to be *always*  
 # included in the symbol list  
 include_expsyms=  
 # exclude_expsyms can be an egrep regular expression of symbols to exclude  
 # it will be wrapped by ` (' and `)$', so one must not match beginning or  
 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',  
 # as well as any symbol that contains `d'.  
 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"  
 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out  
 # platforms (ab)use it in PIC code, but their linkers get confused if  
 # the symbol is explicitly referenced.  Since portable code cannot  
 # rely on this symbol name, it's probably fine to never include it in  
 # preloaded symbol tables.  
 extract_expsyms_cmds=  
   
 case $host_os in  
 cygwin* | mingw* | pw32*)  
   # FIXME: the MSVC++ port hasn't been tested in a loooong time  
   # When not using gcc, we currently assume that we are using  
   # Microsoft Visual C++.  
   if test "$GCC" != yes; then  
     with_gnu_ld=no  
   fi  
   ;;  
 openbsd*)  
   with_gnu_ld=no  
   ;;  
 esac  
   
 ld_shlibs=yes  
 if test "$with_gnu_ld" = yes; then  
   # If archive_cmds runs LD, not CC, wlarc should be empty  
   wlarc='${wl}'  
   
   # See if GNU ld supports shared libraries.  
   case $host_os in  
   aix3* | aix4* | aix5*)  
     # On AIX, the GNU linker is very broken  
     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.  
     ld_shlibs=no  
     cat <<EOF 1>&2  
   
 *** Warning: the GNU linker, at least up to release 2.9.1, is reported  
 *** to be unable to reliably create shared libraries on AIX.  
 *** Therefore, libtool is disabling shared libraries support.  If you  
 *** really care for shared libraries, you may want to modify your PATH  
 *** so that a non-GNU linker is found, and then restart.  
   
 EOF  
     ;;  
   
   amigaos*)  
     archive_cmds='$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)'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
   
     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports  
     # that the semantics of dynamic libraries on AmigaOS, at least up  
     # to version 4, is to share data among multiple programs linked  
     # with the same dynamic library.  Since this doesn't match the  
     # behavior of shared libraries on other platforms, we can use  
     # them.  
     ld_shlibs=no  
     ;;  
   
   beos*)  
     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then  
       allow_undefined_flag=unsupported  
       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc  
       # support --undefined.  This deserves some investigation.  FIXME  
       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
   
   cygwin* | mingw* | pw32*)  
     # hardcode_libdir_flag_spec is actually meaningless, as there is  
     # no search path for DLLs.  
     hardcode_libdir_flag_spec='-L$libdir'  
     allow_undefined_flag=unsupported  
     always_export_symbols=yes  
   
     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \  
       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~  
       test -f $output_objdir/impgen.exe || (cd $output_objdir && \  
       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \  
       else $CC -o impgen impgen.c ; fi)~  
       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'  
   
     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'  
   
     # cygwin and mingw dlls have different entry points and sets of symbols  
     # to exclude.  
     # FIXME: what about values for MSVC?  
     dll_entry=__cygwin_dll_entry@12  
     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~  
     case $host_os in  
     mingw*)  
       # mingw values  
       dll_entry=_DllMainCRTStartup@12  
       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~  
       ;;  
     esac  
   
     # mingw and cygwin differ, and it's simplest to just exclude the union  
     # of the two symbol sets.  
     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12  
   
     # recent cygwin and mingw systems supply a stub DllMain which the user  
     # can override, but on older systems we have to supply one (in ltdll.c)  
     if test "x$lt_cv_need_dllmain" = "xyes"; then  
       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "  
       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~  
         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'  
     else  
       ltdll_obj=  
       ltdll_cmds=  
     fi  
   
     # Extract the symbol export list from an `--export-all' def file,  
     # then regenerate the def file from the symbol export list, so that  
     # the compiled dll only exports the symbol export list.  
     # Be careful not to strip the DATA tag left be newer dlltools.  
     export_symbols_cmds="$ltdll_cmds"'  
       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~  
       sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'  
   
     # If the export-symbols file already is a .def file (1st line  
     # is EXPORTS), use it as is.  
     # If DATA tags from a recent dlltool are present, honour them!  
     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then  
         cp $export_symbols $output_objdir/$soname-def;  
       else  
         echo EXPORTS > $output_objdir/$soname-def;  
         _lt_hint=1;  
         cat $export_symbols | while read symbol; do  
          set dummy \$symbol;  
          case \[$]# in  
            2) echo "   \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;  
            4) echo "   \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;  
            *) echo "     \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;  
          esac;  
          _lt_hint=`expr 1 + \$_lt_hint`;  
         done;  
       fi~  
       '"$ltdll_cmds"'  
       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~  
       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~  
       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~  
       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~  
       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'  
     ;;  
   
   netbsd*)  
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then  
       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'  
       wlarc=  
     else  
       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     fi  
     ;;  
   
   solaris* | sysv5*)  
     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then  
       ld_shlibs=no  
       cat <<EOF 1>&2  
   
 *** Warning: The releases 2.8.* of the GNU linker cannot reliably  
 *** create shared libraries on Solaris systems.  Therefore, libtool  
 *** is disabling shared libraries support.  We urge you to upgrade GNU  
 *** binutils to release 2.9.1 or newer.  Another option is to modify  
 *** your PATH or compiler configuration so that the native linker is  
 *** used, and then restart.  
   
 EOF  
     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then  
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
1102    
1103    sunos4*)  # AC_LIBTOOL_OBJDIR
1104      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # -----------------
1105      wlarc=  AC_DEFUN([AC_LIBTOOL_OBJDIR],
1106      hardcode_direct=yes  [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1107      hardcode_shlibpath_var=no  [rm -f .libs 2>/dev/null
1108      ;;  mkdir .libs 2>/dev/null
1109    if test -d .libs; then
1110    *)    lt_cv_objdir=.libs
     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then  
       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'  
       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'  
     else  
       ld_shlibs=no  
     fi  
     ;;  
   esac  
   
   if test "$ld_shlibs" = yes; then  
     runpath_var=LD_RUN_PATH  
     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'  
     export_dynamic_flag_spec='${wl}--export-dynamic'  
     case $host_os in  
     cygwin* | mingw* | pw32*)  
       # dlltool doesn't understand --whole-archive et. al.  
       whole_archive_flag_spec=  
       ;;  
     *)  
       # ancient GNU ld didn't support --whole-archive et. al.  
       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then  
         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'  
       else  
         whole_archive_flag_spec=  
       fi  
       ;;  
     esac  
   fi  
1111  else  else
1112    # PORTME fill in a description of your system's linker (not GNU ld)    # MS-DOS does not allow filenames that begin with a dot.
1113    case $host_os in    lt_cv_objdir=_libs
   aix3*)  
     allow_undefined_flag=unsupported  
     always_export_symbols=yes  
     archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'  
     # Note: this linker hardcodes the directories in LIBPATH if there  
     # are no directories specified by -L.  
     hardcode_minus_L=yes  
     if test "$GCC" = yes && test -z "$link_static_flag"; then  
       # Neither direct hardcoding nor static linking is supported with a  
       # broken collect2.  
       hardcode_direct=unsupported  
     fi  
     ;;  
   
   aix4* | aix5*)  
     if test "$host_cpu" = ia64; then  
       # On IA64, the linker does run time linking by default, so we don't  
       # have to do anything special.  
       aix_use_runtimelinking=no  
       exp_sym_flag='-Bexport'  
       no_entry_flag=""  
     else  
       aix_use_runtimelinking=no  
   
       # Test if we are trying to use run time linking or normal  
       # AIX style linking. If -brtl is somewhere in LDFLAGS, we  
       # need to do runtime linking.  
       case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)  
         for ld_flag in $LDFLAGS; do  
           case $ld_flag in  
           *-brtl*)  
             aix_use_runtimelinking=yes  
             break  
           ;;  
           esac  
         done  
       esac  
   
       exp_sym_flag='-bexport'  
       no_entry_flag='-bnoentry'  
     fi  
   
     # When large executables or shared objects are built, AIX ld can  
     # have problems creating the table of contents.  If linking a library  
     # or program results in "error TOC overflow" add -mminimal-toc to  
     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not  
     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.  
   
     hardcode_direct=yes  
     archive_cmds=''  
     hardcode_libdir_separator=':'  
     if test "$GCC" = yes; then  
       case $host_os in aix4.[[012]]|aix4.[[012]].*)  
         collect2name=`${CC} -print-prog-name=collect2`  
         if test -f "$collect2name" && \  
           strings "$collect2name" | grep resolve_lib_name >/dev/null  
         then  
           # We have reworked collect2  
           hardcode_direct=yes  
         else  
           # We have old collect2  
           hardcode_direct=unsupported  
           # It fails to find uninstalled libraries when the uninstalled  
           # path is not listed in the libpath.  Setting hardcode_minus_L  
           # to unsupported forces relinking  
           hardcode_minus_L=yes  
           hardcode_libdir_flag_spec='-L$libdir'  
           hardcode_libdir_separator=  
         fi  
       esac  
   
       shared_flag='-shared'  
     else  
       # not using gcc  
       if test "$host_cpu" = ia64; then  
         shared_flag='${wl}-G'  
       else  
         if test "$aix_use_runtimelinking" = yes; then  
           shared_flag='${wl}-G'  
         else  
           shared_flag='${wl}-bM:SRE'  
         fi  
       fi  
     fi  
   
     # It seems that -bexpall can do strange things, so it is better to  
     # generate a list of symbols to export.  
     always_export_symbols=yes  
     if test "$aix_use_runtimelinking" = yes; then  
       # Warning - without using the other runtime loading flags (-brtl),  
       # -berok will link without error, but may produce a broken library.  
       allow_undefined_flag='-berok'  
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'  
       archive_expsym_cmds="\$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"  
     else  
       if test "$host_cpu" = ia64; then  
         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'  
         allow_undefined_flag="-z nodefs"  
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"  
       else  
         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'  
         # Warning - without using the other run time loading flags,  
         # -berok will link without error, but may produce a broken library.  
         allow_undefined_flag='${wl}-berok'  
         # This is a bit strange, but is similar to how AIX traditionally builds  
         # it's shared libraries.  
         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'  
       fi  
     fi  
     ;;  
   
   amigaos*)  
     archive_cmds='$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)'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
     # see comment about different semantics on the GNU ld section  
     ld_shlibs=no  
     ;;  
   
   cygwin* | mingw* | pw32*)  
     # When not using gcc, we currently assume that we are using  
     # Microsoft Visual C++.  
     # hardcode_libdir_flag_spec is actually meaningless, as there is  
     # no search path for DLLs.  
     hardcode_libdir_flag_spec=' '  
     allow_undefined_flag=unsupported  
     # Tell ltmain to make .lib files, not .a files.  
     libext=lib  
     # FIXME: Setting linknames here is a bad hack.  
     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='  
     # The linker will automatically build a .lib file if we build a DLL.  
     old_archive_from_new_cmds='true'  
     # FIXME: Should let the user specify the lib program.  
     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'  
     fix_srcfile_path='`cygpath -w "$srcfile"`'  
     ;;  
   
   darwin* | rhapsody*)  
     case "$host_os" in  
     rhapsody* | darwin1.[[012]])  
       allow_undefined_flag='-undefined suppress'  
       ;;  
     *) # Darwin 1.3 on  
       allow_undefined_flag='-flat_namespace -undefined suppress'  
       ;;  
     esac  
     # FIXME: Relying on posixy $() will cause problems for  
     #        cross-compilation, but unfortunately the echo tests do not  
     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles  
     #        `"' quotes if we put them in here... so don't!  
     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'  
     # We need to add '_' to the symbols in $export_symbols first  
     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     whole_archive_flag_spec='-all_load $convenience'  
     ;;  
   
   freebsd1*)  
     ld_shlibs=no  
     ;;  
   
   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor  
   # support.  Future versions do this automatically, but an explicit c++rt0.o  
   # does not break anything, and helps significantly (at the cost of a little  
   # extra space).  
   freebsd2.2*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   # Unfortunately, older versions of FreeBSD 2 do not have this feature.  
   freebsd2*)  
     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_minus_L=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.  
   freebsd*)  
     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   hpux9* | hpux10* | hpux11*)  
     case $host_os in  
     hpux9*) archive_cmds='$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' ;;  
     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;  
     esac  
     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'  
     hardcode_libdir_separator=:  
     hardcode_direct=yes  
     hardcode_minus_L=yes # Not in the search PATH, but as the default  
                          # location of the library.  
     export_dynamic_flag_spec='${wl}-E'  
     ;;  
   
   irix5* | irix6* | nonstopux*)  
     if test "$GCC" = yes; then  
       archive_cmds='$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'  
       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     else  
       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'  
       hardcode_libdir_flag_spec='-rpath $libdir'  
     fi  
     hardcode_libdir_separator=:  
     link_all_deplibs=yes  
     ;;  
   
   netbsd*)  
     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then  
       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out  
     else  
       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF  
     fi  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   newsos6)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     hardcode_shlibpath_var=no  
     ;;  
   
   openbsd*)  
     hardcode_direct=yes  
     hardcode_shlibpath_var=no  
     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then  
       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'  
       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'  
       export_dynamic_flag_spec='${wl}-E'  
     else  
       case "$host_os" in  
       openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)  
         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  
         hardcode_libdir_flag_spec='-R$libdir'  
         ;;  
       *)  
         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'  
         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'  
         ;;  
       esac  
     fi  
     ;;  
   
   os2*)  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_minus_L=yes  
     allow_undefined_flag=unsupported  
     archive_cmds='$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'  
     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'  
     ;;  
   
   osf3*)  
     if test "$GCC" = yes; then  
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'  
       archive_cmds='$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'  
     else  
       allow_undefined_flag=' -expect_unresolved \*'  
       archive_cmds='$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'  
     fi  
     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     hardcode_libdir_separator=:  
     ;;  
   
   osf4* | osf5*)        # as osf3* with the addition of -msym flag  
     if test "$GCC" = yes; then  
       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'  
       archive_cmds='$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'  
       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'  
     else  
       allow_undefined_flag=' -expect_unresolved \*'  
       archive_cmds='$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'  
       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~  
       $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'  
   
       #Both c and cxx compiler support -rpath directly  
       hardcode_libdir_flag_spec='-rpath $libdir'  
     fi  
     hardcode_libdir_separator=:  
     ;;  
   
   sco3.2v5*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_shlibpath_var=no  
     runpath_var=LD_RUN_PATH  
     hardcode_runpath_var=yes  
     export_dynamic_flag_spec='${wl}-Bexport'  
     ;;  
   
   solaris*)  
     # gcc --version < 3.0 without binutils cannot create self contained  
     # shared libraries reliably, requiring libgcc.a to resolve some of  
     # the object symbols generated in some cases.  Libraries that use  
     # assert need libgcc.a to resolve __eprintf, for example.  Linking  
     # a copy of libgcc.a into every shared library to guarantee resolving  
     # such symbols causes other problems:  According to Tim Van Holder  
     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate  
     # (to the application) exception stack for one thing.  
     no_undefined_flag=' -z defs'  
     if test "$GCC" = yes; then  
       case `$CC --version 2>/dev/null` in  
       [[12]].*)  
         cat <<EOF 1>&2  
   
 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably  
 *** create self contained shared libraries on Solaris systems, without  
 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling  
 *** -no-undefined support, which will at least allow you to build shared  
 *** libraries.  However, you may find that when you link such libraries  
 *** into an application without using GCC, you have to manually add  
 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to  
 *** upgrade to a newer version of GCC.  Another option is to rebuild your  
 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.  
   
 EOF  
         no_undefined_flag=  
         ;;  
       esac  
     fi  
     # $CC -shared without GNU ld will not create a library from C++  
     # object files and a static libstdc++, better avoid it by now  
     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~  
                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'  
     hardcode_libdir_flag_spec='-R$libdir'  
     hardcode_shlibpath_var=no  
     case $host_os in  
     solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;  
     *) # Supported since Solaris 2.6 (maybe 2.5.1?)  
       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;  
     esac  
     link_all_deplibs=yes  
     ;;  
   
   sunos4*)  
     if test "x$host_vendor" = xsequent; then  
       # Use $CC to link under sequent, because it throws in some extra .o  
       # files that make .init and .fini sections work.  
       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'  
     else  
       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'  
     fi  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_direct=yes  
     hardcode_minus_L=yes  
     hardcode_shlibpath_var=no  
     ;;  
   
   sysv4)  
     case $host_vendor in  
       sni)  
         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
         hardcode_direct=yes # is this really true???  
         ;;  
       siemens)  
         ## LD is ld it makes a PLAMLIB  
         ## CC just makes a GrossModule.  
         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'  
         reload_cmds='$CC -r -o $output$reload_objs'  
         hardcode_direct=no  
         ;;  
       motorola)  
         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
         hardcode_direct=no #Motorola manual says yes, but my tests say they lie  
         ;;  
     esac  
     runpath_var='LD_RUN_PATH'  
     hardcode_shlibpath_var=no  
     ;;  
   
   sysv4.3*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_shlibpath_var=no  
     export_dynamic_flag_spec='-Bexport'  
     ;;  
   
   sysv5*)  
     no_undefined_flag=' -z text'  
     # $CC -shared without GNU ld will not create a library from C++  
     # object files and a static libstdc++, better avoid it by now  
     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~  
                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'  
     hardcode_libdir_flag_spec=  
     hardcode_shlibpath_var=no  
     runpath_var='LD_RUN_PATH'  
     ;;  
   
   uts4*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_shlibpath_var=no  
     ;;  
   
   dgux*)  
     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_libdir_flag_spec='-L$libdir'  
     hardcode_shlibpath_var=no  
     ;;  
   
   sysv4*MP*)  
     if test -d /usr/nec; then  
       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'  
       hardcode_shlibpath_var=no  
       runpath_var=LD_RUN_PATH  
       hardcode_runpath_var=yes  
       ld_shlibs=yes  
     fi  
     ;;  
   
   sysv4.2uw2*)  
     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'  
     hardcode_direct=yes  
     hardcode_minus_L=no  
     hardcode_shlibpath_var=no  
     hardcode_runpath_var=yes  
     runpath_var=LD_RUN_PATH  
     ;;  
   
   sysv5uw7* | unixware7*)  
     no_undefined_flag='${wl}-z ${wl}text'  
     if test "$GCC" = yes; then  
       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'  
     else  
       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'  
     fi  
     runpath_var='LD_RUN_PATH'  
     hardcode_shlibpath_var=no  
     ;;  
   
   *)  
     ld_shlibs=no  
     ;;  
   esac  
1114  fi  fi
1115  AC_MSG_RESULT([$ld_shlibs])  rmdir .libs 2>/dev/null])
1116  test "$ld_shlibs" = no && can_build_shared=no  objdir=$lt_cv_objdir
1117    ])# AC_LIBTOOL_OBJDIR
1118    
1119    
1120    # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1121    # ----------------------------------------------
1122  # Check hardcoding attributes.  # Check hardcoding attributes.
1123  AC_MSG_CHECKING([how to hardcode library paths into programs])  AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1124  hardcode_action=  [AC_MSG_CHECKING([how to hardcode library paths into programs])
1125  if test -n "$hardcode_libdir_flag_spec" || \  _LT_AC_TAGVAR(hardcode_action, $1)=
1126     test -n "$runpath_var"; then  if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1127       test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1128       test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1129    
1130    # We can hardcode non-existant directories.    # We can hardcode non-existant directories.
1131    if test "$hardcode_direct" != no &&    if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1132       # If the only mechanism to avoid hardcoding is shlibpath_var, we       # If the only mechanism to avoid hardcoding is shlibpath_var, we
1133       # have to relink, otherwise we might link with an installed library       # have to relink, otherwise we might link with an installed library
1134       # when we should be linking with a yet-to-be-installed one       # when we should be linking with a yet-to-be-installed one
1135       ## test "$hardcode_shlibpath_var" != no &&       ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1136       test "$hardcode_minus_L" != no; then       test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1137      # Linking always hardcodes the temporary library directory.      # Linking always hardcodes the temporary library directory.
1138      hardcode_action=relink      _LT_AC_TAGVAR(hardcode_action, $1)=relink
1139    else    else
1140      # We can link without hardcoding, and we can hardcode nonexisting dirs.      # We can link without hardcoding, and we can hardcode nonexisting dirs.
1141      hardcode_action=immediate      _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1142    fi    fi
1143  else  else
1144    # We cannot hardcode anything, or else we can only hardcode existing    # We cannot hardcode anything, or else we can only hardcode existing
1145    # directories.    # directories.
1146    hardcode_action=unsupported    _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1147    fi
1148    AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1149    
1150    if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1151      # Fast installation is not supported
1152      enable_fast_install=no
1153    elif test "$shlibpath_overrides_runpath" = yes ||
1154         test "$enable_shared" = no; then
1155      # Fast installation is not necessary
1156      enable_fast_install=needless
1157  fi  fi
1158  AC_MSG_RESULT([$hardcode_action])  ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1159    
1160    
1161  striplib=  # AC_LIBTOOL_SYS_LIB_STRIP
1162    # ------------------------
1163    AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1164    [striplib=
1165  old_striplib=  old_striplib=
1166  AC_MSG_CHECKING([whether stripping libraries is possible])  AC_MSG_CHECKING([whether stripping libraries is possible])
1167  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then  if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
# Line 2654  if test -n "$STRIP" && $STRIP -V 2>&1 | Line 1169  if test -n "$STRIP" && $STRIP -V 2>&1 |
1169    test -z "$striplib" && striplib="$STRIP --strip-unneeded"    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1170    AC_MSG_RESULT([yes])    AC_MSG_RESULT([yes])
1171  else  else
1172    # FIXME - insert some real tests, host_os isn't really good enough
1173      case $host_os in
1174       darwin*)
1175           if test -n "$STRIP" ; then
1176             striplib="$STRIP -x"
1177             AC_MSG_RESULT([yes])
1178           else
1179    AC_MSG_RESULT([no])    AC_MSG_RESULT([no])
1180  fi  fi
1181           ;;
1182       *)
1183      AC_MSG_RESULT([no])
1184        ;;
1185      esac
1186    fi
1187    ])# AC_LIBTOOL_SYS_LIB_STRIP
1188    
 reload_cmds='$LD$reload_flag -o $output$reload_objs'  
 test -z "$deplibs_check_method" && deplibs_check_method=unknown  
1189    
1190    # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1191    # -----------------------------
1192  # PORTME Fill in your ld.so characteristics  # PORTME Fill in your ld.so characteristics
1193  AC_MSG_CHECKING([dynamic linker characteristics])  AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1194    [AC_MSG_CHECKING([dynamic linker characteristics])
1195  library_names_spec=  library_names_spec=
1196  libname_spec='lib$name'  libname_spec='lib$name'
1197  soname_spec=  soname_spec=
1198    shrext_cmds=".so"
1199  postinstall_cmds=  postinstall_cmds=
1200  postuninstall_cmds=  postuninstall_cmds=
1201  finish_cmds=  finish_cmds=
# Line 2674  shlibpath_overrides_runpath=unknown Line 1205  shlibpath_overrides_runpath=unknown
1205  version_type=none  version_type=none
1206  dynamic_linker="$host_os ld.so"  dynamic_linker="$host_os ld.so"
1207  sys_lib_dlsearch_path_spec="/lib /usr/lib"  sys_lib_dlsearch_path_spec="/lib /usr/lib"
1208  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"  if test "$GCC" = yes; then
1209      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210      if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1211        # if the path contains ";" then we assume it to be the separator
1212        # otherwise default to the standard path separator (i.e. ":") - it is
1213        # assumed that no part of a normal pathname contains ";" but that should
1214        # okay in the real world where ";" in dirpaths is itself problematic.
1215        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1216      else
1217        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1218      fi
1219    else
1220      sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1221    fi
1222    need_lib_prefix=unknown
1223    hardcode_into_libs=no
1224    
1225    # when you set need_version to no, make sure it does not cause -set_version
1226    # flags to be left without arguments
1227    need_version=unknown
1228    
1229  case $host_os in  case $host_os in
1230  aix3*)  aix3*)
1231    version_type=linux    version_type=linux
1232    library_names_spec='${libname}${release}.so$versuffix $libname.a'    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1233    shlibpath_var=LIBPATH    shlibpath_var=LIBPATH
1234    
1235    # AIX has no versioning support, so we append a major version to the name.    # AIX 3 has no versioning support, so we append a major version to the name.
1236    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1237    ;;    ;;
1238    
1239  aix4* | aix5*)  aix4* | aix5*)
# Line 2693  aix4* | aix5*) Line 1243  aix4* | aix5*)
1243    hardcode_into_libs=yes    hardcode_into_libs=yes
1244    if test "$host_cpu" = ia64; then    if test "$host_cpu" = ia64; then
1245      # AIX 5 supports IA64      # AIX 5 supports IA64
1246      library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'      library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1247      shlibpath_var=LD_LIBRARY_PATH      shlibpath_var=LD_LIBRARY_PATH
1248    else    else
1249      # With GCC up to 2.95.x, collect2 would create an import file      # With GCC up to 2.95.x, collect2 would create an import file
# Line 2703  aix4* | aix5*) Line 1253  aix4* | aix5*)
1253      # development snapshots of GCC prior to 3.0.      # development snapshots of GCC prior to 3.0.
1254      case $host_os in      case $host_os in
1255        aix4 | aix4.[[01]] | aix4.[[01]].*)        aix4 | aix4.[[01]] | aix4.[[01]].*)
1256          if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1257               echo ' yes '             echo ' yes '
1258               echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1259            :          :
1260          else        else
1261            can_build_shared=no          can_build_shared=no
1262          fi        fi
1263          ;;        ;;
1264      esac      esac
1265      # AIX (on Power*) has no versioning support, so currently we can      # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1266      # not hardcode correct soname into executable. Probably we can      # soname into executable. Probably we can add versioning support to
1267      # add versioning support to collect2, so additional links can      # collect2, so additional links can be useful in future.
     # be useful in future.  
1268      if test "$aix_use_runtimelinking" = yes; then      if test "$aix_use_runtimelinking" = yes; then
1269        # If using run time linking (on AIX 4.2 or later) use lib<name>.so        # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1270        # instead of lib<name>.a to let people know that these are not        # instead of lib<name>.a to let people know that these are not
1271        # typical AIX shared libraries.        # typical AIX shared libraries.
1272        library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1273      else      else
1274        # We preserve .a as extension for shared libraries through AIX4.2        # We preserve .a as extension for shared libraries through AIX4.2
1275        # and later when we are not doing run time linking.        # and later when we are not doing run time linking.
1276        library_names_spec='${libname}${release}.a $libname.a'        library_names_spec='${libname}${release}.a $libname.a'
1277        soname_spec='${libname}${release}.so$major'        soname_spec='${libname}${release}${shared_ext}$major'
1278      fi      fi
1279      shlibpath_var=LIBPATH      shlibpath_var=LIBPATH
1280    fi    fi
   hardcode_into_libs=yes  
1281    ;;    ;;
1282    
1283  amigaos*)  amigaos*)
1284    library_names_spec='$libname.ixlibrary $libname.a'    library_names_spec='$libname.ixlibrary $libname.a'
1285    # Create ${libname}_ixlibrary.a entries in /sys/libs.    # Create ${libname}_ixlibrary.a entries in /sys/libs.
1286    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'    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'
1287    ;;    ;;
1288    
1289  beos*)  beos*)
1290    library_names_spec='${libname}.so'    library_names_spec='${libname}${shared_ext}'
1291    dynamic_linker="$host_os ld.so"    dynamic_linker="$host_os ld.so"
1292    shlibpath_var=LIBRARY_PATH    shlibpath_var=LIBRARY_PATH
1293    ;;    ;;
1294    
1295  bsdi4*)  bsdi[[45]]*)
1296    version_type=linux    version_type=linux
1297    need_version=no    need_version=no
1298    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1299    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1300    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1301    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1302    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1303    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
   export_dynamic_flag_spec=-rdynamic  
1304    # the default ld.so.conf also contains /usr/contrib/lib and    # the default ld.so.conf also contains /usr/contrib/lib and
1305    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1306    # libtool to hard-code these into programs    # libtool to hard-code these into programs
# Line 2761  bsdi4*) Line 1308  bsdi4*)
1308    
1309  cygwin* | mingw* | pw32*)  cygwin* | mingw* | pw32*)
1310    version_type=windows    version_type=windows
1311      shrext_cmds=".dll"
1312    need_version=no    need_version=no
1313    need_lib_prefix=no    need_lib_prefix=no
1314    
1315    case $GCC,$host_os in    case $GCC,$host_os in
1316    yes,cygwin*)    yes,cygwin* | yes,mingw* | yes,pw32*)
1317      library_names_spec='$libname.dll.a'      library_names_spec='$libname.dll.a'
1318      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'      # DLL is installed to $(libdir)/../bin by postinstall_cmds
1319      postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~      postinstall_cmds='base_file=`basename \${file}`~
1320          dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1321        dldir=$destdir/`dirname \$dlpath`~        dldir=$destdir/`dirname \$dlpath`~
1322        test -d \$dldir || mkdir -p \$dldir~        test -d \$dldir || mkdir -p \$dldir~
1323        $install_prog .libs/$dlname \$dldir/$dlname'        $install_prog $dir/$dlname \$dldir/$dlname~
1324      postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~        chmod a+x \$dldir/$dlname'
1325        postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1326        dlpath=$dir/\$dldll~        dlpath=$dir/\$dldll~
1327         $rm \$dlpath'         $rm \$dlpath'
1328        shlibpath_overrides_runpath=yes
1329    
1330        case $host_os in
1331        cygwin*)
1332          # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1333          soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1334          sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1335          ;;
1336        mingw*)
1337          # MinGW DLLs use traditional 'lib' prefix
1338          soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1339          sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1340          if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1341            # It is most probably a Windows format PATH printed by
1342            # mingw gcc, but we are running on Cygwin. Gcc prints its search
1343            # path with ; separators, and with drive letters. We can handle the
1344            # drive letters (cygwin fileutils understands them), so leave them,
1345            # especially as we might pass files found there to a mingw objdump,
1346            # which wouldn't understand a cygwinified path. Ahh.
1347            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1348          else
1349            sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
1350          fi
1351          ;;
1352        pw32*)
1353          # pw32 DLLs use 'pw' prefix rather than 'lib'
1354          library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1355          ;;
1356        esac
1357      ;;      ;;
1358    yes,mingw*)  
     library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'  
     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`  
     ;;  
   yes,pw32*)  
     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'  
     ;;  
1359    *)    *)
1360      library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1361      ;;      ;;
1362    esac    esac
1363    dynamic_linker='Win32 ld.exe'    dynamic_linker='Win32 ld.exe'
# Line 2796  darwin* | rhapsody*) Line 1370  darwin* | rhapsody*)
1370    version_type=darwin    version_type=darwin
1371    need_lib_prefix=no    need_lib_prefix=no
1372    need_version=no    need_version=no
1373    # FIXME: Relying on posixy $() will cause problems for    library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1374    #        cross-compilation, but unfortunately the echo tests do not    soname_spec='${libname}${release}${major}$shared_ext'
   #        yet detect zsh echo's removal of \ escapes.  
   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'  
   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'  
1375    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1376    shlibpath_var=DYLD_LIBRARY_PATH    shlibpath_var=DYLD_LIBRARY_PATH
1377      shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1378      # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1379      if test "$GCC" = yes; then
1380        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"`
1381      else
1382        sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1383      fi
1384      sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1385      ;;
1386    
1387    dgux*)
1388      version_type=linux
1389      need_lib_prefix=no
1390      need_version=no
1391      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1392      soname_spec='${libname}${release}${shared_ext}$major'
1393      shlibpath_var=LD_LIBRARY_PATH
1394    ;;    ;;
1395    
1396  freebsd1*)  freebsd1*)
1397    dynamic_linker=no    dynamic_linker=no
1398    ;;    ;;
1399    
1400  freebsd*)  freebsd* | dragonfly*)
1401    objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`    # DragonFly does not have aout.  When/if they implement a new
1402      # versioning mechanism, adjust this.
1403      if test -x /usr/bin/objformat; then
1404        objformat=`/usr/bin/objformat`
1405      else
1406        case $host_os in
1407        freebsd[[123]]*) objformat=aout ;;
1408        *) objformat=elf ;;
1409        esac
1410      fi
1411    version_type=freebsd-$objformat    version_type=freebsd-$objformat
1412    case $version_type in    case $version_type in
1413      freebsd-elf*)      freebsd-elf*)
1414        library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1415        need_version=no        need_version=no
1416        need_lib_prefix=no        need_lib_prefix=no
1417        ;;        ;;
1418      freebsd-*)      freebsd-*)
1419        library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'        library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1420        need_version=yes        need_version=yes
1421        ;;        ;;
1422    esac    esac
# Line 2828  freebsd*) Line 1425  freebsd*)
1425    freebsd2*)    freebsd2*)
1426      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
1427      ;;      ;;
1428    *)    freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1429        shlibpath_overrides_runpath=yes
1430        hardcode_into_libs=yes
1431        ;;
1432      freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1433      freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1434      shlibpath_overrides_runpath=no      shlibpath_overrides_runpath=no
1435      hardcode_into_libs=yes      hardcode_into_libs=yes
1436      ;;      ;;
1437      freebsd*) # from 4.6 on
1438        shlibpath_overrides_runpath=yes
1439        hardcode_into_libs=yes
1440        ;;
1441    esac    esac
1442    ;;    ;;
1443    
# Line 2839  gnu*) Line 1445  gnu*)
1445    version_type=linux    version_type=linux
1446    need_lib_prefix=no    need_lib_prefix=no
1447    need_version=no    need_version=no
1448    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1449    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1450    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1451    hardcode_into_libs=yes    hardcode_into_libs=yes
1452    ;;    ;;
# Line 2848  gnu*) Line 1454  gnu*)
1454  hpux9* | hpux10* | hpux11*)  hpux9* | hpux10* | hpux11*)
1455    # Give a soname corresponding to the major version so that dld.sl refuses to    # Give a soname corresponding to the major version so that dld.sl refuses to
1456    # link against other versions.    # link against other versions.
   dynamic_linker="$host_os dld.sl"  
1457    version_type=sunos    version_type=sunos
1458    need_lib_prefix=no    need_lib_prefix=no
1459    need_version=no    need_version=no
1460    shlibpath_var=SHLIB_PATH    case $host_cpu in
1461    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH    ia64*)
1462    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'      shrext_cmds='.so'
1463    soname_spec='${libname}${release}.sl$major'      hardcode_into_libs=yes
1464        dynamic_linker="$host_os dld.so"
1465        shlibpath_var=LD_LIBRARY_PATH
1466        shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1467        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1468        soname_spec='${libname}${release}${shared_ext}$major'
1469        if test "X$HPUX_IA64_MODE" = X32; then
1470          sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1471        else
1472          sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1473        fi
1474        sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1475        ;;
1476       hppa*64*)
1477         shrext_cmds='.sl'
1478         hardcode_into_libs=yes
1479         dynamic_linker="$host_os dld.sl"
1480         shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1481         shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1482         library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1483         soname_spec='${libname}${release}${shared_ext}$major'
1484         sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1485         sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1486         ;;
1487       *)
1488        shrext_cmds='.sl'
1489        dynamic_linker="$host_os dld.sl"
1490        shlibpath_var=SHLIB_PATH
1491        shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1492        library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1493        soname_spec='${libname}${release}${shared_ext}$major'
1494        ;;
1495      esac
1496    # HP-UX runs *really* slowly unless shared libraries are mode 555.    # HP-UX runs *really* slowly unless shared libraries are mode 555.
1497    postinstall_cmds='chmod 555 $lib'    postinstall_cmds='chmod 555 $lib'
1498    ;;    ;;
1499    
1500    interix3*)
1501      version_type=linux
1502      need_lib_prefix=no
1503      need_version=no
1504      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1505      soname_spec='${libname}${release}${shared_ext}$major'
1506      dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1507      shlibpath_var=LD_LIBRARY_PATH
1508      shlibpath_overrides_runpath=no
1509      hardcode_into_libs=yes
1510      ;;
1511    
1512  irix5* | irix6* | nonstopux*)  irix5* | irix6* | nonstopux*)
1513    case $host_os in    case $host_os in
1514      nonstopux*) version_type=nonstopux ;;      nonstopux*) version_type=nonstopux ;;
1515      *)          version_type=irix ;;      *)
1516            if test "$lt_cv_prog_gnu_ld" = yes; then
1517                    version_type=linux
1518            else
1519                    version_type=irix
1520            fi ;;
1521    esac    esac
1522    need_lib_prefix=no    need_lib_prefix=no
1523    need_version=no    need_version=no
1524    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1525    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1526    case $host_os in    case $host_os in
1527    irix5* | nonstopux*)    irix5* | nonstopux*)
1528      libsuff= shlibsuff=      libsuff= shlibsuff=
1529      ;;      ;;
1530    *)    *)
1531      case $LD in # libtool.m4 will add one of these switches to LD      case $LD in # libtool.m4 will add one of these switches to LD
1532      *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;      *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1533      *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;        libsuff= shlibsuff= libmagic=32-bit;;
1534      *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;      *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1535          libsuff=32 shlibsuff=N32 libmagic=N32;;
1536        *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1537          libsuff=64 shlibsuff=64 libmagic=64-bit;;
1538      *) libsuff= shlibsuff= libmagic=never-match;;      *) libsuff= shlibsuff= libmagic=never-match;;
1539      esac      esac
1540      ;;      ;;
# Line 2886  irix5* | irix6* | nonstopux*) Line 1543  irix5* | irix6* | nonstopux*)
1543    shlibpath_overrides_runpath=no    shlibpath_overrides_runpath=no
1544    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"    sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1545    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"    sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1546      hardcode_into_libs=yes
1547    ;;    ;;
1548    
1549  # No shared lib support for Linux oldld, aout, or coff.  # No shared lib support for Linux oldld, aout, or coff.
1550  linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)  linux*oldld* | linux*aout* | linux*coff*)
1551    dynamic_linker=no    dynamic_linker=no
1552    ;;    ;;
1553    
1554  # This must be Linux ELF.  # This must be Linux ELF.
1555  linux-gnu*)  linux* | k*bsd*-gnu)
1556    version_type=linux    version_type=linux
1557    need_lib_prefix=no    need_lib_prefix=no
1558    need_version=no    need_version=no
1559    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1560    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1561    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1562    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1563    shlibpath_overrides_runpath=no    shlibpath_overrides_runpath=no
# Line 2908  linux-gnu*) Line 1566  linux-gnu*)
1566    # before this can be enabled.    # before this can be enabled.
1567    hardcode_into_libs=yes    hardcode_into_libs=yes
1568    
1569      # Append ld.so.conf contents to the search path
1570      if test -f /etc/ld.so.conf; then
1571        lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1572        sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1573      fi
1574    
1575    # We used to test for /lib/ld.so.1 and disable shared libraries on    # We used to test for /lib/ld.so.1 and disable shared libraries on
1576    # powerpc, because MkLinux only supported shared libraries with the    # powerpc, because MkLinux only supported shared libraries with the
1577    # GNU dynamic linker.  Since this was broken with cross compilers,    # GNU dynamic linker.  Since this was broken with cross compilers,
# Line 2915  linux-gnu*) Line 1579  linux-gnu*)
1579    # people can always --disable-shared, the test was removed, and we    # people can always --disable-shared, the test was removed, and we
1580    # assume the GNU/Linux dynamic linker is in use.    # assume the GNU/Linux dynamic linker is in use.
1581    dynamic_linker='GNU/Linux ld.so'    dynamic_linker='GNU/Linux ld.so'
1582      ;;
1583    
1584    # Find out which ABI we are using (multilib Linux x86_64 hack).  netbsdelf*-gnu)
1585    libsuff=    version_type=linux
1586    case "$host_cpu" in    need_lib_prefix=no
1587    x86_64*|s390x*)    need_version=no
1588      echo '[#]line __oline__ "configure"' > conftest.$ac_ext    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1589      if AC_TRY_EVAL(ac_compile); then    soname_spec='${libname}${release}${shared_ext}$major'
1590        case `/usr/bin/file conftest.$ac_objext` in    shlibpath_var=LD_LIBRARY_PATH
1591        *64-bit*)    shlibpath_overrides_runpath=no
1592          libsuff=64    hardcode_into_libs=yes
1593          ;;    dynamic_linker='NetBSD ld.elf_so'
       esac  
     fi  
     rm -rf conftest*  
     ;;  
   *)  
     ;;  
   esac  
   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"  
   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"  
1594    ;;    ;;
1595    
1596  netbsd*)  netbsd*)
# Line 2942  netbsd*) Line 1598  netbsd*)
1598    need_lib_prefix=no    need_lib_prefix=no
1599    need_version=no    need_version=no
1600    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1601      library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1602      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1603      dynamic_linker='NetBSD (a.out) ld.so'      dynamic_linker='NetBSD (a.out) ld.so'
1604    else    else
1605      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1606      soname_spec='${libname}${release}.so$major'      soname_spec='${libname}${release}${shared_ext}$major'
1607      dynamic_linker='NetBSD ld.elf_so'      dynamic_linker='NetBSD ld.elf_so'
1608    fi    fi
1609    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
# Line 2957  netbsd*) Line 1613  netbsd*)
1613    
1614  newsos6)  newsos6)
1615    version_type=linux    version_type=linux
1616    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1617      shlibpath_var=LD_LIBRARY_PATH
1618      shlibpath_overrides_runpath=yes
1619      ;;
1620    
1621    nto-qnx*)
1622      version_type=linux
1623      need_lib_prefix=no
1624      need_version=no
1625      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1626      soname_spec='${libname}${release}${shared_ext}$major'
1627    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1628    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1629    ;;    ;;
1630    
1631  openbsd*)  openbsd*)
1632    version_type=sunos    version_type=sunos
1633      sys_lib_dlsearch_path_spec="/usr/lib"
1634    need_lib_prefix=no    need_lib_prefix=no
1635    need_version=no    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1636      case $host_os in
1637        openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1638        *)                         need_version=no  ;;
1639      esac
1640      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1641      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1642      shlibpath_var=LD_LIBRARY_PATH
1643    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1644      case "$host_os" in      case $host_os in
1645      openbsd2.[[89]] | openbsd2.[[89]].*)        openbsd2.[[89]] | openbsd2.[[89]].*)
1646        shlibpath_overrides_runpath=no          shlibpath_overrides_runpath=no
1647        ;;          ;;
1648      *)        *)
1649        shlibpath_overrides_runpath=yes          shlibpath_overrides_runpath=yes
1650        ;;          ;;
1651      esac        esac
1652    else    else
1653      shlibpath_overrides_runpath=yes      shlibpath_overrides_runpath=yes
1654    fi    fi
   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'  
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'  
   shlibpath_var=LD_LIBRARY_PATH  
1655    ;;    ;;
1656    
1657  os2*)  os2*)
1658    libname_spec='$name'    libname_spec='$name'
1659      shrext_cmds=".dll"
1660    need_lib_prefix=no    need_lib_prefix=no
1661    library_names_spec='$libname.dll $libname.a'    library_names_spec='$libname${shared_ext} $libname.a'
1662    dynamic_linker='OS/2 ld.exe'    dynamic_linker='OS/2 ld.exe'
1663    shlibpath_var=LIBPATH    shlibpath_var=LIBPATH
1664    ;;    ;;
1665    
1666  osf3* | osf4* | osf5*)  osf3* | osf4* | osf5*)
1667    version_type=osf    version_type=osf
1668      need_lib_prefix=no
1669    need_version=no    need_version=no
1670    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1671    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1672    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1673    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"    sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1674    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
   hardcode_into_libs=yes  
   ;;  
   
 sco3.2v5*)  
   version_type=osf  
   soname_spec='${libname}${release}.so$major'  
   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'  
   shlibpath_var=LD_LIBRARY_PATH  
1675    ;;    ;;
1676    
1677  solaris*)  solaris*)
1678    version_type=linux    version_type=linux
1679    need_lib_prefix=no    need_lib_prefix=no
1680    need_version=no    need_version=no
1681    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1682    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1683    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1684    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
1685    hardcode_into_libs=yes    hardcode_into_libs=yes
# Line 3024  solaris*) Line 1689  solaris*)
1689    
1690  sunos4*)  sunos4*)
1691    version_type=sunos    version_type=sunos
1692    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1693    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'    finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1694    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1695    shlibpath_overrides_runpath=yes    shlibpath_overrides_runpath=yes
# Line 3034  sunos4*) Line 1699  sunos4*)
1699    need_version=yes    need_version=yes
1700    ;;    ;;
1701    
1702  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)  sysv4 | sysv4.3*)
1703    version_type=linux    version_type=linux
1704    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1705    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1706    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1707    case $host_vendor in    case $host_vendor in
1708      sni)      sni)
# Line 3058  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) Line 1723  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1723    esac    esac
1724    ;;    ;;
1725    
1726  uts4*)  sysv4*MP*)
1727    version_type=linux    if test -d /usr/nec ;then
1728    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'      version_type=linux
1729    soname_spec='${libname}${release}.so$major'      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1730    shlibpath_var=LD_LIBRARY_PATH      soname_spec='$libname${shared_ext}.$major'
1731        shlibpath_var=LD_LIBRARY_PATH
1732      fi
1733    ;;    ;;
1734    
1735  dgux*)  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1736    version_type=linux    version_type=freebsd-elf
1737    need_lib_prefix=no    need_lib_prefix=no
1738    need_version=no    need_version=no
1739    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1740    soname_spec='${libname}${release}.so$major'    soname_spec='${libname}${release}${shared_ext}$major'
1741    shlibpath_var=LD_LIBRARY_PATH    shlibpath_var=LD_LIBRARY_PATH
1742      hardcode_into_libs=yes
1743      if test "$with_gnu_ld" = yes; then
1744        sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1745        shlibpath_overrides_runpath=no
1746      else
1747        sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1748        shlibpath_overrides_runpath=yes
1749        case $host_os in
1750          sco3.2v5*)
1751            sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1752            ;;
1753        esac
1754      fi
1755      sys_lib_dlsearch_path_spec='/usr/lib'
1756    ;;    ;;
1757    
1758  sysv4*MP*)  uts4*)
1759    if test -d /usr/nec ;then    version_type=linux
1760      version_type=linux    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1761      library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'    soname_spec='${libname}${release}${shared_ext}$major'
1762      soname_spec='$libname.so.$major'    shlibpath_var=LD_LIBRARY_PATH
     shlibpath_var=LD_LIBRARY_PATH  
   fi  
1763    ;;    ;;
1764    
1765  *)  *)
# Line 3090  esac Line 1769  esac
1769  AC_MSG_RESULT([$dynamic_linker])  AC_MSG_RESULT([$dynamic_linker])
1770  test "$dynamic_linker" = no && can_build_shared=no  test "$dynamic_linker" = no && can_build_shared=no
1771    
1772  # Report the final consequences.  variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1773    if test "$GCC" = yes; then
1774      variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1775    fi
1776    ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1777    
1778    
1779    # _LT_AC_TAGCONFIG
1780    # ----------------
1781    AC_DEFUN([_LT_AC_TAGCONFIG],
1782    [AC_ARG_WITH([tags],
1783        [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1784            [include additional configurations @<:@automatic@:>@])],
1785        [tagnames="$withval"])
1786    
1787    if test -f "$ltmain" && test -n "$tagnames"; then
1788      if test ! -f "${ofile}"; then
1789        AC_MSG_WARN([output file `$ofile' does not exist])
1790      fi
1791    
1792      if test -z "$LTCC"; then
1793        eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1794        if test -z "$LTCC"; then
1795          AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1796        else
1797          AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1798        fi
1799      fi
1800      if test -z "$LTCFLAGS"; then
1801        eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1802      fi
1803    
1804      # Extract list of available tagged configurations in $ofile.
1805      # Note that this assumes the entire list is on one line.
1806      available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1807    
1808      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1809      for tagname in $tagnames; do
1810        IFS="$lt_save_ifs"
1811        # Check whether tagname contains only valid characters
1812        case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1813        "") ;;
1814        *)  AC_MSG_ERROR([invalid tag name: $tagname])
1815            ;;
1816        esac
1817    
1818        if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1819        then
1820          AC_MSG_ERROR([tag name \"$tagname\" already exists])
1821        fi
1822    
1823        # Update the list of available tags.
1824        if test -n "$tagname"; then
1825          echo appending configuration tag \"$tagname\" to $ofile
1826    
1827          case $tagname in
1828          CXX)
1829            if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1830                ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1831                (test "X$CXX" != "Xg++"))) ; then
1832              AC_LIBTOOL_LANG_CXX_CONFIG
1833            else
1834              tagname=""
1835            fi
1836            ;;
1837    
1838          F77)
1839            if test -n "$F77" && test "X$F77" != "Xno"; then
1840              AC_LIBTOOL_LANG_F77_CONFIG
1841            else
1842              tagname=""
1843            fi
1844            ;;
1845    
1846          GCJ)
1847            if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1848              AC_LIBTOOL_LANG_GCJ_CONFIG
1849            else
1850              tagname=""
1851            fi
1852            ;;
1853    
1854          RC)
1855            AC_LIBTOOL_LANG_RC_CONFIG
1856            ;;
1857    
1858          *)
1859            AC_MSG_ERROR([Unsupported tag name: $tagname])
1860            ;;
1861          esac
1862    
1863          # Append the new tag name to the list of available tags.
1864          if test -n "$tagname" ; then
1865          available_tags="$available_tags $tagname"
1866        fi
1867        fi
1868      done
1869      IFS="$lt_save_ifs"
1870    
1871      # Now substitute the updated list of available tags.
1872      if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1873        mv "${ofile}T" "$ofile"
1874        chmod +x "$ofile"
1875      else
1876        rm -f "${ofile}T"
1877        AC_MSG_ERROR([unable to update list of available tagged configurations.])
1878      fi
1879    fi
1880    ])# _LT_AC_TAGCONFIG
1881    
1882    
1883    # AC_LIBTOOL_DLOPEN
1884    # -----------------
1885    # enable checks for dlopen support
1886    AC_DEFUN([AC_LIBTOOL_DLOPEN],
1887     [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1888    ])# AC_LIBTOOL_DLOPEN
1889    
1890    
1891    # AC_LIBTOOL_WIN32_DLL
1892    # --------------------
1893    # declare package support for building win32 DLLs
1894    AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1895    [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1896    ])# AC_LIBTOOL_WIN32_DLL
1897    
1898    
1899    # AC_ENABLE_SHARED([DEFAULT])
1900    # ---------------------------
1901    # implement the --enable-shared flag
1902    # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1903    AC_DEFUN([AC_ENABLE_SHARED],
1904    [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1905    AC_ARG_ENABLE([shared],
1906        [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1907            [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1908        [p=${PACKAGE-default}
1909        case $enableval in
1910        yes) enable_shared=yes ;;
1911        no) enable_shared=no ;;
1912        *)
1913          enable_shared=no
1914          # Look at the argument we got.  We use all the common list separators.
1915          lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1916          for pkg in $enableval; do
1917            IFS="$lt_save_ifs"
1918            if test "X$pkg" = "X$p"; then
1919              enable_shared=yes
1920            fi
1921          done
1922          IFS="$lt_save_ifs"
1923          ;;
1924        esac],
1925        [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1926    ])# AC_ENABLE_SHARED
1927    
1928    
1929    # AC_DISABLE_SHARED
1930    # -----------------
1931    # set the default shared flag to --disable-shared
1932    AC_DEFUN([AC_DISABLE_SHARED],
1933    [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1934    AC_ENABLE_SHARED(no)
1935    ])# AC_DISABLE_SHARED
1936    
1937    
1938    # AC_ENABLE_STATIC([DEFAULT])
1939    # ---------------------------
1940    # implement the --enable-static flag
1941    # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1942    AC_DEFUN([AC_ENABLE_STATIC],
1943    [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1944    AC_ARG_ENABLE([static],
1945        [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1946            [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1947        [p=${PACKAGE-default}
1948        case $enableval in
1949        yes) enable_static=yes ;;
1950        no) enable_static=no ;;
1951        *)
1952         enable_static=no
1953          # Look at the argument we got.  We use all the common list separators.
1954          lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1955          for pkg in $enableval; do
1956            IFS="$lt_save_ifs"
1957            if test "X$pkg" = "X$p"; then
1958              enable_static=yes
1959            fi
1960          done
1961          IFS="$lt_save_ifs"
1962          ;;
1963        esac],
1964        [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1965    ])# AC_ENABLE_STATIC
1966    
1967    
1968    # AC_DISABLE_STATIC
1969    # -----------------
1970    # set the default static flag to --disable-static
1971    AC_DEFUN([AC_DISABLE_STATIC],
1972    [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1973    AC_ENABLE_STATIC(no)
1974    ])# AC_DISABLE_STATIC
1975    
1976    
1977    # AC_ENABLE_FAST_INSTALL([DEFAULT])
1978    # ---------------------------------
1979    # implement the --enable-fast-install flag
1980    # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1981    AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1982    [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1983    AC_ARG_ENABLE([fast-install],
1984        [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1985        [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1986        [p=${PACKAGE-default}
1987        case $enableval in
1988        yes) enable_fast_install=yes ;;
1989        no) enable_fast_install=no ;;
1990        *)
1991          enable_fast_install=no
1992          # Look at the argument we got.  We use all the common list separators.
1993          lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1994          for pkg in $enableval; do
1995            IFS="$lt_save_ifs"
1996            if test "X$pkg" = "X$p"; then
1997              enable_fast_install=yes
1998            fi
1999          done
2000          IFS="$lt_save_ifs"
2001          ;;
2002        esac],
2003        [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2004    ])# AC_ENABLE_FAST_INSTALL
2005    
2006    
2007    # AC_DISABLE_FAST_INSTALL
2008    # -----------------------
2009    # set the default to --disable-fast-install
2010    AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2011    [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2012    AC_ENABLE_FAST_INSTALL(no)
2013    ])# AC_DISABLE_FAST_INSTALL
2014    
2015    
2016    # AC_LIBTOOL_PICMODE([MODE])
2017    # --------------------------
2018    # implement the --with-pic flag
2019    # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2020    AC_DEFUN([AC_LIBTOOL_PICMODE],
2021    [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2022    pic_mode=ifelse($#,1,$1,default)
2023    ])# AC_LIBTOOL_PICMODE
2024    
2025    
2026    # AC_PROG_EGREP
2027    # -------------
2028    # This is predefined starting with Autoconf 2.54, so this conditional
2029    # definition can be removed once we require Autoconf 2.54 or later.
2030    m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2031    [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2032       [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2033        then ac_cv_prog_egrep='grep -E'
2034        else ac_cv_prog_egrep='egrep'
2035        fi])
2036     EGREP=$ac_cv_prog_egrep
2037     AC_SUBST([EGREP])
2038    ])])
2039    
2040    
2041    # AC_PATH_TOOL_PREFIX
2042    # -------------------
2043    # find a file program which can recognise shared library
2044    AC_DEFUN([AC_PATH_TOOL_PREFIX],
2045    [AC_REQUIRE([AC_PROG_EGREP])dnl
2046    AC_MSG_CHECKING([for $1])
2047    AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2048    [case $MAGIC_CMD in
2049    [[\\/*] |  ?:[\\/]*])
2050      lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2051      ;;
2052    *)
2053      lt_save_MAGIC_CMD="$MAGIC_CMD"
2054      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2055    dnl $ac_dummy forces splitting on constant user-supplied paths.
2056    dnl POSIX.2 word splitting is done only on the output of word expansions,
2057    dnl not every word.  This closes a longstanding sh security hole.
2058      ac_dummy="ifelse([$2], , $PATH, [$2])"
2059      for ac_dir in $ac_dummy; do
2060        IFS="$lt_save_ifs"
2061        test -z "$ac_dir" && ac_dir=.
2062        if test -f $ac_dir/$1; then
2063          lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2064          if test -n "$file_magic_test_file"; then
2065            case $deplibs_check_method in
2066            "file_magic "*)
2067              file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2068              MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2069              if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2070                $EGREP "$file_magic_regex" > /dev/null; then
2071                :
2072              else
2073                cat <<EOF 1>&2
2074    
2075    *** Warning: the command libtool uses to detect shared libraries,
2076    *** $file_magic_cmd, produces output that libtool cannot recognize.
2077    *** The result is that libtool may fail to recognize shared libraries
2078    *** as such.  This will affect the creation of libtool libraries that
2079    *** depend on shared libraries, but programs linked with such libtool
2080    *** libraries will work regardless of this problem.  Nevertheless, you
2081    *** may want to report the problem to your system manager and/or to
2082    *** bug-libtool@gnu.org
2083    
2084    EOF
2085              fi ;;
2086            esac
2087          fi
2088          break
2089        fi
2090      done
2091      IFS="$lt_save_ifs"
2092      MAGIC_CMD="$lt_save_MAGIC_CMD"
2093      ;;
2094    esac])
2095    MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2096    if test -n "$MAGIC_CMD"; then
2097      AC_MSG_RESULT($MAGIC_CMD)
2098    else
2099      AC_MSG_RESULT(no)
2100    fi
2101    ])# AC_PATH_TOOL_PREFIX
2102    
2103    
2104    # AC_PATH_MAGIC
2105    # -------------
2106    # find a file program which can recognise a shared library
2107    AC_DEFUN([AC_PATH_MAGIC],
2108    [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2109    if test -z "$lt_cv_path_MAGIC_CMD"; then
2110      if test -n "$ac_tool_prefix"; then
2111        AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2112      else
2113        MAGIC_CMD=:
2114      fi
2115    fi
2116    ])# AC_PATH_MAGIC
2117    
2118    
2119    # AC_PROG_LD
2120    # ----------
2121    # find the pathname to the GNU or non-GNU linker
2122    AC_DEFUN([AC_PROG_LD],
2123    [AC_ARG_WITH([gnu-ld],
2124        [AC_HELP_STRING([--with-gnu-ld],
2125            [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2126        [test "$withval" = no || with_gnu_ld=yes],
2127        [with_gnu_ld=no])
2128    AC_REQUIRE([LT_AC_PROG_SED])dnl
2129    AC_REQUIRE([AC_PROG_CC])dnl
2130    AC_REQUIRE([AC_CANONICAL_HOST])dnl
2131    AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2132    ac_prog=ld
2133    if test "$GCC" = yes; then
2134      # Check if gcc -print-prog-name=ld gives a path.
2135      AC_MSG_CHECKING([for ld used by $CC])
2136      case $host in
2137      *-*-mingw*)
2138        # gcc leaves a trailing carriage return which upsets mingw
2139        ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2140      *)
2141        ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2142      esac
2143      case $ac_prog in
2144        # Accept absolute paths.
2145        [[\\/]]* | ?:[[\\/]]*)
2146          re_direlt='/[[^/]][[^/]]*/\.\./'
2147          # Canonicalize the pathname of ld
2148          ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2149          while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2150            ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2151          done
2152          test -z "$LD" && LD="$ac_prog"
2153          ;;
2154      "")
2155        # If it fails, then pretend we aren't using GCC.
2156        ac_prog=ld
2157        ;;
2158      *)
2159        # If it is relative, then search for the first ld in PATH.
2160        with_gnu_ld=unknown
2161        ;;
2162      esac
2163    elif test "$with_gnu_ld" = yes; then
2164      AC_MSG_CHECKING([for GNU ld])
2165    else
2166      AC_MSG_CHECKING([for non-GNU ld])
2167    fi
2168    AC_CACHE_VAL(lt_cv_path_LD,
2169    [if test -z "$LD"; then
2170      lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2171      for ac_dir in $PATH; do
2172        IFS="$lt_save_ifs"
2173        test -z "$ac_dir" && ac_dir=.
2174        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2175          lt_cv_path_LD="$ac_dir/$ac_prog"
2176          # Check to see if the program is GNU ld.  I'd rather use --version,
2177          # but apparently some variants of GNU ld only accept -v.
2178          # Break only if it was the GNU/non-GNU ld that we prefer.
2179          case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2180          *GNU* | *'with BFD'*)
2181            test "$with_gnu_ld" != no && break
2182            ;;
2183          *)
2184            test "$with_gnu_ld" != yes && break
2185            ;;
2186          esac
2187        fi
2188      done
2189      IFS="$lt_save_ifs"
2190    else
2191      lt_cv_path_LD="$LD" # Let the user override the test with a path.
2192    fi])
2193    LD="$lt_cv_path_LD"
2194    if test -n "$LD"; then
2195      AC_MSG_RESULT($LD)
2196    else
2197      AC_MSG_RESULT(no)
2198    fi
2199    test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2200    AC_PROG_LD_GNU
2201    ])# AC_PROG_LD
2202    
2203    
2204    # AC_PROG_LD_GNU
2205    # --------------
2206    AC_DEFUN([AC_PROG_LD_GNU],
2207    [AC_REQUIRE([AC_PROG_EGREP])dnl
2208    AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2209    [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2210    case `$LD -v 2>&1 </dev/null` in
2211    *GNU* | *'with BFD'*)
2212      lt_cv_prog_gnu_ld=yes
2213      ;;
2214    *)
2215      lt_cv_prog_gnu_ld=no
2216      ;;
2217    esac])
2218    with_gnu_ld=$lt_cv_prog_gnu_ld
2219    ])# AC_PROG_LD_GNU
2220    
2221    
2222    # AC_PROG_LD_RELOAD_FLAG
2223    # ----------------------
2224    # find reload flag for linker
2225    #   -- PORTME Some linkers may need a different reload flag.
2226    AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2227    [AC_CACHE_CHECK([for $LD option to reload object files],
2228      lt_cv_ld_reload_flag,
2229      [lt_cv_ld_reload_flag='-r'])
2230    reload_flag=$lt_cv_ld_reload_flag
2231    case $reload_flag in
2232    "" | " "*) ;;
2233    *) reload_flag=" $reload_flag" ;;
2234    esac
2235    reload_cmds='$LD$reload_flag -o $output$reload_objs'
2236    case $host_os in
2237      darwin*)
2238        if test "$GCC" = yes; then
2239          reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2240        else
2241          reload_cmds='$LD$reload_flag -o $output$reload_objs'
2242        fi
2243        ;;
2244    esac
2245    ])# AC_PROG_LD_RELOAD_FLAG
2246    
2247    
2248    # AC_DEPLIBS_CHECK_METHOD
2249    # -----------------------
2250    # how to check for library dependencies
2251    #  -- PORTME fill in with the dynamic library characteristics
2252    AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2253    [AC_CACHE_CHECK([how to recognise dependent libraries],
2254    lt_cv_deplibs_check_method,
2255    [lt_cv_file_magic_cmd='$MAGIC_CMD'
2256    lt_cv_file_magic_test_file=
2257    lt_cv_deplibs_check_method='unknown'
2258    # Need to set the preceding variable on all platforms that support
2259    # interlibrary dependencies.
2260    # 'none' -- dependencies not supported.
2261    # `unknown' -- same as none, but documents that we really don't know.
2262    # 'pass_all' -- all dependencies passed with no checks.
2263    # 'test_compile' -- check by making test program.
2264    # 'file_magic [[regex]]' -- check by looking for files in library path
2265    # which responds to the $file_magic_cmd with a given extended regex.
2266    # If you have `file' or equivalent on your system and you're not sure
2267    # whether `pass_all' will *always* work, you probably want this one.
2268    
2269    case $host_os in
2270    aix4* | aix5*)
2271      lt_cv_deplibs_check_method=pass_all
2272      ;;
2273    
2274    beos*)
2275      lt_cv_deplibs_check_method=pass_all
2276      ;;
2277    
2278    bsdi[[45]]*)
2279      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2280      lt_cv_file_magic_cmd='/usr/bin/file -L'
2281      lt_cv_file_magic_test_file=/shlib/libc.so
2282      ;;
2283    
2284    cygwin*)
2285      # func_win32_libid is a shell function defined in ltmain.sh
2286      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2287      lt_cv_file_magic_cmd='func_win32_libid'
2288      ;;
2289    
2290    mingw* | pw32*)
2291      # Base MSYS/MinGW do not provide the 'file' command needed by
2292      # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2293      lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2294      lt_cv_file_magic_cmd='$OBJDUMP -f'
2295      ;;
2296    
2297    darwin* | rhapsody*)
2298      lt_cv_deplibs_check_method=pass_all
2299      ;;
2300    
2301    freebsd* | dragonfly*)
2302      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2303        case $host_cpu in
2304        i*86 )
2305          # Not sure whether the presence of OpenBSD here was a mistake.
2306          # Let's accept both of them until this is cleared up.
2307          lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2308          lt_cv_file_magic_cmd=/usr/bin/file
2309          lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2310          ;;
2311        esac
2312      else
2313        lt_cv_deplibs_check_method=pass_all
2314      fi
2315      ;;
2316    
2317    gnu*)
2318      lt_cv_deplibs_check_method=pass_all
2319      ;;
2320    
2321    hpux10.20* | hpux11*)
2322      lt_cv_file_magic_cmd=/usr/bin/file
2323      case $host_cpu in
2324      ia64*)
2325        lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2326        lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2327        ;;
2328      hppa*64*)
2329        [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]']
2330        lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2331        ;;
2332      *)
2333        lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2334        lt_cv_file_magic_test_file=/usr/lib/libc.sl
2335        ;;
2336      esac
2337      ;;
2338    
2339    interix3*)
2340      # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2341      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2342      ;;
2343    
2344    irix5* | irix6* | nonstopux*)
2345      case $LD in
2346      *-32|*"-32 ") libmagic=32-bit;;
2347      *-n32|*"-n32 ") libmagic=N32;;
2348      *-64|*"-64 ") libmagic=64-bit;;
2349      *) libmagic=never-match;;
2350      esac
2351      lt_cv_deplibs_check_method=pass_all
2352      ;;
2353    
2354    # This must be Linux ELF.
2355    linux* | k*bsd*-gnu)
2356      lt_cv_deplibs_check_method=pass_all
2357      ;;
2358    
2359    netbsd* | netbsdelf*-gnu)
2360      if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2361        lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2362      else
2363        lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2364      fi
2365      ;;
2366    
2367    newos6*)
2368      lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2369      lt_cv_file_magic_cmd=/usr/bin/file
2370      lt_cv_file_magic_test_file=/usr/lib/libnls.so
2371      ;;
2372    
2373    nto-qnx*)
2374      lt_cv_deplibs_check_method=unknown
2375      ;;
2376    
2377    openbsd*)
2378      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2379        lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2380      else
2381        lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2382      fi
2383      ;;
2384    
2385    osf3* | osf4* | osf5*)
2386      lt_cv_deplibs_check_method=pass_all
2387      ;;
2388    
2389    solaris*)
2390      lt_cv_deplibs_check_method=pass_all
2391      ;;
2392    
2393    sysv4 | sysv4.3*)
2394      case $host_vendor in
2395      motorola)
2396        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]]'
2397        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2398        ;;
2399      ncr)
2400        lt_cv_deplibs_check_method=pass_all
2401        ;;
2402      sequent)
2403        lt_cv_file_magic_cmd='/bin/file'
2404        lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2405        ;;
2406      sni)
2407        lt_cv_file_magic_cmd='/bin/file'
2408        lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2409        lt_cv_file_magic_test_file=/lib/libc.so
2410        ;;
2411      siemens)
2412        lt_cv_deplibs_check_method=pass_all
2413        ;;
2414      pc)
2415        lt_cv_deplibs_check_method=pass_all
2416        ;;
2417      esac
2418      ;;
2419    
2420    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2421      lt_cv_deplibs_check_method=pass_all
2422      ;;
2423    esac
2424    ])
2425    file_magic_cmd=$lt_cv_file_magic_cmd
2426    deplibs_check_method=$lt_cv_deplibs_check_method
2427    test -z "$deplibs_check_method" && deplibs_check_method=unknown
2428    ])# AC_DEPLIBS_CHECK_METHOD
2429    
2430    
2431    # AC_PROG_NM
2432    # ----------
2433    # find the pathname to a BSD-compatible name lister
2434    AC_DEFUN([AC_PROG_NM],
2435    [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2436    [if test -n "$NM"; then
2437      # Let the user override the test.
2438      lt_cv_path_NM="$NM"
2439    else
2440      lt_nm_to_check="${ac_tool_prefix}nm"
2441      if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2442        lt_nm_to_check="$lt_nm_to_check nm"
2443      fi
2444      for lt_tmp_nm in $lt_nm_to_check; do
2445        lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2446        for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2447          IFS="$lt_save_ifs"