ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/aclocal.m4
(Generate patch)

Comparing ircd-hybrid-7.2/aclocal.m4 (file contents):
Revision 941 by db, Sat May 2 02:02:59 2009 UTC vs.
Revision 945 by michael, Mon Jul 20 15:48:27 2009 UTC

# Line 1 | Line 1
1 < # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
1 > # generated automatically by aclocal 1.11 -*- Autoconf -*-
2  
3   # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 < # 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
4 > # 2005, 2006, 2007, 2008, 2009  Free Software Foundation, Inc.
5   # This file is free software; the Free Software Foundation
6   # gives unlimited permission to copy and/or distribute it,
7   # with or without modifications, as long as this notice is preserved.
# Line 13 | Line 13
13  
14   m4_ifndef([AC_AUTOCONF_VERSION],
15    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 < m4_if(AC_AUTOCONF_VERSION, [2.62],,
17 < [m4_warning([this file was generated for autoconf 2.62.
16 > m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17 > [m4_warning([this file was generated for autoconf 2.63.
18   You have another version of autoconf.  It may work, but is not guaranteed to.
19   If you have problems, you may need to regenerate the build system entirely.
20   To do so, use the procedure documented by the package, typically `autoreconf'.])])
21  
22 + # Portability macros for glibc argz.                    -*- Autoconf -*-
23 + #
24 + #   Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
25 + #   Written by Gary V. Vaughan <gary@gnu.org>
26 + #
27 + # This file is free software; the Free Software Foundation gives
28 + # unlimited permission to copy and/or distribute it, with or without
29 + # modifications, as long as this notice is preserved.
30 +
31 + # serial 5 argz.m4
32 +
33 + AC_DEFUN([gl_FUNC_ARGZ],
34 + [gl_PREREQ_ARGZ
35 +
36 + AC_CHECK_HEADERS([argz.h], [], [], [AC_INCLUDES_DEFAULT])
37 +
38 + AC_CHECK_TYPES([error_t],
39 +  [],
40 +  [AC_DEFINE([error_t], [int],
41 +   [Define to a type to use for `error_t' if it is not otherwise available.])
42 +   AC_DEFINE([__error_t_defined], [1], [Define so that glibc/gnulib argp.h
43 +    does not typedef error_t.])],
44 +  [#if defined(HAVE_ARGZ_H)
45 + #  include <argz.h>
46 + #endif])
47 +
48 + ARGZ_H=
49 + AC_CHECK_FUNCS([argz_add argz_append argz_count argz_create_sep argz_insert \
50 +        argz_next argz_stringify], [], [ARGZ_H=argz.h; AC_LIBOBJ([argz])])
51 +
52 + dnl if have system argz functions, allow forced use of
53 + dnl libltdl-supplied implementation (and default to do so
54 + dnl on "known bad" systems). Could use a runtime check, but
55 + dnl (a) detecting malloc issues is notoriously unreliable
56 + dnl (b) only known system that declares argz functions,
57 + dnl     provides them, yet they are broken, is cygwin
58 + dnl     releases prior to 16-Mar-2007 (1.5.24 and earlier)
59 + dnl So, it's more straightforward simply to special case
60 + dnl this for known bad systems.
61 + AS_IF([test -z "$ARGZ_H"],
62 +    [AC_CACHE_CHECK(
63 +        [if argz actually works],
64 +        [lt_cv_sys_argz_works],
65 +        [[case $host_os in #(
66 +         *cygwin*)
67 +           lt_cv_sys_argz_works=no
68 +           if test "$cross_compiling" != no; then
69 +             lt_cv_sys_argz_works="guessing no"
70 +           else
71 +             lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
72 +             save_IFS=$IFS
73 +             IFS=-.
74 +             set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
75 +             IFS=$save_IFS
76 +             lt_os_major=${2-0}
77 +             lt_os_minor=${3-0}
78 +             lt_os_micro=${4-0}
79 +             if test "$lt_os_major" -gt 1 \
80 +                || { test "$lt_os_major" -eq 1 \
81 +                  && { test "$lt_os_minor" -gt 5 \
82 +                    || { test "$lt_os_minor" -eq 5 \
83 +                      && test "$lt_os_micro" -gt 24; }; }; }; then
84 +               lt_cv_sys_argz_works=yes
85 +             fi
86 +           fi
87 +           ;; #(
88 +         *) lt_cv_sys_argz_works=yes ;;
89 +         esac]])
90 +     AS_IF([test $lt_cv_sys_argz_works = yes],
91 +        [AC_DEFINE([HAVE_WORKING_ARGZ], 1,
92 +                   [This value is set to 1 to indicate that the system argz facility works])],
93 +        [ARGZ_H=argz.h
94 +        AC_LIBOBJ([argz])])])
95 +
96 + AC_SUBST([ARGZ_H])
97 + ])
98 +
99 + # Prerequisites of lib/argz.c.
100 + AC_DEFUN([gl_PREREQ_ARGZ], [:])
101 +
102   # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
103 + #
104 + #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
105 + #                 2006, 2007, 2008 Free Software Foundation, Inc.
106 + #   Written by Gordon Matzigkeit, 1996
107 + #
108 + # This file is free software; the Free Software Foundation gives
109 + # unlimited permission to copy and/or distribute it, with or without
110 + # modifications, as long as this notice is preserved.
111 +
112 + m4_define([_LT_COPYING], [dnl
113 + #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
114 + #                 2006, 2007, 2008 Free Software Foundation, Inc.
115 + #   Written by Gordon Matzigkeit, 1996
116 + #
117 + #   This file is part of GNU Libtool.
118 + #
119 + # GNU Libtool is free software; you can redistribute it and/or
120 + # modify it under the terms of the GNU General Public License as
121 + # published by the Free Software Foundation; either version 2 of
122 + # the License, or (at your option) any later version.
123 + #
124 + # As a special exception to the GNU General Public License,
125 + # if you distribute this file as part of a program or library that
126 + # is built using GNU Libtool, you may include this file under the
127 + # same distribution terms that you use for the rest of that program.
128 + #
129 + # GNU Libtool is distributed in the hope that it will be useful,
130 + # but WITHOUT ANY WARRANTY; without even the implied warranty of
131 + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
132 + # GNU General Public License for more details.
133 + #
134 + # You should have received a copy of the GNU General Public License
135 + # along with GNU Libtool; see the file COPYING.  If not, a copy
136 + # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
137 + # obtained by writing to the Free Software Foundation, Inc.,
138 + # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
139 + ])
140  
141 < # serial 52 AC_PROG_LIBTOOL
141 > # serial 56 LT_INIT
142  
143  
144 < # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
145 < # -----------------------------------------------------------
146 < # If this macro is not defined by Autoconf, define it here.
147 < m4_ifdef([AC_PROVIDE_IFELSE],
148 <         [],
149 <         [m4_define([AC_PROVIDE_IFELSE],
150 <                 [m4_ifdef([AC_PROVIDE_$1],
151 <                           [$2], [$3])])])
144 > # LT_PREREQ(VERSION)
145 > # ------------------
146 > # Complain and exit if this libtool version is less that VERSION.
147 > m4_defun([LT_PREREQ],
148 > [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
149 >       [m4_default([$3],
150 >                   [m4_fatal([Libtool version $1 or higher is required],
151 >                             63)])],
152 >       [$2])])
153  
154  
155 < # AC_PROG_LIBTOOL
156 < # ---------------
157 < AC_DEFUN([AC_PROG_LIBTOOL],
158 < [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
159 < dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
160 < dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
161 <  AC_PROVIDE_IFELSE([AC_PROG_CXX],
162 <    [AC_LIBTOOL_CXX],
163 <    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
46 <  ])])
47 < dnl And a similar setup for Fortran 77 support
48 <  AC_PROVIDE_IFELSE([AC_PROG_F77],
49 <    [AC_LIBTOOL_F77],
50 <    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
51 < ])])
52 <
53 < dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
54 < dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
55 < dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
56 <  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
57 <    [AC_LIBTOOL_GCJ],
58 <    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
59 <      [AC_LIBTOOL_GCJ],
60 <      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
61 <        [AC_LIBTOOL_GCJ],
62 <      [ifdef([AC_PROG_GCJ],
63 <             [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
64 <       ifdef([A][M_PROG_GCJ],
65 <             [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
66 <       ifdef([LT_AC_PROG_GCJ],
67 <             [define([LT_AC_PROG_GCJ],
68 <                defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
69 < ])])# AC_PROG_LIBTOOL
155 > # _LT_CHECK_BUILDDIR
156 > # ------------------
157 > # Complain if the absolute build directory name contains unusual characters
158 > m4_defun([_LT_CHECK_BUILDDIR],
159 > [case `pwd` in
160 >  *\ * | *\     *)
161 >    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
162 > esac
163 > ])
164  
165  
166 < # _AC_PROG_LIBTOOL
167 < # ----------------
168 < AC_DEFUN([_AC_PROG_LIBTOOL],
169 < [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
170 < AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
171 < AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
172 < AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
166 > # LT_INIT([OPTIONS])
167 > # ------------------
168 > AC_DEFUN([LT_INIT],
169 > [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
170 > AC_BEFORE([$0], [LT_LANG])dnl
171 > AC_BEFORE([$0], [LT_OUTPUT])dnl
172 > AC_BEFORE([$0], [LTDL_INIT])dnl
173 > m4_require([_LT_CHECK_BUILDDIR])dnl
174 >
175 > dnl Autoconf doesn't catch unexpanded LT_ macros by default:
176 > m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
177 > m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
178 > dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
179 > dnl unless we require an AC_DEFUNed macro:
180 > AC_REQUIRE([LTOPTIONS_VERSION])dnl
181 > AC_REQUIRE([LTSUGAR_VERSION])dnl
182 > AC_REQUIRE([LTVERSION_VERSION])dnl
183 > AC_REQUIRE([LTOBSOLETE_VERSION])dnl
184 > m4_require([_LT_PROG_LTMAIN])dnl
185 >
186 > dnl Parse OPTIONS
187 > _LT_SET_OPTIONS([$0], [$1])
188  
189   # This can be used to rebuild libtool when needed
190 < LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
190 > LIBTOOL_DEPS="$ltmain"
191  
192   # Always use our own libtool.
193   LIBTOOL='$(SHELL) $(top_builddir)/libtool'
194   AC_SUBST(LIBTOOL)dnl
195  
196 < # Prevent multiple expansion
88 < define([AC_PROG_LIBTOOL], [])
89 < ])# _AC_PROG_LIBTOOL
196 > _LT_SETUP
197  
198 + # Only expand once:
199 + m4_define([LT_INIT])
200 + ])# LT_INIT
201 +
202 + # Old names:
203 + AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
204 + AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
205 + dnl aclocal-1.4 backwards compatibility:
206 + dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
207 + dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
208  
209 < # AC_LIBTOOL_SETUP
210 < # ----------------
211 < AC_DEFUN([AC_LIBTOOL_SETUP],
212 < [AC_PREREQ(2.50)dnl
213 < AC_REQUIRE([AC_ENABLE_SHARED])dnl
214 < AC_REQUIRE([AC_ENABLE_STATIC])dnl
215 < AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
216 < AC_REQUIRE([AC_CANONICAL_HOST])dnl
209 >
210 > # _LT_CC_BASENAME(CC)
211 > # -------------------
212 > # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
213 > m4_defun([_LT_CC_BASENAME],
214 > [for cc_temp in $1""; do
215 >  case $cc_temp in
216 >    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
217 >    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
218 >    \-*) ;;
219 >    *) break;;
220 >  esac
221 > done
222 > cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
223 > ])
224 >
225 >
226 > # _LT_FILEUTILS_DEFAULTS
227 > # ----------------------
228 > # It is okay to use these file commands and assume they have been set
229 > # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
230 > m4_defun([_LT_FILEUTILS_DEFAULTS],
231 > [: ${CP="cp -f"}
232 > : ${MV="mv -f"}
233 > : ${RM="rm -f"}
234 > ])# _LT_FILEUTILS_DEFAULTS
235 >
236 >
237 > # _LT_SETUP
238 > # ---------
239 > m4_defun([_LT_SETUP],
240 > [AC_REQUIRE([AC_CANONICAL_HOST])dnl
241   AC_REQUIRE([AC_CANONICAL_BUILD])dnl
242 + _LT_DECL([], [host_alias], [0], [The host system])dnl
243 + _LT_DECL([], [host], [0])dnl
244 + _LT_DECL([], [host_os], [0])dnl
245 + dnl
246 + _LT_DECL([], [build_alias], [0], [The build system])dnl
247 + _LT_DECL([], [build], [0])dnl
248 + _LT_DECL([], [build_os], [0])dnl
249 + dnl
250   AC_REQUIRE([AC_PROG_CC])dnl
251 < AC_REQUIRE([AC_PROG_LD])dnl
252 < AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
253 < AC_REQUIRE([AC_PROG_NM])dnl
105 <
251 > AC_REQUIRE([LT_PATH_LD])dnl
252 > AC_REQUIRE([LT_PATH_NM])dnl
253 > dnl
254   AC_REQUIRE([AC_PROG_LN_S])dnl
255 < AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
256 < # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
109 < AC_REQUIRE([AC_OBJEXT])dnl
110 < AC_REQUIRE([AC_EXEEXT])dnl
255 > test -z "$LN_S" && LN_S="ln -s"
256 > _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
257   dnl
258 < AC_LIBTOOL_SYS_MAX_CMD_LEN
259 < AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
260 < AC_LIBTOOL_OBJDIR
258 > AC_REQUIRE([LT_CMD_MAX_LEN])dnl
259 > _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
260 > _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
261 > dnl
262 > m4_require([_LT_FILEUTILS_DEFAULTS])dnl
263 > m4_require([_LT_CHECK_SHELL_FEATURES])dnl
264 > m4_require([_LT_CMD_RELOAD])dnl
265 > m4_require([_LT_CHECK_MAGIC_METHOD])dnl
266 > m4_require([_LT_CMD_OLD_ARCHIVE])dnl
267 > m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
268 >
269 > _LT_CONFIG_LIBTOOL_INIT([
270 > # See if we are running on zsh, and set the options which allow our
271 > # commands through without removal of \ escapes INIT.
272 > if test -n "\${ZSH_VERSION+set}" ; then
273 >   setopt NO_GLOB_SUBST
274 > fi
275 > ])
276 > if test -n "${ZSH_VERSION+set}" ; then
277 >   setopt NO_GLOB_SUBST
278 > fi
279 >
280 > _LT_CHECK_OBJDIR
281  
282 < AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
283 < _LT_AC_PROG_ECHO_BACKSLASH
282 > m4_require([_LT_TAG_COMPILER])dnl
283 > _LT_PROG_ECHO_BACKSLASH
284  
285   case $host_os in
286   aix3*)
# Line 130 | Line 296 | esac
296  
297   # Sed substitution that helps us do robust quoting.  It backslashifies
298   # metacharacters that are still active within double-quoted strings.
299 < Xsed='sed -e 1s/^X//'
134 < [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
299 > sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
300  
301   # Same as above, but do not quote variable references.
302 < [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
302 > double_quote_subst='s/\([["`\\]]\)/\\\1/g'
303  
304   # Sed substitution to delay expansion of an escaped shell variable in a
305   # double_quote_subst'ed string.
306   delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
307  
308 + # Sed substitution to delay expansion of an escaped single quote.
309 + delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
310 +
311   # Sed substitution to avoid accidental globbing in evaled expressions
312   no_glob_subst='s/\*/\\\*/g'
313  
146 # Constants:
147 rm="rm -f"
148
314   # Global variables:
315 < default_ofile=libtool
315 > ofile=libtool
316   can_build_shared=yes
317  
318   # All known linkers require a `.a' archive for static linking (except MSVC,
319   # which needs '.lib').
320   libext=a
156 ltmain="$ac_aux_dir/ltmain.sh"
157 ofile="$default_ofile"
158 with_gnu_ld="$lt_cv_prog_gnu_ld"
321  
322 < AC_CHECK_TOOL(AR, ar, false)
161 < AC_CHECK_TOOL(RANLIB, ranlib, :)
162 < AC_CHECK_TOOL(STRIP, strip, :)
322 > with_gnu_ld="$lt_cv_prog_gnu_ld"
323  
324   old_CC="$CC"
325   old_CFLAGS="$CFLAGS"
326  
327   # Set sane defaults for various variables
168 test -z "$AR" && AR=ar
169 test -z "$AR_FLAGS" && AR_FLAGS=cru
170 test -z "$AS" && AS=as
328   test -z "$CC" && CC=cc
329   test -z "$LTCC" && LTCC=$CC
330   test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
174 test -z "$DLLTOOL" && DLLTOOL=dlltool
331   test -z "$LD" && LD=ld
176 test -z "$LN_S" && LN_S="ln -s"
177 test -z "$MAGIC_CMD" && MAGIC_CMD=file
178 test -z "$NM" && NM=nm
179 test -z "$SED" && SED=sed
180 test -z "$OBJDUMP" && OBJDUMP=objdump
181 test -z "$RANLIB" && RANLIB=:
182 test -z "$STRIP" && STRIP=:
332   test -z "$ac_objext" && ac_objext=o
333  
185 # Determine commands to create old-style static archives.
186 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
187 old_postinstall_cmds='chmod 644 $oldlib'
188 old_postuninstall_cmds=
189
190 if test -n "$RANLIB"; then
191  case $host_os in
192  openbsd*)
193    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
194    ;;
195  *)
196    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
197    ;;
198  esac
199  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
200 fi
201
334   _LT_CC_BASENAME([$compiler])
335  
336   # Only perform the check for file, if the check method requires it
337 + test -z "$MAGIC_CMD" && MAGIC_CMD=file
338   case $deplibs_check_method in
339   file_magic*)
340    if test "$file_magic_cmd" = '$MAGIC_CMD'; then
341 <    AC_PATH_MAGIC
341 >    _LT_PATH_MAGIC
342    fi
343    ;;
344   esac
345  
346 < _LT_REQUIRED_DARWIN_CHECKS
346 > # Use C for the default configuration in the libtool script
347 > LT_SUPPORTED_TAG([CC])
348 > _LT_LANG_C_CONFIG
349 > _LT_LANG_DEFAULT_CONFIG
350 > _LT_CONFIG_COMMANDS
351 > ])# _LT_SETUP
352  
215 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
216 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
217 enable_win32_dll=yes, enable_win32_dll=no)
218
219 AC_ARG_ENABLE([libtool-lock],
220    [AC_HELP_STRING([--disable-libtool-lock],
221        [avoid locking (might break parallel builds)])])
222 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
353  
354 < AC_ARG_WITH([pic],
355 <    [AC_HELP_STRING([--with-pic],
356 <        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
357 <    [pic_mode="$withval"],
358 <    [pic_mode=default])
359 < test -z "$pic_mode" && pic_mode=default
354 > # _LT_PROG_LTMAIN
355 > # ---------------
356 > # Note that this code is called both from `configure', and `config.status'
357 > # now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
358 > # `config.status' has no value for ac_aux_dir unless we are using Automake,
359 > # so we pass a copy along to make sure it has a sensible value anyway.
360 > m4_defun([_LT_PROG_LTMAIN],
361 > [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
362 > _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
363 > ltmain="$ac_aux_dir/ltmain.sh"
364 > ])# _LT_PROG_LTMAIN
365  
231 # Use C for the default configuration in the libtool script
232 tagname=
233 AC_LIBTOOL_LANG_C_CONFIG
234 _LT_AC_TAGCONFIG
235 ])# AC_LIBTOOL_SETUP
366  
367  
368 < # _LT_AC_SYS_COMPILER
368 > # So that we can recreate a full libtool script including additional
369 > # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
370 > # in macros and then make a single call at the end using the `libtool'
371 > # label.
372 >
373 >
374 > # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
375 > # ----------------------------------------
376 > # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
377 > m4_define([_LT_CONFIG_LIBTOOL_INIT],
378 > [m4_ifval([$1],
379 >          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
380 >                     [$1
381 > ])])])
382 >
383 > # Initialize.
384 > m4_define([_LT_OUTPUT_LIBTOOL_INIT])
385 >
386 >
387 > # _LT_CONFIG_LIBTOOL([COMMANDS])
388 > # ------------------------------
389 > # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
390 > m4_define([_LT_CONFIG_LIBTOOL],
391 > [m4_ifval([$1],
392 >          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
393 >                     [$1
394 > ])])])
395 >
396 > # Initialize.
397 > m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
398 >
399 >
400 > # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
401 > # -----------------------------------------------------
402 > m4_defun([_LT_CONFIG_SAVE_COMMANDS],
403 > [_LT_CONFIG_LIBTOOL([$1])
404 > _LT_CONFIG_LIBTOOL_INIT([$2])
405 > ])
406 >
407 >
408 > # _LT_FORMAT_COMMENT([COMMENT])
409 > # -----------------------------
410 > # Add leading comment marks to the start of each line, and a trailing
411 > # full-stop to the whole comment if one is not present already.
412 > m4_define([_LT_FORMAT_COMMENT],
413 > [m4_ifval([$1], [
414 > m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
415 >              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
416 > )])
417 >
418 >
419 >
420 >
421 >
422 > # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
423 > # -------------------------------------------------------------------
424 > # CONFIGNAME is the name given to the value in the libtool script.
425 > # VARNAME is the (base) name used in the configure script.
426 > # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
427 > # VARNAME.  Any other value will be used directly.
428 > m4_define([_LT_DECL],
429 > [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
430 >    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
431 >        [m4_ifval([$1], [$1], [$2])])
432 >    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
433 >    m4_ifval([$4],
434 >        [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
435 >    lt_dict_add_subkey([lt_decl_dict], [$2],
436 >        [tagged?], [m4_ifval([$5], [yes], [no])])])
437 > ])
438 >
439 >
440 > # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
441 > # --------------------------------------------------------
442 > m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
443 >
444 >
445 > # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
446 > # ------------------------------------------------
447 > m4_define([lt_decl_tag_varnames],
448 > [_lt_decl_filter([tagged?], [yes], $@)])
449 >
450 >
451 > # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
452 > # ---------------------------------------------------------
453 > m4_define([_lt_decl_filter],
454 > [m4_case([$#],
455 >  [0], [m4_fatal([$0: too few arguments: $#])],
456 >  [1], [m4_fatal([$0: too few arguments: $#: $1])],
457 >  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
458 >  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
459 >  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
460 > ])
461 >
462 >
463 > # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
464 > # --------------------------------------------------
465 > m4_define([lt_decl_quote_varnames],
466 > [_lt_decl_filter([value], [1], $@)])
467 >
468 >
469 > # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
470 > # ---------------------------------------------------
471 > m4_define([lt_decl_dquote_varnames],
472 > [_lt_decl_filter([value], [2], $@)])
473 >
474 >
475 > # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
476 > # ---------------------------------------------------
477 > m4_define([lt_decl_varnames_tagged],
478 > [m4_assert([$# <= 2])dnl
479 > _$0(m4_quote(m4_default([$1], [[, ]])),
480 >    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
481 >    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
482 > m4_define([_lt_decl_varnames_tagged],
483 > [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
484 >
485 >
486 > # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
487 > # ------------------------------------------------
488 > m4_define([lt_decl_all_varnames],
489 > [_$0(m4_quote(m4_default([$1], [[, ]])),
490 >     m4_if([$2], [],
491 >           m4_quote(lt_decl_varnames),
492 >        m4_quote(m4_shift($@))))[]dnl
493 > ])
494 > m4_define([_lt_decl_all_varnames],
495 > [lt_join($@, lt_decl_varnames_tagged([$1],
496 >                        lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
497 > ])
498 >
499 >
500 > # _LT_CONFIG_STATUS_DECLARE([VARNAME])
501 > # ------------------------------------
502 > # Quote a variable value, and forward it to `config.status' so that its
503 > # declaration there will have the same value as in `configure'.  VARNAME
504 > # must have a single quote delimited value for this to work.
505 > m4_define([_LT_CONFIG_STATUS_DECLARE],
506 > [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
507 >
508 >
509 > # _LT_CONFIG_STATUS_DECLARATIONS
510 > # ------------------------------
511 > # We delimit libtool config variables with single quotes, so when
512 > # we write them to config.status, we have to be sure to quote all
513 > # embedded single quotes properly.  In configure, this macro expands
514 > # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
515 > #
516 > #    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
517 > m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
518 > [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
519 >    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
520 >
521 >
522 > # _LT_LIBTOOL_TAGS
523 > # ----------------
524 > # Output comment and list of tags supported by the script
525 > m4_defun([_LT_LIBTOOL_TAGS],
526 > [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
527 > available_tags="_LT_TAGS"dnl
528 > ])
529 >
530 >
531 > # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
532 > # -----------------------------------
533 > # Extract the dictionary values for VARNAME (optionally with TAG) and
534 > # expand to a commented shell variable setting:
535 > #
536 > #    # Some comment about what VAR is for.
537 > #    visible_name=$lt_internal_name
538 > m4_define([_LT_LIBTOOL_DECLARE],
539 > [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
540 >                                           [description])))[]dnl
541 > m4_pushdef([_libtool_name],
542 >    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
543 > m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
544 >    [0], [_libtool_name=[$]$1],
545 >    [1], [_libtool_name=$lt_[]$1],
546 >    [2], [_libtool_name=$lt_[]$1],
547 >    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
548 > m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
549 > ])
550 >
551 >
552 > # _LT_LIBTOOL_CONFIG_VARS
553 > # -----------------------
554 > # Produce commented declarations of non-tagged libtool config variables
555 > # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
556 > # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
557 > # section) are produced by _LT_LIBTOOL_TAG_VARS.
558 > m4_defun([_LT_LIBTOOL_CONFIG_VARS],
559 > [m4_foreach([_lt_var],
560 >    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
561 >    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
562 >
563 >
564 > # _LT_LIBTOOL_TAG_VARS(TAG)
565 > # -------------------------
566 > m4_define([_LT_LIBTOOL_TAG_VARS],
567 > [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
568 >    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
569 >
570 >
571 > # _LT_TAGVAR(VARNAME, [TAGNAME])
572 > # ------------------------------
573 > m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
574 >
575 >
576 > # _LT_CONFIG_COMMANDS
577   # -------------------
578 < AC_DEFUN([_LT_AC_SYS_COMPILER],
578 > # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
579 > # variables for single and double quote escaping we saved from calls
580 > # to _LT_DECL, we can put quote escaped variables declarations
581 > # into `config.status', and then the shell code to quote escape them in
582 > # for loops in `config.status'.  Finally, any additional code accumulated
583 > # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
584 > m4_defun([_LT_CONFIG_COMMANDS],
585 > [AC_PROVIDE_IFELSE([LT_OUTPUT],
586 >        dnl If the libtool generation code has been placed in $CONFIG_LT,
587 >        dnl instead of duplicating it all over again into config.status,
588 >        dnl then we will have config.status run $CONFIG_LT later, so it
589 >        dnl needs to know what name is stored there:
590 >        [AC_CONFIG_COMMANDS([libtool],
591 >            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
592 >    dnl If the libtool generation code is destined for config.status,
593 >    dnl expand the accumulated commands and init code now:
594 >    [AC_CONFIG_COMMANDS([libtool],
595 >        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
596 > ])#_LT_CONFIG_COMMANDS
597 >
598 >
599 > # Initialize.
600 > m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
601 > [
602 >
603 > # The HP-UX ksh and POSIX shell print the target directory to stdout
604 > # if CDPATH is set.
605 > (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
606 >
607 > sed_quote_subst='$sed_quote_subst'
608 > double_quote_subst='$double_quote_subst'
609 > delay_variable_subst='$delay_variable_subst'
610 > _LT_CONFIG_STATUS_DECLARATIONS
611 > LTCC='$LTCC'
612 > LTCFLAGS='$LTCFLAGS'
613 > compiler='$compiler_DEFAULT'
614 >
615 > # Quote evaled strings.
616 > for var in lt_decl_all_varnames([[ \
617 > ]], lt_decl_quote_varnames); do
618 >    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
619 >    *[[\\\\\\\`\\"\\\$]]*)
620 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
621 >      ;;
622 >    *)
623 >      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
624 >      ;;
625 >    esac
626 > done
627 >
628 > # Double-quote double-evaled strings.
629 > for var in lt_decl_all_varnames([[ \
630 > ]], lt_decl_dquote_varnames); do
631 >    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
632 >    *[[\\\\\\\`\\"\\\$]]*)
633 >      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
634 >      ;;
635 >    *)
636 >      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
637 >      ;;
638 >    esac
639 > done
640 >
641 > # Fix-up fallback echo if it was mangled by the above quoting rules.
642 > case \$lt_ECHO in
643 > *'\\\[$]0 --fallback-echo"')dnl "
644 >  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
645 >  ;;
646 > esac
647 >
648 > _LT_OUTPUT_LIBTOOL_INIT
649 > ])
650 >
651 >
652 > # LT_OUTPUT
653 > # ---------
654 > # This macro allows early generation of the libtool script (before
655 > # AC_OUTPUT is called), incase it is used in configure for compilation
656 > # tests.
657 > AC_DEFUN([LT_OUTPUT],
658 > [: ${CONFIG_LT=./config.lt}
659 > AC_MSG_NOTICE([creating $CONFIG_LT])
660 > cat >"$CONFIG_LT" <<_LTEOF
661 > #! $SHELL
662 > # Generated by $as_me.
663 > # Run this file to recreate a libtool stub with the current configuration.
664 >
665 > lt_cl_silent=false
666 > SHELL=\${CONFIG_SHELL-$SHELL}
667 > _LTEOF
668 >
669 > cat >>"$CONFIG_LT" <<\_LTEOF
670 > AS_SHELL_SANITIZE
671 > _AS_PREPARE
672 >
673 > exec AS_MESSAGE_FD>&1
674 > exec AS_MESSAGE_LOG_FD>>config.log
675 > {
676 >  echo
677 >  AS_BOX([Running $as_me.])
678 > } >&AS_MESSAGE_LOG_FD
679 >
680 > lt_cl_help="\
681 > \`$as_me' creates a local libtool stub from the current configuration,
682 > for use in further configure time tests before the real libtool is
683 > generated.
684 >
685 > Usage: $[0] [[OPTIONS]]
686 >
687 >  -h, --help      print this help, then exit
688 >  -V, --version   print version number, then exit
689 >  -q, --quiet     do not print progress messages
690 >  -d, --debug     don't remove temporary files
691 >
692 > Report bugs to <bug-libtool@gnu.org>."
693 >
694 > lt_cl_version="\
695 > m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
696 > m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
697 > configured by $[0], generated by m4_PACKAGE_STRING.
698 >
699 > Copyright (C) 2008 Free Software Foundation, Inc.
700 > This config.lt script is free software; the Free Software Foundation
701 > gives unlimited permision to copy, distribute and modify it."
702 >
703 > while test $[#] != 0
704 > do
705 >  case $[1] in
706 >    --version | --v* | -V )
707 >      echo "$lt_cl_version"; exit 0 ;;
708 >    --help | --h* | -h )
709 >      echo "$lt_cl_help"; exit 0 ;;
710 >    --debug | --d* | -d )
711 >      debug=: ;;
712 >    --quiet | --q* | --silent | --s* | -q )
713 >      lt_cl_silent=: ;;
714 >
715 >    -*) AC_MSG_ERROR([unrecognized option: $[1]
716 > Try \`$[0] --help' for more information.]) ;;
717 >
718 >    *) AC_MSG_ERROR([unrecognized argument: $[1]
719 > Try \`$[0] --help' for more information.]) ;;
720 >  esac
721 >  shift
722 > done
723 >
724 > if $lt_cl_silent; then
725 >  exec AS_MESSAGE_FD>/dev/null
726 > fi
727 > _LTEOF
728 >
729 > cat >>"$CONFIG_LT" <<_LTEOF
730 > _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
731 > _LTEOF
732 >
733 > cat >>"$CONFIG_LT" <<\_LTEOF
734 > AC_MSG_NOTICE([creating $ofile])
735 > _LT_OUTPUT_LIBTOOL_COMMANDS
736 > AS_EXIT(0)
737 > _LTEOF
738 > chmod +x "$CONFIG_LT"
739 >
740 > # configure is writing to config.log, but config.lt does its own redirection,
741 > # appending to config.log, which fails on DOS, as config.log is still kept
742 > # open by configure.  Here we exec the FD to /dev/null, effectively closing
743 > # config.log, so it can be properly (re)opened and appended to by config.lt.
744 > if test "$no_create" != yes; then
745 >  lt_cl_success=:
746 >  test "$silent" = yes &&
747 >    lt_config_lt_args="$lt_config_lt_args --quiet"
748 >  exec AS_MESSAGE_LOG_FD>/dev/null
749 >  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
750 >  exec AS_MESSAGE_LOG_FD>>config.log
751 >  $lt_cl_success || AS_EXIT(1)
752 > fi
753 > ])# LT_OUTPUT
754 >
755 >
756 > # _LT_CONFIG(TAG)
757 > # ---------------
758 > # If TAG is the built-in tag, create an initial libtool script with a
759 > # default configuration from the untagged config vars.  Otherwise add code
760 > # to config.status for appending the configuration named by TAG from the
761 > # matching tagged config vars.
762 > m4_defun([_LT_CONFIG],
763 > [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
764 > _LT_CONFIG_SAVE_COMMANDS([
765 >  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
766 >  m4_if(_LT_TAG, [C], [
767 >    # See if we are running on zsh, and set the options which allow our
768 >    # commands through without removal of \ escapes.
769 >    if test -n "${ZSH_VERSION+set}" ; then
770 >      setopt NO_GLOB_SUBST
771 >    fi
772 >
773 >    cfgfile="${ofile}T"
774 >    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
775 >    $RM "$cfgfile"
776 >
777 >    cat <<_LT_EOF >> "$cfgfile"
778 > #! $SHELL
779 >
780 > # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
781 > # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
782 > # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
783 > # NOTE: Changes made to this file will be lost: look at ltmain.sh.
784 > #
785 > _LT_COPYING
786 > _LT_LIBTOOL_TAGS
787 >
788 > # ### BEGIN LIBTOOL CONFIG
789 > _LT_LIBTOOL_CONFIG_VARS
790 > _LT_LIBTOOL_TAG_VARS
791 > # ### END LIBTOOL CONFIG
792 >
793 > _LT_EOF
794 >
795 >  case $host_os in
796 >  aix3*)
797 >    cat <<\_LT_EOF >> "$cfgfile"
798 > # AIX sometimes has problems with the GCC collect2 program.  For some
799 > # reason, if we set the COLLECT_NAMES environment variable, the problems
800 > # vanish in a puff of smoke.
801 > if test "X${COLLECT_NAMES+set}" != Xset; then
802 >  COLLECT_NAMES=
803 >  export COLLECT_NAMES
804 > fi
805 > _LT_EOF
806 >    ;;
807 >  esac
808 >
809 >  _LT_PROG_LTMAIN
810 >
811 >  # We use sed instead of cat because bash on DJGPP gets confused if
812 >  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
813 >  # text mode, it properly converts lines to CR/LF.  This bash problem
814 >  # is reportedly fixed, but why not run on old versions too?
815 >  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
816 >    || (rm -f "$cfgfile"; exit 1)
817 >
818 >  _LT_PROG_XSI_SHELLFNS
819 >
820 >  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
821 >    || (rm -f "$cfgfile"; exit 1)
822 >
823 >  mv -f "$cfgfile" "$ofile" ||
824 >    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
825 >  chmod +x "$ofile"
826 > ],
827 > [cat <<_LT_EOF >> "$ofile"
828 >
829 > dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
830 > dnl in a comment (ie after a #).
831 > # ### BEGIN LIBTOOL TAG CONFIG: $1
832 > _LT_LIBTOOL_TAG_VARS(_LT_TAG)
833 > # ### END LIBTOOL TAG CONFIG: $1
834 > _LT_EOF
835 > ])dnl /m4_if
836 > ],
837 > [m4_if([$1], [], [
838 >    PACKAGE='$PACKAGE'
839 >    VERSION='$VERSION'
840 >    TIMESTAMP='$TIMESTAMP'
841 >    RM='$RM'
842 >    ofile='$ofile'], [])
843 > ])dnl /_LT_CONFIG_SAVE_COMMANDS
844 > ])# _LT_CONFIG
845 >
846 >
847 > # LT_SUPPORTED_TAG(TAG)
848 > # ---------------------
849 > # Trace this macro to discover what tags are supported by the libtool
850 > # --tag option, using:
851 > #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
852 > AC_DEFUN([LT_SUPPORTED_TAG], [])
853 >
854 >
855 > # C support is built-in for now
856 > m4_define([_LT_LANG_C_enabled], [])
857 > m4_define([_LT_TAGS], [])
858 >
859 >
860 > # LT_LANG(LANG)
861 > # -------------
862 > # Enable libtool support for the given language if not already enabled.
863 > AC_DEFUN([LT_LANG],
864 > [AC_BEFORE([$0], [LT_OUTPUT])dnl
865 > m4_case([$1],
866 >  [C],                  [_LT_LANG(C)],
867 >  [C++],                [_LT_LANG(CXX)],
868 >  [Java],               [_LT_LANG(GCJ)],
869 >  [Fortran 77],         [_LT_LANG(F77)],
870 >  [Fortran],            [_LT_LANG(FC)],
871 >  [Windows Resource],   [_LT_LANG(RC)],
872 >  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
873 >    [_LT_LANG($1)],
874 >    [m4_fatal([$0: unsupported language: "$1"])])])dnl
875 > ])# LT_LANG
876 >
877 >
878 > # _LT_LANG(LANGNAME)
879 > # ------------------
880 > m4_defun([_LT_LANG],
881 > [m4_ifdef([_LT_LANG_]$1[_enabled], [],
882 >  [LT_SUPPORTED_TAG([$1])dnl
883 >  m4_append([_LT_TAGS], [$1 ])dnl
884 >  m4_define([_LT_LANG_]$1[_enabled], [])dnl
885 >  _LT_LANG_$1_CONFIG($1)])dnl
886 > ])# _LT_LANG
887 >
888 >
889 > # _LT_LANG_DEFAULT_CONFIG
890 > # -----------------------
891 > m4_defun([_LT_LANG_DEFAULT_CONFIG],
892 > [AC_PROVIDE_IFELSE([AC_PROG_CXX],
893 >  [LT_LANG(CXX)],
894 >  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
895 >
896 > AC_PROVIDE_IFELSE([AC_PROG_F77],
897 >  [LT_LANG(F77)],
898 >  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
899 >
900 > AC_PROVIDE_IFELSE([AC_PROG_FC],
901 >  [LT_LANG(FC)],
902 >  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
903 >
904 > dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
905 > dnl pulling things in needlessly.
906 > AC_PROVIDE_IFELSE([AC_PROG_GCJ],
907 >  [LT_LANG(GCJ)],
908 >  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
909 >    [LT_LANG(GCJ)],
910 >    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
911 >      [LT_LANG(GCJ)],
912 >      [m4_ifdef([AC_PROG_GCJ],
913 >        [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
914 >       m4_ifdef([A][M_PROG_GCJ],
915 >        [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
916 >       m4_ifdef([LT_PROG_GCJ],
917 >        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
918 >
919 > AC_PROVIDE_IFELSE([LT_PROG_RC],
920 >  [LT_LANG(RC)],
921 >  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
922 > ])# _LT_LANG_DEFAULT_CONFIG
923 >
924 > # Obsolete macros:
925 > AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
926 > AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
927 > AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
928 > AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
929 > dnl aclocal-1.4 backwards compatibility:
930 > dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
931 > dnl AC_DEFUN([AC_LIBTOOL_F77], [])
932 > dnl AC_DEFUN([AC_LIBTOOL_FC], [])
933 > dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
934 >
935 >
936 > # _LT_TAG_COMPILER
937 > # ----------------
938 > m4_defun([_LT_TAG_COMPILER],
939   [AC_REQUIRE([AC_PROG_CC])dnl
940  
941 + _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
942 + _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
943 + _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
944 + _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
945 +
946   # If no C compiler was specified, use CC.
947   LTCC=${LTCC-"$CC"}
948  
# Line 248 | Line 951 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
951  
952   # Allow CC to be a program name with arguments.
953   compiler=$CC
954 < ])# _LT_AC_SYS_COMPILER
252 <
253 <
254 < # _LT_CC_BASENAME(CC)
255 < # -------------------
256 < # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
257 < AC_DEFUN([_LT_CC_BASENAME],
258 < [for cc_temp in $1""; do
259 <  case $cc_temp in
260 <    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
261 <    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
262 <    \-*) ;;
263 <    *) break;;
264 <  esac
265 < done
266 < cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
267 < ])
954 > ])# _LT_TAG_COMPILER
955  
956  
957   # _LT_COMPILER_BOILERPLATE
958   # ------------------------
959   # Check for compiler boilerplate output or warnings with
960   # the simple compiler test code.
961 < AC_DEFUN([_LT_COMPILER_BOILERPLATE],
962 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
961 > m4_defun([_LT_COMPILER_BOILERPLATE],
962 > [m4_require([_LT_DECL_SED])dnl
963   ac_outfile=conftest.$ac_objext
964   echo "$lt_simple_compile_test_code" >conftest.$ac_ext
965   eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
966   _lt_compiler_boilerplate=`cat conftest.err`
967 < $rm conftest*
967 > $RM conftest*
968   ])# _LT_COMPILER_BOILERPLATE
969  
970  
# Line 285 | Line 972 | $rm conftest*
972   # ----------------------
973   # Check for linker boilerplate output or warnings with
974   # the simple link test code.
975 < AC_DEFUN([_LT_LINKER_BOILERPLATE],
976 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
975 > m4_defun([_LT_LINKER_BOILERPLATE],
976 > [m4_require([_LT_DECL_SED])dnl
977   ac_outfile=conftest.$ac_objext
978   echo "$lt_simple_link_test_code" >conftest.$ac_ext
979   eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
980   _lt_linker_boilerplate=`cat conftest.err`
981 < $rm -r conftest*
981 > $RM -r conftest*
982   ])# _LT_LINKER_BOILERPLATE
983  
984   # _LT_REQUIRED_DARWIN_CHECKS
985 < # --------------------------
986 < # Check for some things on darwin
300 < AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
985 > # -------------------------
986 > m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
987    case $host_os in
988      rhapsody* | darwin*)
989      AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
990      AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
991 +    AC_CHECK_TOOL([LIPO], [lipo], [:])
992 +    AC_CHECK_TOOL([OTOOL], [otool], [:])
993 +    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
994 +    _LT_DECL([], [DSYMUTIL], [1],
995 +      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
996 +    _LT_DECL([], [NMEDIT], [1],
997 +      [Tool to change global to local symbols on Mac OS X])
998 +    _LT_DECL([], [LIPO], [1],
999 +      [Tool to manipulate fat objects and archives on Mac OS X])
1000 +    _LT_DECL([], [OTOOL], [1],
1001 +      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1002 +    _LT_DECL([], [OTOOL64], [1],
1003 +      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1004  
1005      AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1006        [lt_cv_apple_cc_single_mod=no
1007        if test -z "${LT_MULTI_MODULE}"; then
1008 <   # By default we will add the -single_module flag. You can override
1009 <   # by either setting the environment variable LT_MULTI_MODULE
1010 <   # non-empty at configure time, or by adding -multi_module to the
1011 <   # link flags.
1012 <   echo "int foo(void){return 1;}" > conftest.c
1013 <   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1014 <     -dynamiclib ${wl}-single_module conftest.c
1015 <   if test -f libconftest.dylib; then
1016 <     lt_cv_apple_cc_single_mod=yes
1017 <     rm -rf libconftest.dylib*
1018 <   fi
1019 <   rm conftest.c
1008 >        # By default we will add the -single_module flag. You can override
1009 >        # by either setting the environment variable LT_MULTI_MODULE
1010 >        # non-empty at configure time, or by adding -multi_module to the
1011 >        # link flags.
1012 >        rm -rf libconftest.dylib*
1013 >        echo "int foo(void){return 1;}" > conftest.c
1014 >        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1015 > -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1016 >        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1017 >          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1018 >        _lt_result=$?
1019 >        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1020 >          lt_cv_apple_cc_single_mod=yes
1021 >        else
1022 >          cat conftest.err >&AS_MESSAGE_LOG_FD
1023 >        fi
1024 >        rm -rf libconftest.dylib*
1025 >        rm -f conftest.*
1026        fi])
1027      AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1028        [lt_cv_ld_exported_symbols_list],
# Line 326 | Line 1031 | AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1031        echo "_main" > conftest.sym
1032        LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1033        AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1034 <   [lt_cv_ld_exported_symbols_list=yes],
1035 <   [lt_cv_ld_exported_symbols_list=no])
1036 <   LDFLAGS="$save_LDFLAGS"
1034 >        [lt_cv_ld_exported_symbols_list=yes],
1035 >        [lt_cv_ld_exported_symbols_list=no])
1036 >        LDFLAGS="$save_LDFLAGS"
1037      ])
1038      case $host_os in
1039 <    rhapsody* | darwin1.[[0123]])
1039 >    rhapsody* | darwin1.[[012]])
1040        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1041      darwin1.*)
1042 <     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1043 <    darwin*)
1042 >      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1043 >    darwin*) # darwin 5.x on
1044        # if running on 10.5 or later, the deployment target defaults
1045        # to the OS version, if on x86, and 10.4, the deployment
1046        # target defaults to 10.4. Don't you love it?
1047        case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1048 <   10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1049 <     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1050 <   10.[[012]]*)
1051 <     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1052 <   10.*)
1053 <     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1048 >        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1049 >          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1050 >        10.[[012]]*)
1051 >          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1052 >        10.*)
1053 >          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1054        esac
1055      ;;
1056    esac
# Line 355 | Line 1060 | AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1060      if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1061        _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1062      else
1063 <      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1063 >      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1064      fi
1065      if test "$DSYMUTIL" != ":"; then
1066 <      _lt_dsymutil="~$DSYMUTIL \$lib || :"
1066 >      _lt_dsymutil='~$DSYMUTIL $lib || :'
1067      else
1068        _lt_dsymutil=
1069      fi
# Line 366 | Line 1071 | AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
1071    esac
1072   ])
1073  
1074 < # _LT_AC_SYS_LIBPATH_AIX
1075 < # ----------------------
1074 >
1075 > # _LT_DARWIN_LINKER_FEATURES
1076 > # --------------------------
1077 > # Checks for linker and compiler features on darwin
1078 > m4_defun([_LT_DARWIN_LINKER_FEATURES],
1079 > [
1080 >  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1081 >  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1082 >  _LT_TAGVAR(hardcode_direct, $1)=no
1083 >  _LT_TAGVAR(hardcode_automatic, $1)=yes
1084 >  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1085 >  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1086 >  _LT_TAGVAR(link_all_deplibs, $1)=yes
1087 >  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1088 >  case $cc_basename in
1089 >     ifort*) _lt_dar_can_shared=yes ;;
1090 >     *) _lt_dar_can_shared=$GCC ;;
1091 >  esac
1092 >  if test "$_lt_dar_can_shared" = "yes"; then
1093 >    output_verbose_link_cmd=echo
1094 >    _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1095 >    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1096 >    _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1097 >    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1098 >    m4_if([$1], [CXX],
1099 > [   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1100 >      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1101 >      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1102 >    fi
1103 > ],[])
1104 >  else
1105 >  _LT_TAGVAR(ld_shlibs, $1)=no
1106 >  fi
1107 > ])
1108 >
1109 > # _LT_SYS_MODULE_PATH_AIX
1110 > # -----------------------
1111   # Links a minimal program and checks the executable
1112   # for the system default hardcoded library path. In most cases,
1113   # this is /usr/lib:/lib, but when the MPI compilers are used
1114   # the location of the communication and MPI libs are included too.
1115   # If we don't find anything, use the default library path according
1116   # to the aix ld manual.
1117 < AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1118 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
1117 > m4_defun([_LT_SYS_MODULE_PATH_AIX],
1118 > [m4_require([_LT_DECL_SED])dnl
1119   AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1120   lt_aix_libpath_sed='
1121      /Import File Strings/,/^$/ {
# Line 390 | Line 1130 | if test -z "$aix_libpath"; then
1130    aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1131   fi],[])
1132   if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1133 < ])# _LT_AC_SYS_LIBPATH_AIX
1133 > ])# _LT_SYS_MODULE_PATH_AIX
1134  
1135  
1136 < # _LT_AC_SHELL_INIT(ARG)
1137 < # ----------------------
1138 < AC_DEFUN([_LT_AC_SHELL_INIT],
1136 > # _LT_SHELL_INIT(ARG)
1137 > # -------------------
1138 > m4_define([_LT_SHELL_INIT],
1139   [ifdef([AC_DIVERSION_NOTICE],
1140               [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1141           [AC_DIVERT_PUSH(NOTICE)])
1142   $1
1143   AC_DIVERT_POP
1144 < ])# _LT_AC_SHELL_INIT
1144 > ])# _LT_SHELL_INIT
1145  
1146  
1147 < # _LT_AC_PROG_ECHO_BACKSLASH
1148 < # --------------------------
1147 > # _LT_PROG_ECHO_BACKSLASH
1148 > # -----------------------
1149   # Add some code to the start of the generated configure script which
1150   # will find an echo command which doesn't interpret backslashes.
1151 < AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1152 < [_LT_AC_SHELL_INIT([
1151 > m4_defun([_LT_PROG_ECHO_BACKSLASH],
1152 > [_LT_SHELL_INIT([
1153   # Check that we are running under the correct shell.
1154   SHELL=${CONFIG_SHELL-/bin/sh}
1155  
1156 < case X$ECHO in
1156 > case X$lt_ECHO in
1157   X*--fallback-echo)
1158    # Remove one level of quotation (which was required for Make).
1159 <  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1159 >  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1160    ;;
1161   esac
1162  
1163 < echo=${ECHO-echo}
1163 > ECHO=${lt_ECHO-echo}
1164   if test "X[$]1" = X--no-reexec; then
1165    # Discard the --no-reexec flag, and continue.
1166    shift
1167   elif test "X[$]1" = X--fallback-echo; then
1168    # Avoid inline document here, it may be left over
1169    :
1170 < elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1171 <  # Yippee, $echo works!
1170 > elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1171 >  # Yippee, $ECHO works!
1172    :
1173   else
1174    # Restart under the correct shell.
# Line 438 | Line 1178 | fi
1178   if test "X[$]1" = X--fallback-echo; then
1179    # used as fallback echo
1180    shift
1181 <  cat <<EOF
1181 >  cat <<_LT_EOF
1182   [$]*
1183 < EOF
1183 > _LT_EOF
1184    exit 0
1185   fi
1186  
# Line 448 | Line 1188 | fi
1188   # if CDPATH is set.
1189   (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1190  
1191 < if test -z "$ECHO"; then
1192 < if test "X${echo_test_string+set}" != Xset; then
1193 < # find a string as large as possible, as long as the shell can cope with it
1194 <  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1195 <    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1196 <    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1197 <       echo_test_string=`eval $cmd` &&
1198 <       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1199 <    then
1200 <      break
1201 <    fi
1202 <  done
463 < fi
1191 > if test -z "$lt_ECHO"; then
1192 >  if test "X${echo_test_string+set}" != Xset; then
1193 >    # find a string as large as possible, as long as the shell can cope with it
1194 >    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1195 >      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1196 >      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1197 >         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1198 >      then
1199 >        break
1200 >      fi
1201 >    done
1202 >  fi
1203  
1204 < if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1205 <   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1206 <   test "X$echo_testing_string" = "X$echo_test_string"; then
1207 <  :
1208 < else
1209 <  # The Solaris, AIX, and Digital Unix default echo programs unquote
1210 <  # backslashes.  This makes it impossible to quote backslashes using
1211 <  #   echo "$something" | sed 's/\\/\\\\/g'
1212 <  #
1213 <  # So, first we look for a working echo in the user's PATH.
1204 >  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1205 >     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1206 >     test "X$echo_testing_string" = "X$echo_test_string"; then
1207 >    :
1208 >  else
1209 >    # The Solaris, AIX, and Digital Unix default echo programs unquote
1210 >    # backslashes.  This makes it impossible to quote backslashes using
1211 >    #   echo "$something" | sed 's/\\/\\\\/g'
1212 >    #
1213 >    # So, first we look for a working echo in the user's PATH.
1214  
1215 <  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1216 <  for dir in $PATH /usr/ucb; do
1215 >    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1216 >    for dir in $PATH /usr/ucb; do
1217 >      IFS="$lt_save_ifs"
1218 >      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1219 >         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1220 >         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1221 >         test "X$echo_testing_string" = "X$echo_test_string"; then
1222 >        ECHO="$dir/echo"
1223 >        break
1224 >      fi
1225 >    done
1226      IFS="$lt_save_ifs"
479    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
480       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
481       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
482       test "X$echo_testing_string" = "X$echo_test_string"; then
483      echo="$dir/echo"
484      break
485    fi
486  done
487  IFS="$lt_save_ifs"
1227  
1228 <  if test "X$echo" = Xecho; then
1229 <    # We didn't find a better echo, so look for alternatives.
1230 <    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1231 <       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1232 <       test "X$echo_testing_string" = "X$echo_test_string"; then
1233 <      # This shell has a builtin print -r that does the trick.
1234 <      echo='print -r'
1235 <    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1236 <         test "X$CONFIG_SHELL" != X/bin/ksh; then
1237 <      # If we have ksh, try running configure again with it.
1238 <      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1239 <      export ORIGINAL_CONFIG_SHELL
1240 <      CONFIG_SHELL=/bin/ksh
1241 <      export CONFIG_SHELL
1242 <      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
504 <    else
505 <      # Try using printf.
506 <      echo='printf %s\n'
507 <      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
508 <         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
509 <         test "X$echo_testing_string" = "X$echo_test_string"; then
510 <        # Cool, printf works
511 <        :
512 <      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
513 <           test "X$echo_testing_string" = 'X\t' &&
514 <           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
515 <           test "X$echo_testing_string" = "X$echo_test_string"; then
516 <        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
517 <        export CONFIG_SHELL
518 <        SHELL="$CONFIG_SHELL"
519 <        export SHELL
520 <        echo="$CONFIG_SHELL [$]0 --fallback-echo"
521 <      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
522 <           test "X$echo_testing_string" = 'X\t' &&
523 <           echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
524 <           test "X$echo_testing_string" = "X$echo_test_string"; then
525 <        echo="$CONFIG_SHELL [$]0 --fallback-echo"
1228 >    if test "X$ECHO" = Xecho; then
1229 >      # We didn't find a better echo, so look for alternatives.
1230 >      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1231 >         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1232 >         test "X$echo_testing_string" = "X$echo_test_string"; then
1233 >        # This shell has a builtin print -r that does the trick.
1234 >        ECHO='print -r'
1235 >      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1236 >           test "X$CONFIG_SHELL" != X/bin/ksh; then
1237 >        # If we have ksh, try running configure again with it.
1238 >        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1239 >        export ORIGINAL_CONFIG_SHELL
1240 >        CONFIG_SHELL=/bin/ksh
1241 >        export CONFIG_SHELL
1242 >        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1243        else
1244 <        # maybe with a smaller string...
1245 <        prev=:
1244 >        # Try using printf.
1245 >        ECHO='printf %s\n'
1246 >        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1247 >           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1248 >           test "X$echo_testing_string" = "X$echo_test_string"; then
1249 >          # Cool, printf works
1250 >          :
1251 >        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1252 >             test "X$echo_testing_string" = 'X\t' &&
1253 >             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1254 >             test "X$echo_testing_string" = "X$echo_test_string"; then
1255 >          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1256 >          export CONFIG_SHELL
1257 >          SHELL="$CONFIG_SHELL"
1258 >          export SHELL
1259 >          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1260 >        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1261 >             test "X$echo_testing_string" = 'X\t' &&
1262 >             echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1263 >             test "X$echo_testing_string" = "X$echo_test_string"; then
1264 >          ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1265 >        else
1266 >          # maybe with a smaller string...
1267 >          prev=:
1268  
1269 <        for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1270 <          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1271 <          then
1272 <            break
1273 <          fi
1274 <          prev="$cmd"
1275 <        done
1269 >          for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1270 >            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1271 >            then
1272 >              break
1273 >            fi
1274 >            prev="$cmd"
1275 >          done
1276  
1277 <        if test "$prev" != 'sed 50q "[$]0"'; then
1278 <          echo_test_string=`eval $prev`
1279 <          export echo_test_string
1280 <          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1281 <        else
1282 <          # Oops.  We lost completely, so just stick with echo.
1283 <          echo=echo
1284 <        fi
1277 >          if test "$prev" != 'sed 50q "[$]0"'; then
1278 >            echo_test_string=`eval $prev`
1279 >            export echo_test_string
1280 >            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1281 >          else
1282 >            # Oops.  We lost completely, so just stick with echo.
1283 >            ECHO=echo
1284 >          fi
1285 >        fi
1286        fi
1287      fi
1288    fi
1289   fi
550 fi
1290  
1291   # Copy echo and quote the copy suitably for passing to libtool from
1292   # the Makefile, instead of quoting the original, which is used later.
1293 < ECHO=$echo
1294 < if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1295 <   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1293 > lt_ECHO=$ECHO
1294 > if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1295 >   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1296   fi
1297  
1298 < AC_SUBST(ECHO)
1299 < ])])# _LT_AC_PROG_ECHO_BACKSLASH
1298 > AC_SUBST(lt_ECHO)
1299 > ])
1300 > _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1301 > _LT_DECL([], [ECHO], [1],
1302 >    [An echo program that does not interpret backslashes])
1303 > ])# _LT_PROG_ECHO_BACKSLASH
1304  
1305  
1306 < # _LT_AC_LOCK
1307 < # -----------
1308 < AC_DEFUN([_LT_AC_LOCK],
1306 > # _LT_ENABLE_LOCK
1307 > # ---------------
1308 > m4_defun([_LT_ENABLE_LOCK],
1309   [AC_ARG_ENABLE([libtool-lock],
1310 <    [AC_HELP_STRING([--disable-libtool-lock],
1311 <        [avoid locking (might break parallel builds)])])
1310 >  [AS_HELP_STRING([--disable-libtool-lock],
1311 >    [avoid locking (might break parallel builds)])])
1312   test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1313  
1314   # Some flags need to be propagated to the compiler or linker for good
# Line 576 | Line 1319 | ia64-*-hpux*)
1319    echo 'int i;' > conftest.$ac_ext
1320    if AC_TRY_EVAL(ac_compile); then
1321      case `/usr/bin/file conftest.$ac_objext` in
1322 <    *ELF-32*)
1323 <      HPUX_IA64_MODE="32"
1324 <      ;;
1325 <    *ELF-64*)
1326 <      HPUX_IA64_MODE="64"
1327 <      ;;
1322 >      *ELF-32*)
1323 >        HPUX_IA64_MODE="32"
1324 >        ;;
1325 >      *ELF-64*)
1326 >        HPUX_IA64_MODE="64"
1327 >        ;;
1328      esac
1329    fi
1330    rm -rf conftest*
# Line 590 | Line 1333 | ia64-*-hpux*)
1333    # Find out which ABI we are using.
1334    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1335    if AC_TRY_EVAL(ac_compile); then
1336 <   if test "$lt_cv_prog_gnu_ld" = yes; then
1337 <    case `/usr/bin/file conftest.$ac_objext` in
1338 <    *32-bit*)
1339 <      LD="${LD-ld} -melf32bsmip"
1340 <      ;;
1341 <    *N32*)
1342 <      LD="${LD-ld} -melf32bmipn32"
1343 <      ;;
1344 <    *64-bit*)
1345 <      LD="${LD-ld} -melf64bmip"
1346 <      ;;
1347 <    esac
1348 <   else
1349 <    case `/usr/bin/file conftest.$ac_objext` in
1350 <    *32-bit*)
1351 <      LD="${LD-ld} -32"
1352 <      ;;
1353 <    *N32*)
1354 <      LD="${LD-ld} -n32"
1355 <      ;;
1356 <    *64-bit*)
1357 <      LD="${LD-ld} -64"
1358 <      ;;
1359 <    esac
1360 <   fi
1336 >    if test "$lt_cv_prog_gnu_ld" = yes; then
1337 >      case `/usr/bin/file conftest.$ac_objext` in
1338 >        *32-bit*)
1339 >          LD="${LD-ld} -melf32bsmip"
1340 >          ;;
1341 >        *N32*)
1342 >          LD="${LD-ld} -melf32bmipn32"
1343 >          ;;
1344 >        *64-bit*)
1345 >          LD="${LD-ld} -melf64bmip"
1346 >        ;;
1347 >      esac
1348 >    else
1349 >      case `/usr/bin/file conftest.$ac_objext` in
1350 >        *32-bit*)
1351 >          LD="${LD-ld} -32"
1352 >          ;;
1353 >        *N32*)
1354 >          LD="${LD-ld} -n32"
1355 >          ;;
1356 >        *64-bit*)
1357 >          LD="${LD-ld} -64"
1358 >          ;;
1359 >      esac
1360 >    fi
1361    fi
1362    rm -rf conftest*
1363    ;;
1364  
1365   x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1366 < s390*-*linux*|sparc*-*linux*)
1366 > s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1367    # Find out which ABI we are using.
1368    echo 'int i;' > conftest.$ac_ext
1369    if AC_TRY_EVAL(ac_compile); then
1370      case `/usr/bin/file conftest.o` in
1371 <    *32-bit*)
1372 <      case $host in
1373 <        x86_64-*kfreebsd*-gnu)
1374 <          LD="${LD-ld} -m elf_i386_fbsd"
1375 <          ;;
1376 <        x86_64-*linux*)
1377 <          LD="${LD-ld} -m elf_i386"
1378 <          ;;
1379 <        ppc64-*linux*|powerpc64-*linux*)
1380 <          LD="${LD-ld} -m elf32ppclinux"
1381 <          ;;
1382 <        s390x-*linux*)
1383 <          LD="${LD-ld} -m elf_s390"
1384 <          ;;
1385 <        sparc64-*linux*)
1386 <          LD="${LD-ld} -m elf32_sparc"
1387 <          ;;
1388 <      esac
1389 <      ;;
1390 <    *64-bit*)
1391 <      case $host in
1392 <        x86_64-*kfreebsd*-gnu)
1393 <          LD="${LD-ld} -m elf_x86_64_fbsd"
1394 <          ;;
1395 <        x86_64-*linux*)
1396 <          LD="${LD-ld} -m elf_x86_64"
1397 <          ;;
1398 <        ppc*-*linux*|powerpc*-*linux*)
1399 <          LD="${LD-ld} -m elf64ppc"
1400 <          ;;
1401 <        s390*-*linux*)
1402 <          LD="${LD-ld} -m elf64_s390"
1403 <          ;;
1404 <        sparc*-*linux*)
1405 <          LD="${LD-ld} -m elf64_sparc"
1406 <          ;;
1407 <      esac
1408 <      ;;
1371 >      *32-bit*)
1372 >        case $host in
1373 >          x86_64-*kfreebsd*-gnu)
1374 >            LD="${LD-ld} -m elf_i386_fbsd"
1375 >            ;;
1376 >          x86_64-*linux*)
1377 >            LD="${LD-ld} -m elf_i386"
1378 >            ;;
1379 >          ppc64-*linux*|powerpc64-*linux*)
1380 >            LD="${LD-ld} -m elf32ppclinux"
1381 >            ;;
1382 >          s390x-*linux*)
1383 >            LD="${LD-ld} -m elf_s390"
1384 >            ;;
1385 >          sparc64-*linux*)
1386 >            LD="${LD-ld} -m elf32_sparc"
1387 >            ;;
1388 >        esac
1389 >        ;;
1390 >      *64-bit*)
1391 >        case $host in
1392 >          x86_64-*kfreebsd*-gnu)
1393 >            LD="${LD-ld} -m elf_x86_64_fbsd"
1394 >            ;;
1395 >          x86_64-*linux*)
1396 >            LD="${LD-ld} -m elf_x86_64"
1397 >            ;;
1398 >          ppc*-*linux*|powerpc*-*linux*)
1399 >            LD="${LD-ld} -m elf64ppc"
1400 >            ;;
1401 >          s390*-*linux*|s390*-*tpf*)
1402 >            LD="${LD-ld} -m elf64_s390"
1403 >            ;;
1404 >          sparc*-*linux*)
1405 >            LD="${LD-ld} -m elf64_sparc"
1406 >            ;;
1407 >        esac
1408 >        ;;
1409      esac
1410    fi
1411    rm -rf conftest*
# Line 674 | Line 1417 | s390*-*linux*|sparc*-*linux*)
1417    CFLAGS="$CFLAGS -belf"
1418    AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1419      [AC_LANG_PUSH(C)
1420 <     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1420 >     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1421       AC_LANG_POP])
1422    if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1423      # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
# Line 690 | Line 1433 | sparc*-*solaris*)
1433        case $lt_cv_prog_gnu_ld in
1434        yes*) LD="${LD-ld} -m elf64_sparc" ;;
1435        *)
1436 <        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1436 >        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1437            LD="${LD-ld} -64"
1438          fi
1439          ;;
# Line 700 | Line 1443 | sparc*-*solaris*)
1443    fi
1444    rm -rf conftest*
1445    ;;
703
704 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
705 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
706  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
707  AC_CHECK_TOOL(AS, as, false)
708  AC_CHECK_TOOL(OBJDUMP, objdump, false)
709  ;;
710  ])
1446   esac
1447  
1448   need_locks="$enable_libtool_lock"
1449 + ])# _LT_ENABLE_LOCK
1450 +
1451 +
1452 + # _LT_CMD_OLD_ARCHIVE
1453 + # -------------------
1454 + m4_defun([_LT_CMD_OLD_ARCHIVE],
1455 + [AC_CHECK_TOOL(AR, ar, false)
1456 + test -z "$AR" && AR=ar
1457 + test -z "$AR_FLAGS" && AR_FLAGS=cru
1458 + _LT_DECL([], [AR], [1], [The archiver])
1459 + _LT_DECL([], [AR_FLAGS], [1])
1460 +
1461 + AC_CHECK_TOOL(STRIP, strip, :)
1462 + test -z "$STRIP" && STRIP=:
1463 + _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1464 +
1465 + AC_CHECK_TOOL(RANLIB, ranlib, :)
1466 + test -z "$RANLIB" && RANLIB=:
1467 + _LT_DECL([], [RANLIB], [1],
1468 +    [Commands used to install an old-style archive])
1469 +
1470 + # Determine commands to create old-style static archives.
1471 + old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1472 + old_postinstall_cmds='chmod 644 $oldlib'
1473 + old_postuninstall_cmds=
1474  
1475 < ])# _LT_AC_LOCK
1475 > if test -n "$RANLIB"; then
1476 >  case $host_os in
1477 >  openbsd*)
1478 >    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1479 >    ;;
1480 >  *)
1481 >    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1482 >    ;;
1483 >  esac
1484 >  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1485 > fi
1486 > _LT_DECL([], [old_postinstall_cmds], [2])
1487 > _LT_DECL([], [old_postuninstall_cmds], [2])
1488 > _LT_TAGDECL([], [old_archive_cmds], [2],
1489 >    [Commands used to build an old-style archive])
1490 > ])# _LT_CMD_OLD_ARCHIVE
1491  
1492  
1493 < # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1493 > # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1494   #               [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1495   # ----------------------------------------------------------------
1496   # Check whether the given compiler option works
1497 < AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1498 < [AC_REQUIRE([LT_AC_PROG_SED])
1497 > AC_DEFUN([_LT_COMPILER_OPTION],
1498 > [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1499 > m4_require([_LT_DECL_SED])dnl
1500   AC_CACHE_CHECK([$1], [$2],
1501    [$2=no
1502 <  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1502 >   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1503     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1504     lt_compiler_flag="$3"
1505     # Insert the option either (1) after the last *FLAGS variable, or
# Line 743 | Line 1519 | AC_CACHE_CHECK([$1], [$2],
1519     if (exit $ac_status) && test -s "$ac_outfile"; then
1520       # The compiler can only warn and ignore the option if not recognized
1521       # So say no if there are warnings other than the usual output.
1522 <     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1522 >     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1523       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1524       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1525         $2=yes
1526       fi
1527     fi
1528 <   $rm conftest*
1528 >   $RM conftest*
1529   ])
1530  
1531   if test x"[$]$2" = xyes; then
1532 <    ifelse([$5], , :, [$5])
1532 >    m4_if([$5], , :, [$5])
1533   else
1534 <    ifelse([$6], , :, [$6])
1534 >    m4_if([$6], , :, [$6])
1535   fi
1536 < ])# AC_LIBTOOL_COMPILER_OPTION
761 <
1536 > ])# _LT_COMPILER_OPTION
1537  
1538 < # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1539 < #                          [ACTION-SUCCESS], [ACTION-FAILURE])
1540 < # ------------------------------------------------------------
1541 < # Check whether the given compiler option works
1542 < AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1543 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
1538 > # Old name:
1539 > AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1540 > dnl aclocal-1.4 backwards compatibility:
1541 > dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1542 >
1543 >
1544 > # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1545 > #                  [ACTION-SUCCESS], [ACTION-FAILURE])
1546 > # ----------------------------------------------------
1547 > # Check whether the given linker option works
1548 > AC_DEFUN([_LT_LINKER_OPTION],
1549 > [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1550 > m4_require([_LT_DECL_SED])dnl
1551   AC_CACHE_CHECK([$1], [$2],
1552    [$2=no
1553     save_LDFLAGS="$LDFLAGS"
# Line 777 | Line 1559 | AC_CACHE_CHECK([$1], [$2],
1559       if test -s conftest.err; then
1560         # Append any errors to the config.log.
1561         cat conftest.err 1>&AS_MESSAGE_LOG_FD
1562 <       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1562 >       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1563         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1564         if diff conftest.exp conftest.er2 >/dev/null; then
1565           $2=yes
# Line 786 | Line 1568 | AC_CACHE_CHECK([$1], [$2],
1568         $2=yes
1569       fi
1570     fi
1571 <   $rm -r conftest*
1571 >   $RM -r conftest*
1572     LDFLAGS="$save_LDFLAGS"
1573   ])
1574  
1575   if test x"[$]$2" = xyes; then
1576 <    ifelse([$4], , :, [$4])
1576 >    m4_if([$4], , :, [$4])
1577   else
1578 <    ifelse([$5], , :, [$5])
1578 >    m4_if([$5], , :, [$5])
1579   fi
1580 < ])# AC_LIBTOOL_LINKER_OPTION
1580 > ])# _LT_LINKER_OPTION
1581  
1582 + # Old name:
1583 + AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1584 + dnl aclocal-1.4 backwards compatibility:
1585 + dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1586  
1587 < # AC_LIBTOOL_SYS_MAX_CMD_LEN
1588 < # --------------------------
1589 < AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1590 < [# find the maximum length of command line arguments
1587 >
1588 > # LT_CMD_MAX_LEN
1589 > #---------------
1590 > AC_DEFUN([LT_CMD_MAX_LEN],
1591 > [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1592 > # find the maximum length of command line arguments
1593   AC_MSG_CHECKING([the maximum length of command line arguments])
1594   AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1595    i=0
# Line 823 | Line 1611 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1611      lt_cv_sys_max_cmd_len=-1;
1612      ;;
1613  
1614 <  cygwin* | mingw*)
1614 >  cygwin* | mingw* | cegcc*)
1615      # On Win9x/ME, this test blows up -- it succeeds, but takes
1616      # about 5 minutes as the teststring grows exponentially.
1617      # Worse, since 9x/ME are not pre-emptively multitasking,
# Line 878 | Line 1666 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1666    sysv5* | sco5v6* | sysv4.2uw2*)
1667      kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1668      if test -n "$kargmax"; then
1669 <      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[        ]]//'`
1669 >      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[         ]]//'`
1670      else
1671        lt_cv_sys_max_cmd_len=32768
1672      fi
# Line 889 | Line 1677 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
1677        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1678        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1679      else
1680 +      # Make teststring a little bigger before we do anything with it.
1681 +      # a 1K string should be a reasonable start.
1682 +      for i in 1 2 3 4 5 6 7 8 ; do
1683 +        teststring=$teststring$teststring
1684 +      done
1685        SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1686 <      while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1687 <               = "XX$teststring") >/dev/null 2>&1 &&
1688 <              new_result=`expr "X$teststring" : ".*" 2>&1` &&
1689 <              lt_cv_sys_max_cmd_len=$new_result &&
1686 >      # If test is not a shell built-in, we'll probably end up computing a
1687 >      # maximum length that is only half of the actual maximum length, but
1688 >      # we can't tell.
1689 >      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1690 >                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1691                test $i != 17 # 1/2 MB should be enough
1692        do
1693          i=`expr $i + 1`
1694          teststring=$teststring$teststring
1695        done
1696 +      # Only check the string length outside the loop.
1697 +      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1698        teststring=
1699 <      # Add a significant safety factor because C++ compilers can tack on massive
1700 <      # amounts of additional arguments before passing them to the linker.
1701 <      # It appears as though 1/2 is a usable value.
1699 >      # Add a significant safety factor because C++ compilers can tack on
1700 >      # massive amounts of additional arguments before passing them to the
1701 >      # linker.  It appears as though 1/2 is a usable value.
1702        lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1703      fi
1704      ;;
# Line 913 | Line 1709 | if test -n $lt_cv_sys_max_cmd_len ; then
1709   else
1710    AC_MSG_RESULT(none)
1711   fi
1712 < ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1712 > max_cmd_len=$lt_cv_sys_max_cmd_len
1713 > _LT_DECL([], [max_cmd_len], [0],
1714 >    [What is the maximum length of a command?])
1715 > ])# LT_CMD_MAX_LEN
1716  
1717 + # Old name:
1718 + AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1719 + dnl aclocal-1.4 backwards compatibility:
1720 + dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1721  
1722 < # _LT_AC_CHECK_DLFCN
1723 < # ------------------
1724 < AC_DEFUN([_LT_AC_CHECK_DLFCN],
1725 < [AC_CHECK_HEADERS(dlfcn.h)dnl
1726 < ])# _LT_AC_CHECK_DLFCN
1722 >
1723 > # _LT_HEADER_DLFCN
1724 > # ----------------
1725 > m4_defun([_LT_HEADER_DLFCN],
1726 > [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1727 > ])# _LT_HEADER_DLFCN
1728  
1729  
1730 < # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1731 < #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1732 < # ---------------------------------------------------------------------
1733 < AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1734 < [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1730 > # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1731 > #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1732 > # ----------------------------------------------------------------
1733 > m4_defun([_LT_TRY_DLOPEN_SELF],
1734 > [m4_require([_LT_HEADER_DLFCN])dnl
1735   if test "$cross_compiling" = yes; then :
1736    [$4]
1737   else
1738    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1739    lt_status=$lt_dlunknown
1740 <  cat > conftest.$ac_ext <<EOF
1740 >  cat > conftest.$ac_ext <<_LT_EOF
1741   [#line __oline__ "configure"
1742   #include "confdefs.h"
1743  
# Line 975 | Line 1779 | else
1779   #  endif
1780   #endif
1781  
978 #ifdef __cplusplus
979 extern "C" void exit (int);
980 #endif
981
1782   void fnord() { int i=42;}
1783   int main ()
1784   {
# Line 994 | Line 1794 | int main ()
1794    else
1795      puts (dlerror ());
1796  
1797 <    exit (status);
1797 >  return status;
1798   }]
1799 < EOF
1799 > _LT_EOF
1800    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1801      (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1802      lt_status=$?
# Line 1011 | Line 1811 | EOF
1811    fi
1812   fi
1813   rm -fr conftest*
1814 < ])# _LT_AC_TRY_DLOPEN_SELF
1814 > ])# _LT_TRY_DLOPEN_SELF
1815  
1816  
1817 < # AC_LIBTOOL_DLOPEN_SELF
1818 < # ----------------------
1819 < AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1820 < [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1817 > # LT_SYS_DLOPEN_SELF
1818 > # ------------------
1819 > AC_DEFUN([LT_SYS_DLOPEN_SELF],
1820 > [m4_require([_LT_HEADER_DLFCN])dnl
1821   if test "x$enable_dlopen" != xyes; then
1822    enable_dlopen=unknown
1823    enable_dlopen_self=unknown
# Line 1033 | Line 1833 | else
1833      lt_cv_dlopen_self=yes
1834      ;;
1835  
1836 <  mingw* | pw32*)
1836 >  mingw* | pw32* | cegcc*)
1837      lt_cv_dlopen="LoadLibrary"
1838      lt_cv_dlopen_libs=
1839 <   ;;
1839 >    ;;
1840  
1841    cygwin*)
1842      lt_cv_dlopen="dlopen"
1843      lt_cv_dlopen_libs=
1844 <   ;;
1844 >    ;;
1845  
1846    darwin*)
1847    # if libdl is installed we need to link against it
# Line 1051 | Line 1851 | else
1851      lt_cv_dlopen_libs=
1852      lt_cv_dlopen_self=yes
1853      ])
1854 <   ;;
1854 >    ;;
1855  
1856    *)
1857      AC_CHECK_FUNC([shl_load],
# Line 1093 | Line 1893 | else
1893  
1894      AC_CACHE_CHECK([whether a program can dlopen itself],
1895            lt_cv_dlopen_self, [dnl
1896 <          _LT_AC_TRY_DLOPEN_SELF(
1896 >          _LT_TRY_DLOPEN_SELF(
1897              lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1898              lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1899      ])
# Line 1101 | Line 1901 | else
1901      if test "x$lt_cv_dlopen_self" = xyes; then
1902        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1903        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1904 <          lt_cv_dlopen_self_static, [dnl
1905 <          _LT_AC_TRY_DLOPEN_SELF(
1904 >          lt_cv_dlopen_self_static, [dnl
1905 >          _LT_TRY_DLOPEN_SELF(
1906              lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1907              lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
1908        ])
# Line 1124 | Line 1924 | else
1924    *) enable_dlopen_self_static=unknown ;;
1925    esac
1926   fi
1927 < ])# AC_LIBTOOL_DLOPEN_SELF
1927 > _LT_DECL([dlopen_support], [enable_dlopen], [0],
1928 >         [Whether dlopen is supported])
1929 > _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1930 >         [Whether dlopen of programs is supported])
1931 > _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1932 >         [Whether dlopen of statically linked programs is supported])
1933 > ])# LT_SYS_DLOPEN_SELF
1934 >
1935 > # Old name:
1936 > AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1937 > dnl aclocal-1.4 backwards compatibility:
1938 > dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1939  
1940  
1941 < # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1942 < # ---------------------------------
1943 < # Check to see if options -c and -o are simultaneously supported by compiler
1944 < AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1945 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
1946 < AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1941 > # _LT_COMPILER_C_O([TAGNAME])
1942 > # ---------------------------
1943 > # Check to see if options -c and -o are simultaneously supported by compiler.
1944 > # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1945 > m4_defun([_LT_COMPILER_C_O],
1946 > [m4_require([_LT_DECL_SED])dnl
1947 > m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1948 > m4_require([_LT_TAG_COMPILER])dnl
1949   AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1950 <  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1951 <  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1952 <   $rm -r conftest 2>/dev/null
1950 >  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1951 >  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1952 >   $RM -r conftest 2>/dev/null
1953     mkdir conftest
1954     cd conftest
1955     mkdir out
# Line 1160 | Line 1973 | AC_CACHE_CHECK([if $compiler supports -c
1973     then
1974       # The compiler can only warn and ignore the option if not recognized
1975       # So say no if there are warnings
1976 <     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1976 >     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1977       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1978       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1979 <       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1979 >       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1980       fi
1981     fi
1982     chmod u+w . 2>&AS_MESSAGE_LOG_FD
1983 <   $rm conftest*
1983 >   $RM conftest*
1984     # SGI C++ compiler will create directory out/ii_files/ for
1985     # template instantiation
1986 <   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1987 <   $rm out/* && rmdir out
1986 >   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1987 >   $RM out/* && rmdir out
1988     cd ..
1989 <   rmdir conftest
1990 <   $rm conftest*
1989 >   $RM -r conftest
1990 >   $RM conftest*
1991   ])
1992 < ])# AC_LIBTOOL_PROG_CC_C_O
1992 > _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1993 >        [Does compiler simultaneously support -c and -o options?])
1994 > ])# _LT_COMPILER_C_O
1995  
1996  
1997 < # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1998 < # -----------------------------------------
1997 > # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1998 > # ----------------------------------
1999   # Check to see if we can do hard links to lock some files if needed
2000 < AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2001 < [AC_REQUIRE([_LT_AC_LOCK])dnl
2000 > m4_defun([_LT_COMPILER_FILE_LOCKS],
2001 > [m4_require([_LT_ENABLE_LOCK])dnl
2002 > m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2003 > _LT_COMPILER_C_O([$1])
2004  
2005   hard_links="nottested"
2006 < if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2006 > if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2007    # do not overwrite the value of need_locks provided by the user
2008    AC_MSG_CHECKING([if we can lock with hard links])
2009    hard_links=yes
2010 <  $rm conftest*
2010 >  $RM conftest*
2011    ln conftest.a conftest.b 2>/dev/null && hard_links=no
2012    touch conftest.a
2013    ln conftest.a conftest.b 2>&5 || hard_links=no
# Line 1203 | Line 2020 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compi
2020   else
2021    need_locks=no
2022   fi
2023 < ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2023 > _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2024 > ])# _LT_COMPILER_FILE_LOCKS
2025  
2026  
2027 < # AC_LIBTOOL_OBJDIR
2028 < # -----------------
2029 < AC_DEFUN([AC_LIBTOOL_OBJDIR],
2027 > # _LT_CHECK_OBJDIR
2028 > # ----------------
2029 > m4_defun([_LT_CHECK_OBJDIR],
2030   [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2031   [rm -f .libs 2>/dev/null
2032   mkdir .libs 2>/dev/null
# Line 1220 | Line 2038 | else
2038   fi
2039   rmdir .libs 2>/dev/null])
2040   objdir=$lt_cv_objdir
2041 < ])# AC_LIBTOOL_OBJDIR
2041 > _LT_DECL([], [objdir], [0],
2042 >         [The name of the directory that contains temporary libtool files])dnl
2043 > m4_pattern_allow([LT_OBJDIR])dnl
2044 > AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2045 >  [Define to the sub-directory in which libtool stores uninstalled libraries.])
2046 > ])# _LT_CHECK_OBJDIR
2047  
2048  
2049 < # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2050 < # ----------------------------------------------
2049 > # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2050 > # --------------------------------------
2051   # Check hardcoding attributes.
2052 < AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2052 > m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2053   [AC_MSG_CHECKING([how to hardcode library paths into programs])
2054 < _LT_AC_TAGVAR(hardcode_action, $1)=
2055 < if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2056 <   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2057 <   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2054 > _LT_TAGVAR(hardcode_action, $1)=
2055 > if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2056 >   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2057 >   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2058  
2059 <  # We can hardcode non-existant directories.
2060 <  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2059 >  # We can hardcode non-existent directories.
2060 >  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2061       # If the only mechanism to avoid hardcoding is shlibpath_var, we
2062       # have to relink, otherwise we might link with an installed library
2063       # when we should be linking with a yet-to-be-installed one
2064 <     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2065 <     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2064 >     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2065 >     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2066      # Linking always hardcodes the temporary library directory.
2067 <    _LT_AC_TAGVAR(hardcode_action, $1)=relink
2067 >    _LT_TAGVAR(hardcode_action, $1)=relink
2068    else
2069      # We can link without hardcoding, and we can hardcode nonexisting dirs.
2070 <    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2070 >    _LT_TAGVAR(hardcode_action, $1)=immediate
2071    fi
2072   else
2073    # We cannot hardcode anything, or else we can only hardcode existing
2074    # directories.
2075 <  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2075 >  _LT_TAGVAR(hardcode_action, $1)=unsupported
2076   fi
2077 < AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2077 > AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2078  
2079 < if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2079 > if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2080 >   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2081    # Fast installation is not supported
2082    enable_fast_install=no
2083   elif test "$shlibpath_overrides_runpath" = yes ||
# Line 1261 | Line 2085 | elif test "$shlibpath_overrides_runpath"
2085    # Fast installation is not necessary
2086    enable_fast_install=needless
2087   fi
2088 < ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2088 > _LT_TAGDECL([], [hardcode_action], [0],
2089 >    [How to hardcode a shared library path into an executable])
2090 > ])# _LT_LINKER_HARDCODE_LIBPATH
2091  
2092  
2093 < # AC_LIBTOOL_SYS_LIB_STRIP
2094 < # ------------------------
2095 < AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2096 < [striplib=
2093 > # _LT_CMD_STRIPLIB
2094 > # ----------------
2095 > m4_defun([_LT_CMD_STRIPLIB],
2096 > [m4_require([_LT_DECL_EGREP])
2097 > striplib=
2098   old_striplib=
2099   AC_MSG_CHECKING([whether stripping libraries is possible])
2100 < if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2100 > if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2101    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2102    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2103    AC_MSG_RESULT([yes])
2104   else
2105   # FIXME - insert some real tests, host_os isn't really good enough
2106    case $host_os in
2107 <   darwin*)
2108 <       if test -n "$STRIP" ; then
2109 <         striplib="$STRIP -x"
2110 <         old_striplib="$STRIP -S"
2111 <         AC_MSG_RESULT([yes])
2112 <       else
2113 <  AC_MSG_RESULT([no])
2114 < fi
2115 <       ;;
2116 <   *)
2117 <  AC_MSG_RESULT([no])
2107 >  darwin*)
2108 >    if test -n "$STRIP" ; then
2109 >      striplib="$STRIP -x"
2110 >      old_striplib="$STRIP -S"
2111 >      AC_MSG_RESULT([yes])
2112 >    else
2113 >      AC_MSG_RESULT([no])
2114 >    fi
2115 >    ;;
2116 >  *)
2117 >    AC_MSG_RESULT([no])
2118      ;;
2119    esac
2120   fi
2121 < ])# AC_LIBTOOL_SYS_LIB_STRIP
2121 > _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2122 > _LT_DECL([], [striplib], [1])
2123 > ])# _LT_CMD_STRIPLIB
2124  
2125  
2126 < # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2126 > # _LT_SYS_DYNAMIC_LINKER([TAG])
2127   # -----------------------------
2128   # PORTME Fill in your ld.so characteristics
2129 < AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2130 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
2129 > m4_defun([_LT_SYS_DYNAMIC_LINKER],
2130 > [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2131 > m4_require([_LT_DECL_EGREP])dnl
2132 > m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2133 > m4_require([_LT_DECL_OBJDUMP])dnl
2134 > m4_require([_LT_DECL_SED])dnl
2135   AC_MSG_CHECKING([dynamic linker characteristics])
2136 < library_names_spec=
2137 < libname_spec='lib$name'
1305 < soname_spec=
1306 < shrext_cmds=".so"
1307 < postinstall_cmds=
1308 < postuninstall_cmds=
1309 < finish_cmds=
1310 < finish_eval=
1311 < shlibpath_var=
1312 < shlibpath_overrides_runpath=unknown
1313 < version_type=none
1314 < dynamic_linker="$host_os ld.so"
1315 < sys_lib_dlsearch_path_spec="/lib /usr/lib"
1316 < m4_if($1,[],[
2136 > m4_if([$1],
2137 >        [], [
2138   if test "$GCC" = yes; then
2139    case $host_os in
2140      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2141      *) lt_awk_arg="/^libraries:/" ;;
2142    esac
2143    lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2144 <  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2144 >  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2145      # if the path contains ";" then we assume it to be the separator
2146      # otherwise default to the standard path separator (i.e. ":") - it is
2147      # assumed that no part of a normal pathname contains ";" but that should
2148      # okay in the real world where ";" in dirpaths is itself problematic.
2149 <    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2149 >    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2150    else
2151 <    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2151 >    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2152    fi
2153    # Ok, now we have the path, separated by spaces, we can step through it
2154    # and add multilib dir if necessary.
# Line 1341 | Line 2162 | if test "$GCC" = yes; then
2162          lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2163      fi
2164    done
2165 <  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2165 >  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2166   BEGIN {RS=" "; FS="/|\n";} {
2167    lt_foo="";
2168    lt_count=0;
# Line 1361 | Line 2182 | BEGIN {RS=" "; FS="/|\n";} {
2182    if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2183    if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2184   }'`
2185 <  sys_lib_search_path_spec=`echo $lt_search_path_spec`
2185 >  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2186   else
2187    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2188   fi])
2189 + library_names_spec=
2190 + libname_spec='lib$name'
2191 + soname_spec=
2192 + shrext_cmds=".so"
2193 + postinstall_cmds=
2194 + postuninstall_cmds=
2195 + finish_cmds=
2196 + finish_eval=
2197 + shlibpath_var=
2198 + shlibpath_overrides_runpath=unknown
2199 + version_type=none
2200 + dynamic_linker="$host_os ld.so"
2201 + sys_lib_dlsearch_path_spec="/lib /usr/lib"
2202   need_lib_prefix=unknown
2203   hardcode_into_libs=no
2204  
# Line 1401 | Line 2235 | aix[[4-9]]*)
2235        aix4 | aix4.[[01]] | aix4.[[01]].*)
2236        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2237             echo ' yes '
2238 <           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2238 >           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2239          :
2240        else
2241          can_build_shared=no
# Line 1427 | Line 2261 | aix[[4-9]]*)
2261    ;;
2262  
2263   amigaos*)
2264 <  library_names_spec='$libname.ixlibrary $libname.a'
2265 <  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2266 <  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'
2264 >  case $host_cpu in
2265 >  powerpc)
2266 >    # Since July 2007 AmigaOS4 officially supports .so libraries.
2267 >    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2268 >    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2269 >    ;;
2270 >  m68k)
2271 >    library_names_spec='$libname.ixlibrary $libname.a'
2272 >    # Create ${libname}_ixlibrary.a entries in /sys/libs.
2273 >    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'
2274 >    ;;
2275 >  esac
2276    ;;
2277  
2278   beos*)
# Line 1452 | Line 2295 | bsdi[[45]]*)
2295    # libtool to hard-code these into programs
2296    ;;
2297  
2298 < cygwin* | mingw* | pw32*)
2298 > cygwin* | mingw* | pw32* | cegcc*)
2299    version_type=windows
2300    shrext_cmds=".dll"
2301    need_version=no
2302    need_lib_prefix=no
2303  
2304    case $GCC,$host_os in
2305 <  yes,cygwin* | yes,mingw* | yes,pw32*)
2305 >  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2306      library_names_spec='$libname.dll.a'
2307      # DLL is installed to $(libdir)/../bin by postinstall_cmds
2308      postinstall_cmds='base_file=`basename \${file}`~
2309 <      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2309 >      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2310        dldir=$destdir/`dirname \$dlpath`~
2311        test -d \$dldir || mkdir -p \$dldir~
2312        $install_prog $dir/$dlname \$dldir/$dlname~
2313 <      chmod a+x \$dldir/$dlname'
2313 >      chmod a+x \$dldir/$dlname~
2314 >      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2315 >        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2316 >      fi'
2317      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2318        dlpath=$dir/\$dldll~
2319 <       $rm \$dlpath'
2319 >       $RM \$dlpath'
2320      shlibpath_overrides_runpath=yes
2321  
2322      case $host_os in
# Line 1479 | Line 2325 | cygwin* | mingw* | pw32*)
2325        soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2326        sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2327        ;;
2328 <    mingw*)
2328 >    mingw* | cegcc*)
2329        # MinGW DLLs use traditional 'lib' prefix
2330        soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2331 <      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2332 <      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2331 >      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2332 >      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2333          # It is most probably a Windows format PATH printed by
2334          # mingw gcc, but we are running on Cygwin. Gcc prints its search
2335          # path with ; separators, and with drive letters. We can handle the
2336          # drive letters (cygwin fileutils understands them), so leave them,
2337          # especially as we might pass files found there to a mingw objdump,
2338          # which wouldn't understand a cygwinified path. Ahh.
2339 <        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2339 >        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2340        else
2341 <        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2341 >        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
2342        fi
2343        ;;
2344      pw32*)
# Line 1516 | Line 2362 | darwin* | rhapsody*)
2362    version_type=darwin
2363    need_lib_prefix=no
2364    need_version=no
2365 <  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2365 >  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2366    soname_spec='${libname}${release}${major}$shared_ext'
2367    shlibpath_overrides_runpath=yes
2368    shlibpath_var=DYLD_LIBRARY_PATH
2369    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2370 <  m4_if([$1], [],[
2371 <  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2370 > m4_if([$1], [],[
2371 >  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2372    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2373    ;;
2374  
# Line 1615 | Line 2461 | hpux9* | hpux10* | hpux11*)
2461      fi
2462      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2463      ;;
2464 <   hppa*64*)
2465 <     shrext_cmds='.sl'
2466 <     hardcode_into_libs=yes
2467 <     dynamic_linker="$host_os dld.sl"
2468 <     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2469 <     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2470 <     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2471 <     soname_spec='${libname}${release}${shared_ext}$major'
2472 <     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2473 <     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2474 <     ;;
2475 <   *)
2464 >  hppa*64*)
2465 >    shrext_cmds='.sl'
2466 >    hardcode_into_libs=yes
2467 >    dynamic_linker="$host_os dld.sl"
2468 >    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2469 >    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2470 >    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2471 >    soname_spec='${libname}${release}${shared_ext}$major'
2472 >    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2473 >    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2474 >    ;;
2475 >  *)
2476      shrext_cmds='.sl'
2477      dynamic_linker="$host_os dld.sl"
2478      shlibpath_var=SHLIB_PATH
# Line 1703 | Line 2549 | linux* | k*bsd*-gnu)
2549    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2550    shlibpath_var=LD_LIBRARY_PATH
2551    shlibpath_overrides_runpath=no
2552 +  # Some binutils ld are patched to set DT_RUNPATH
2553 +  save_LDFLAGS=$LDFLAGS
2554 +  save_libdir=$libdir
2555 +  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2556 +       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2557 +  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2558 +    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2559 +       [shlibpath_overrides_runpath=yes])])
2560 +  LDFLAGS=$save_LDFLAGS
2561 +  libdir=$save_libdir
2562 +
2563    # This implies no fast_install, which is unacceptable.
2564    # Some rework will be needed to allow for fast_install
2565    # before this can be enabled.
2566    hardcode_into_libs=yes
2567  
2568 +  # find out which ABI we are using
2569 +  libsuff=
2570 +  case "$host_cpu" in
2571 +  x86_64*|s390x*|powerpc64*)
2572 +    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2573 +    if AC_TRY_EVAL(ac_compile); then
2574 +      case `/usr/bin/file conftest.$ac_objext` in
2575 +      *64-bit*)
2576 +        libsuff=64
2577 +        ;;
2578 +      esac
2579 +    fi
2580 +    rm -rf conftest*
2581 +    ;;
2582 +  esac
2583 +
2584 +  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
2585 +
2586    # Append ld.so.conf contents to the search path
2587    if test -f /etc/ld.so.conf; then
2588 <    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[  ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2589 <    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2588 >    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2589 >    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2590    fi
2591  
2592    # We used to test for /lib/ld.so.1 and disable shared libraries on
# Line 1727 | Line 2602 | netbsd*)
2602    version_type=sunos
2603    need_lib_prefix=no
2604    need_version=no
2605 <  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2605 >  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2606      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2607      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2608      dynamic_linker='NetBSD (a.out) ld.so'
# Line 1748 | Line 2623 | newsos6)
2623    shlibpath_overrides_runpath=yes
2624    ;;
2625  
2626 < nto-qnx*)
2627 <  version_type=linux
2626 > *nto* | *qnx*)
2627 >  version_type=qnx
2628    need_lib_prefix=no
2629    need_version=no
2630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2631    soname_spec='${libname}${release}${shared_ext}$major'
2632    shlibpath_var=LD_LIBRARY_PATH
2633 <  shlibpath_overrides_runpath=yes
2633 >  shlibpath_overrides_runpath=no
2634 >  hardcode_into_libs=yes
2635 >  dynamic_linker='ldqnx.so'
2636    ;;
2637  
2638   openbsd*)
# Line 1764 | Line 2641 | openbsd*)
2641    need_lib_prefix=no
2642    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2643    case $host_os in
2644 <    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2645 <    *)                         need_version=no  ;;
2644 >    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
2645 >    *)                          need_version=no  ;;
2646    esac
2647    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2648    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2649    shlibpath_var=LD_LIBRARY_PATH
2650 <  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2650 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2651      case $host_os in
2652        openbsd2.[[89]] | openbsd2.[[89]].*)
2653          shlibpath_overrides_runpath=no
# Line 1842 | Line 2719 | sysv4 | sysv4.3*)
2719      sni)
2720        shlibpath_overrides_runpath=no
2721        need_lib_prefix=no
1845      export_dynamic_flag_spec='${wl}-Blargedynsym'
2722        runpath_var=LD_RUN_PATH
2723        ;;
2724      siemens)
# Line 1873 | Line 2749 | sysv5* | sco3.2v5* | sco5v6* | unixware*
2749    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2750    soname_spec='${libname}${release}${shared_ext}$major'
2751    shlibpath_var=LD_LIBRARY_PATH
2752 +  shlibpath_overrides_runpath=yes
2753    hardcode_into_libs=yes
2754    if test "$with_gnu_ld" = yes; then
2755      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1879    shlibpath_overrides_runpath=no
2756    else
2757      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1882    shlibpath_overrides_runpath=yes
2758      case $host_os in
2759        sco3.2v5*)
2760          sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
# Line 1889 | Line 2764 | sysv5* | sco3.2v5* | sco5v6* | unixware*
2764    sys_lib_dlsearch_path_spec='/usr/lib'
2765    ;;
2766  
2767 + tpf*)
2768 +  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
2769 +  version_type=linux
2770 +  need_lib_prefix=no
2771 +  need_version=no
2772 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2773 +  shlibpath_var=LD_LIBRARY_PATH
2774 +  shlibpath_overrides_runpath=no
2775 +  hardcode_into_libs=yes
2776 +  ;;
2777 +
2778   uts4*)
2779    version_type=linux
2780    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
# Line 1903 | Line 2789 | esac
2789   AC_MSG_RESULT([$dynamic_linker])
2790   test "$dynamic_linker" = no && can_build_shared=no
2791  
1906 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1907 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1909 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1910 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1912
2792   variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2793   if test "$GCC" = yes; then
2794    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2795   fi
1917 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1918
1919
1920 # _LT_AC_TAGCONFIG
1921 # ----------------
1922 AC_DEFUN([_LT_AC_TAGCONFIG],
1923 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1924 AC_ARG_WITH([tags],
1925    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1926        [include additional configurations @<:@automatic@:>@])],
1927    [tagnames="$withval"])
1928
1929 if test -f "$ltmain" && test -n "$tagnames"; then
1930  if test ! -f "${ofile}"; then
1931    AC_MSG_WARN([output file `$ofile' does not exist])
1932  fi
1933
1934  if test -z "$LTCC"; then
1935    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1936    if test -z "$LTCC"; then
1937      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1938    else
1939      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1940    fi
1941  fi
1942  if test -z "$LTCFLAGS"; then
1943    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1944  fi
1945
1946  # Extract list of available tagged configurations in $ofile.
1947  # Note that this assumes the entire list is on one line.
1948  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1949
1950  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1951  for tagname in $tagnames; do
1952    IFS="$lt_save_ifs"
1953    # Check whether tagname contains only valid characters
1954    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1955    "") ;;
1956    *)  AC_MSG_ERROR([invalid tag name: $tagname])
1957        ;;
1958    esac
1959
1960    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1961    then
1962      AC_MSG_ERROR([tag name \"$tagname\" already exists])
1963    fi
1964
1965    # Update the list of available tags.
1966    if test -n "$tagname"; then
1967      echo appending configuration tag \"$tagname\" to $ofile
1968
1969      case $tagname in
1970      CXX)
1971        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1972            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1973            (test "X$CXX" != "Xg++"))) ; then
1974          AC_LIBTOOL_LANG_CXX_CONFIG
1975        else
1976          tagname=""
1977        fi
1978        ;;
1979
1980      F77)
1981        if test -n "$F77" && test "X$F77" != "Xno"; then
1982          AC_LIBTOOL_LANG_F77_CONFIG
1983        else
1984          tagname=""
1985        fi
1986        ;;
1987
1988      GCJ)
1989        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1990          AC_LIBTOOL_LANG_GCJ_CONFIG
1991        else
1992          tagname=""
1993        fi
1994        ;;
2796  
2797 <      RC)
2798 <        AC_LIBTOOL_LANG_RC_CONFIG
2799 <        ;;
2800 <
2801 <      *)
2001 <        AC_MSG_ERROR([Unsupported tag name: $tagname])
2002 <        ;;
2003 <      esac
2004 <
2005 <      # Append the new tag name to the list of available tags.
2006 <      if test -n "$tagname" ; then
2007 <      available_tags="$available_tags $tagname"
2008 <    fi
2009 <    fi
2010 <  done
2011 <  IFS="$lt_save_ifs"
2012 <
2013 <  # Now substitute the updated list of available tags.
2014 <  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2015 <    mv "${ofile}T" "$ofile"
2016 <    chmod +x "$ofile"
2017 <  else
2018 <    rm -f "${ofile}T"
2019 <    AC_MSG_ERROR([unable to update list of available tagged configurations.])
2020 <  fi
2797 > if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2798 >  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2799 > fi
2800 > if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2801 >  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2802   fi
2022 ])# _LT_AC_TAGCONFIG
2023
2024
2025 # AC_LIBTOOL_DLOPEN
2026 # -----------------
2027 # enable checks for dlopen support
2028 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2029 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2030 ])# AC_LIBTOOL_DLOPEN
2031
2032
2033 # AC_LIBTOOL_WIN32_DLL
2034 # --------------------
2035 # declare package support for building win32 DLLs
2036 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2037 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2038 ])# AC_LIBTOOL_WIN32_DLL
2039
2040
2041 # AC_ENABLE_SHARED([DEFAULT])
2042 # ---------------------------
2043 # implement the --enable-shared flag
2044 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2045 AC_DEFUN([AC_ENABLE_SHARED],
2046 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2047 AC_ARG_ENABLE([shared],
2048    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2049        [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2050    [p=${PACKAGE-default}
2051    case $enableval in
2052    yes) enable_shared=yes ;;
2053    no) enable_shared=no ;;
2054    *)
2055      enable_shared=no
2056      # Look at the argument we got.  We use all the common list separators.
2057      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2058      for pkg in $enableval; do
2059        IFS="$lt_save_ifs"
2060        if test "X$pkg" = "X$p"; then
2061          enable_shared=yes
2062        fi
2063      done
2064      IFS="$lt_save_ifs"
2065      ;;
2066    esac],
2067    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2068 ])# AC_ENABLE_SHARED
2069
2070
2071 # AC_DISABLE_SHARED
2072 # -----------------
2073 # set the default shared flag to --disable-shared
2074 AC_DEFUN([AC_DISABLE_SHARED],
2075 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2076 AC_ENABLE_SHARED(no)
2077 ])# AC_DISABLE_SHARED
2078
2079
2080 # AC_ENABLE_STATIC([DEFAULT])
2081 # ---------------------------
2082 # implement the --enable-static flag
2083 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2084 AC_DEFUN([AC_ENABLE_STATIC],
2085 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2086 AC_ARG_ENABLE([static],
2087    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2088        [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2089    [p=${PACKAGE-default}
2090    case $enableval in
2091    yes) enable_static=yes ;;
2092    no) enable_static=no ;;
2093    *)
2094     enable_static=no
2095      # Look at the argument we got.  We use all the common list separators.
2096      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2097      for pkg in $enableval; do
2098        IFS="$lt_save_ifs"
2099        if test "X$pkg" = "X$p"; then
2100          enable_static=yes
2101        fi
2102      done
2103      IFS="$lt_save_ifs"
2104      ;;
2105    esac],
2106    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2107 ])# AC_ENABLE_STATIC
2108
2109
2110 # AC_DISABLE_STATIC
2111 # -----------------
2112 # set the default static flag to --disable-static
2113 AC_DEFUN([AC_DISABLE_STATIC],
2114 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2115 AC_ENABLE_STATIC(no)
2116 ])# AC_DISABLE_STATIC
2117
2118
2119 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2120 # ---------------------------------
2121 # implement the --enable-fast-install flag
2122 # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
2123 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2124 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2125 AC_ARG_ENABLE([fast-install],
2126    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2127    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2128    [p=${PACKAGE-default}
2129    case $enableval in
2130    yes) enable_fast_install=yes ;;
2131    no) enable_fast_install=no ;;
2132    *)
2133      enable_fast_install=no
2134      # Look at the argument we got.  We use all the common list separators.
2135      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2136      for pkg in $enableval; do
2137        IFS="$lt_save_ifs"
2138        if test "X$pkg" = "X$p"; then
2139          enable_fast_install=yes
2140        fi
2141      done
2142      IFS="$lt_save_ifs"
2143      ;;
2144    esac],
2145    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2146 ])# AC_ENABLE_FAST_INSTALL
2803  
2804 + _LT_DECL([], [variables_saved_for_relink], [1],
2805 +    [Variables whose values should be saved in libtool wrapper scripts and
2806 +    restored at link time])
2807 + _LT_DECL([], [need_lib_prefix], [0],
2808 +    [Do we need the "lib" prefix for modules?])
2809 + _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2810 + _LT_DECL([], [version_type], [0], [Library versioning type])
2811 + _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
2812 + _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2813 + _LT_DECL([], [shlibpath_overrides_runpath], [0],
2814 +    [Is shlibpath searched before the hard-coded library search path?])
2815 + _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2816 + _LT_DECL([], [library_names_spec], [1],
2817 +    [[List of archive names.  First name is the real one, the rest are links.
2818 +    The last name is the one that the linker finds with -lNAME]])
2819 + _LT_DECL([], [soname_spec], [1],
2820 +    [[The coded name of the library, if different from the real name]])
2821 + _LT_DECL([], [postinstall_cmds], [2],
2822 +    [Command to use after installation of a shared archive])
2823 + _LT_DECL([], [postuninstall_cmds], [2],
2824 +    [Command to use after uninstallation of a shared archive])
2825 + _LT_DECL([], [finish_cmds], [2],
2826 +    [Commands used to finish a libtool library installation in a directory])
2827 + _LT_DECL([], [finish_eval], [1],
2828 +    [[As "finish_cmds", except a single script fragment to be evaled but
2829 +    not shown]])
2830 + _LT_DECL([], [hardcode_into_libs], [0],
2831 +    [Whether we should hardcode library paths into libraries])
2832 + _LT_DECL([], [sys_lib_search_path_spec], [2],
2833 +    [Compile-time system search path for libraries])
2834 + _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2835 +    [Run-time system search path for libraries])
2836 + ])# _LT_SYS_DYNAMIC_LINKER
2837  
2149 # AC_DISABLE_FAST_INSTALL
2150 # -----------------------
2151 # set the default to --disable-fast-install
2152 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2153 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2154 AC_ENABLE_FAST_INSTALL(no)
2155 ])# AC_DISABLE_FAST_INSTALL
2838  
2839 <
2158 < # AC_LIBTOOL_PICMODE([MODE])
2839 > # _LT_PATH_TOOL_PREFIX(TOOL)
2840   # --------------------------
2160 # implement the --with-pic flag
2161 # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
2162 AC_DEFUN([AC_LIBTOOL_PICMODE],
2163 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2164 pic_mode=ifelse($#,1,$1,default)
2165 ])# AC_LIBTOOL_PICMODE
2166
2167
2168 # AC_PROG_EGREP
2169 # -------------
2170 # This is predefined starting with Autoconf 2.54, so this conditional
2171 # definition can be removed once we require Autoconf 2.54 or later.
2172 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2173 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2174   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2175    then ac_cv_prog_egrep='grep -E'
2176    else ac_cv_prog_egrep='egrep'
2177    fi])
2178 EGREP=$ac_cv_prog_egrep
2179 AC_SUBST([EGREP])
2180 ])])
2181
2182
2183 # AC_PATH_TOOL_PREFIX
2184 # -------------------
2841   # find a file program which can recognize shared library
2842 < AC_DEFUN([AC_PATH_TOOL_PREFIX],
2843 < [AC_REQUIRE([AC_PROG_EGREP])dnl
2842 > AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2843 > [m4_require([_LT_DECL_EGREP])dnl
2844   AC_MSG_CHECKING([for $1])
2845   AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2846   [case $MAGIC_CMD in
# Line 2197 | Line 2853 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2853   dnl $ac_dummy forces splitting on constant user-supplied paths.
2854   dnl POSIX.2 word splitting is done only on the output of word expansions,
2855   dnl not every word.  This closes a longstanding sh security hole.
2856 <  ac_dummy="ifelse([$2], , $PATH, [$2])"
2856 >  ac_dummy="m4_if([$2], , $PATH, [$2])"
2857    for ac_dir in $ac_dummy; do
2858      IFS="$lt_save_ifs"
2859      test -z "$ac_dir" && ac_dir=.
# Line 2212 | Line 2868 | dnl not every word.  This closes a longs
2868              $EGREP "$file_magic_regex" > /dev/null; then
2869              :
2870            else
2871 <            cat <<EOF 1>&2
2871 >            cat <<_LT_EOF 1>&2
2872  
2873   *** Warning: the command libtool uses to detect shared libraries,
2874   *** $file_magic_cmd, produces output that libtool cannot recognize.
# Line 2223 | Line 2879 | dnl not every word.  This closes a longs
2879   *** may want to report the problem to your system manager and/or to
2880   *** bug-libtool@gnu.org
2881  
2882 < EOF
2882 > _LT_EOF
2883            fi ;;
2884          esac
2885        fi
# Line 2240 | Line 2896 | if test -n "$MAGIC_CMD"; then
2896   else
2897    AC_MSG_RESULT(no)
2898   fi
2899 < ])# AC_PATH_TOOL_PREFIX
2899 > _LT_DECL([], [MAGIC_CMD], [0],
2900 >         [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2901 > ])# _LT_PATH_TOOL_PREFIX
2902  
2903 + # Old name:
2904 + AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2905 + dnl aclocal-1.4 backwards compatibility:
2906 + dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2907  
2908 < # AC_PATH_MAGIC
2909 < # -------------
2908 >
2909 > # _LT_PATH_MAGIC
2910 > # --------------
2911   # find a file program which can recognize a shared library
2912 < AC_DEFUN([AC_PATH_MAGIC],
2913 < [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2912 > m4_defun([_LT_PATH_MAGIC],
2913 > [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2914   if test -z "$lt_cv_path_MAGIC_CMD"; then
2915    if test -n "$ac_tool_prefix"; then
2916 <    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2916 >    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2917    else
2918      MAGIC_CMD=:
2919    fi
2920   fi
2921 < ])# AC_PATH_MAGIC
2921 > ])# _LT_PATH_MAGIC
2922  
2923  
2924 < # AC_PROG_LD
2924 > # LT_PATH_LD
2925   # ----------
2926   # find the pathname to the GNU or non-GNU linker
2927 < AC_DEFUN([AC_PROG_LD],
2928 < [AC_ARG_WITH([gnu-ld],
2266 <    [AC_HELP_STRING([--with-gnu-ld],
2267 <        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2268 <    [test "$withval" = no || with_gnu_ld=yes],
2269 <    [with_gnu_ld=no])
2270 < AC_REQUIRE([LT_AC_PROG_SED])dnl
2271 < AC_REQUIRE([AC_PROG_CC])dnl
2927 > AC_DEFUN([LT_PATH_LD],
2928 > [AC_REQUIRE([AC_PROG_CC])dnl
2929   AC_REQUIRE([AC_CANONICAL_HOST])dnl
2930   AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2931 + m4_require([_LT_DECL_SED])dnl
2932 + m4_require([_LT_DECL_EGREP])dnl
2933 +
2934 + AC_ARG_WITH([gnu-ld],
2935 +    [AS_HELP_STRING([--with-gnu-ld],
2936 +        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2937 +    [test "$withval" = no || with_gnu_ld=yes],
2938 +    [with_gnu_ld=no])dnl
2939 +
2940   ac_prog=ld
2941   if test "$GCC" = yes; then
2942    # Check if gcc -print-prog-name=ld gives a path.
# Line 2287 | Line 2953 | if test "$GCC" = yes; then
2953      [[\\/]]* | ?:[[\\/]]*)
2954        re_direlt='/[[^/]][[^/]]*/\.\./'
2955        # Canonicalize the pathname of ld
2956 <      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2957 <      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2958 <        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2956 >      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2957 >      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2958 >        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
2959        done
2960        test -z "$LD" && LD="$ac_prog"
2961        ;;
# Line 2339 | Line 3005 | else
3005    AC_MSG_RESULT(no)
3006   fi
3007   test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3008 < AC_PROG_LD_GNU
3009 < ])# AC_PROG_LD
3008 > _LT_PATH_LD_GNU
3009 > AC_SUBST([LD])
3010  
3011 + _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3012 + ])# LT_PATH_LD
3013  
3014 < # AC_PROG_LD_GNU
3015 < # --------------
3016 < AC_DEFUN([AC_PROG_LD_GNU],
3017 < [AC_REQUIRE([AC_PROG_EGREP])dnl
3018 < AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3014 > # Old names:
3015 > AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3016 > AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3017 > dnl aclocal-1.4 backwards compatibility:
3018 > dnl AC_DEFUN([AM_PROG_LD], [])
3019 > dnl AC_DEFUN([AC_PROG_LD], [])
3020 >
3021 >
3022 > # _LT_PATH_LD_GNU
3023 > #- --------------
3024 > m4_defun([_LT_PATH_LD_GNU],
3025 > [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3026   [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3027   case `$LD -v 2>&1 </dev/null` in
3028   *GNU* | *'with BFD'*)
# Line 2358 | Line 3033 | case `$LD -v 2>&1 </dev/null` in
3033    ;;
3034   esac])
3035   with_gnu_ld=$lt_cv_prog_gnu_ld
3036 < ])# AC_PROG_LD_GNU
3036 > ])# _LT_PATH_LD_GNU
3037  
3038  
3039 < # AC_PROG_LD_RELOAD_FLAG
3040 < # ----------------------
3039 > # _LT_CMD_RELOAD
3040 > # --------------
3041   # find reload flag for linker
3042   #   -- PORTME Some linkers may need a different reload flag.
3043 < AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3043 > m4_defun([_LT_CMD_RELOAD],
3044   [AC_CACHE_CHECK([for $LD option to reload object files],
3045    lt_cv_ld_reload_flag,
3046    [lt_cv_ld_reload_flag='-r'])
# Line 2384 | Line 3059 | case $host_os in
3059      fi
3060      ;;
3061   esac
3062 < ])# AC_PROG_LD_RELOAD_FLAG
3062 > _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3063 > _LT_DECL([], [reload_cmds], [2])dnl
3064 > ])# _LT_CMD_RELOAD
3065  
3066  
3067 < # AC_DEPLIBS_CHECK_METHOD
3068 < # -----------------------
3067 > # _LT_CHECK_MAGIC_METHOD
3068 > # ----------------------
3069   # how to check for library dependencies
3070   #  -- PORTME fill in with the dynamic library characteristics
3071 < AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3072 < [AC_CACHE_CHECK([how to recognize dependent libraries],
3071 > m4_defun([_LT_CHECK_MAGIC_METHOD],
3072 > [m4_require([_LT_DECL_EGREP])
3073 > m4_require([_LT_DECL_OBJDUMP])
3074 > AC_CACHE_CHECK([how to recognize dependent libraries],
3075   lt_cv_deplibs_check_method,
3076   [lt_cv_file_magic_cmd='$MAGIC_CMD'
3077   lt_cv_file_magic_test_file=
# Line 2442 | Line 3121 | mingw* | pw32*)
3121    fi
3122    ;;
3123  
3124 + cegcc)
3125 +  # use the weaker test based on 'objdump'. See mingw*.
3126 +  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3127 +  lt_cv_file_magic_cmd='$OBJDUMP -f'
3128 +  ;;
3129 +
3130   darwin* | rhapsody*)
3131    lt_cv_deplibs_check_method=pass_all
3132    ;;
3133  
3134   freebsd* | dragonfly*)
3135 <  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3135 >  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3136      case $host_cpu in
3137      i*86 )
3138        # Not sure whether the presence of OpenBSD here was a mistake.
# Line 2505 | Line 3190 | linux* | k*bsd*-gnu)
3190    ;;
3191  
3192   netbsd*)
3193 <  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3193 >  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3194      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3195    else
3196      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
# Line 2518 | Line 3203 | newos6*)
3203    lt_cv_file_magic_test_file=/usr/lib/libnls.so
3204    ;;
3205  
3206 < nto-qnx*)
3207 <  lt_cv_deplibs_check_method=unknown
3206 > *nto* | *qnx*)
3207 >  lt_cv_deplibs_check_method=pass_all
3208    ;;
3209  
3210   openbsd*)
3211 <  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3211 >  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3212      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3213    else
3214      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
# Line 2542 | Line 3227 | solaris*)
3227    lt_cv_deplibs_check_method=pass_all
3228    ;;
3229  
3230 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3231 +  lt_cv_deplibs_check_method=pass_all
3232 +  ;;
3233 +
3234   sysv4 | sysv4.3*)
3235    case $host_vendor in
3236    motorola)
# Line 2569 | Line 3258 | sysv4 | sysv4.3*)
3258    esac
3259    ;;
3260  
3261 < sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3261 > tpf*)
3262    lt_cv_deplibs_check_method=pass_all
3263    ;;
3264   esac
# Line 2577 | Line 3266 | esac
3266   file_magic_cmd=$lt_cv_file_magic_cmd
3267   deplibs_check_method=$lt_cv_deplibs_check_method
3268   test -z "$deplibs_check_method" && deplibs_check_method=unknown
3269 < ])# AC_DEPLIBS_CHECK_METHOD
3269 >
3270 > _LT_DECL([], [deplibs_check_method], [1],
3271 >    [Method to check whether dependent libraries are shared objects])
3272 > _LT_DECL([], [file_magic_cmd], [1],
3273 >    [Command to use when deplibs_check_method == "file_magic"])
3274 > ])# _LT_CHECK_MAGIC_METHOD
3275  
3276  
3277 < # AC_PROG_NM
3277 > # LT_PATH_NM
3278   # ----------
3279 < # find the pathname to a BSD-compatible name lister
3280 < AC_DEFUN([AC_PROG_NM],
3281 < [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3279 > # find the pathname to a BSD- or MS-compatible name lister
3280 > AC_DEFUN([LT_PATH_NM],
3281 > [AC_REQUIRE([AC_PROG_CC])dnl
3282 > AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3283   [if test -n "$NM"; then
3284    # Let the user override the test.
3285    lt_cv_path_NM="$NM"
# Line 2626 | Line 3321 | else
3321      done
3322      IFS="$lt_save_ifs"
3323    done
3324 <  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3324 >  : ${lt_cv_path_NM=no}
3325   fi])
3326 < NM="$lt_cv_path_NM"
3327 < ])# AC_PROG_NM
3326 > if test "$lt_cv_path_NM" != "no"; then
3327 >  NM="$lt_cv_path_NM"
3328 > else
3329 >  # Didn't find any BSD compatible name lister, look for dumpbin.
3330 >  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3331 >  AC_SUBST([DUMPBIN])
3332 >  if test "$DUMPBIN" != ":"; then
3333 >    NM="$DUMPBIN"
3334 >  fi
3335 > fi
3336 > test -z "$NM" && NM=nm
3337 > AC_SUBST([NM])
3338 > _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3339  
3340 + AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3341 +  [lt_cv_nm_interface="BSD nm"
3342 +  echo "int some_variable = 0;" > conftest.$ac_ext
3343 +  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3344 +  (eval "$ac_compile" 2>conftest.err)
3345 +  cat conftest.err >&AS_MESSAGE_LOG_FD
3346 +  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3347 +  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3348 +  cat conftest.err >&AS_MESSAGE_LOG_FD
3349 +  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3350 +  cat conftest.out >&AS_MESSAGE_LOG_FD
3351 +  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3352 +    lt_cv_nm_interface="MS dumpbin"
3353 +  fi
3354 +  rm -f conftest*])
3355 + ])# LT_PATH_NM
3356 +
3357 + # Old names:
3358 + AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3359 + AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3360 + dnl aclocal-1.4 backwards compatibility:
3361 + dnl AC_DEFUN([AM_PROG_NM], [])
3362 + dnl AC_DEFUN([AC_PROG_NM], [])
3363  
3364 < # AC_CHECK_LIBM
3365 < # -------------
3364 >
3365 > # LT_LIB_M
3366 > # --------
3367   # check for math library
3368 < AC_DEFUN([AC_CHECK_LIBM],
3368 > AC_DEFUN([LT_LIB_M],
3369   [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3370   LIBM=
3371   case $host in
# Line 2650 | Line 3380 | case $host in
3380    AC_CHECK_LIB(m, cos, LIBM="-lm")
3381    ;;
3382   esac
3383 < ])# AC_CHECK_LIBM
3384 <
2655 <
2656 < # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2657 < # -----------------------------------
2658 < # sets LIBLTDL to the link flags for the libltdl convenience library and
2659 < # LTDLINCL to the include flags for the libltdl header and adds
2660 < # --enable-ltdl-convenience to the configure arguments.  Note that
2661 < # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2662 < # it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
2663 < # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2664 < # (note the single quotes!).  If your package is not flat and you're not
2665 < # using automake, define top_builddir and top_srcdir appropriately in
2666 < # the Makefiles.
2667 < AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2668 < [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2669 <  case $enable_ltdl_convenience in
2670 <  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2671 <  "") enable_ltdl_convenience=yes
2672 <      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2673 <  esac
2674 <  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2675 <  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2676 <  # For backwards non-gettext consistent compatibility...
2677 <  INCLTDL="$LTDLINCL"
2678 < ])# AC_LIBLTDL_CONVENIENCE
2679 <
2680 <
2681 < # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2682 < # -----------------------------------
2683 < # sets LIBLTDL to the link flags for the libltdl installable library and
2684 < # LTDLINCL to the include flags for the libltdl header and adds
2685 < # --enable-ltdl-install to the configure arguments.  Note that
2686 < # AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
2687 < # and an installed libltdl is not found, it is assumed to be `libltdl'.
2688 < # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2689 < # '${top_srcdir}/' (note the single quotes!).  If your package is not
2690 < # flat and you're not using automake, define top_builddir and top_srcdir
2691 < # appropriately in the Makefiles.
2692 < # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2693 < AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2694 < [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2695 <  AC_CHECK_LIB(ltdl, lt_dlinit,
2696 <  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2697 <  [if test x"$enable_ltdl_install" = xno; then
2698 <     AC_MSG_WARN([libltdl not installed, but installation disabled])
2699 <   else
2700 <     enable_ltdl_install=yes
2701 <   fi
2702 <  ])
2703 <  if test x"$enable_ltdl_install" = x"yes"; then
2704 <    ac_configure_args="$ac_configure_args --enable-ltdl-install"
2705 <    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2706 <    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2707 <  else
2708 <    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2709 <    LIBLTDL="-lltdl"
2710 <    LTDLINCL=
2711 <  fi
2712 <  # For backwards non-gettext consistent compatibility...
2713 <  INCLTDL="$LTDLINCL"
2714 < ])# AC_LIBLTDL_INSTALLABLE
2715 <
2716 <
2717 < # AC_LIBTOOL_CXX
2718 < # --------------
2719 < # enable support for C++ libraries
2720 < AC_DEFUN([AC_LIBTOOL_CXX],
2721 < [AC_REQUIRE([_LT_AC_LANG_CXX])
2722 < ])# AC_LIBTOOL_CXX
2723 <
2724 <
2725 < # _LT_AC_LANG_CXX
2726 < # ---------------
2727 < AC_DEFUN([_LT_AC_LANG_CXX],
2728 < [AC_REQUIRE([AC_PROG_CXX])
2729 < AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2730 < _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2731 < ])# _LT_AC_LANG_CXX
2732 <
2733 < # _LT_AC_PROG_CXXCPP
2734 < # ------------------
2735 < AC_DEFUN([_LT_AC_PROG_CXXCPP],
2736 < [
2737 < AC_REQUIRE([AC_PROG_CXX])
2738 < if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2739 <    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2740 <    (test "X$CXX" != "Xg++"))) ; then
2741 <  AC_PROG_CXXCPP
2742 < fi
2743 < ])# _LT_AC_PROG_CXXCPP
2744 <
2745 < # AC_LIBTOOL_F77
2746 < # --------------
2747 < # enable support for Fortran 77 libraries
2748 < AC_DEFUN([AC_LIBTOOL_F77],
2749 < [AC_REQUIRE([_LT_AC_LANG_F77])
2750 < ])# AC_LIBTOOL_F77
2751 <
2752 <
2753 < # _LT_AC_LANG_F77
2754 < # ---------------
2755 < AC_DEFUN([_LT_AC_LANG_F77],
2756 < [AC_REQUIRE([AC_PROG_F77])
2757 < _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2758 < ])# _LT_AC_LANG_F77
2759 <
2760 <
2761 < # AC_LIBTOOL_GCJ
2762 < # --------------
2763 < # enable support for GCJ libraries
2764 < AC_DEFUN([AC_LIBTOOL_GCJ],
2765 < [AC_REQUIRE([_LT_AC_LANG_GCJ])
2766 < ])# AC_LIBTOOL_GCJ
2767 <
2768 <
2769 < # _LT_AC_LANG_GCJ
2770 < # ---------------
2771 < AC_DEFUN([_LT_AC_LANG_GCJ],
2772 < [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2773 <  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2774 <    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2775 <      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2776 <         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2777 <           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2778 < _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2779 < ])# _LT_AC_LANG_GCJ
2780 <
2781 <
2782 < # AC_LIBTOOL_RC
2783 < # -------------
2784 < # enable support for Windows resource files
2785 < AC_DEFUN([AC_LIBTOOL_RC],
2786 < [AC_REQUIRE([LT_AC_PROG_RC])
2787 < _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2788 < ])# AC_LIBTOOL_RC
2789 <
2790 <
2791 < # AC_LIBTOOL_LANG_C_CONFIG
2792 < # ------------------------
2793 < # Ensure that the configuration vars for the C compiler are
2794 < # suitably defined.  Those variables are subsequently used by
2795 < # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2796 < AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2797 < AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2798 < [lt_save_CC="$CC"
2799 < AC_LANG_PUSH(C)
2800 <
2801 < # Source file extension for C test sources.
2802 < ac_ext=c
2803 <
2804 < # Object file extension for compiled C test sources.
2805 < objext=o
2806 < _LT_AC_TAGVAR(objext, $1)=$objext
2807 <
2808 < # Code to be used in simple compile tests
2809 < lt_simple_compile_test_code="int some_variable = 0;"
2810 <
2811 < # Code to be used in simple link tests
2812 < lt_simple_link_test_code='int main(){return(0);}'
2813 <
2814 < _LT_AC_SYS_COMPILER
2815 <
2816 < # save warnings/boilerplate of simple test code
2817 < _LT_COMPILER_BOILERPLATE
2818 < _LT_LINKER_BOILERPLATE
2819 <
2820 < AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2821 < AC_LIBTOOL_PROG_COMPILER_PIC($1)
2822 < AC_LIBTOOL_PROG_CC_C_O($1)
2823 < AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2824 < AC_LIBTOOL_PROG_LD_SHLIBS($1)
2825 < AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2826 < AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2827 < AC_LIBTOOL_SYS_LIB_STRIP
2828 < AC_LIBTOOL_DLOPEN_SELF
2829 <
2830 < # Report which library types will actually be built
2831 < AC_MSG_CHECKING([if libtool supports shared libraries])
2832 < AC_MSG_RESULT([$can_build_shared])
2833 <
2834 < AC_MSG_CHECKING([whether to build shared libraries])
2835 < test "$can_build_shared" = "no" && enable_shared=no
2836 <
2837 < # On AIX, shared libraries and static libraries use the same namespace, and
2838 < # are all built from PIC.
2839 < case $host_os in
2840 < aix3*)
2841 <  test "$enable_shared" = yes && enable_static=no
2842 <  if test -n "$RANLIB"; then
2843 <    archive_cmds="$archive_cmds~\$RANLIB \$lib"
2844 <    postinstall_cmds='$RANLIB $lib'
2845 <  fi
2846 <  ;;
2847 <
2848 < aix[[4-9]]*)
2849 <  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2850 <    test "$enable_shared" = yes && enable_static=no
2851 <  fi
2852 <    ;;
2853 < esac
2854 < AC_MSG_RESULT([$enable_shared])
2855 <
2856 < AC_MSG_CHECKING([whether to build static libraries])
2857 < # Make sure either enable_shared or enable_static is yes.
2858 < test "$enable_shared" = yes || enable_static=yes
2859 < AC_MSG_RESULT([$enable_static])
2860 <
2861 < AC_LIBTOOL_CONFIG($1)
2862 <
2863 < AC_LANG_POP
2864 < CC="$lt_save_CC"
2865 < ])# AC_LIBTOOL_LANG_C_CONFIG
2866 <
2867 <
2868 < # AC_LIBTOOL_LANG_CXX_CONFIG
2869 < # --------------------------
2870 < # Ensure that the configuration vars for the C compiler are
2871 < # suitably defined.  Those variables are subsequently used by
2872 < # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2873 < AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2874 < AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2875 < [AC_LANG_PUSH(C++)
2876 < AC_REQUIRE([AC_PROG_CXX])
2877 < AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2878 <
2879 < _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2880 < _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2881 < _LT_AC_TAGVAR(always_export_symbols, $1)=no
2882 < _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2883 < _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2884 < _LT_AC_TAGVAR(hardcode_direct, $1)=no
2885 < _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2886 < _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2887 < _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2888 < _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2889 < _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2890 < _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2891 < _LT_AC_TAGVAR(module_cmds, $1)=
2892 < _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2893 < _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2894 < _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2895 < _LT_AC_TAGVAR(no_undefined_flag, $1)=
2896 < _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2897 < _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2898 <
2899 < # Dependencies to place before and after the object being linked:
2900 < _LT_AC_TAGVAR(predep_objects, $1)=
2901 < _LT_AC_TAGVAR(postdep_objects, $1)=
2902 < _LT_AC_TAGVAR(predeps, $1)=
2903 < _LT_AC_TAGVAR(postdeps, $1)=
2904 < _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2905 < _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2906 <
2907 < # Source file extension for C++ test sources.
2908 < ac_ext=cpp
2909 <
2910 < # Object file extension for compiled C++ test sources.
2911 < objext=o
2912 < _LT_AC_TAGVAR(objext, $1)=$objext
2913 <
2914 < # Code to be used in simple compile tests
2915 < lt_simple_compile_test_code="int some_variable = 0;"
2916 <
2917 < # Code to be used in simple link tests
2918 < lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2919 <
2920 < # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2921 < _LT_AC_SYS_COMPILER
2922 <
2923 < # save warnings/boilerplate of simple test code
2924 < _LT_COMPILER_BOILERPLATE
2925 < _LT_LINKER_BOILERPLATE
2926 <
2927 < # Allow CC to be a program name with arguments.
2928 < lt_save_CC=$CC
2929 < lt_save_LD=$LD
2930 < lt_save_GCC=$GCC
2931 < GCC=$GXX
2932 < lt_save_with_gnu_ld=$with_gnu_ld
2933 < lt_save_path_LD=$lt_cv_path_LD
2934 < if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2935 <  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2936 < else
2937 <  $as_unset lt_cv_prog_gnu_ld
2938 < fi
2939 < if test -n "${lt_cv_path_LDCXX+set}"; then
2940 <  lt_cv_path_LD=$lt_cv_path_LDCXX
2941 < else
2942 <  $as_unset lt_cv_path_LD
2943 < fi
2944 < test -z "${LDCXX+set}" || LD=$LDCXX
2945 < CC=${CXX-"c++"}
2946 < compiler=$CC
2947 < _LT_AC_TAGVAR(compiler, $1)=$CC
2948 < _LT_CC_BASENAME([$compiler])
2949 <
2950 < # We don't want -fno-exception wen compiling C++ code, so set the
2951 < # no_builtin_flag separately
2952 < if test "$GXX" = yes; then
2953 <  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2954 < else
2955 <  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2956 < fi
2957 <
2958 < if test "$GXX" = yes; then
2959 <  # Set up default GNU C++ configuration
2960 <
2961 <  AC_PROG_LD
2962 <
2963 <  # Check if GNU C++ uses GNU ld as the underlying linker, since the
2964 <  # archiving commands below assume that GNU ld is being used.
2965 <  if test "$with_gnu_ld" = yes; then
2966 <    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2967 <    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2968 <
2969 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2970 <    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2971 <
2972 <    # If archive_cmds runs LD, not CC, wlarc should be empty
2973 <    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2974 <    #     investigate it a little bit more. (MM)
2975 <    wlarc='${wl}'
2976 <
2977 <    # ancient GNU ld didn't support --whole-archive et. al.
2978 <    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2979 <        grep 'no-whole-archive' > /dev/null; then
2980 <      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2981 <    else
2982 <      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2983 <    fi
2984 <  else
2985 <    with_gnu_ld=no
2986 <    wlarc=
2987 <
2988 <    # A generic and very simple default shared library creation
2989 <    # command for GNU C++ for the case where it uses the native
2990 <    # linker, instead of GNU ld.  If possible, this setting should
2991 <    # overridden to take advantage of the native linker features on
2992 <    # the platform it is being used on.
2993 <    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2994 <  fi
2995 <
2996 <  # Commands to make compiler produce verbose output that lists
2997 <  # what "hidden" libraries, object files and flags are used when
2998 <  # linking a shared library.
2999 <  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3000 <
3001 < else
3002 <  GXX=no
3003 <  with_gnu_ld=no
3004 <  wlarc=
3005 < fi
3006 <
3007 < # PORTME: fill in a description of your system's C++ link characteristics
3008 < AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3009 < _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3010 < case $host_os in
3011 <  aix3*)
3012 <    # FIXME: insert proper C++ library support
3013 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3014 <    ;;
3015 <  aix[[4-9]]*)
3016 <    if test "$host_cpu" = ia64; then
3017 <      # On IA64, the linker does run time linking by default, so we don't
3018 <      # have to do anything special.
3019 <      aix_use_runtimelinking=no
3020 <      exp_sym_flag='-Bexport'
3021 <      no_entry_flag=""
3022 <    else
3023 <      aix_use_runtimelinking=no
3024 <
3025 <      # Test if we are trying to use run time linking or normal
3026 <      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3027 <      # need to do runtime linking.
3028 <      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3029 <        for ld_flag in $LDFLAGS; do
3030 <          case $ld_flag in
3031 <          *-brtl*)
3032 <            aix_use_runtimelinking=yes
3033 <            break
3034 <            ;;
3035 <          esac
3036 <        done
3037 <        ;;
3038 <      esac
3039 <
3040 <      exp_sym_flag='-bexport'
3041 <      no_entry_flag='-bnoentry'
3042 <    fi
3043 <
3044 <    # When large executables or shared objects are built, AIX ld can
3045 <    # have problems creating the table of contents.  If linking a library
3046 <    # or program results in "error TOC overflow" add -mminimal-toc to
3047 <    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3048 <    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3049 <
3050 <    _LT_AC_TAGVAR(archive_cmds, $1)=''
3051 <    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3052 <    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3053 <    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3054 <
3055 <    if test "$GXX" = yes; then
3056 <      case $host_os in aix4.[[012]]|aix4.[[012]].*)
3057 <      # We only want to do this on AIX 4.2 and lower, the check
3058 <      # below for broken collect2 doesn't work under 4.3+
3059 <        collect2name=`${CC} -print-prog-name=collect2`
3060 <        if test -f "$collect2name" && \
3061 <           strings "$collect2name" | grep resolve_lib_name >/dev/null
3062 <        then
3063 <          # We have reworked collect2
3064 <          :
3065 <        else
3066 <          # We have old collect2
3067 <          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3068 <          # It fails to find uninstalled libraries when the uninstalled
3069 <          # path is not listed in the libpath.  Setting hardcode_minus_L
3070 <          # to unsupported forces relinking
3071 <          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3072 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3073 <          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3074 <        fi
3075 <        ;;
3076 <      esac
3077 <      shared_flag='-shared'
3078 <      if test "$aix_use_runtimelinking" = yes; then
3079 <        shared_flag="$shared_flag "'${wl}-G'
3080 <      fi
3081 <    else
3082 <      # not using gcc
3083 <      if test "$host_cpu" = ia64; then
3084 <        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3085 <        # chokes on -Wl,-G. The following line is correct:
3086 <        shared_flag='-G'
3087 <      else
3088 <        if test "$aix_use_runtimelinking" = yes; then
3089 <          shared_flag='${wl}-G'
3090 <        else
3091 <          shared_flag='${wl}-bM:SRE'
3092 <        fi
3093 <      fi
3094 <    fi
3095 <
3096 <    # It seems that -bexpall does not export symbols beginning with
3097 <    # underscore (_), so it is better to generate a list of symbols to export.
3098 <    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3099 <    if test "$aix_use_runtimelinking" = yes; then
3100 <      # Warning - without using the other runtime loading flags (-brtl),
3101 <      # -berok will link without error, but may produce a broken library.
3102 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3103 <      # Determine the default libpath from the value encoded in an empty executable.
3104 <      _LT_AC_SYS_LIBPATH_AIX
3105 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3106 <
3107 <      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3108 <     else
3109 <      if test "$host_cpu" = ia64; then
3110 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3111 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3112 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3113 <      else
3114 <        # Determine the default libpath from the value encoded in an empty executable.
3115 <        _LT_AC_SYS_LIBPATH_AIX
3116 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3117 <        # Warning - without using the other run time loading flags,
3118 <        # -berok will link without error, but may produce a broken library.
3119 <        _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3120 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3121 <        # Exported symbols can be pulled into shared objects from archives
3122 <        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3123 <        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3124 <        # This is similar to how AIX traditionally builds its shared libraries.
3125 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3126 <      fi
3127 <    fi
3128 <    ;;
3129 <
3130 <  beos*)
3131 <    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3132 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3133 <      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3134 <      # support --undefined.  This deserves some investigation.  FIXME
3135 <      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3136 <    else
3137 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3138 <    fi
3139 <    ;;
3140 <
3141 <  chorus*)
3142 <    case $cc_basename in
3143 <      *)
3144 <        # FIXME: insert proper C++ library support
3145 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3146 <        ;;
3147 <    esac
3148 <    ;;
3149 <
3150 <  cygwin* | mingw* | pw32*)
3151 <    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3152 <    # as there is no search path for DLLs.
3153 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3154 <    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3155 <    _LT_AC_TAGVAR(always_export_symbols, $1)=no
3156 <    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3157 <
3158 <    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3159 <      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3160 <      # If the export-symbols file already is a .def file (1st line
3161 <      # is EXPORTS), use it as is; otherwise, prepend...
3162 <      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3163 <        cp $export_symbols $output_objdir/$soname.def;
3164 <      else
3165 <        echo EXPORTS > $output_objdir/$soname.def;
3166 <        cat $export_symbols >> $output_objdir/$soname.def;
3167 <      fi~
3168 <      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3169 <    else
3170 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3171 <    fi
3172 <  ;;
3173 <      darwin* | rhapsody*)
3174 <      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3175 <      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3176 <      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3177 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3178 <      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3179 <      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3180 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3181 <      if test "$GXX" = yes ; then
3182 <      output_verbose_link_cmd='echo'
3183 <      _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3184 <      _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3185 <      _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3186 <      _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3187 <      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3188 <        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3189 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3190 <      fi
3191 <      else
3192 <      case $cc_basename in
3193 <        xlc*)
3194 <         output_verbose_link_cmd='echo'
3195 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3196 <          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3197 <          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3198 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3199 <          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3200 <          ;;
3201 <       *)
3202 <         _LT_AC_TAGVAR(ld_shlibs, $1)=no
3203 <          ;;
3204 <      esac
3205 <      fi
3206 <        ;;
3207 <
3208 <  dgux*)
3209 <    case $cc_basename in
3210 <      ec++*)
3211 <        # FIXME: insert proper C++ library support
3212 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3213 <        ;;
3214 <      ghcx*)
3215 <        # Green Hills C++ Compiler
3216 <        # FIXME: insert proper C++ library support
3217 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3218 <        ;;
3219 <      *)
3220 <        # FIXME: insert proper C++ library support
3221 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3222 <        ;;
3223 <    esac
3224 <    ;;
3225 <  freebsd[[12]]*)
3226 <    # C++ shared libraries reported to be fairly broken before switch to ELF
3227 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3228 <    ;;
3229 <  freebsd-elf*)
3230 <    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3231 <    ;;
3232 <  freebsd* | dragonfly*)
3233 <    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3234 <    # conventions
3235 <    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3236 <    ;;
3237 <  gnu*)
3238 <    ;;
3239 <  hpux9*)
3240 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3241 <    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3242 <    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3243 <    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3244 <    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3245 <                                # but as the default
3246 <                                # location of the library.
3247 <
3248 <    case $cc_basename in
3249 <    CC*)
3250 <      # FIXME: insert proper C++ library support
3251 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3252 <      ;;
3253 <    aCC*)
3254 <      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3255 <      # Commands to make compiler produce verbose output that lists
3256 <      # what "hidden" libraries, object files and flags are used when
3257 <      # linking a shared library.
3258 <      #
3259 <      # There doesn't appear to be a way to prevent this compiler from
3260 <      # explicitly linking system object files so we need to strip them
3261 <      # from the output so that they don't get included in the library
3262 <      # dependencies.
3263 <      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3264 <      ;;
3265 <    *)
3266 <      if test "$GXX" = yes; then
3267 <        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3268 <      else
3269 <        # FIXME: insert proper C++ library support
3270 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3271 <      fi
3272 <      ;;
3273 <    esac
3274 <    ;;
3275 <  hpux10*|hpux11*)
3276 <    if test $with_gnu_ld = no; then
3277 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3278 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3279 <
3280 <      case $host_cpu in
3281 <      hppa*64*|ia64*) ;;
3282 <      *)
3283 <        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3284 <        ;;
3285 <      esac
3286 <    fi
3287 <    case $host_cpu in
3288 <    hppa*64*|ia64*)
3289 <      _LT_AC_TAGVAR(hardcode_direct, $1)=no
3290 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3291 <      ;;
3292 <    *)
3293 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3294 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3295 <                                              # but as the default
3296 <                                              # location of the library.
3297 <      ;;
3298 <    esac
3299 <
3300 <    case $cc_basename in
3301 <      CC*)
3302 <        # FIXME: insert proper C++ library support
3303 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3304 <        ;;
3305 <      aCC*)
3306 <        case $host_cpu in
3307 <        hppa*64*)
3308 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3309 <          ;;
3310 <        ia64*)
3311 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3312 <          ;;
3313 <        *)
3314 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3315 <          ;;
3316 <        esac
3317 <        # Commands to make compiler produce verbose output that lists
3318 <        # what "hidden" libraries, object files and flags are used when
3319 <        # linking a shared library.
3320 <        #
3321 <        # There doesn't appear to be a way to prevent this compiler from
3322 <        # explicitly linking system object files so we need to strip them
3323 <        # from the output so that they don't get included in the library
3324 <        # dependencies.
3325 <        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3326 <        ;;
3327 <      *)
3328 <        if test "$GXX" = yes; then
3329 <          if test $with_gnu_ld = no; then
3330 <            case $host_cpu in
3331 <            hppa*64*)
3332 <              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3333 <              ;;
3334 <            ia64*)
3335 <              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3336 <              ;;
3337 <            *)
3338 <              _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3339 <              ;;
3340 <            esac
3341 <          fi
3342 <        else
3343 <          # FIXME: insert proper C++ library support
3344 <          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3345 <        fi
3346 <        ;;
3347 <    esac
3348 <    ;;
3349 <  interix[[3-9]]*)
3350 <    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3351 <    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3352 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3353 <    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3354 <    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3355 <    # Instead, shared libraries are loaded at an image base (0x10000000 by
3356 <    # default) and relocated if they conflict, which is a slow very memory
3357 <    # consuming and fragmenting process.  To avoid this, we pick a random,
3358 <    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3359 <    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
3360 <    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3361 <    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3362 <    ;;
3363 <  irix5* | irix6*)
3364 <    case $cc_basename in
3365 <      CC*)
3366 <        # SGI C++
3367 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3368 <
3369 <        # Archives containing C++ object files must be created using
3370 <        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
3371 <        # necessary to make sure instantiated templates are included
3372 <        # in the archive.
3373 <        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3374 <        ;;
3375 <      *)
3376 <        if test "$GXX" = yes; then
3377 <          if test "$with_gnu_ld" = no; then
3378 <            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3379 <          else
3380 <            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3381 <          fi
3382 <        fi
3383 <        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3384 <        ;;
3385 <    esac
3386 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3387 <    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3388 <    ;;
3389 <  linux* | k*bsd*-gnu)
3390 <    case $cc_basename in
3391 <      KCC*)
3392 <        # Kuck and Associates, Inc. (KAI) C++ Compiler
3393 <
3394 <        # KCC will only create a shared library if the output file
3395 <        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3396 <        # to its proper name (with version) after linking.
3397 <        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3398 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3399 <        # Commands to make compiler produce verbose output that lists
3400 <        # what "hidden" libraries, object files and flags are used when
3401 <        # linking a shared library.
3402 <        #
3403 <        # There doesn't appear to be a way to prevent this compiler from
3404 <        # explicitly linking system object files so we need to strip them
3405 <        # from the output so that they don't get included in the library
3406 <        # dependencies.
3407 <        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3408 <
3409 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3410 <        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3411 <
3412 <        # Archives containing C++ object files must be created using
3413 <        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3414 <        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3415 <        ;;
3416 <      icpc*)
3417 <        # Intel C++
3418 <        with_gnu_ld=yes
3419 <        # version 8.0 and above of icpc choke on multiply defined symbols
3420 <        # if we add $predep_objects and $postdep_objects, however 7.1 and
3421 <        # earlier do not add the objects themselves.
3422 <        case `$CC -V 2>&1` in
3423 <        *"Version 7."*)
3424 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3425 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3426 <          ;;
3427 <        *)  # Version 8.0 or newer
3428 <          tmp_idyn=
3429 <          case $host_cpu in
3430 <            ia64*) tmp_idyn=' -i_dynamic';;
3431 <          esac
3432 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3433 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3434 <          ;;
3435 <        esac
3436 <        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3437 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3438 <        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3439 <        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3440 <        ;;
3441 <      pgCC* | pgcpp*)
3442 <        # Portland Group C++ compiler
3443 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3444 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3445 <
3446 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3447 <        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3448 <        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3449 <        ;;
3450 <      cxx*)
3451 <        # Compaq C++
3452 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3453 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3454 <
3455 <        runpath_var=LD_RUN_PATH
3456 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3457 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3458 <
3459 <        # Commands to make compiler produce verbose output that lists
3460 <        # what "hidden" libraries, object files and flags are used when
3461 <        # linking a shared library.
3462 <        #
3463 <        # There doesn't appear to be a way to prevent this compiler from
3464 <        # explicitly linking system object files so we need to strip them
3465 <        # from the output so that they don't get included in the library
3466 <        # dependencies.
3467 <        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3468 <        ;;
3469 <      *)
3470 <        case `$CC -V 2>&1 | sed 5q` in
3471 <        *Sun\ C*)
3472 <          # Sun C++ 5.9
3473 <          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3474 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3475 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3476 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3477 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3478 <
3479 <          # Not sure whether something based on
3480 <          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3481 <          # would be better.
3482 <          output_verbose_link_cmd='echo'
3483 <
3484 <          # Archives containing C++ object files must be created using
3485 <          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3486 <          # necessary to make sure instantiated templates are included
3487 <          # in the archive.
3488 <          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3489 <          ;;
3490 <        esac
3491 <        ;;
3492 <    esac
3493 <    ;;
3494 <  lynxos*)
3495 <    # FIXME: insert proper C++ library support
3496 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3497 <    ;;
3498 <  m88k*)
3499 <    # FIXME: insert proper C++ library support
3500 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3501 <    ;;
3502 <  mvs*)
3503 <    case $cc_basename in
3504 <      cxx*)
3505 <        # FIXME: insert proper C++ library support
3506 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3507 <        ;;
3508 <      *)
3509 <        # FIXME: insert proper C++ library support
3510 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3511 <        ;;
3512 <    esac
3513 <    ;;
3514 <  netbsd*)
3515 <    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3516 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3517 <      wlarc=
3518 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3519 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3520 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3521 <    fi
3522 <    # Workaround some broken pre-1.5 toolchains
3523 <    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3524 <    ;;
3525 <  openbsd2*)
3526 <    # C++ shared libraries are fairly broken
3527 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3528 <    ;;
3529 <  openbsd*)
3530 <    if test -f /usr/libexec/ld.so; then
3531 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3532 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3533 <      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3534 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3535 <      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3536 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3537 <        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3538 <        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3539 <      fi
3540 <      output_verbose_link_cmd='echo'
3541 <    else
3542 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
3543 <    fi
3544 <    ;;
3545 <  osf3*)
3546 <    case $cc_basename in
3547 <      KCC*)
3548 <        # Kuck and Associates, Inc. (KAI) C++ Compiler
3549 <
3550 <        # KCC will only create a shared library if the output file
3551 <        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3552 <        # to its proper name (with version) after linking.
3553 <        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3554 <
3555 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3556 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3557 <
3558 <        # Archives containing C++ object files must be created using
3559 <        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3560 <        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3561 <
3562 <        ;;
3563 <      RCC*)
3564 <        # Rational C++ 2.4.1
3565 <        # FIXME: insert proper C++ library support
3566 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3567 <        ;;
3568 <      cxx*)
3569 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3570 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3571 <
3572 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3573 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3574 <
3575 <        # Commands to make compiler produce verbose output that lists
3576 <        # what "hidden" libraries, object files and flags are used when
3577 <        # linking a shared library.
3578 <        #
3579 <        # There doesn't appear to be a way to prevent this compiler from
3580 <        # explicitly linking system object files so we need to strip them
3581 <        # from the output so that they don't get included in the library
3582 <        # dependencies.
3583 <        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3584 <        ;;
3585 <      *)
3586 <        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3587 <          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3588 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3589 <
3590 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3591 <          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3592 <
3593 <          # Commands to make compiler produce verbose output that lists
3594 <          # what "hidden" libraries, object files and flags are used when
3595 <          # linking a shared library.
3596 <          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3597 <
3598 <        else
3599 <          # FIXME: insert proper C++ library support
3600 <          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3601 <        fi
3602 <        ;;
3603 <    esac
3604 <    ;;
3605 <  osf4* | osf5*)
3606 <    case $cc_basename in
3607 <      KCC*)
3608 <        # Kuck and Associates, Inc. (KAI) C++ Compiler
3609 <
3610 <        # KCC will only create a shared library if the output file
3611 <        # ends with ".so" (or ".sl" for HP-UX), so rename the library
3612 <        # to its proper name (with version) after linking.
3613 <        _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3614 <
3615 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3616 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3617 <
3618 <        # Archives containing C++ object files must be created using
3619 <        # the KAI C++ compiler.
3620 <        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3621 <        ;;
3622 <      RCC*)
3623 <        # Rational C++ 2.4.1
3624 <        # FIXME: insert proper C++ library support
3625 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3626 <        ;;
3627 <      cxx*)
3628 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3629 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3630 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3631 <          echo "-hidden">> $lib.exp~
3632 <          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3633 <          $rm $lib.exp'
3634 <
3635 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3636 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3637 <
3638 <        # Commands to make compiler produce verbose output that lists
3639 <        # what "hidden" libraries, object files and flags are used when
3640 <        # linking a shared library.
3641 <        #
3642 <        # There doesn't appear to be a way to prevent this compiler from
3643 <        # explicitly linking system object files so we need to strip them
3644 <        # from the output so that they don't get included in the library
3645 <        # dependencies.
3646 <        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3647 <        ;;
3648 <      *)
3649 <        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3650 <          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3651 <         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3652 <
3653 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3654 <          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3655 <
3656 <          # Commands to make compiler produce verbose output that lists
3657 <          # what "hidden" libraries, object files and flags are used when
3658 <          # linking a shared library.
3659 <          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3660 <
3661 <        else
3662 <          # FIXME: insert proper C++ library support
3663 <          _LT_AC_TAGVAR(ld_shlibs, $1)=no
3664 <        fi
3665 <        ;;
3666 <    esac
3667 <    ;;
3668 <  psos*)
3669 <    # FIXME: insert proper C++ library support
3670 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3671 <    ;;
3672 <  sunos4*)
3673 <    case $cc_basename in
3674 <      CC*)
3675 <        # Sun C++ 4.x
3676 <        # FIXME: insert proper C++ library support
3677 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3678 <        ;;
3679 <      lcc*)
3680 <        # Lucid
3681 <        # FIXME: insert proper C++ library support
3682 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683 <        ;;
3684 <      *)
3685 <        # FIXME: insert proper C++ library support
3686 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3687 <        ;;
3688 <    esac
3689 <    ;;
3690 <  solaris*)
3691 <    case $cc_basename in
3692 <      CC*)
3693 <        # Sun C++ 4.2, 5.x and Centerline C++
3694 <        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3695 <        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3696 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3697 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3698 <        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3699 <
3700 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3701 <        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3702 <        case $host_os in
3703 <          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3704 <          *)
3705 <            # The compiler driver will combine and reorder linker options,
3706 <            # but understands `-z linker_flag'.
3707 <            # Supported since Solaris 2.6 (maybe 2.5.1?)
3708 <            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3709 <            ;;
3710 <        esac
3711 <        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3712 <
3713 <        output_verbose_link_cmd='echo'
3714 <
3715 <        # Archives containing C++ object files must be created using
3716 <        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
3717 <        # necessary to make sure instantiated templates are included
3718 <        # in the archive.
3719 <        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3720 <        ;;
3721 <      gcx*)
3722 <        # Green Hills C++ Compiler
3723 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3724 <
3725 <        # The C++ compiler must be used to create the archive.
3726 <        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3727 <        ;;
3728 <      *)
3729 <        # GNU C++ compiler with Solaris linker
3730 <        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3731 <          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3732 <          if $CC --version | grep -v '^2\.7' > /dev/null; then
3733 <            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3734 <            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3735 <                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3736 <
3737 <            # Commands to make compiler produce verbose output that lists
3738 <            # what "hidden" libraries, object files and flags are used when
3739 <            # linking a shared library.
3740 <            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3741 <          else
3742 <            # g++ 2.7 appears to require `-G' NOT `-shared' on this
3743 <            # platform.
3744 <            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3745 <            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3746 <                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3747 <
3748 <            # Commands to make compiler produce verbose output that lists
3749 <            # what "hidden" libraries, object files and flags are used when
3750 <            # linking a shared library.
3751 <            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3752 <          fi
3753 <
3754 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3755 <          case $host_os in
3756 <          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3757 <          *)
3758 <            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3759 <            ;;
3760 <          esac
3761 <        fi
3762 <        ;;
3763 <    esac
3764 <    ;;
3765 <  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3766 <    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3767 <    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3768 <    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3769 <    runpath_var='LD_RUN_PATH'
3770 <
3771 <    case $cc_basename in
3772 <      CC*)
3773 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3774 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3775 <        ;;
3776 <      *)
3777 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3778 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3779 <        ;;
3780 <    esac
3781 <    ;;
3782 <  sysv5* | sco3.2v5* | sco5v6*)
3783 <    # Note: We can NOT use -z defs as we might desire, because we do not
3784 <    # link with -lc, and that would cause any symbols used from libc to
3785 <    # always be unresolved, which means just about no library would
3786 <    # ever link correctly.  If we're not using GNU ld we use -z text
3787 <    # though, which does catch some bad symbols but isn't as heavy-handed
3788 <    # as -z defs.
3789 <    # For security reasons, it is highly recommended that you always
3790 <    # use absolute paths for naming shared libraries, and exclude the
3791 <    # DT_RUNPATH tag from executables and libraries.  But doing so
3792 <    # requires that you compile everything twice, which is a pain.
3793 <    # So that behaviour is only enabled if SCOABSPATH is set to a
3794 <    # non-empty value in the environment.  Most likely only useful for
3795 <    # creating official distributions of packages.
3796 <    # This is a hack until libtool officially supports absolute path
3797 <    # names for shared libraries.
3798 <    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3799 <    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3800 <    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3801 <    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3802 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3803 <    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3804 <    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3805 <    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3806 <    runpath_var='LD_RUN_PATH'
3807 <
3808 <    case $cc_basename in
3809 <      CC*)
3810 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3811 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3812 <        ;;
3813 <      *)
3814 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3815 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3816 <        ;;
3817 <    esac
3818 <    ;;
3819 <  tandem*)
3820 <    case $cc_basename in
3821 <      NCC*)
3822 <        # NonStop-UX NCC 3.20
3823 <        # FIXME: insert proper C++ library support
3824 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3825 <        ;;
3826 <      *)
3827 <        # FIXME: insert proper C++ library support
3828 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
3829 <        ;;
3830 <    esac
3831 <    ;;
3832 <  vxworks*)
3833 <    # FIXME: insert proper C++ library support
3834 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3835 <    ;;
3836 <  *)
3837 <    # FIXME: insert proper C++ library support
3838 <    _LT_AC_TAGVAR(ld_shlibs, $1)=no
3839 <    ;;
3840 < esac
3841 < AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3842 < test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3843 <
3844 < _LT_AC_TAGVAR(GCC, $1)="$GXX"
3845 < _LT_AC_TAGVAR(LD, $1)="$LD"
3846 <
3847 < AC_LIBTOOL_POSTDEP_PREDEP($1)
3848 < AC_LIBTOOL_PROG_COMPILER_PIC($1)
3849 < AC_LIBTOOL_PROG_CC_C_O($1)
3850 < AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3851 < AC_LIBTOOL_PROG_LD_SHLIBS($1)
3852 < AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3853 < AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3854 <
3855 < AC_LIBTOOL_CONFIG($1)
3856 <
3857 < AC_LANG_POP
3858 < CC=$lt_save_CC
3859 < LDCXX=$LD
3860 < LD=$lt_save_LD
3861 < GCC=$lt_save_GCC
3862 < with_gnu_ldcxx=$with_gnu_ld
3863 < with_gnu_ld=$lt_save_with_gnu_ld
3864 < lt_cv_path_LDCXX=$lt_cv_path_LD
3865 < lt_cv_path_LD=$lt_save_path_LD
3866 < lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3867 < lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3868 < ])# AC_LIBTOOL_LANG_CXX_CONFIG
3869 <
3870 < # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3871 < # ------------------------------------
3872 < # Figure out "hidden" library dependencies from verbose
3873 < # compiler output when linking a shared library.
3874 < # Parse the compiler output and extract the necessary
3875 < # objects, libraries and library flags.
3876 < AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3877 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
3878 < dnl we can't use the lt_simple_compile_test_code here,
3879 < dnl because it contains code intended for an executable,
3880 < dnl not a library.  It's possible we should let each
3881 < dnl tag define a new lt_????_link_test_code variable,
3882 < dnl but it's only used here...
3883 < ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3884 < int a;
3885 < void foo (void) { a = 0; }
3886 < EOF
3887 < ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3888 < class Foo
3889 < {
3890 < public:
3891 <  Foo (void) { a = 0; }
3892 < private:
3893 <  int a;
3894 < };
3895 < EOF
3896 < ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3897 <      subroutine foo
3898 <      implicit none
3899 <      integer*4 a
3900 <      a=0
3901 <      return
3902 <      end
3903 < EOF
3904 < ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3905 < public class foo {
3906 <  private int a;
3907 <  public void bar (void) {
3908 <    a = 0;
3909 <  }
3910 < };
3911 < EOF
3912 < ])
3913 < dnl Parse the compiler output and extract the necessary
3914 < dnl objects, libraries and library flags.
3915 < if AC_TRY_EVAL(ac_compile); then
3916 <  # Parse the compiler output and extract the necessary
3917 <  # objects, libraries and library flags.
3918 <
3919 <  # Sentinel used to keep track of whether or not we are before
3920 <  # the conftest object file.
3921 <  pre_test_object_deps_done=no
3922 <
3923 <  # The `*' in the case matches for architectures that use `case' in
3924 <  # $output_verbose_cmd can trigger glob expansion during the loop
3925 <  # eval without this substitution.
3926 <  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3927 <
3928 <  for p in `eval $output_verbose_link_cmd`; do
3929 <    case $p in
3930 <
3931 <    -L* | -R* | -l*)
3932 <       # Some compilers place space between "-{L,R}" and the path.
3933 <       # Remove the space.
3934 <       if test $p = "-L" \
3935 <          || test $p = "-R"; then
3936 <         prev=$p
3937 <         continue
3938 <       else
3939 <         prev=
3940 <       fi
3941 <
3942 <       if test "$pre_test_object_deps_done" = no; then
3943 <         case $p in
3944 <         -L* | -R*)
3945 <           # Internal compiler library paths should come after those
3946 <           # provided the user.  The postdeps already come after the
3947 <           # user supplied libs so there is no need to process them.
3948 <           if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3949 <             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3950 <           else
3951 <             _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3952 <           fi
3953 <           ;;
3954 <         # The "-l" case would never come before the object being
3955 <         # linked, so don't bother handling this case.
3956 <         esac
3957 <       else
3958 <         if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3959 <           _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3960 <         else
3961 <           _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3962 <         fi
3963 <       fi
3964 <       ;;
3965 <
3966 <    *.$objext)
3967 <       # This assumes that the test object file only shows up
3968 <       # once in the compiler output.
3969 <       if test "$p" = "conftest.$objext"; then
3970 <         pre_test_object_deps_done=yes
3971 <         continue
3972 <       fi
3973 <
3974 <       if test "$pre_test_object_deps_done" = no; then
3975 <         if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3976 <           _LT_AC_TAGVAR(predep_objects, $1)="$p"
3977 <         else
3978 <           _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3979 <         fi
3980 <       else
3981 <         if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3982 <           _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3983 <         else
3984 <           _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3985 <         fi
3986 <       fi
3987 <       ;;
3988 <
3989 <    *) ;; # Ignore the rest.
3990 <
3991 <    esac
3992 <  done
3993 <
3994 <  # Clean up.
3995 <  rm -f a.out a.exe
3996 < else
3997 <  echo "libtool.m4: error: problem compiling $1 test program"
3998 < fi
3999 <
4000 < $rm -f confest.$objext
4001 <
4002 < _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4003 < if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4004 <  _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4005 < fi
4006 <
4007 < # PORTME: override above test on systems where it is broken
4008 < ifelse([$1],[CXX],
4009 < [case $host_os in
4010 < interix[[3-9]]*)
4011 <  # Interix 3.5 installs completely hosed .la files for C++, so rather than
4012 <  # hack all around it, let's just trust "g++" to DTRT.
4013 <  _LT_AC_TAGVAR(predep_objects,$1)=
4014 <  _LT_AC_TAGVAR(postdep_objects,$1)=
4015 <  _LT_AC_TAGVAR(postdeps,$1)=
4016 <  ;;
4017 <
4018 < linux*)
4019 <  case `$CC -V 2>&1 | sed 5q` in
4020 <  *Sun\ C*)
4021 <    # Sun C++ 5.9
4022 <    #
4023 <    # The more standards-conforming stlport4 library is
4024 <    # incompatible with the Cstd library. Avoid specifying
4025 <    # it if it's in CXXFLAGS. Ignore libCrun as
4026 <    # -library=stlport4 depends on it.
4027 <    case " $CXX $CXXFLAGS " in
4028 <    *" -library=stlport4 "*)
4029 <      solaris_use_stlport4=yes
4030 <      ;;
4031 <    esac
4032 <    if test "$solaris_use_stlport4" != yes; then
4033 <      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4034 <    fi
4035 <    ;;
4036 <  esac
4037 <  ;;
4038 <
4039 < solaris*)
4040 <  case $cc_basename in
4041 <  CC*)
4042 <    # The more standards-conforming stlport4 library is
4043 <    # incompatible with the Cstd library. Avoid specifying
4044 <    # it if it's in CXXFLAGS. Ignore libCrun as
4045 <    # -library=stlport4 depends on it.
4046 <    case " $CXX $CXXFLAGS " in
4047 <    *" -library=stlport4 "*)
4048 <      solaris_use_stlport4=yes
4049 <      ;;
4050 <    esac
4051 <
4052 <    # Adding this requires a known-good setup of shared libraries for
4053 <    # Sun compiler versions before 5.6, else PIC objects from an old
4054 <    # archive will be linked into the output, leading to subtle bugs.
4055 <    if test "$solaris_use_stlport4" != yes; then
4056 <      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4057 <    fi
4058 <    ;;
4059 <  esac
4060 <  ;;
4061 < esac
4062 < ])
4063 < case " $_LT_AC_TAGVAR(postdeps, $1) " in
4064 < *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4065 < esac
4066 < ])# AC_LIBTOOL_POSTDEP_PREDEP
4067 <
4068 < # AC_LIBTOOL_LANG_F77_CONFIG
4069 < # --------------------------
4070 < # Ensure that the configuration vars for the C compiler are
4071 < # suitably defined.  Those variables are subsequently used by
4072 < # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4073 < AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4074 < AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4075 < [AC_REQUIRE([AC_PROG_F77])
4076 < AC_LANG_PUSH(Fortran 77)
4077 <
4078 < _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4079 < _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4080 < _LT_AC_TAGVAR(always_export_symbols, $1)=no
4081 < _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4082 < _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4083 < _LT_AC_TAGVAR(hardcode_direct, $1)=no
4084 < _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4085 < _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4086 < _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4087 < _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4088 < _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4089 < _LT_AC_TAGVAR(module_cmds, $1)=
4090 < _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4091 < _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4092 < _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4093 < _LT_AC_TAGVAR(no_undefined_flag, $1)=
4094 < _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4095 < _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4096 <
4097 < # Source file extension for f77 test sources.
4098 < ac_ext=f
4099 <
4100 < # Object file extension for compiled f77 test sources.
4101 < objext=o
4102 < _LT_AC_TAGVAR(objext, $1)=$objext
4103 <
4104 < # Code to be used in simple compile tests
4105 < lt_simple_compile_test_code="\
4106 <      subroutine t
4107 <      return
4108 <      end
4109 < "
4110 <
4111 < # Code to be used in simple link tests
4112 < lt_simple_link_test_code="\
4113 <      program t
4114 <      end
4115 < "
4116 <
4117 < # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4118 < _LT_AC_SYS_COMPILER
4119 <
4120 < # save warnings/boilerplate of simple test code
4121 < _LT_COMPILER_BOILERPLATE
4122 < _LT_LINKER_BOILERPLATE
4123 <
4124 < # Allow CC to be a program name with arguments.
4125 < lt_save_CC="$CC"
4126 < CC=${F77-"f77"}
4127 < compiler=$CC
4128 < _LT_AC_TAGVAR(compiler, $1)=$CC
4129 < _LT_CC_BASENAME([$compiler])
4130 <
4131 < AC_MSG_CHECKING([if libtool supports shared libraries])
4132 < AC_MSG_RESULT([$can_build_shared])
4133 <
4134 < AC_MSG_CHECKING([whether to build shared libraries])
4135 < test "$can_build_shared" = "no" && enable_shared=no
4136 <
4137 < # On AIX, shared libraries and static libraries use the same namespace, and
4138 < # are all built from PIC.
4139 < case $host_os in
4140 < aix3*)
4141 <  test "$enable_shared" = yes && enable_static=no
4142 <  if test -n "$RANLIB"; then
4143 <    archive_cmds="$archive_cmds~\$RANLIB \$lib"
4144 <    postinstall_cmds='$RANLIB $lib'
4145 <  fi
4146 <  ;;
4147 < aix[[4-9]]*)
4148 <  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4149 <    test "$enable_shared" = yes && enable_static=no
4150 <  fi
4151 <  ;;
4152 < esac
4153 < AC_MSG_RESULT([$enable_shared])
4154 <
4155 < AC_MSG_CHECKING([whether to build static libraries])
4156 < # Make sure either enable_shared or enable_static is yes.
4157 < test "$enable_shared" = yes || enable_static=yes
4158 < AC_MSG_RESULT([$enable_static])
4159 <
4160 < _LT_AC_TAGVAR(GCC, $1)="$G77"
4161 < _LT_AC_TAGVAR(LD, $1)="$LD"
4162 <
4163 < AC_LIBTOOL_PROG_COMPILER_PIC($1)
4164 < AC_LIBTOOL_PROG_CC_C_O($1)
4165 < AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4166 < AC_LIBTOOL_PROG_LD_SHLIBS($1)
4167 < AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4168 < AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4169 <
4170 < AC_LIBTOOL_CONFIG($1)
4171 <
4172 < AC_LANG_POP
4173 < CC="$lt_save_CC"
4174 < ])# AC_LIBTOOL_LANG_F77_CONFIG
4175 <
4176 <
4177 < # AC_LIBTOOL_LANG_GCJ_CONFIG
4178 < # --------------------------
4179 < # Ensure that the configuration vars for the C compiler are
4180 < # suitably defined.  Those variables are subsequently used by
4181 < # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4182 < AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4183 < AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4184 < [AC_LANG_SAVE
4185 <
4186 < # Source file extension for Java test sources.
4187 < ac_ext=java
4188 <
4189 < # Object file extension for compiled Java test sources.
4190 < objext=o
4191 < _LT_AC_TAGVAR(objext, $1)=$objext
4192 <
4193 < # Code to be used in simple compile tests
4194 < lt_simple_compile_test_code="class foo {}"
4195 <
4196 < # Code to be used in simple link tests
4197 < lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4198 <
4199 < # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4200 < _LT_AC_SYS_COMPILER
4201 <
4202 < # save warnings/boilerplate of simple test code
4203 < _LT_COMPILER_BOILERPLATE
4204 < _LT_LINKER_BOILERPLATE
4205 <
4206 < # Allow CC to be a program name with arguments.
4207 < lt_save_CC="$CC"
4208 < CC=${GCJ-"gcj"}
4209 < compiler=$CC
4210 < _LT_AC_TAGVAR(compiler, $1)=$CC
4211 < _LT_CC_BASENAME([$compiler])
4212 <
4213 < # GCJ did not exist at the time GCC didn't implicitly link libc in.
4214 < _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4215 <
4216 < _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4217 <
4218 < AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4219 < AC_LIBTOOL_PROG_COMPILER_PIC($1)
4220 < AC_LIBTOOL_PROG_CC_C_O($1)
4221 < AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4222 < AC_LIBTOOL_PROG_LD_SHLIBS($1)
4223 < AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4224 < AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4225 <
4226 < AC_LIBTOOL_CONFIG($1)
4227 <
4228 < AC_LANG_RESTORE
4229 < CC="$lt_save_CC"
4230 < ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4231 <
4232 <
4233 < # AC_LIBTOOL_LANG_RC_CONFIG
4234 < # -------------------------
4235 < # Ensure that the configuration vars for the Windows resource compiler are
4236 < # suitably defined.  Those variables are subsequently used by
4237 < # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4238 < AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4239 < AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4240 < [AC_LANG_SAVE
4241 <
4242 < # Source file extension for RC test sources.
4243 < ac_ext=rc
4244 <
4245 < # Object file extension for compiled RC test sources.
4246 < objext=o
4247 < _LT_AC_TAGVAR(objext, $1)=$objext
4248 <
4249 < # Code to be used in simple compile tests
4250 < lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4251 <
4252 < # Code to be used in simple link tests
4253 < lt_simple_link_test_code="$lt_simple_compile_test_code"
4254 <
4255 < # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4256 < _LT_AC_SYS_COMPILER
4257 <
4258 < # save warnings/boilerplate of simple test code
4259 < _LT_COMPILER_BOILERPLATE
4260 < _LT_LINKER_BOILERPLATE
4261 <
4262 < # Allow CC to be a program name with arguments.
4263 < lt_save_CC="$CC"
4264 < CC=${RC-"windres"}
4265 < compiler=$CC
4266 < _LT_AC_TAGVAR(compiler, $1)=$CC
4267 < _LT_CC_BASENAME([$compiler])
4268 < _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4269 <
4270 < AC_LIBTOOL_CONFIG($1)
4271 <
4272 < AC_LANG_RESTORE
4273 < CC="$lt_save_CC"
4274 < ])# AC_LIBTOOL_LANG_RC_CONFIG
4275 <
4276 <
4277 < # AC_LIBTOOL_CONFIG([TAGNAME])
4278 < # ----------------------------
4279 < # If TAGNAME is not passed, then create an initial libtool script
4280 < # with a default configuration from the untagged config vars.  Otherwise
4281 < # add code to config.status for appending the configuration named by
4282 < # TAGNAME from the matching tagged config vars.
4283 < AC_DEFUN([AC_LIBTOOL_CONFIG],
4284 < [# The else clause should only fire when bootstrapping the
4285 < # libtool distribution, otherwise you forgot to ship ltmain.sh
4286 < # with your package, and you will get complaints that there are
4287 < # no rules to generate ltmain.sh.
4288 < if test -f "$ltmain"; then
4289 <  # See if we are running on zsh, and set the options which allow our commands through
4290 <  # without removal of \ escapes.
4291 <  if test -n "${ZSH_VERSION+set}" ; then
4292 <    setopt NO_GLOB_SUBST
4293 <  fi
4294 <  # Now quote all the things that may contain metacharacters while being
4295 <  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4296 <  # variables and quote the copies for generation of the libtool script.
4297 <  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4298 <    SED SHELL STRIP \
4299 <    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4300 <    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4301 <    deplibs_check_method reload_flag reload_cmds need_locks \
4302 <    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4303 <    lt_cv_sys_global_symbol_to_c_name_address \
4304 <    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4305 <    old_postinstall_cmds old_postuninstall_cmds \
4306 <    _LT_AC_TAGVAR(compiler, $1) \
4307 <    _LT_AC_TAGVAR(CC, $1) \
4308 <    _LT_AC_TAGVAR(LD, $1) \
4309 <    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4310 <    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4311 <    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4312 <    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4313 <    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4314 <    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4315 <    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4316 <    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4317 <    _LT_AC_TAGVAR(old_archive_cmds, $1) \
4318 <    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4319 <    _LT_AC_TAGVAR(predep_objects, $1) \
4320 <    _LT_AC_TAGVAR(postdep_objects, $1) \
4321 <    _LT_AC_TAGVAR(predeps, $1) \
4322 <    _LT_AC_TAGVAR(postdeps, $1) \
4323 <    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4324 <    _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4325 <    _LT_AC_TAGVAR(archive_cmds, $1) \
4326 <    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4327 <    _LT_AC_TAGVAR(postinstall_cmds, $1) \
4328 <    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4329 <    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4330 <    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4331 <    _LT_AC_TAGVAR(no_undefined_flag, $1) \
4332 <    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4333 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4334 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4335 <    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4336 <    _LT_AC_TAGVAR(hardcode_automatic, $1) \
4337 <    _LT_AC_TAGVAR(module_cmds, $1) \
4338 <    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4339 <    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4340 <    _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4341 <    _LT_AC_TAGVAR(exclude_expsyms, $1) \
4342 <    _LT_AC_TAGVAR(include_expsyms, $1); do
4343 <
4344 <    case $var in
4345 <    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4346 <    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4347 <    _LT_AC_TAGVAR(archive_cmds, $1) | \
4348 <    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4349 <    _LT_AC_TAGVAR(module_cmds, $1) | \
4350 <    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4351 <    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4352 <    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4353 <    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4354 <    postinstall_cmds | postuninstall_cmds | \
4355 <    old_postinstall_cmds | old_postuninstall_cmds | \
4356 <    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4357 <      # Double-quote double-evaled strings.
4358 <      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4359 <      ;;
4360 <    *)
4361 <      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4362 <      ;;
4363 <    esac
4364 <  done
4365 <
4366 <  case $lt_echo in
4367 <  *'\[$]0 --fallback-echo"')
4368 <    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4369 <    ;;
4370 <  esac
4371 <
4372 < ifelse([$1], [],
4373 <  [cfgfile="${ofile}T"
4374 <  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4375 <  $rm -f "$cfgfile"
4376 <  AC_MSG_NOTICE([creating $ofile])],
4377 <  [cfgfile="$ofile"])
4378 <
4379 <  cat <<__EOF__ >> "$cfgfile"
4380 < ifelse([$1], [],
4381 < [#! $SHELL
4382 <
4383 < # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4384 < # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4385 < # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4386 < #
4387 < # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4388 < # Free Software Foundation, Inc.
4389 < #
4390 < # This file is part of GNU Libtool:
4391 < # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4392 < #
4393 < # This program is free software; you can redistribute it and/or modify
4394 < # it under the terms of the GNU General Public License as published by
4395 < # the Free Software Foundation; either version 2 of the License, or
4396 < # (at your option) any later version.
4397 < #
4398 < # This program is distributed in the hope that it will be useful, but
4399 < # WITHOUT ANY WARRANTY; without even the implied warranty of
4400 < # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4401 < # General Public License for more details.
4402 < #
4403 < # You should have received a copy of the GNU General Public License
4404 < # along with this program; if not, write to the Free Software
4405 < # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4406 < #
4407 < # As a special exception to the GNU General Public License, if you
4408 < # distribute this file as part of a program that contains a
4409 < # configuration script generated by Autoconf, you may include it under
4410 < # the same distribution terms that you use for the rest of that program.
4411 <
4412 < # A sed program that does not truncate output.
4413 < SED=$lt_SED
4414 <
4415 < # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4416 < Xsed="$SED -e 1s/^X//"
4417 <
4418 < # The HP-UX ksh and POSIX shell print the target directory to stdout
4419 < # if CDPATH is set.
4420 < (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4421 <
4422 < # The names of the tagged configurations supported by this script.
4423 < available_tags=
4424 <
4425 < # ### BEGIN LIBTOOL CONFIG],
4426 < [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4427 <
4428 < # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4429 <
4430 < # Shell to use when invoking shell scripts.
4431 < SHELL=$lt_SHELL
4432 <
4433 < # Whether or not to build shared libraries.
4434 < build_libtool_libs=$enable_shared
4435 <
4436 < # Whether or not to build static libraries.
4437 < build_old_libs=$enable_static
4438 <
4439 < # Whether or not to add -lc for building shared libraries.
4440 < build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4441 <
4442 < # Whether or not to disallow shared libs when runtime libs are static
4443 < allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4444 <
4445 < # Whether or not to optimize for fast installation.
4446 < fast_install=$enable_fast_install
4447 <
4448 < # The host system.
4449 < host_alias=$host_alias
4450 < host=$host
4451 < host_os=$host_os
4452 <
4453 < # The build system.
4454 < build_alias=$build_alias
4455 < build=$build
4456 < build_os=$build_os
4457 <
4458 < # An echo program that does not interpret backslashes.
4459 < echo=$lt_echo
4460 <
4461 < # The archiver.
4462 < AR=$lt_AR
4463 < AR_FLAGS=$lt_AR_FLAGS
4464 <
4465 < # A C compiler.
4466 < LTCC=$lt_LTCC
4467 <
4468 < # LTCC compiler flags.
4469 < LTCFLAGS=$lt_LTCFLAGS
4470 <
4471 < # A language-specific compiler.
4472 < CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4473 <
4474 < # Is the compiler the GNU C compiler?
4475 < with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4476 <
4477 < # An ERE matcher.
4478 < EGREP=$lt_EGREP
4479 <
4480 < # The linker used to build libraries.
4481 < LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4482 <
4483 < # Whether we need hard or soft links.
4484 < LN_S=$lt_LN_S
4485 <
4486 < # A BSD-compatible nm program.
4487 < NM=$lt_NM
4488 <
4489 < # A symbol stripping program
4490 < STRIP=$lt_STRIP
4491 <
4492 < # Used to examine libraries when file_magic_cmd begins "file"
4493 < MAGIC_CMD=$MAGIC_CMD
4494 <
4495 < # Used on cygwin: DLL creation program.
4496 < DLLTOOL="$DLLTOOL"
4497 <
4498 < # Used on cygwin: object dumper.
4499 < OBJDUMP="$OBJDUMP"
4500 <
4501 < # Used on cygwin: assembler.
4502 < AS="$AS"
4503 <
4504 < # The name of the directory that contains temporary libtool files.
4505 < objdir=$objdir
4506 <
4507 < # How to create reloadable object files.
4508 < reload_flag=$lt_reload_flag
4509 < reload_cmds=$lt_reload_cmds
4510 <
4511 < # How to pass a linker flag through the compiler.
4512 < wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4513 <
4514 < # Object file suffix (normally "o").
4515 < objext="$ac_objext"
4516 <
4517 < # Old archive suffix (normally "a").
4518 < libext="$libext"
4519 <
4520 < # Shared library suffix (normally ".so").
4521 < shrext_cmds='$shrext_cmds'
4522 <
4523 < # Executable file suffix (normally "").
4524 < exeext="$exeext"
4525 <
4526 < # Additional compiler flags for building library objects.
4527 < pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4528 < pic_mode=$pic_mode
4529 <
4530 < # What is the maximum length of a command?
4531 < max_cmd_len=$lt_cv_sys_max_cmd_len
4532 <
4533 < # Does compiler simultaneously support -c and -o options?
4534 < compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4535 <
4536 < # Must we lock files when doing compilation?
4537 < need_locks=$lt_need_locks
4538 <
4539 < # Do we need the lib prefix for modules?
4540 < need_lib_prefix=$need_lib_prefix
4541 <
4542 < # Do we need a version for libraries?
4543 < need_version=$need_version
4544 <
4545 < # Whether dlopen is supported.
4546 < dlopen_support=$enable_dlopen
4547 <
4548 < # Whether dlopen of programs is supported.
4549 < dlopen_self=$enable_dlopen_self
4550 <
4551 < # Whether dlopen of statically linked programs is supported.
4552 < dlopen_self_static=$enable_dlopen_self_static
4553 <
4554 < # Compiler flag to prevent dynamic linking.
4555 < link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4556 <
4557 < # Compiler flag to turn off builtin functions.
4558 < no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4559 <
4560 < # Compiler flag to allow reflexive dlopens.
4561 < export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4562 <
4563 < # Compiler flag to generate shared objects directly from archives.
4564 < whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4565 <
4566 < # Compiler flag to generate thread-safe objects.
4567 < thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4568 <
4569 < # Library versioning type.
4570 < version_type=$version_type
4571 <
4572 < # Format of library name prefix.
4573 < libname_spec=$lt_libname_spec
4574 <
4575 < # List of archive names.  First name is the real one, the rest are links.
4576 < # The last name is the one that the linker finds with -lNAME.
4577 < library_names_spec=$lt_library_names_spec
3383 > AC_SUBST([LIBM])
3384 > ])# LT_LIB_M
3385  
3386 < # The coded name of the library, if different from the real name.
3387 < soname_spec=$lt_soname_spec
3386 > # Old name:
3387 > AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3388 > dnl aclocal-1.4 backwards compatibility:
3389 > dnl AC_DEFUN([AC_CHECK_LIBM], [])
3390  
4582 # Commands used to build and install an old-style archive.
4583 RANLIB=$lt_RANLIB
4584 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4585 old_postinstall_cmds=$lt_old_postinstall_cmds
4586 old_postuninstall_cmds=$lt_old_postuninstall_cmds
3391  
3392 < # Create an old-style archive from a shared archive.
3393 < old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
3394 <
3395 < # Create a temporary old-style archive to link instead of a shared archive.
4592 < old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4593 <
4594 < # Commands used to build and install a shared archive.
4595 < archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4596 < archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4597 < postinstall_cmds=$lt_postinstall_cmds
4598 < postuninstall_cmds=$lt_postuninstall_cmds
4599 <
4600 < # Commands used to build a loadable module (assumed same as above if empty)
4601 < module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4602 < module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4603 <
4604 < # Commands to strip libraries.
4605 < old_striplib=$lt_old_striplib
4606 < striplib=$lt_striplib
4607 <
4608 < # Dependencies to place before the objects being linked to create a
4609 < # shared library.
4610 < predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4611 <
4612 < # Dependencies to place after the objects being linked to create a
4613 < # shared library.
4614 < postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4615 <
4616 < # Dependencies to place before the objects being linked to create a
4617 < # shared library.
4618 < predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4619 <
4620 < # Dependencies to place after the objects being linked to create a
4621 < # shared library.
4622 < postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4623 <
4624 < # The directories searched by this compiler when creating a shared
4625 < # library
4626 < compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4627 <
4628 < # The library search path used internally by the compiler when linking
4629 < # a shared library.
4630 < compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4631 <
4632 < # Method to check whether dependent libraries are shared objects.
4633 < deplibs_check_method=$lt_deplibs_check_method
4634 <
4635 < # Command to use when deplibs_check_method == file_magic.
4636 < file_magic_cmd=$lt_file_magic_cmd
4637 <
4638 < # Flag that allows shared libraries with undefined symbols to be built.
4639 < allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4640 <
4641 < # Flag that forces no undefined symbols.
4642 < no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4643 <
4644 < # Commands used to finish a libtool library installation in a directory.
4645 < finish_cmds=$lt_finish_cmds
4646 <
4647 < # Same as above, but a single script fragment to be evaled but not shown.
4648 < finish_eval=$lt_finish_eval
4649 <
4650 < # Take the output of nm and produce a listing of raw symbols and C names.
4651 < global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4652 <
4653 < # Transform the output of nm in a proper C declaration
4654 < global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4655 <
4656 < # Transform the output of nm in a C name address pair
4657 < global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4658 <
4659 < # This is the shared library runtime path variable.
4660 < runpath_var=$runpath_var
4661 <
4662 < # This is the shared library path variable.
4663 < shlibpath_var=$shlibpath_var
4664 <
4665 < # Is shlibpath searched before the hard-coded library search path?
4666 < shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4667 <
4668 < # How to hardcode a shared library path into an executable.
4669 < hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4670 <
4671 < # Whether we should hardcode library paths into libraries.
4672 < hardcode_into_libs=$hardcode_into_libs
4673 <
4674 < # Flag to hardcode \$libdir into a binary during linking.
4675 < # This must work even if \$libdir does not exist.
4676 < hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4677 <
4678 < # If ld is used when linking, flag to hardcode \$libdir into
4679 < # a binary during linking. This must work even if \$libdir does
4680 < # not exist.
4681 < hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4682 <
4683 < # Whether we need a single -rpath flag with a separated argument.
4684 < hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4685 <
4686 < # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4687 < # resulting binary.
4688 < hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4689 <
4690 < # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4691 < # resulting binary.
4692 < hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4693 <
4694 < # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4695 < # the resulting binary.
4696 < hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4697 <
4698 < # Set to yes if building a shared library automatically hardcodes DIR into the library
4699 < # and all subsequent libraries and executables linked against it.
4700 < hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4701 <
4702 < # Variables whose values should be saved in libtool wrapper scripts and
4703 < # restored at relink time.
4704 < variables_saved_for_relink="$variables_saved_for_relink"
4705 <
4706 < # Whether libtool must link a program against all its dependency libraries.
4707 < link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4708 <
4709 < # Compile-time system search path for libraries
4710 < sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4711 <
4712 < # Run-time system search path for libraries
4713 < sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4714 <
4715 < # Fix the shell variable \$srcfile for the compiler.
4716 < fix_srcfile_path=$lt_fix_srcfile_path
4717 <
4718 < # Set to yes if exported symbols are required.
4719 < always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4720 <
4721 < # The commands to list exported symbols.
4722 < export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4723 <
4724 < # The commands to extract the exported symbol list from a shared archive.
4725 < extract_expsyms_cmds=$lt_extract_expsyms_cmds
4726 <
4727 < # Symbols that should not be listed in the preloaded symbols.
4728 < exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4729 <
4730 < # Symbols that must always be exported.
4731 < include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4732 <
4733 < ifelse([$1],[],
4734 < [# ### END LIBTOOL CONFIG],
4735 < [# ### END LIBTOOL TAG CONFIG: $tagname])
4736 <
4737 < __EOF__
4738 <
4739 < ifelse([$1],[], [
4740 <  case $host_os in
4741 <  aix3*)
4742 <    cat <<\EOF >> "$cfgfile"
4743 <
4744 < # AIX sometimes has problems with the GCC collect2 program.  For some
4745 < # reason, if we set the COLLECT_NAMES environment variable, the problems
4746 < # vanish in a puff of smoke.
4747 < if test "X${COLLECT_NAMES+set}" != Xset; then
4748 <  COLLECT_NAMES=
4749 <  export COLLECT_NAMES
4750 < fi
4751 < EOF
4752 <    ;;
4753 <  esac
4754 <
4755 <  # We use sed instead of cat because bash on DJGPP gets confused if
4756 <  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
4757 <  # text mode, it properly converts lines to CR/LF.  This bash problem
4758 <  # is reportedly fixed, but why not run on old versions too?
4759 <  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4760 <
4761 <  mv -f "$cfgfile" "$ofile" || \
4762 <    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4763 <  chmod +x "$ofile"
4764 < ])
4765 < else
4766 <  # If there is no Makefile yet, we rely on a make rule to execute
4767 <  # `config.status --recheck' to rerun these tests and create the
4768 <  # libtool script then.
4769 <  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4770 <  if test -f "$ltmain_in"; then
4771 <    test -f Makefile && make "$ltmain"
4772 <  fi
4773 < fi
4774 < ])# AC_LIBTOOL_CONFIG
4775 <
4776 <
4777 < # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4778 < # -------------------------------------------
4779 < AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4780 < [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
3392 > # _LT_COMPILER_NO_RTTI([TAGNAME])
3393 > # -------------------------------
3394 > m4_defun([_LT_COMPILER_NO_RTTI],
3395 > [m4_require([_LT_TAG_COMPILER])dnl
3396  
3397 < _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3397 > _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3398  
3399   if test "$GCC" = yes; then
3400 <  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3400 >  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3401  
3402 <  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3402 >  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3403      lt_cv_prog_compiler_rtti_exceptions,
3404      [-fno-rtti -fno-exceptions], [],
3405 <    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3405 >    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3406   fi
3407 < ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
3407 > _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3408 >        [Compiler flag to turn off builtin functions])
3409 > ])# _LT_COMPILER_NO_RTTI
3410  
3411  
3412 < # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3413 < # ---------------------------------
3414 < AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
3415 < [AC_REQUIRE([AC_CANONICAL_HOST])
3416 < AC_REQUIRE([LT_AC_PROG_SED])
3417 < AC_REQUIRE([AC_PROG_NM])
3418 < AC_REQUIRE([AC_OBJEXT])
3412 > # _LT_CMD_GLOBAL_SYMBOLS
3413 > # ----------------------
3414 > m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3415 > [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3416 > AC_REQUIRE([AC_PROG_CC])dnl
3417 > AC_REQUIRE([LT_PATH_NM])dnl
3418 > AC_REQUIRE([LT_PATH_LD])dnl
3419 > m4_require([_LT_DECL_SED])dnl
3420 > m4_require([_LT_DECL_EGREP])dnl
3421 > m4_require([_LT_TAG_COMPILER])dnl
3422 >
3423   # Check for command to grab the raw symbol name followed by C symbol from nm.
3424   AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3425   AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
# Line 4812 | Line 3433 | symcode='[[BCDEGRST]]'
3433   # Regexp to match symbols that can be accessed directly from C.
3434   sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3435  
4815 # Transform an extracted symbol line into a proper C declaration
4816 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4817
4818 # Transform an extracted symbol line into symbol name and symbol address
4819 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4820
3436   # Define system-specific variables.
3437   case $host_os in
3438   aix*)
3439    symcode='[[BCDT]]'
3440    ;;
3441 < cygwin* | mingw* | pw32*)
3441 > cygwin* | mingw* | pw32* | cegcc*)
3442    symcode='[[ABCDGISTW]]'
3443    ;;
3444 < hpux*) # Its linker distinguishes data from code symbols
3444 > hpux*)
3445    if test "$host_cpu" = ia64; then
3446      symcode='[[ABCDEGRST]]'
3447    fi
4833  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4834  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4835  ;;
4836 linux* | k*bsd*-gnu)
4837  if test "$host_cpu" = ia64; then
4838    symcode='[[ABCDGIRSTW]]'
4839    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4840    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
4841  fi
3448    ;;
3449   irix* | nonstopux*)
3450    symcode='[[BCDEGRST]]'
# Line 4863 | Line 3469 | sysv4)
3469    ;;
3470   esac
3471  
3472 + # If we're using GNU nm, then use its standard symbol codes.
3473 + case `$NM -V 2>&1` in
3474 + *GNU* | *'with BFD'*)
3475 +  symcode='[[ABCDGIRSTW]]' ;;
3476 + esac
3477 +
3478 + # Transform an extracted symbol line into a proper C declaration.
3479 + # Some systems (esp. on ia64) link data and code symbols differently,
3480 + # so use this general approach.
3481 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3482 +
3483 + # Transform an extracted symbol line into symbol name and symbol address
3484 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
3485 + lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
3486 +
3487   # Handle CRLF in mingw tool chain
3488   opt_cr=
3489   case $build_os in
3490   mingw*)
3491 <  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3491 >  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3492    ;;
3493   esac
3494  
3495 < # If we're using GNU nm, then use its standard symbol codes.
4875 < case `$NM -V 2>&1` in
4876 < *GNU* | *'with BFD'*)
4877 <  symcode='[[ABCDGIRSTW]]' ;;
4878 < esac
4879 <
4880 < # Try without a prefix undercore, then with it.
3495 > # Try without a prefix underscore, then with it.
3496   for ac_symprfx in "" "_"; do
3497  
3498    # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3499    symxfrm="\\1 $ac_symprfx\\2 \\2"
3500  
3501    # Write the raw and C identifiers.
3502 <  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3502 >  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3503 >    # Fake it for dumpbin and say T for any non-static function
3504 >    # and D for any global variable.
3505 >    # Also find C++ and __fastcall symbols from MSVC++,
3506 >    # which start with @ or ?.
3507 >    lt_cv_sys_global_symbol_pipe="$AWK ['"\
3508 > "     {last_section=section; section=\$ 3};"\
3509 > "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3510 > "     \$ 0!~/External *\|/{next};"\
3511 > "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3512 > "     {if(hide[section]) next};"\
3513 > "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3514 > "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3515 > "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
3516 > "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3517 > "     ' prfx=^$ac_symprfx]"
3518 >  else
3519 >    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[     ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3520 >  fi
3521  
3522    # Check to see that the pipe works correctly.
3523    pipe_works=no
3524  
3525    rm -f conftest*
3526 <  cat > conftest.$ac_ext <<EOF
3526 >  cat > conftest.$ac_ext <<_LT_EOF
3527   #ifdef __cplusplus
3528   extern "C" {
3529   #endif
3530   char nm_test_var;
3531 < void nm_test_func(){}
3531 > void nm_test_func(void);
3532 > void nm_test_func(void){}
3533   #ifdef __cplusplus
3534   }
3535   #endif
3536   int main(){nm_test_var='a';nm_test_func();return(0);}
3537 < EOF
3537 > _LT_EOF
3538  
3539    if AC_TRY_EVAL(ac_compile); then
3540      # Now try to grab the symbols.
# Line 4914 | Line 3548 | EOF
3548        fi
3549  
3550        # Make sure that we snagged all the symbols we need.
3551 <      if grep ' nm_test_var$' "$nlist" >/dev/null; then
3552 <        if grep ' nm_test_func$' "$nlist" >/dev/null; then
3553 <          cat <<EOF > conftest.$ac_ext
3551 >      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3552 >        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3553 >          cat <<_LT_EOF > conftest.$ac_ext
3554   #ifdef __cplusplus
3555   extern "C" {
3556   #endif
3557  
3558 < EOF
3558 > _LT_EOF
3559            # Now generate the symbol file.
3560 <          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3560 >          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3561  
3562 <          cat <<EOF >> conftest.$ac_ext
4929 < #if defined (__STDC__) && __STDC__
4930 < # define lt_ptr_t void *
4931 < #else
4932 < # define lt_ptr_t char *
4933 < # define const
4934 < #endif
3562 >          cat <<_LT_EOF >> conftest.$ac_ext
3563  
3564 < /* The mapping between symbol names and symbols. */
3564 > /* The mapping between symbol names and symbols.  */
3565   const struct {
3566    const char *name;
3567 <  lt_ptr_t address;
3567 >  void       *address;
3568   }
3569 < lt_preloaded_symbols[[]] =
3569 > lt__PROGRAM__LTX_preloaded_symbols[[]] =
3570   {
3571 < EOF
3572 <          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3573 <          cat <<\EOF >> conftest.$ac_ext
3574 <  {0, (lt_ptr_t) 0}
3571 >  { "@PROGRAM@", (void *) 0 },
3572 > _LT_EOF
3573 >          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3574 >          cat <<\_LT_EOF >> conftest.$ac_ext
3575 >  {0, (void *) 0}
3576   };
3577  
3578 + /* This works around a problem in FreeBSD linker */
3579 + #ifdef FREEBSD_WORKAROUND
3580 + static const void *lt_preloaded_setup() {
3581 +  return lt__PROGRAM__LTX_preloaded_symbols;
3582 + }
3583 + #endif
3584 +
3585   #ifdef __cplusplus
3586   }
3587   #endif
3588 < EOF
3588 > _LT_EOF
3589            # Now try linking the two files.
3590            mv conftest.$ac_objext conftstm.$ac_objext
3591            lt_save_LIBS="$LIBS"
3592            lt_save_CFLAGS="$CFLAGS"
3593            LIBS="conftstm.$ac_objext"
3594 <          CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3594 >          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3595            if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3596              pipe_works=yes
3597            fi
# Line 4992 | Line 3628 | if test -z "$lt_cv_sys_global_symbol_pip
3628   else
3629    AC_MSG_RESULT(ok)
3630   fi
4995 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3631  
3632 + _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3633 +    [Take the output of nm and produce a listing of raw symbols and C names])
3634 + _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3635 +    [Transform the output of nm in a proper C declaration])
3636 + _LT_DECL([global_symbol_to_c_name_address],
3637 +    [lt_cv_sys_global_symbol_to_c_name_address], [1],
3638 +    [Transform the output of nm in a C name address pair])
3639 + _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3640 +    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3641 +    [Transform the output of nm in a C name address pair when lib prefix is needed])
3642 + ]) # _LT_CMD_GLOBAL_SYMBOLS
3643  
3644 < # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
3645 < # ---------------------------------------
3646 < AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
3647 < [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
3648 < _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3649 < _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3644 >
3645 > # _LT_COMPILER_PIC([TAGNAME])
3646 > # ---------------------------
3647 > m4_defun([_LT_COMPILER_PIC],
3648 > [m4_require([_LT_TAG_COMPILER])dnl
3649 > _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3650 > _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3651 > _LT_TAGVAR(lt_prog_compiler_static, $1)=
3652  
3653   AC_MSG_CHECKING([for $compiler option to produce PIC])
3654 < ifelse([$1],[CXX],[
3654 > m4_if([$1], [CXX], [
3655    # C++ specific cases for pic, static, wl, etc.
3656    if test "$GXX" = yes; then
3657 <    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3658 <    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3657 >    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3658 >    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3659  
3660      case $host_os in
3661      aix*)
3662        # All AIX code is PIC.
3663        if test "$host_cpu" = ia64; then
3664          # AIX 5 now supports IA64 processor
3665 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3665 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3666        fi
3667        ;;
3668 +
3669      amigaos*)
3670 <      # FIXME: we need at least 68020 code to build shared libraries, but
3671 <      # adding the `-m68020' flag to GCC prevents building anything better,
3672 <      # like `-m68040'.
3673 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3670 >      case $host_cpu in
3671 >      powerpc)
3672 >            # see comment about AmigaOS4 .so support
3673 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3674 >        ;;
3675 >      m68k)
3676 >            # FIXME: we need at least 68020 code to build shared libraries, but
3677 >            # adding the `-m68020' flag to GCC prevents building anything better,
3678 >            # like `-m68040'.
3679 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3680 >        ;;
3681 >      esac
3682        ;;
3683 +
3684      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3685        # PIC is the default for these OSes.
3686        ;;
3687 <    mingw* | cygwin* | os2* | pw32*)
3687 >    mingw* | cygwin* | os2* | pw32* | cegcc*)
3688        # This hack is so that the source file can tell whether it is being
3689        # built for inclusion in a dll (and should export symbols for example).
3690        # Although the cygwin gcc ignores -fPIC, still need this for old-style
3691        # (--disable-auto-import) libraries
3692        m4_if([$1], [GCJ], [],
3693 <        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3693 >        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3694        ;;
3695      darwin* | rhapsody*)
3696        # PIC is the default on this platform
3697        # Common symbols not allowed in MH_DYLIB files
3698 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3698 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3699        ;;
3700      *djgpp*)
3701        # DJGPP does not support shared libraries at all
3702 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3702 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3703        ;;
3704      interix[[3-9]]*)
3705        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
# Line 5049 | Line 3707 | AC_MSG_CHECKING([for $compiler option to
3707        ;;
3708      sysv4*MP*)
3709        if test -d /usr/nec; then
3710 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3710 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3711        fi
3712        ;;
3713      hpux*)
3714 <      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
3715 <      # not for PA HP-UX.
3714 >      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3715 >      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
3716 >      # sets the default TLS model and affects inlining.
3717        case $host_cpu in
3718 <      hppa*64*|ia64*)
3718 >      hppa*64*)
3719          ;;
3720        *)
3721 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3721 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3722          ;;
3723        esac
3724        ;;
3725 +    *qnx* | *nto*)
3726 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
3727 +      # it will coredump.
3728 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3729 +      ;;
3730      *)
3731 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3731 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3732        ;;
3733      esac
3734    else
# Line 5073 | Line 3737 | AC_MSG_CHECKING([for $compiler option to
3737          # All AIX code is PIC.
3738          if test "$host_cpu" = ia64; then
3739            # AIX 5 now supports IA64 processor
3740 <          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3740 >          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3741          else
3742 <          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3742 >          _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3743          fi
3744          ;;
3745        chorus*)
3746          case $cc_basename in
3747          cxch68*)
3748            # Green Hills C++ Compiler
3749 <          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3749 >          # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3750            ;;
3751          esac
3752          ;;
5089       darwin*)
5090         # PIC is the default on this platform
5091         # Common symbols not allowed in MH_DYLIB files
5092         case $cc_basename in
5093           xlc*)
5094           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5095           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5096           ;;
5097         esac
5098       ;;
3753        dgux*)
3754          case $cc_basename in
3755            ec++*)
3756 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3756 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3757              ;;
3758            ghcx*)
3759              # Green Hills C++ Compiler
3760 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3760 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3761              ;;
3762            *)
3763              ;;
# Line 5115 | Line 3769 | AC_MSG_CHECKING([for $compiler option to
3769        hpux9* | hpux10* | hpux11*)
3770          case $cc_basename in
3771            CC*)
3772 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3773 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3772 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3773 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3774              if test "$host_cpu" != ia64; then
3775 <              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3775 >              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3776              fi
3777              ;;
3778            aCC*)
3779 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3780 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3779 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3780 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3781              case $host_cpu in
3782              hppa*64*|ia64*)
3783                # +Z the default
3784                ;;
3785              *)
3786 <              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3786 >              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3787                ;;
3788              esac
3789              ;;
# Line 5144 | Line 3798 | AC_MSG_CHECKING([for $compiler option to
3798        irix5* | irix6* | nonstopux*)
3799          case $cc_basename in
3800            CC*)
3801 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3802 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3801 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3802 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3803              # CC pic flag -KPIC is the default.
3804              ;;
3805            *)
# Line 5156 | Line 3810 | AC_MSG_CHECKING([for $compiler option to
3810          case $cc_basename in
3811            KCC*)
3812              # KAI C++ Compiler
3813 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3814 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3813 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3814 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3815              ;;
3816 <          icpc* | ecpc*)
3817 <            # Intel C++
3818 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3819 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3820 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3816 >          ecpc* )
3817 >            # old Intel C++ for x86_64 which still supported -KPIC.
3818 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3819 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3820 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3821 >            ;;
3822 >          icpc* )
3823 >            # Intel C++, used to be incompatible with GCC.
3824 >            # ICC 10 doesn't accept -KPIC any more.
3825 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3826 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3827 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3828              ;;
3829            pgCC* | pgcpp*)
3830 <            # Portland Group C++ compiler.
3831 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3832 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3833 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3830 >            # Portland Group C++ compiler
3831 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3832 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3833 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3834              ;;
3835            cxx*)
3836              # Compaq C++
3837              # Make sure the PIC flag is empty.  It appears that all Alpha
3838              # Linux and Compaq Tru64 Unix objects are PIC.
3839 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3840 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3839 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3840 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3841 >            ;;
3842 >          xlc* | xlC*)
3843 >            # IBM XL 8.0 on PPC
3844 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3845 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3846 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3847              ;;
3848            *)
3849              case `$CC -V 2>&1 | sed 5q` in
3850              *Sun\ C*)
3851                # Sun C++ 5.9
3852 <              _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3853 <              _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3854 <              _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3852 >              _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3853 >              _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3854 >              _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3855                ;;
3856              esac
3857              ;;
# Line 5197 | Line 3864 | AC_MSG_CHECKING([for $compiler option to
3864        mvs*)
3865          case $cc_basename in
3866            cxx*)
3867 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3867 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3868              ;;
3869            *)
3870              ;;
# Line 5205 | Line 3872 | AC_MSG_CHECKING([for $compiler option to
3872          ;;
3873        netbsd*)
3874          ;;
3875 +      *qnx* | *nto*)
3876 +        # QNX uses GNU C++, but need to define -shared option too, otherwise
3877 +        # it will coredump.
3878 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3879 +        ;;
3880        osf3* | osf4* | osf5*)
3881          case $cc_basename in
3882            KCC*)
3883 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3883 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3884              ;;
3885            RCC*)
3886              # Rational C++ 2.4.1
3887 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3887 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3888              ;;
3889            cxx*)
3890              # Digital/Compaq C++
3891 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3891 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3892              # Make sure the PIC flag is empty.  It appears that all Alpha
3893              # Linux and Compaq Tru64 Unix objects are PIC.
3894 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3895 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3894 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3895 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3896              ;;
3897            *)
3898              ;;
# Line 5232 | Line 3904 | AC_MSG_CHECKING([for $compiler option to
3904          case $cc_basename in
3905            CC*)
3906              # Sun C++ 4.2, 5.x and Centerline C++
3907 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3908 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3909 <            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3907 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3908 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3909 >            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3910              ;;
3911            gcx*)
3912              # Green Hills C++ Compiler
3913 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3913 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3914              ;;
3915            *)
3916              ;;
# Line 5248 | Line 3920 | AC_MSG_CHECKING([for $compiler option to
3920          case $cc_basename in
3921            CC*)
3922              # Sun C++ 4.x
3923 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3924 <            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3923 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3924 >            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3925              ;;
3926            lcc*)
3927              # Lucid
3928 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3928 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3929              ;;
3930            *)
3931              ;;
3932          esac
3933          ;;
3934 +      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
3935 +        case $cc_basename in
3936 +          CC*)
3937 +            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3938 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3939 +            _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3940 +            ;;
3941 +        esac
3942 +        ;;
3943        tandem*)
3944          case $cc_basename in
3945            NCC*)
3946              # NonStop-UX NCC 3.20
3947 <            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3947 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3948              ;;
3949            *)
3950              ;;
3951          esac
3952          ;;
5272      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5273        case $cc_basename in
5274          CC*)
5275            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5276            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5277            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5278            ;;
5279        esac
5280        ;;
3953        vxworks*)
3954          ;;
3955        *)
3956 <        _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3956 >        _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3957          ;;
3958      esac
3959    fi
3960   ],
3961   [
3962    if test "$GCC" = yes; then
3963 <    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3964 <    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3963 >    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3964 >    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3965  
3966      case $host_os in
3967        aix*)
3968        # All AIX code is PIC.
3969        if test "$host_cpu" = ia64; then
3970          # AIX 5 now supports IA64 processor
3971 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3971 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3972        fi
3973        ;;
3974  
3975      amigaos*)
3976 <      # FIXME: we need at least 68020 code to build shared libraries, but
3977 <      # adding the `-m68020' flag to GCC prevents building anything better,
3978 <      # like `-m68040'.
3979 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3976 >      case $host_cpu in
3977 >      powerpc)
3978 >            # see comment about AmigaOS4 .so support
3979 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3980 >        ;;
3981 >      m68k)
3982 >            # FIXME: we need at least 68020 code to build shared libraries, but
3983 >            # adding the `-m68020' flag to GCC prevents building anything better,
3984 >            # like `-m68040'.
3985 >            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3986 >        ;;
3987 >      esac
3988        ;;
3989  
3990      beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3991        # PIC is the default for these OSes.
3992        ;;
3993  
3994 <    mingw* | cygwin* | pw32* | os2*)
3994 >    mingw* | cygwin* | pw32* | os2* | cegcc*)
3995        # This hack is so that the source file can tell whether it is being
3996        # built for inclusion in a dll (and should export symbols for example).
3997        # Although the cygwin gcc ignores -fPIC, still need this for old-style
3998        # (--disable-auto-import) libraries
3999        m4_if([$1], [GCJ], [],
4000 <        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4000 >        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4001        ;;
4002  
4003      darwin* | rhapsody*)
4004        # PIC is the default on this platform
4005        # Common symbols not allowed in MH_DYLIB files
4006 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4006 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4007 >      ;;
4008 >
4009 >    hpux*)
4010 >      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4011 >      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
4012 >      # sets the default TLS model and affects inlining.
4013 >      case $host_cpu in
4014 >      hppa*64*)
4015 >        # +Z the default
4016 >        ;;
4017 >      *)
4018 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4019 >        ;;
4020 >      esac
4021        ;;
4022  
4023      interix[[3-9]]*)
# Line 5334 | Line 4028 | AC_MSG_CHECKING([for $compiler option to
4028      msdosdjgpp*)
4029        # Just because we use GCC doesn't mean we suddenly get shared libraries
4030        # on systems that don't support them.
4031 <      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4031 >      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4032        enable_shared=no
4033        ;;
4034  
4035 +    *nto* | *qnx*)
4036 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
4037 +      # it will coredump.
4038 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4039 +      ;;
4040 +
4041      sysv4*MP*)
4042        if test -d /usr/nec; then
4043 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4043 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4044        fi
4045        ;;
4046  
5347    hpux*)
5348      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5349      # not for PA HP-UX.
5350      case $host_cpu in
5351      hppa*64*|ia64*)
5352        # +Z the default
5353        ;;
5354      *)
5355        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5356        ;;
5357      esac
5358      ;;
5359
4047      *)
4048 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4048 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4049        ;;
4050      esac
4051    else
4052      # PORTME Check for flag to pass linker flags through the system compiler.
4053      case $host_os in
4054      aix*)
4055 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4055 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4056        if test "$host_cpu" = ia64; then
4057          # AIX 5 now supports IA64 processor
4058 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4058 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4059        else
4060 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4060 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4061        fi
4062        ;;
5376      darwin*)
5377        # PIC is the default on this platform
5378        # Common symbols not allowed in MH_DYLIB files
5379       case $cc_basename in
5380         xlc*)
5381         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5382         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5383         ;;
5384       esac
5385       ;;
4063  
4064 <    mingw* | cygwin* | pw32* | os2*)
4064 >    mingw* | cygwin* | pw32* | os2* | cegcc*)
4065        # This hack is so that the source file can tell whether it is being
4066        # built for inclusion in a dll (and should export symbols for example).
4067        m4_if([$1], [GCJ], [],
4068 <        [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4068 >        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4069        ;;
4070  
4071      hpux9* | hpux10* | hpux11*)
4072 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4072 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4073        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4074        # not for PA HP-UX.
4075        case $host_cpu in
# Line 5400 | Line 4077 | AC_MSG_CHECKING([for $compiler option to
4077          # +Z the default
4078          ;;
4079        *)
4080 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4080 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4081          ;;
4082        esac
4083        # Is there a better lt_prog_compiler_static that works with the bundled CC?
4084 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4084 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4085        ;;
4086  
4087      irix5* | irix6* | nonstopux*)
4088 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4088 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4089        # PIC (with -KPIC) is the default.
4090 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5414 <      ;;
5415 <
5416 <    newsos6)
5417 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5418 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4090 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4091        ;;
4092  
4093      linux* | k*bsd*-gnu)
4094        case $cc_basename in
4095 <      icc* | ecc*)
4096 <        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4097 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4098 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4095 >      # old Intel for x86_64 which still supported -KPIC.
4096 >      ecc*)
4097 >        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4098 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4099 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4100 >        ;;
4101 >      # icc used to be incompatible with GCC.
4102 >      # ICC 10 doesn't accept -KPIC any more.
4103 >      icc* | ifort*)
4104 >        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4105 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4106 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4107          ;;
4108 +      # Lahey Fortran 8.1.
4109 +      lf95*)
4110 +        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4111 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4112 +        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4113 +        ;;
4114        pgcc* | pgf77* | pgf90* | pgf95*)
4115          # Portland Group compilers (*not* the Pentium gcc compiler,
4116          # which looks to be a dead project)
4117 <        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4118 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4119 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4117 >        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4118 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4119 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4120          ;;
4121        ccc*)
4122 <        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4122 >        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4123          # All Alpha code is PIC.
4124 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4124 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4125          ;;
4126 +      xl*)
4127 +        # IBM XL C 8.0/Fortran 10.1 on PPC
4128 +        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4129 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4130 +        _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4131 +        ;;
4132        *)
4133 <        case `$CC -V 2>&1 | sed 5q` in
4133 >        case `$CC -V 2>&1 | sed 5q` in
4134          *Sun\ C*)
4135            # Sun C 5.9
4136 <          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4137 <          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4138 <          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4136 >          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4137 >          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4138 >          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4139            ;;
4140          *Sun\ F*)
4141            # Sun Fortran 8.3 passes all unrecognized flags to the linker
4142 <          _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4143 <          _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4144 <          _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4142 >          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4143 >          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4144 >          _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4145            ;;
4146          esac
4147          ;;
4148        esac
4149        ;;
4150  
4151 +    newsos6)
4152 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4153 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4154 +      ;;
4155 +
4156 +    *nto* | *qnx*)
4157 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
4158 +      # it will coredump.
4159 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4160 +      ;;
4161 +
4162      osf3* | osf4* | osf5*)
4163 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4163 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4164        # All OSF/1 code is PIC.
4165 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4165 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4166        ;;
4167  
4168      rdos*)
4169 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4169 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4170        ;;
4171  
4172      solaris*)
4173 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4174 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4173 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4174 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4175        case $cc_basename in
4176        f77* | f90* | f95*)
4177 <        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4177 >        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4178        *)
4179 <        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4179 >        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4180        esac
4181        ;;
4182  
4183      sunos4*)
4184 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4185 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4186 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4184 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4185 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4186 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4187        ;;
4188  
4189      sysv4 | sysv4.2uw2* | sysv4.3*)
4190 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4191 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4192 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4190 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4191 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4192 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4193        ;;
4194  
4195      sysv4*MP*)
4196        if test -d /usr/nec ;then
4197 <        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4198 <        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4197 >        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4198 >        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4199        fi
4200        ;;
4201  
4202      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4203 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4205 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4203 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4204 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4205 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4206        ;;
4207  
4208      unicos*)
4209 <      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4210 <      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4209 >      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4210 >      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4211        ;;
4212  
4213      uts4*)
4214 <      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4215 <      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4214 >      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4215 >      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4216        ;;
4217  
4218      *)
4219 <      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4219 >      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4220        ;;
4221      esac
4222    fi
4223   ])
5521 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5522
5523 #
5524 # Check to make sure the PIC flag actually works.
5525 #
5526 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5527  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5528    _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5529    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5530    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5531     "" | " "*) ;;
5532     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5533     esac],
5534    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5535     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5536 fi
4224   case $host_os in
4225    # For platforms which do not support PIC, -DPIC is meaningless:
4226    *djgpp*)
4227 <    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4227 >    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4228      ;;
4229    *)
4230 <    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4230 >    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4231      ;;
4232   esac
4233 + AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4234 + _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4235 +        [How to pass a linker flag through the compiler])
4236 +
4237 + #
4238 + # Check to make sure the PIC flag actually works.
4239 + #
4240 + if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4241 +  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4242 +    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4243 +    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4244 +    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4245 +     "" | " "*) ;;
4246 +     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4247 +     esac],
4248 +    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4249 +     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4250 + fi
4251 + _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4252 +        [Additional compiler flags for building library objects])
4253  
4254   #
4255   # Check to make sure the static flag actually works.
4256   #
4257 < wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
4258 < AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4259 <  _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4257 > wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4258 > _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4259 >  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4260    $lt_tmp_static_flag,
4261    [],
4262 <  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4263 < ])
4262 >  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4263 > _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4264 >        [Compiler flag to prevent dynamic linking])
4265 > ])# _LT_COMPILER_PIC
4266  
4267  
4268 < # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
4269 < # ------------------------------------
4268 > # _LT_LINKER_SHLIBS([TAGNAME])
4269 > # ----------------------------
4270   # See if the linker supports building shared libraries.
4271 < AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
4272 < [AC_REQUIRE([LT_AC_PROG_SED])dnl
4271 > m4_defun([_LT_LINKER_SHLIBS],
4272 > [AC_REQUIRE([LT_PATH_LD])dnl
4273 > AC_REQUIRE([LT_PATH_NM])dnl
4274 > m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4275 > m4_require([_LT_DECL_EGREP])dnl
4276 > m4_require([_LT_DECL_SED])dnl
4277 > m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4278 > m4_require([_LT_TAG_COMPILER])dnl
4279   AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4280 < ifelse([$1],[CXX],[
4281 <  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4280 > m4_if([$1], [CXX], [
4281 >  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4282    case $host_os in
4283    aix[[4-9]]*)
4284      # If we're using GNU nm, then we don't want the "-C" option.
4285      # -C means demangle to AIX nm, but means don't demangle with GNU nm
4286 <    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4287 <      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4286 >    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4287 >      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4288      else
4289 <      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4289 >      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4290      fi
4291      ;;
4292    pw32*)
4293 <    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4293 >    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4294 >  ;;
4295 >  cygwin* | mingw* | cegcc*)
4296 >    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4297    ;;
4298 <  cygwin* | mingw*)
4299 <    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4298 >  linux* | k*bsd*-gnu)
4299 >    _LT_TAGVAR(link_all_deplibs, $1)=no
4300    ;;
4301    *)
4302 <    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4302 >    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4303    ;;
4304    esac
4305 <  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4306 < ],[
4305 >  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4306 > ], [
4307    runpath_var=
4308 <  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4309 <  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4310 <  _LT_AC_TAGVAR(archive_cmds, $1)=
4311 <  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4312 <  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
4313 <  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4314 <  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4315 <  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4316 <  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
4317 <  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4318 <  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4319 <  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4320 <  _LT_AC_TAGVAR(hardcode_direct, $1)=no
4321 <  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4322 <  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4323 <  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4324 <  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4325 <  _LT_AC_TAGVAR(module_cmds, $1)=
4326 <  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4327 <  _LT_AC_TAGVAR(always_export_symbols, $1)=no
4328 <  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4308 >  _LT_TAGVAR(allow_undefined_flag, $1)=
4309 >  _LT_TAGVAR(always_export_symbols, $1)=no
4310 >  _LT_TAGVAR(archive_cmds, $1)=
4311 >  _LT_TAGVAR(archive_expsym_cmds, $1)=
4312 >  _LT_TAGVAR(compiler_needs_object, $1)=no
4313 >  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4314 >  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4315 >  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4316 >  _LT_TAGVAR(hardcode_automatic, $1)=no
4317 >  _LT_TAGVAR(hardcode_direct, $1)=no
4318 >  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4319 >  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4320 >  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4321 >  _LT_TAGVAR(hardcode_libdir_separator, $1)=
4322 >  _LT_TAGVAR(hardcode_minus_L, $1)=no
4323 >  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4324 >  _LT_TAGVAR(inherit_rpath, $1)=no
4325 >  _LT_TAGVAR(link_all_deplibs, $1)=unknown
4326 >  _LT_TAGVAR(module_cmds, $1)=
4327 >  _LT_TAGVAR(module_expsym_cmds, $1)=
4328 >  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4329 >  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4330 >  _LT_TAGVAR(thread_safe_flag_spec, $1)=
4331 >  _LT_TAGVAR(whole_archive_flag_spec, $1)=
4332    # include_expsyms should be a list of space-separated symbols to be *always*
4333    # included in the symbol list
4334 <  _LT_AC_TAGVAR(include_expsyms, $1)=
4334 >  _LT_TAGVAR(include_expsyms, $1)=
4335    # exclude_expsyms can be an extended regexp of symbols to exclude
4336    # it will be wrapped by ` (' and `)$', so one must not match beginning or
4337    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4338    # as well as any symbol that contains `d'.
4339 <  _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4339 >  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4340    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4341    # platforms (ab)use it in PIC code, but their linkers get confused if
4342    # the symbol is explicitly referenced.  Since portable code cannot
# Line 5624 | Line 4345 | ifelse([$1],[CXX],[
4345    # Exclude shared library initialization/finalization symbols.
4346   dnl Note also adjust exclude_expsyms for C++ above.
4347    extract_expsyms_cmds=
4348 <  # Just being paranoid about ensuring that cc_basename is set.
5628 <  _LT_CC_BASENAME([$compiler])
4348 >
4349    case $host_os in
4350 <  cygwin* | mingw* | pw32*)
4350 >  cygwin* | mingw* | pw32* | cegcc*)
4351      # FIXME: the MSVC++ port hasn't been tested in a loooong time
4352      # When not using gcc, we currently assume that we are using
4353      # Microsoft Visual C++.
# Line 5644 | Line 4364 | dnl Note also adjust exclude_expsyms for
4364      ;;
4365    esac
4366  
4367 <  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4367 >  _LT_TAGVAR(ld_shlibs, $1)=yes
4368    if test "$with_gnu_ld" = yes; then
4369      # If archive_cmds runs LD, not CC, wlarc should be empty
4370      wlarc='${wl}'
# Line 5653 | Line 4373 | dnl Note also adjust exclude_expsyms for
4373      # are reset later if shared libraries are not supported. Putting them
4374      # here allows them to be overridden if necessary.
4375      runpath_var=LD_RUN_PATH
4376 <    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4377 <    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4376 >    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4377 >    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4378      # ancient GNU ld didn't support --whole-archive et. al.
4379 <    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
4380 <        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4381 <      else
4382 <        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4379 >    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4380 >      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4381 >    else
4382 >      _LT_TAGVAR(whole_archive_flag_spec, $1)=
4383      fi
4384      supports_anon_versioning=no
4385 <    case `$LD -v 2>/dev/null` in
4385 >    case `$LD -v 2>&1` in
4386        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4387        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4388        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
# Line 5675 | Line 4395 | dnl Note also adjust exclude_expsyms for
4395      aix[[3-9]]*)
4396        # On AIX/PPC, the GNU linker is very broken
4397        if test "$host_cpu" != ia64; then
4398 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4399 <        cat <<EOF 1>&2
4398 >        _LT_TAGVAR(ld_shlibs, $1)=no
4399 >        cat <<_LT_EOF 1>&2
4400  
4401   *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4402   *** to be unable to reliably create shared libraries on AIX.
# Line 5684 | Line 4404 | dnl Note also adjust exclude_expsyms for
4404   *** really care for shared libraries, you may want to modify your PATH
4405   *** so that a non-GNU linker is found, and then restart.
4406  
4407 < EOF
4407 > _LT_EOF
4408        fi
4409        ;;
4410  
4411      amigaos*)
4412 <      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4413 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4414 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4415 <
4416 <      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4417 <      # that the semantics of dynamic libraries on AmigaOS, at least up
4418 <      # to version 4, is to share data among multiple programs linked
4419 <      # with the same dynamic library.  Since this doesn't match the
4420 <      # behavior of shared libraries on other platforms, we can't use
4421 <      # them.
4422 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4412 >      case $host_cpu in
4413 >      powerpc)
4414 >            # see comment about AmigaOS4 .so support
4415 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4416 >            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4417 >        ;;
4418 >      m68k)
4419 >            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4420 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4421 >            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4422 >        ;;
4423 >      esac
4424        ;;
4425  
4426      beos*)
4427 <      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4428 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4427 >      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4428 >        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4429          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4430          # support --undefined.  This deserves some investigation.  FIXME
4431 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4431 >        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4432        else
4433 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4433 >        _LT_TAGVAR(ld_shlibs, $1)=no
4434        fi
4435        ;;
4436  
4437 <    cygwin* | mingw* | pw32*)
4438 <      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4437 >    cygwin* | mingw* | pw32* | cegcc*)
4438 >      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4439        # as there is no search path for DLLs.
4440 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4441 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4442 <      _LT_AC_TAGVAR(always_export_symbols, $1)=no
4443 <      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4444 <      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4440 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4441 >      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4442 >      _LT_TAGVAR(always_export_symbols, $1)=no
4443 >      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4444 >      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4445  
4446 <      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4447 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4446 >      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4447 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4448          # If the export-symbols file already is a .def file (1st line
4449          # is EXPORTS), use it as is; otherwise, prepend...
4450 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4450 >        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4451            cp $export_symbols $output_objdir/$soname.def;
4452          else
4453            echo EXPORTS > $output_objdir/$soname.def;
# Line 5734 | Line 4455 | EOF
4455          fi~
4456          $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4457        else
4458 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4458 >        _LT_TAGVAR(ld_shlibs, $1)=no
4459        fi
4460        ;;
4461  
4462      interix[[3-9]]*)
4463 <      _LT_AC_TAGVAR(hardcode_direct, $1)=no
4464 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4465 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4466 <      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4463 >      _LT_TAGVAR(hardcode_direct, $1)=no
4464 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4465 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4466 >      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4467        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4468        # Instead, shared libraries are loaded at an image base (0x10000000 by
4469        # default) and relocated if they conflict, which is a slow very memory
4470        # consuming and fragmenting process.  To avoid this, we pick a random,
4471        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4472        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
4473 <      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4474 <      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4473 >      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4474 >      _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4475        ;;
4476  
4477 <    gnu* | linux* | k*bsd*-gnu)
4478 <      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4477 >    gnu* | linux* | tpf* | k*bsd*-gnu)
4478 >      tmp_diet=no
4479 >      if test "$host_os" = linux-dietlibc; then
4480 >        case $cc_basename in
4481 >          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
4482 >        esac
4483 >      fi
4484 >      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4485 >         && test "$tmp_diet" = no
4486 >      then
4487          tmp_addflag=
4488 +        tmp_sharedflag='-shared'
4489          case $cc_basename,$host_cpu in
4490 <        pgcc*)                          # Portland Group C compiler
4491 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4490 >        pgcc*)                          # Portland Group C compiler
4491 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4492            tmp_addflag=' $pic_flag'
4493            ;;
4494          pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
4495 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4495 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4496            tmp_addflag=' $pic_flag -Mnomain' ;;
4497 <        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
4497 >        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
4498            tmp_addflag=' -i_dynamic' ;;
4499          efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
4500            tmp_addflag=' -i_dynamic -nofor_main' ;;
4501          ifc* | ifort*)                  # Intel Fortran compiler
4502            tmp_addflag=' -nofor_main' ;;
4503 +        lf95*)                          # Lahey Fortran 8.1
4504 +          _LT_TAGVAR(whole_archive_flag_spec, $1)=
4505 +          tmp_sharedflag='--shared' ;;
4506 +        xl[[cC]]*)                      # IBM XL C 8.0 on PPC (deal with xlf below)
4507 +          tmp_sharedflag='-qmkshrobj'
4508 +          tmp_addflag= ;;
4509          esac
4510          case `$CC -V 2>&1 | sed 5q` in
4511          *Sun\ C*)                       # Sun C 5.9
4512 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4512 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4513 >          _LT_TAGVAR(compiler_needs_object, $1)=yes
4514            tmp_sharedflag='-G' ;;
4515          *Sun\ F*)                       # Sun Fortran 8.3
4516            tmp_sharedflag='-G' ;;
5780        *)
5781          tmp_sharedflag='-shared' ;;
4517          esac
4518 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4518 >        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4519  
4520 <        if test $supports_anon_versioning = yes; then
4521 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
4522 <  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4523 <  $echo "local: *; };" >> $output_objdir/$libname.ver~
4524 <          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4525 <        fi
4520 >        if test "x$supports_anon_versioning" = xyes; then
4521 >          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4522 >            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4523 >            echo "local: *; };" >> $output_objdir/$libname.ver~
4524 >            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4525 >        fi
4526 >
4527 >        case $cc_basename in
4528 >        xlf*)
4529 >          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4530 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4531 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4532 >          _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4533 >          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4534 >          if test "x$supports_anon_versioning" = xyes; then
4535 >            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4536 >              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4537 >              echo "local: *; };" >> $output_objdir/$libname.ver~
4538 >              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4539 >          fi
4540 >          ;;
4541 >        esac
4542        else
4543 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4543 >        _LT_TAGVAR(ld_shlibs, $1)=no
4544        fi
4545        ;;
4546  
4547      netbsd*)
4548 <      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4549 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4548 >      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4549 >        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4550          wlarc=
4551        else
4552 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4553 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4552 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4553 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4554        fi
4555        ;;
4556  
4557      solaris*)
4558 <      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
4559 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4560 <        cat <<EOF 1>&2
4558 >      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4559 >        _LT_TAGVAR(ld_shlibs, $1)=no
4560 >        cat <<_LT_EOF 1>&2
4561  
4562   *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4563   *** create shared libraries on Solaris systems.  Therefore, libtool
# Line 5815 | Line 4566 | EOF
4566   *** your PATH or compiler configuration so that the native linker is
4567   *** used, and then restart.
4568  
4569 < EOF
4570 <      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4571 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4572 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4569 > _LT_EOF
4570 >      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4571 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4572 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4573        else
4574 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4574 >        _LT_TAGVAR(ld_shlibs, $1)=no
4575        fi
4576        ;;
4577  
4578      sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
4579        case `$LD -v 2>&1` in
4580          *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
4581 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4581 >        _LT_TAGVAR(ld_shlibs, $1)=no
4582          cat <<_LT_EOF 1>&2
4583  
4584   *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
# Line 5840 | Line 4591 | EOF
4591   _LT_EOF
4592          ;;
4593          *)
4594 <          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4595 <            _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
4596 <            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
4597 <            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
4594 >          # For security reasons, it is highly recommended that you always
4595 >          # use absolute paths for naming shared libraries, and exclude the
4596 >          # DT_RUNPATH tag from executables and libraries.  But doing so
4597 >          # requires that you compile everything twice, which is a pain.
4598 >          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4599 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4600 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4601 >            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4602            else
4603 <            _LT_AC_TAGVAR(ld_shlibs, $1)=no
4603 >            _LT_TAGVAR(ld_shlibs, $1)=no
4604            fi
4605          ;;
4606        esac
4607        ;;
4608  
4609      sunos4*)
4610 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4610 >      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4611        wlarc=
4612 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4613 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4612 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4613 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4614        ;;
4615  
4616      *)
4617 <      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4618 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4619 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4617 >      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4618 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4619 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4620        else
4621 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
4621 >        _LT_TAGVAR(ld_shlibs, $1)=no
4622        fi
4623        ;;
4624      esac
4625  
4626 <    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
4626 >    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
4627        runpath_var=
4628 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4629 <      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4630 <      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4628 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4629 >      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4630 >      _LT_TAGVAR(whole_archive_flag_spec, $1)=
4631      fi
4632    else
4633      # PORTME fill in a description of your system's linker (not GNU ld)
4634      case $host_os in
4635      aix3*)
4636 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4637 <      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4638 <      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4636 >      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4637 >      _LT_TAGVAR(always_export_symbols, $1)=yes
4638 >      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4639        # Note: this linker hardcodes the directories in LIBPATH if there
4640        # are no directories specified by -L.
4641 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4641 >      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4642        if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
4643          # Neither direct hardcoding nor static linking is supported with a
4644          # broken collect2.
4645 <        _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4645 >        _LT_TAGVAR(hardcode_direct, $1)=unsupported
4646        fi
4647        ;;
4648  
# Line 5901 | Line 4656 | _LT_EOF
4656        else
4657          # If we're using GNU nm, then we don't want the "-C" option.
4658          # -C means demangle to AIX nm, but means don't demangle with GNU nm
4659 <        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
4660 <          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4659 >        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4660 >          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4661          else
4662 <          _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4662 >          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4663          fi
4664          aix_use_runtimelinking=no
4665  
# Line 5913 | Line 4668 | _LT_EOF
4668          # need to do runtime linking.
4669          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4670            for ld_flag in $LDFLAGS; do
4671 <          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4672 <            aix_use_runtimelinking=yes
4673 <            break
4674 <          fi
4671 >          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4672 >            aix_use_runtimelinking=yes
4673 >            break
4674 >          fi
4675            done
4676            ;;
4677          esac
# Line 5931 | Line 4686 | _LT_EOF
4686        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4687        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4688  
4689 <      _LT_AC_TAGVAR(archive_cmds, $1)=''
4690 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4691 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4692 <      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4689 >      _LT_TAGVAR(archive_cmds, $1)=''
4690 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4691 >      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4692 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4693 >      _LT_TAGVAR(link_all_deplibs, $1)=yes
4694 >      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
4695  
4696        if test "$GCC" = yes; then
4697          case $host_os in aix4.[[012]]|aix4.[[012]].*)
4698          # We only want to do this on AIX 4.2 and lower, the check
4699          # below for broken collect2 doesn't work under 4.3+
4700            collect2name=`${CC} -print-prog-name=collect2`
4701 <          if test -f "$collect2name" && \
4702 <           strings "$collect2name" | grep resolve_lib_name >/dev/null
4701 >          if test -f "$collect2name" &&
4702 >           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
4703            then
4704 <          # We have reworked collect2
4705 <          :
4704 >          # We have reworked collect2
4705 >          :
4706            else
4707 <          # We have old collect2
4708 <          _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4709 <          # It fails to find uninstalled libraries when the uninstalled
4710 <          # path is not listed in the libpath.  Setting hardcode_minus_L
4711 <          # to unsupported forces relinking
4712 <          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4713 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4714 <          _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4707 >          # We have old collect2
4708 >          _LT_TAGVAR(hardcode_direct, $1)=unsupported
4709 >          # It fails to find uninstalled libraries when the uninstalled
4710 >          # path is not listed in the libpath.  Setting hardcode_minus_L
4711 >          # to unsupported forces relinking
4712 >          _LT_TAGVAR(hardcode_minus_L, $1)=yes
4713 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4714 >          _LT_TAGVAR(hardcode_libdir_separator, $1)=
4715            fi
4716            ;;
4717          esac
# Line 5962 | Line 4719 | _LT_EOF
4719          if test "$aix_use_runtimelinking" = yes; then
4720            shared_flag="$shared_flag "'${wl}-G'
4721          fi
4722 +        _LT_TAGVAR(link_all_deplibs, $1)=no
4723        else
4724          # not using gcc
4725          if test "$host_cpu" = ia64; then
4726 <        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4727 <        # chokes on -Wl,-G. The following line is correct:
4726 >        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4727 >        # chokes on -Wl,-G. The following line is correct:
4728            shared_flag='-G'
4729          else
4730            if test "$aix_use_runtimelinking" = yes; then
# Line 5977 | Line 4735 | _LT_EOF
4735          fi
4736        fi
4737  
4738 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
4739        # It seems that -bexpall does not export symbols beginning with
4740        # underscore (_), so it is better to generate a list of symbols to export.
4741 <      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4741 >      _LT_TAGVAR(always_export_symbols, $1)=yes
4742        if test "$aix_use_runtimelinking" = yes; then
4743          # Warning - without using the other runtime loading flags (-brtl),
4744          # -berok will link without error, but may produce a broken library.
4745 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4746 <       # Determine the default libpath from the value encoded in an empty executable.
4747 <       _LT_AC_SYS_LIBPATH_AIX
4748 <       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4749 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4750 <       else
4745 >        _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4746 >        # Determine the default libpath from the value encoded in an
4747 >        # empty executable.
4748 >        _LT_SYS_MODULE_PATH_AIX
4749 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4750 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4751 >      else
4752          if test "$host_cpu" = ia64; then
4753 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4754 <          _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4755 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4753 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4754 >          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4755 >          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4756          else
4757 <         # Determine the default libpath from the value encoded in an empty executable.
4758 <         _LT_AC_SYS_LIBPATH_AIX
4759 <         _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4757 >         # Determine the default libpath from the value encoded in an
4758 >         # empty executable.
4759 >         _LT_SYS_MODULE_PATH_AIX
4760 >         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4761            # Warning - without using the other run time loading flags,
4762            # -berok will link without error, but may produce a broken library.
4763 <          _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4764 <          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4763 >          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4764 >          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4765            # Exported symbols can be pulled into shared objects from archives
4766 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4767 <          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4766 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4767 >          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
4768            # This is similar to how AIX traditionally builds its shared libraries.
4769 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4769 >          _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4770          fi
4771        fi
4772        ;;
4773  
4774      amigaos*)
4775 <      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4776 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4777 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4778 <      # see comment about different semantics on the GNU ld section
4779 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4775 >      case $host_cpu in
4776 >      powerpc)
4777 >            # see comment about AmigaOS4 .so support
4778 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4779 >            _LT_TAGVAR(archive_expsym_cmds, $1)=''
4780 >        ;;
4781 >      m68k)
4782 >            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4783 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4784 >            _LT_TAGVAR(hardcode_minus_L, $1)=yes
4785 >        ;;
4786 >      esac
4787        ;;
4788  
4789      bsdi[[45]]*)
4790 <      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4790 >      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4791        ;;
4792  
4793 <    cygwin* | mingw* | pw32*)
4793 >    cygwin* | mingw* | pw32* | cegcc*)
4794        # When not using gcc, we currently assume that we are using
4795        # Microsoft Visual C++.
4796        # hardcode_libdir_flag_spec is actually meaningless, as there is
4797        # no search path for DLLs.
4798 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4799 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4798 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4799 >      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4800        # Tell ltmain to make .lib files, not .a files.
4801        libext=lib
4802        # Tell ltmain to make .dll files, not .so files.
4803        shrext_cmds=".dll"
4804        # FIXME: Setting linknames here is a bad hack.
4805 <      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4805 >      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4806        # The linker will automatically build a .lib file if we build a DLL.
4807 <      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
4807 >      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
4808        # FIXME: Should let the user specify the lib program.
4809 <      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4810 <      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4811 <      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4809 >      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4810 >      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4811 >      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4812        ;;
4813  
4814      darwin* | rhapsody*)
4815 <      case $host_os in
6048 <        rhapsody* | darwin1.[[012]])
6049 <         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6050 <         ;;
6051 <       *) # Darwin 1.3 on
6052 <         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6053 <           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6054 <         else
6055 <           case ${MACOSX_DEPLOYMENT_TARGET} in
6056 <             10.[[012]])
6057 <               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6058 <               ;;
6059 <             10.*)
6060 <               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6061 <               ;;
6062 <           esac
6063 <         fi
6064 <         ;;
6065 <      esac
6066 <      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6067 <      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6068 <      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6069 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6070 <      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6071 <      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6072 <    if test "$GCC" = yes ; then
6073 <        output_verbose_link_cmd='echo'
6074 <        _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6075 <        _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6076 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6077 <        _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6078 <    else
6079 <      case $cc_basename in
6080 <        xlc*)
6081 <         output_verbose_link_cmd='echo'
6082 <         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6083 <         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6084 <          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6085 <         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6086 <          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6087 <          ;;
6088 <       *)
6089 <         _LT_AC_TAGVAR(ld_shlibs, $1)=no
6090 <          ;;
6091 <      esac
6092 <    fi
4815 >      _LT_DARWIN_LINKER_FEATURES($1)
4816        ;;
4817  
4818      dgux*)
4819 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4820 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4821 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4819 >      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4820 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4821 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4822        ;;
4823  
4824      freebsd1*)
4825 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
4825 >      _LT_TAGVAR(ld_shlibs, $1)=no
4826        ;;
4827  
4828      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
# Line 6107 | Line 4830 | _LT_EOF
4830      # does not break anything, and helps significantly (at the cost of a little
4831      # extra space).
4832      freebsd2.2*)
4833 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4834 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4835 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4836 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4833 >      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4834 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4835 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4836 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4837        ;;
4838  
4839      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4840      freebsd2*)
4841 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4842 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4843 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4844 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4841 >      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4842 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4843 >      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4844 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4845        ;;
4846  
4847      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4848      freebsd* | dragonfly*)
4849 <      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4850 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4851 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4852 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4849 >      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4850 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4851 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4852 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4853        ;;
4854  
4855      hpux9*)
4856        if test "$GCC" = yes; then
4857 <        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4857 >        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4858        else
4859 <        _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4859 >        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4860        fi
4861 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4862 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4863 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4861 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4862 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4863 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4864  
4865        # hardcode_minus_L: Not really in the search PATH,
4866        # but as the default location of the library.
4867 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4868 <      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4867 >      _LT_TAGVAR(hardcode_minus_L, $1)=yes
4868 >      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4869        ;;
4870  
4871      hpux10*)
4872        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4873 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4873 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4874        else
4875 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4875 >        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4876        fi
4877        if test "$with_gnu_ld" = no; then
4878 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4879 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4880 <
4881 <        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4882 <        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4883 <
4878 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4879 >        _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4880 >        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4881 >        _LT_TAGVAR(hardcode_direct, $1)=yes
4882 >        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4883 >        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4884          # hardcode_minus_L: Not really in the search PATH,
4885          # but as the default location of the library.
4886 <        _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4886 >        _LT_TAGVAR(hardcode_minus_L, $1)=yes
4887        fi
4888        ;;
4889  
# Line 6168 | Line 4891 | _LT_EOF
4891        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
4892          case $host_cpu in
4893          hppa*64*)
4894 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4894 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4895            ;;
4896          ia64*)
4897 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4897 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4898            ;;
4899          *)
4900 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4900 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4901            ;;
4902          esac
4903        else
4904          case $host_cpu in
4905          hppa*64*)
4906 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4906 >          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4907            ;;
4908          ia64*)
4909 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4909 >          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4910            ;;
4911          *)
4912 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4912 >          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4913            ;;
4914          esac
4915        fi
4916        if test "$with_gnu_ld" = no; then
4917 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4918 <        _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4917 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4918 >        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4919  
4920          case $host_cpu in
4921          hppa*64*|ia64*)
4922 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4923 <          _LT_AC_TAGVAR(hardcode_direct, $1)=no
6201 <          _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4922 >          _LT_TAGVAR(hardcode_direct, $1)=no
4923 >          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4924            ;;
4925          *)
4926 <          _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4927 <          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4926 >          _LT_TAGVAR(hardcode_direct, $1)=yes
4927 >          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4928 >          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4929  
4930            # hardcode_minus_L: Not really in the search PATH,
4931            # but as the default location of the library.
4932 <          _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4932 >          _LT_TAGVAR(hardcode_minus_L, $1)=yes
4933            ;;
4934          esac
4935        fi
# Line 6214 | Line 4937 | _LT_EOF
4937  
4938      irix5* | irix6* | nonstopux*)
4939        if test "$GCC" = yes; then
4940 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4940 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4941 >        # Try to use the -exported_symbol ld option, if it does not
4942 >        # work, assume that -exports_file does not work either and
4943 >        # implicitly export all symbols.
4944 >        save_LDFLAGS="$LDFLAGS"
4945 >        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4946 >        AC_LINK_IFELSE(int foo(void) {},
4947 >          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4948 >        )
4949 >        LDFLAGS="$save_LDFLAGS"
4950        else
4951 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4952 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4951 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4952 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
4953        fi
4954 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4955 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4956 <      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4954 >      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4955 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4956 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4957 >      _LT_TAGVAR(inherit_rpath, $1)=yes
4958 >      _LT_TAGVAR(link_all_deplibs, $1)=yes
4959        ;;
4960  
4961      netbsd*)
4962 <      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4963 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4962 >      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4963 >        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4964        else
4965 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4965 >        _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4966        fi
4967 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4968 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4969 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4967 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4968 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4969 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4970        ;;
4971  
4972      newsos6)
4973 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4974 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4975 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4976 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4977 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4973 >      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4974 >      _LT_TAGVAR(hardcode_direct, $1)=yes
4975 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4976 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4977 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4978 >      ;;
4979 >
4980 >    *nto* | *qnx*)
4981        ;;
4982  
4983      openbsd*)
4984        if test -f /usr/libexec/ld.so; then
4985 <        _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4986 <        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4987 <        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4988 <          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4989 <          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4990 <          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4991 <          _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4985 >        _LT_TAGVAR(hardcode_direct, $1)=yes
4986 >        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4987 >        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4988 >        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4989 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4990 >          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4991 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4992 >          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4993          else
4994            case $host_os in
4995             openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
4996 <             _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4997 <             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4996 >             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4997 >             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4998               ;;
4999             *)
5000 <             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5001 <             _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5000 >             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5001 >             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5002               ;;
5003            esac
5004 <        fi
5004 >        fi
5005        else
5006 <        _LT_AC_TAGVAR(ld_shlibs, $1)=no
5006 >        _LT_TAGVAR(ld_shlibs, $1)=no
5007        fi
5008        ;;
5009  
5010      os2*)
5011 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5012 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5013 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5014 <      _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5015 <      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5011 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5012 >      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5013 >      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5014 >      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5015 >      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5016        ;;
5017  
5018      osf3*)
5019        if test "$GCC" = yes; then
5020 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5021 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5020 >        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5021 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5022        else
5023 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5024 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5023 >        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5024 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5025        fi
5026 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5027 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5026 >      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5027 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5028 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5029        ;;
5030  
5031      osf4* | osf5*)      # as osf3* with the addition of -msym flag
5032        if test "$GCC" = yes; then
5033 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5034 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5035 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5033 >        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5034 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5035 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5036        else
5037 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5038 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5039 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5040 <        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5037 >        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5038 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5039 >        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5040 >        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5041  
5042          # Both c and cxx compiler support -rpath directly
5043 <        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5043 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5044        fi
5045 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5045 >      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5046 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5047        ;;
5048  
5049      solaris*)
5050 <      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5050 >      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5051        if test "$GCC" = yes; then
5052          wlarc='${wl}'
5053 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5054 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5055 <          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5053 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5054 >        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5055 >          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5056        else
5057 <        wlarc=''
5058 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5059 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5060 <        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5057 >        case `$CC -V 2>&1` in
5058 >        *"Compilers 5.0"*)
5059 >          wlarc=''
5060 >          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5061 >          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5062 >          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5063 >          ;;
5064 >        *)
5065 >          wlarc='${wl}'
5066 >          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5067 >          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5068 >          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5069 >          ;;
5070 >        esac
5071        fi
5072 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5073 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5072 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5073 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5074        case $host_os in
5075        solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5076        *)
5077          # The compiler driver will combine and reorder linker options,
5078          # but understands `-z linker_flag'.  GCC discards it without `$wl',
5079          # but is careful enough not to reorder.
5080 <        # Supported since Solaris 2.6 (maybe 2.5.1?)
5080 >        # Supported since Solaris 2.6 (maybe 2.5.1?)
5081          if test "$GCC" = yes; then
5082 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5082 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5083          else
5084 <          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5084 >          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5085          fi
5086          ;;
5087        esac
5088 <      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5088 >      _LT_TAGVAR(link_all_deplibs, $1)=yes
5089        ;;
5090  
5091      sunos4*)
5092        if test "x$host_vendor" = xsequent; then
5093          # Use $CC to link under sequent, because it throws in some extra .o
5094          # files that make .init and .fini sections work.
5095 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5095 >        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5096        else
5097 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5097 >        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5098        fi
5099 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5100 <      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5101 <      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5102 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5099 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5100 >      _LT_TAGVAR(hardcode_direct, $1)=yes
5101 >      _LT_TAGVAR(hardcode_minus_L, $1)=yes
5102 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5103        ;;
5104  
5105      sysv4)
5106        case $host_vendor in
5107          sni)
5108 <          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5109 <          _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5108 >          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5109 >          _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5110          ;;
5111          siemens)
5112            ## LD is ld it makes a PLAMLIB
5113            ## CC just makes a GrossModule.
5114 <          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5115 <          _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5116 <          _LT_AC_TAGVAR(hardcode_direct, $1)=no
5114 >          _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5115 >          _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5116 >          _LT_TAGVAR(hardcode_direct, $1)=no
5117          ;;
5118          motorola)
5119 <          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5120 <          _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5119 >          _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5120 >          _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5121          ;;
5122        esac
5123        runpath_var='LD_RUN_PATH'
5124 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5124 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5125        ;;
5126  
5127      sysv4.3*)
5128 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5129 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5130 <      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5128 >      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5129 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5130 >      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5131        ;;
5132  
5133      sysv4*MP*)
5134        if test -d /usr/nec; then
5135 <        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5136 <        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5135 >        _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5136 >        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5137          runpath_var=LD_RUN_PATH
5138          hardcode_runpath_var=yes
5139 <        _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5139 >        _LT_TAGVAR(ld_shlibs, $1)=yes
5140        fi
5141        ;;
5142  
5143      sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5144 <      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5145 <      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5146 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5144 >      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5145 >      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5146 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5147        runpath_var='LD_RUN_PATH'
5148  
5149        if test "$GCC" = yes; then
5150 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5151 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5150 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5151 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5152        else
5153 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5154 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5153 >        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5154 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5155        fi
5156        ;;
5157  
# Line 6412 | Line 5162 | _LT_EOF
5162        # ever link correctly.  If we're not using GNU ld we use -z text
5163        # though, which does catch some bad symbols but isn't as heavy-handed
5164        # as -z defs.
5165 <      _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5166 <      _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5167 <      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5168 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5169 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5170 <      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5171 <      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5172 <      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5165 >      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5166 >      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5167 >      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5168 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5169 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5170 >      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5171 >      _LT_TAGVAR(link_all_deplibs, $1)=yes
5172 >      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5173        runpath_var='LD_RUN_PATH'
5174  
5175        if test "$GCC" = yes; then
5176 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5177 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5176 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5177 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5178        else
5179 <        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5180 <        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5179 >        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5180 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5181        fi
5182        ;;
5183  
5184      uts4*)
5185 <      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5186 <      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5187 <      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5185 >      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5186 >      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5187 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5188        ;;
5189  
5190      *)
5191 <      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5191 >      _LT_TAGVAR(ld_shlibs, $1)=no
5192        ;;
5193      esac
5194 +
5195 +    if test x$host_vendor = xsni; then
5196 +      case $host in
5197 +      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5198 +        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5199 +        ;;
5200 +      esac
5201 +    fi
5202    fi
5203   ])
5204 < AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5205 < test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5204 > AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5205 > test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5206 >
5207 > _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5208 >
5209 > _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5210 > _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5211 > _LT_DECL([], [extract_expsyms_cmds], [2],
5212 >    [The commands to extract the exported symbol list from a shared archive])
5213  
5214   #
5215   # Do we need to explicitly link libc?
5216   #
5217 < case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5217 > case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5218   x|xyes)
5219    # Assume -lc should be added
5220 <  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5220 >  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5221  
5222    if test "$enable_shared" = yes && test "$GCC" = yes; then
5223 <    case $_LT_AC_TAGVAR(archive_cmds, $1) in
5223 >    case $_LT_TAGVAR(archive_cmds, $1) in
5224      *'~'*)
5225        # FIXME: we may have to deal with multi-command sequences.
5226        ;;
# Line 6464 | Line 5229 | x|xyes)
5229        # systems, -lgcc has to come before -lc. If gcc already passes -lc
5230        # to ld, don't add -lc before -lgcc.
5231        AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5232 <      $rm conftest*
5232 >      $RM conftest*
5233        echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5234  
5235        if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
# Line 6472 | Line 5237 | x|xyes)
5237          lib=conftest
5238          libobjs=conftest.$ac_objext
5239          deplibs=
5240 <        wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5241 <        pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5240 >        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5241 >        pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5242          compiler_flags=-v
5243          linker_flags=-v
5244          verstring=
5245          output_objdir=.
5246          libname=conftest
5247 <        lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
5248 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5249 <        if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5247 >        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5248 >        _LT_TAGVAR(allow_undefined_flag, $1)=
5249 >        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5250          then
5251 <          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5251 >          _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5252          else
5253 <          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5253 >          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5254          fi
5255 <        _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5255 >        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5256        else
5257          cat conftest.err 1>&5
5258        fi
5259 <      $rm conftest*
5260 <      AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5259 >      $RM conftest*
5260 >      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5261        ;;
5262      esac
5263    fi
5264    ;;
5265   esac
6501 ])# AC_LIBTOOL_PROG_LD_SHLIBS
5266  
5267 + _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5268 +    [Whether or not to add -lc for building shared libraries])
5269 + _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5270 +    [enable_shared_with_static_runtimes], [0],
5271 +    [Whether or not to disallow shared libs when runtime libs are static])
5272 + _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5273 +    [Compiler flag to allow reflexive dlopens])
5274 + _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5275 +    [Compiler flag to generate shared objects directly from archives])
5276 + _LT_TAGDECL([], [compiler_needs_object], [1],
5277 +    [Whether the compiler copes with passing no objects directly])
5278 + _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5279 +    [Create an old-style archive from a shared archive])
5280 + _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5281 +    [Create a temporary old-style archive to link instead of a shared archive])
5282 + _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5283 + _LT_TAGDECL([], [archive_expsym_cmds], [2])
5284 + _LT_TAGDECL([], [module_cmds], [2],
5285 +    [Commands used to build a loadable module if different from building
5286 +    a shared archive.])
5287 + _LT_TAGDECL([], [module_expsym_cmds], [2])
5288 + _LT_TAGDECL([], [with_gnu_ld], [1],
5289 +    [Whether we are building with GNU ld or not])
5290 + _LT_TAGDECL([], [allow_undefined_flag], [1],
5291 +    [Flag that allows shared libraries with undefined symbols to be built])
5292 + _LT_TAGDECL([], [no_undefined_flag], [1],
5293 +    [Flag that enforces no undefined symbols])
5294 + _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5295 +    [Flag to hardcode $libdir into a binary during linking.
5296 +    This must work even if $libdir does not exist])
5297 + _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5298 +    [[If ld is used when linking, flag to hardcode $libdir into a binary
5299 +    during linking.  This must work even if $libdir does not exist]])
5300 + _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5301 +    [Whether we need a single "-rpath" flag with a separated argument])
5302 + _LT_TAGDECL([], [hardcode_direct], [0],
5303 +    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5304 +    DIR into the resulting binary])
5305 + _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5306 +    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5307 +    DIR into the resulting binary and the resulting library dependency is
5308 +    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5309 +    library is relocated])
5310 + _LT_TAGDECL([], [hardcode_minus_L], [0],
5311 +    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5312 +    into the resulting binary])
5313 + _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5314 +    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5315 +    into the resulting binary])
5316 + _LT_TAGDECL([], [hardcode_automatic], [0],
5317 +    [Set to "yes" if building a shared library automatically hardcodes DIR
5318 +    into the library and all subsequent libraries and executables linked
5319 +    against it])
5320 + _LT_TAGDECL([], [inherit_rpath], [0],
5321 +    [Set to yes if linker adds runtime paths of dependent libraries
5322 +    to runtime path list])
5323 + _LT_TAGDECL([], [link_all_deplibs], [0],
5324 +    [Whether libtool must link a program against all its dependency libraries])
5325 + _LT_TAGDECL([], [fix_srcfile_path], [1],
5326 +    [Fix the shell variable $srcfile for the compiler])
5327 + _LT_TAGDECL([], [always_export_symbols], [0],
5328 +    [Set to "yes" if exported symbols are required])
5329 + _LT_TAGDECL([], [export_symbols_cmds], [2],
5330 +    [The commands to list exported symbols])
5331 + _LT_TAGDECL([], [exclude_expsyms], [1],
5332 +    [Symbols that should not be listed in the preloaded symbols])
5333 + _LT_TAGDECL([], [include_expsyms], [1],
5334 +    [Symbols that must always be exported])
5335 + _LT_TAGDECL([], [prelink_cmds], [2],
5336 +    [Commands necessary for linking programs (against libraries) with templates])
5337 + _LT_TAGDECL([], [file_list_spec], [1],
5338 +    [Specify filename containing input files])
5339 + dnl FIXME: Not yet implemented
5340 + dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5341 + dnl    [Compiler flag to generate thread safe objects])
5342 + ])# _LT_LINKER_SHLIBS
5343  
6504 # _LT_AC_FILE_LTDLL_C
6505 # -------------------
6506 # Be careful that the start marker always follows a newline.
6507 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6508 # /* ltdll.c starts here */
6509 # #define WIN32_LEAN_AND_MEAN
6510 # #include <windows.h>
6511 # #undef WIN32_LEAN_AND_MEAN
6512 # #include <stdio.h>
6513 #
6514 # #ifndef __CYGWIN__
6515 # #  ifdef __CYGWIN32__
6516 # #    define __CYGWIN__ __CYGWIN32__
6517 # #  endif
6518 # #endif
6519 #
6520 # #ifdef __cplusplus
6521 # extern "C" {
6522 # #endif
6523 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6524 # #ifdef __cplusplus
6525 # }
6526 # #endif
6527 #
6528 # #ifdef __CYGWIN__
6529 # #include <cygwin/cygwin_dll.h>
6530 # DECLARE_CYGWIN_DLL( DllMain );
6531 # #endif
6532 # HINSTANCE __hDllInstance_base;
6533 #
6534 # BOOL APIENTRY
6535 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6536 # {
6537 #   __hDllInstance_base = hInst;
6538 #   return TRUE;
6539 # }
6540 # /* ltdll.c ends here */
6541 ])# _LT_AC_FILE_LTDLL_C
5344  
5345 + # _LT_LANG_C_CONFIG([TAG])
5346 + # ------------------------
5347 + # Ensure that the configuration variables for a C compiler are suitably
5348 + # defined.  These variables are subsequently used by _LT_CONFIG to write
5349 + # the compiler configuration to `libtool'.
5350 + m4_defun([_LT_LANG_C_CONFIG],
5351 + [m4_require([_LT_DECL_EGREP])dnl
5352 + lt_save_CC="$CC"
5353 + AC_LANG_PUSH(C)
5354  
5355 < # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5356 < # ---------------------------------
5357 < AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
5355 > # Source file extension for C test sources.
5356 > ac_ext=c
5357 >
5358 > # Object file extension for compiled C test sources.
5359 > objext=o
5360 > _LT_TAGVAR(objext, $1)=$objext
5361  
5362 + # Code to be used in simple compile tests
5363 + lt_simple_compile_test_code="int some_variable = 0;"
5364  
5365 < # old names
5366 < AC_DEFUN([AM_PROG_LIBTOOL],   [AC_PROG_LIBTOOL])
6551 < AC_DEFUN([AM_ENABLE_SHARED],  [AC_ENABLE_SHARED($@)])
6552 < AC_DEFUN([AM_ENABLE_STATIC],  [AC_ENABLE_STATIC($@)])
6553 < AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6554 < AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6555 < AC_DEFUN([AM_PROG_LD],        [AC_PROG_LD])
6556 < AC_DEFUN([AM_PROG_NM],        [AC_PROG_NM])
5365 > # Code to be used in simple link tests
5366 > lt_simple_link_test_code='int main(){return(0);}'
5367  
5368 < # This is just to silence aclocal about the macro not being used
5369 < ifelse([AC_DISABLE_FAST_INSTALL])
5368 > _LT_TAG_COMPILER
5369 > # Save the default compiler, since it gets overwritten when the other
5370 > # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5371 > compiler_DEFAULT=$CC
5372  
5373 < AC_DEFUN([LT_AC_PROG_GCJ],
5374 < [AC_CHECK_TOOL(GCJ, gcj, no)
5375 <  test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
5376 <  AC_SUBST(GCJFLAGS)
5377 < ])
5373 > # save warnings/boilerplate of simple test code
5374 > _LT_COMPILER_BOILERPLATE
5375 > _LT_LINKER_BOILERPLATE
5376 >
5377 > if test -n "$compiler"; then
5378 >  _LT_COMPILER_NO_RTTI($1)
5379 >  _LT_COMPILER_PIC($1)
5380 >  _LT_COMPILER_C_O($1)
5381 >  _LT_COMPILER_FILE_LOCKS($1)
5382 >  _LT_LINKER_SHLIBS($1)
5383 >  _LT_SYS_DYNAMIC_LINKER($1)
5384 >  _LT_LINKER_HARDCODE_LIBPATH($1)
5385 >  LT_SYS_DLOPEN_SELF
5386 >  _LT_CMD_STRIPLIB
5387 >
5388 >  # Report which library types will actually be built
5389 >  AC_MSG_CHECKING([if libtool supports shared libraries])
5390 >  AC_MSG_RESULT([$can_build_shared])
5391 >
5392 >  AC_MSG_CHECKING([whether to build shared libraries])
5393 >  test "$can_build_shared" = "no" && enable_shared=no
5394 >
5395 >  # On AIX, shared libraries and static libraries use the same namespace, and
5396 >  # are all built from PIC.
5397 >  case $host_os in
5398 >  aix3*)
5399 >    test "$enable_shared" = yes && enable_static=no
5400 >    if test -n "$RANLIB"; then
5401 >      archive_cmds="$archive_cmds~\$RANLIB \$lib"
5402 >      postinstall_cmds='$RANLIB $lib'
5403 >    fi
5404 >    ;;
5405 >
5406 >  aix[[4-9]]*)
5407 >    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5408 >      test "$enable_shared" = yes && enable_static=no
5409 >    fi
5410 >    ;;
5411 >  esac
5412 >  AC_MSG_RESULT([$enable_shared])
5413 >
5414 >  AC_MSG_CHECKING([whether to build static libraries])
5415 >  # Make sure either enable_shared or enable_static is yes.
5416 >  test "$enable_shared" = yes || enable_static=yes
5417 >  AC_MSG_RESULT([$enable_static])
5418 >
5419 >  _LT_CONFIG($1)
5420 > fi
5421 > AC_LANG_POP
5422 > CC="$lt_save_CC"
5423 > ])# _LT_LANG_C_CONFIG
5424 >
5425 >
5426 > # _LT_PROG_CXX
5427 > # ------------
5428 > # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5429 > # compiler, we have our own version here.
5430 > m4_defun([_LT_PROG_CXX],
5431 > [
5432 > pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5433 > AC_PROG_CXX
5434 > if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5435 >    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5436 >    (test "X$CXX" != "Xg++"))) ; then
5437 >  AC_PROG_CXXCPP
5438 > else
5439 >  _lt_caught_CXX_error=yes
5440 > fi
5441 > popdef([AC_MSG_ERROR])
5442 > ])# _LT_PROG_CXX
5443 >
5444 > dnl aclocal-1.4 backwards compatibility:
5445 > dnl AC_DEFUN([_LT_PROG_CXX], [])
5446 >
5447 >
5448 > # _LT_LANG_CXX_CONFIG([TAG])
5449 > # --------------------------
5450 > # Ensure that the configuration variables for a C++ compiler are suitably
5451 > # defined.  These variables are subsequently used by _LT_CONFIG to write
5452 > # the compiler configuration to `libtool'.
5453 > m4_defun([_LT_LANG_CXX_CONFIG],
5454 > [AC_REQUIRE([_LT_PROG_CXX])dnl
5455 > m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5456 > m4_require([_LT_DECL_EGREP])dnl
5457 >
5458 > AC_LANG_PUSH(C++)
5459 > _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5460 > _LT_TAGVAR(allow_undefined_flag, $1)=
5461 > _LT_TAGVAR(always_export_symbols, $1)=no
5462 > _LT_TAGVAR(archive_expsym_cmds, $1)=
5463 > _LT_TAGVAR(compiler_needs_object, $1)=no
5464 > _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5465 > _LT_TAGVAR(hardcode_direct, $1)=no
5466 > _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5467 > _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5468 > _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5469 > _LT_TAGVAR(hardcode_libdir_separator, $1)=
5470 > _LT_TAGVAR(hardcode_minus_L, $1)=no
5471 > _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5472 > _LT_TAGVAR(hardcode_automatic, $1)=no
5473 > _LT_TAGVAR(inherit_rpath, $1)=no
5474 > _LT_TAGVAR(module_cmds, $1)=
5475 > _LT_TAGVAR(module_expsym_cmds, $1)=
5476 > _LT_TAGVAR(link_all_deplibs, $1)=unknown
5477 > _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5478 > _LT_TAGVAR(no_undefined_flag, $1)=
5479 > _LT_TAGVAR(whole_archive_flag_spec, $1)=
5480 > _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5481 >
5482 > # Source file extension for C++ test sources.
5483 > ac_ext=cpp
5484 >
5485 > # Object file extension for compiled C++ test sources.
5486 > objext=o
5487 > _LT_TAGVAR(objext, $1)=$objext
5488 >
5489 > # No sense in running all these tests if we already determined that
5490 > # the CXX compiler isn't working.  Some variables (like enable_shared)
5491 > # are currently assumed to apply to all compilers on this platform,
5492 > # and will be corrupted by setting them based on a non-working compiler.
5493 > if test "$_lt_caught_CXX_error" != yes; then
5494 >  # Code to be used in simple compile tests
5495 >  lt_simple_compile_test_code="int some_variable = 0;"
5496 >
5497 >  # Code to be used in simple link tests
5498 >  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5499 >
5500 >  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5501 >  _LT_TAG_COMPILER
5502 >
5503 >  # save warnings/boilerplate of simple test code
5504 >  _LT_COMPILER_BOILERPLATE
5505 >  _LT_LINKER_BOILERPLATE
5506 >
5507 >  # Allow CC to be a program name with arguments.
5508 >  lt_save_CC=$CC
5509 >  lt_save_LD=$LD
5510 >  lt_save_GCC=$GCC
5511 >  GCC=$GXX
5512 >  lt_save_with_gnu_ld=$with_gnu_ld
5513 >  lt_save_path_LD=$lt_cv_path_LD
5514 >  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5515 >    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5516 >  else
5517 >    $as_unset lt_cv_prog_gnu_ld
5518 >  fi
5519 >  if test -n "${lt_cv_path_LDCXX+set}"; then
5520 >    lt_cv_path_LD=$lt_cv_path_LDCXX
5521 >  else
5522 >    $as_unset lt_cv_path_LD
5523 >  fi
5524 >  test -z "${LDCXX+set}" || LD=$LDCXX
5525 >  CC=${CXX-"c++"}
5526 >  compiler=$CC
5527 >  _LT_TAGVAR(compiler, $1)=$CC
5528 >  _LT_CC_BASENAME([$compiler])
5529 >
5530 >  if test -n "$compiler"; then
5531 >    # We don't want -fno-exception when compiling C++ code, so set the
5532 >    # no_builtin_flag separately
5533 >    if test "$GXX" = yes; then
5534 >      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5535 >    else
5536 >      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5537 >    fi
5538 >
5539 >    if test "$GXX" = yes; then
5540 >      # Set up default GNU C++ configuration
5541 >
5542 >      LT_PATH_LD
5543 >
5544 >      # Check if GNU C++ uses GNU ld as the underlying linker, since the
5545 >      # archiving commands below assume that GNU ld is being used.
5546 >      if test "$with_gnu_ld" = yes; then
5547 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5548 >        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5549 >
5550 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5551 >        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5552 >
5553 >        # If archive_cmds runs LD, not CC, wlarc should be empty
5554 >        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5555 >        #     investigate it a little bit more. (MM)
5556 >        wlarc='${wl}'
5557 >
5558 >        # ancient GNU ld didn't support --whole-archive et. al.
5559 >        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5560 >          $GREP 'no-whole-archive' > /dev/null; then
5561 >          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5562 >        else
5563 >          _LT_TAGVAR(whole_archive_flag_spec, $1)=
5564 >        fi
5565 >      else
5566 >        with_gnu_ld=no
5567 >        wlarc=
5568 >
5569 >        # A generic and very simple default shared library creation
5570 >        # command for GNU C++ for the case where it uses the native
5571 >        # linker, instead of GNU ld.  If possible, this setting should
5572 >        # overridden to take advantage of the native linker features on
5573 >        # the platform it is being used on.
5574 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5575 >      fi
5576 >
5577 >      # Commands to make compiler produce verbose output that lists
5578 >      # what "hidden" libraries, object files and flags are used when
5579 >      # linking a shared library.
5580 >      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5581 >
5582 >    else
5583 >      GXX=no
5584 >      with_gnu_ld=no
5585 >      wlarc=
5586 >    fi
5587 >
5588 >    # PORTME: fill in a description of your system's C++ link characteristics
5589 >    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5590 >    _LT_TAGVAR(ld_shlibs, $1)=yes
5591 >    case $host_os in
5592 >      aix3*)
5593 >        # FIXME: insert proper C++ library support
5594 >        _LT_TAGVAR(ld_shlibs, $1)=no
5595 >        ;;
5596 >      aix[[4-9]]*)
5597 >        if test "$host_cpu" = ia64; then
5598 >          # On IA64, the linker does run time linking by default, so we don't
5599 >          # have to do anything special.
5600 >          aix_use_runtimelinking=no
5601 >          exp_sym_flag='-Bexport'
5602 >          no_entry_flag=""
5603 >        else
5604 >          aix_use_runtimelinking=no
5605 >
5606 >          # Test if we are trying to use run time linking or normal
5607 >          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5608 >          # need to do runtime linking.
5609 >          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5610 >            for ld_flag in $LDFLAGS; do
5611 >              case $ld_flag in
5612 >              *-brtl*)
5613 >                aix_use_runtimelinking=yes
5614 >                break
5615 >                ;;
5616 >              esac
5617 >            done
5618 >            ;;
5619 >          esac
5620 >
5621 >          exp_sym_flag='-bexport'
5622 >          no_entry_flag='-bnoentry'
5623 >        fi
5624  
5625 < AC_DEFUN([LT_AC_PROG_RC],
5626 < [AC_CHECK_TOOL(RC, windres, no)
5625 >        # When large executables or shared objects are built, AIX ld can
5626 >        # have problems creating the table of contents.  If linking a library
5627 >        # or program results in "error TOC overflow" add -mminimal-toc to
5628 >        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5629 >        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5630 >
5631 >        _LT_TAGVAR(archive_cmds, $1)=''
5632 >        _LT_TAGVAR(hardcode_direct, $1)=yes
5633 >        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5634 >        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5635 >        _LT_TAGVAR(link_all_deplibs, $1)=yes
5636 >        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5637 >
5638 >        if test "$GXX" = yes; then
5639 >          case $host_os in aix4.[[012]]|aix4.[[012]].*)
5640 >          # We only want to do this on AIX 4.2 and lower, the check
5641 >          # below for broken collect2 doesn't work under 4.3+
5642 >          collect2name=`${CC} -print-prog-name=collect2`
5643 >          if test -f "$collect2name" &&
5644 >             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5645 >          then
5646 >            # We have reworked collect2
5647 >            :
5648 >          else
5649 >            # We have old collect2
5650 >            _LT_TAGVAR(hardcode_direct, $1)=unsupported
5651 >            # It fails to find uninstalled libraries when the uninstalled
5652 >            # path is not listed in the libpath.  Setting hardcode_minus_L
5653 >            # to unsupported forces relinking
5654 >            _LT_TAGVAR(hardcode_minus_L, $1)=yes
5655 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5656 >            _LT_TAGVAR(hardcode_libdir_separator, $1)=
5657 >          fi
5658 >          esac
5659 >          shared_flag='-shared'
5660 >          if test "$aix_use_runtimelinking" = yes; then
5661 >            shared_flag="$shared_flag "'${wl}-G'
5662 >          fi
5663 >        else
5664 >          # not using gcc
5665 >          if test "$host_cpu" = ia64; then
5666 >          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5667 >          # chokes on -Wl,-G. The following line is correct:
5668 >          shared_flag='-G'
5669 >          else
5670 >            if test "$aix_use_runtimelinking" = yes; then
5671 >              shared_flag='${wl}-G'
5672 >            else
5673 >              shared_flag='${wl}-bM:SRE'
5674 >            fi
5675 >          fi
5676 >        fi
5677 >
5678 >        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5679 >        # It seems that -bexpall does not export symbols beginning with
5680 >        # underscore (_), so it is better to generate a list of symbols to
5681 >        # export.
5682 >        _LT_TAGVAR(always_export_symbols, $1)=yes
5683 >        if test "$aix_use_runtimelinking" = yes; then
5684 >          # Warning - without using the other runtime loading flags (-brtl),
5685 >          # -berok will link without error, but may produce a broken library.
5686 >          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5687 >          # Determine the default libpath from the value encoded in an empty
5688 >          # executable.
5689 >          _LT_SYS_MODULE_PATH_AIX
5690 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5691 >
5692 >          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5693 >        else
5694 >          if test "$host_cpu" = ia64; then
5695 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5696 >            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5697 >            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5698 >          else
5699 >            # Determine the default libpath from the value encoded in an
5700 >            # empty executable.
5701 >            _LT_SYS_MODULE_PATH_AIX
5702 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5703 >            # Warning - without using the other run time loading flags,
5704 >            # -berok will link without error, but may produce a broken library.
5705 >            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5706 >            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5707 >            # Exported symbols can be pulled into shared objects from archives
5708 >            _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5709 >            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5710 >            # This is similar to how AIX traditionally builds its shared
5711 >            # libraries.
5712 >            _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5713 >          fi
5714 >        fi
5715 >        ;;
5716 >
5717 >      beos*)
5718 >        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5719 >          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5720 >          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5721 >          # support --undefined.  This deserves some investigation.  FIXME
5722 >          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5723 >        else
5724 >          _LT_TAGVAR(ld_shlibs, $1)=no
5725 >        fi
5726 >        ;;
5727 >
5728 >      chorus*)
5729 >        case $cc_basename in
5730 >          *)
5731 >          # FIXME: insert proper C++ library support
5732 >          _LT_TAGVAR(ld_shlibs, $1)=no
5733 >          ;;
5734 >        esac
5735 >        ;;
5736 >
5737 >      cygwin* | mingw* | pw32* | cegcc*)
5738 >        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5739 >        # as there is no search path for DLLs.
5740 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5741 >        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5742 >        _LT_TAGVAR(always_export_symbols, $1)=no
5743 >        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5744 >
5745 >        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5746 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5747 >          # If the export-symbols file already is a .def file (1st line
5748 >          # is EXPORTS), use it as is; otherwise, prepend...
5749 >          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5750 >            cp $export_symbols $output_objdir/$soname.def;
5751 >          else
5752 >            echo EXPORTS > $output_objdir/$soname.def;
5753 >            cat $export_symbols >> $output_objdir/$soname.def;
5754 >          fi~
5755 >          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5756 >        else
5757 >          _LT_TAGVAR(ld_shlibs, $1)=no
5758 >        fi
5759 >        ;;
5760 >      darwin* | rhapsody*)
5761 >        _LT_DARWIN_LINKER_FEATURES($1)
5762 >        ;;
5763 >
5764 >      dgux*)
5765 >        case $cc_basename in
5766 >          ec++*)
5767 >            # FIXME: insert proper C++ library support
5768 >            _LT_TAGVAR(ld_shlibs, $1)=no
5769 >            ;;
5770 >          ghcx*)
5771 >            # Green Hills C++ Compiler
5772 >            # FIXME: insert proper C++ library support
5773 >            _LT_TAGVAR(ld_shlibs, $1)=no
5774 >            ;;
5775 >          *)
5776 >            # FIXME: insert proper C++ library support
5777 >            _LT_TAGVAR(ld_shlibs, $1)=no
5778 >            ;;
5779 >        esac
5780 >        ;;
5781 >
5782 >      freebsd[[12]]*)
5783 >        # C++ shared libraries reported to be fairly broken before
5784 >        # switch to ELF
5785 >        _LT_TAGVAR(ld_shlibs, $1)=no
5786 >        ;;
5787 >
5788 >      freebsd-elf*)
5789 >        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5790 >        ;;
5791 >
5792 >      freebsd* | dragonfly*)
5793 >        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5794 >        # conventions
5795 >        _LT_TAGVAR(ld_shlibs, $1)=yes
5796 >        ;;
5797 >
5798 >      gnu*)
5799 >        ;;
5800 >
5801 >      hpux9*)
5802 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5803 >        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5804 >        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5805 >        _LT_TAGVAR(hardcode_direct, $1)=yes
5806 >        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5807 >                                             # but as the default
5808 >                                             # location of the library.
5809 >
5810 >        case $cc_basename in
5811 >          CC*)
5812 >            # FIXME: insert proper C++ library support
5813 >            _LT_TAGVAR(ld_shlibs, $1)=no
5814 >            ;;
5815 >          aCC*)
5816 >            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5817 >            # Commands to make compiler produce verbose output that lists
5818 >            # what "hidden" libraries, object files and flags are used when
5819 >            # linking a shared library.
5820 >            #
5821 >            # There doesn't appear to be a way to prevent this compiler from
5822 >            # explicitly linking system object files so we need to strip them
5823 >            # from the output so that they don't get included in the library
5824 >            # dependencies.
5825 >            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5826 >            ;;
5827 >          *)
5828 >            if test "$GXX" = yes; then
5829 >              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5830 >            else
5831 >              # FIXME: insert proper C++ library support
5832 >              _LT_TAGVAR(ld_shlibs, $1)=no
5833 >            fi
5834 >            ;;
5835 >        esac
5836 >        ;;
5837 >
5838 >      hpux10*|hpux11*)
5839 >        if test $with_gnu_ld = no; then
5840 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5841 >          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5842 >
5843 >          case $host_cpu in
5844 >            hppa*64*|ia64*)
5845 >              ;;
5846 >            *)
5847 >              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5848 >              ;;
5849 >          esac
5850 >        fi
5851 >        case $host_cpu in
5852 >          hppa*64*|ia64*)
5853 >            _LT_TAGVAR(hardcode_direct, $1)=no
5854 >            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5855 >            ;;
5856 >          *)
5857 >            _LT_TAGVAR(hardcode_direct, $1)=yes
5858 >            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5859 >            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5860 >                                                 # but as the default
5861 >                                                 # location of the library.
5862 >            ;;
5863 >        esac
5864 >
5865 >        case $cc_basename in
5866 >          CC*)
5867 >            # FIXME: insert proper C++ library support
5868 >            _LT_TAGVAR(ld_shlibs, $1)=no
5869 >            ;;
5870 >          aCC*)
5871 >            case $host_cpu in
5872 >              hppa*64*)
5873 >                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5874 >                ;;
5875 >              ia64*)
5876 >                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5877 >                ;;
5878 >              *)
5879 >                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5880 >                ;;
5881 >            esac
5882 >            # Commands to make compiler produce verbose output that lists
5883 >            # what "hidden" libraries, object files and flags are used when
5884 >            # linking a shared library.
5885 >            #
5886 >            # There doesn't appear to be a way to prevent this compiler from
5887 >            # explicitly linking system object files so we need to strip them
5888 >            # from the output so that they don't get included in the library
5889 >            # dependencies.
5890 >            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5891 >            ;;
5892 >          *)
5893 >            if test "$GXX" = yes; then
5894 >              if test $with_gnu_ld = no; then
5895 >                case $host_cpu in
5896 >                  hppa*64*)
5897 >                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5898 >                    ;;
5899 >                  ia64*)
5900 >                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5901 >                    ;;
5902 >                  *)
5903 >                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5904 >                    ;;
5905 >                esac
5906 >              fi
5907 >            else
5908 >              # FIXME: insert proper C++ library support
5909 >              _LT_TAGVAR(ld_shlibs, $1)=no
5910 >            fi
5911 >            ;;
5912 >        esac
5913 >        ;;
5914 >
5915 >      interix[[3-9]]*)
5916 >        _LT_TAGVAR(hardcode_direct, $1)=no
5917 >        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5918 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5919 >        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5920 >        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5921 >        # Instead, shared libraries are loaded at an image base (0x10000000 by
5922 >        # default) and relocated if they conflict, which is a slow very memory
5923 >        # consuming and fragmenting process.  To avoid this, we pick a random,
5924 >        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5925 >        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
5926 >        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5927 >        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5928 >        ;;
5929 >      irix5* | irix6*)
5930 >        case $cc_basename in
5931 >          CC*)
5932 >            # SGI C++
5933 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5934 >
5935 >            # Archives containing C++ object files must be created using
5936 >            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
5937 >            # necessary to make sure instantiated templates are included
5938 >            # in the archive.
5939 >            _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5940 >            ;;
5941 >          *)
5942 >            if test "$GXX" = yes; then
5943 >              if test "$with_gnu_ld" = no; then
5944 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5945 >              else
5946 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5947 >              fi
5948 >            fi
5949 >            _LT_TAGVAR(link_all_deplibs, $1)=yes
5950 >            ;;
5951 >        esac
5952 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5953 >        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5954 >        _LT_TAGVAR(inherit_rpath, $1)=yes
5955 >        ;;
5956 >
5957 >      linux* | k*bsd*-gnu)
5958 >        case $cc_basename in
5959 >          KCC*)
5960 >            # Kuck and Associates, Inc. (KAI) C++ Compiler
5961 >
5962 >            # KCC will only create a shared library if the output file
5963 >            # ends with ".so" (or ".sl" for HP-UX), so rename the library
5964 >            # to its proper name (with version) after linking.
5965 >            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5966 >            _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5967 >            # Commands to make compiler produce verbose output that lists
5968 >            # what "hidden" libraries, object files and flags are used when
5969 >            # linking a shared library.
5970 >            #
5971 >            # There doesn't appear to be a way to prevent this compiler from
5972 >            # explicitly linking system object files so we need to strip them
5973 >            # from the output so that they don't get included in the library
5974 >            # dependencies.
5975 >            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5976 >
5977 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5978 >            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5979 >
5980 >            # Archives containing C++ object files must be created using
5981 >            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5982 >            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5983 >            ;;
5984 >          icpc* | ecpc* )
5985 >            # Intel C++
5986 >            with_gnu_ld=yes
5987 >            # version 8.0 and above of icpc choke on multiply defined symbols
5988 >            # if we add $predep_objects and $postdep_objects, however 7.1 and
5989 >            # earlier do not add the objects themselves.
5990 >            case `$CC -V 2>&1` in
5991 >              *"Version 7."*)
5992 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5993 >                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5994 >                ;;
5995 >              *)  # Version 8.0 or newer
5996 >                tmp_idyn=
5997 >                case $host_cpu in
5998 >                  ia64*) tmp_idyn=' -i_dynamic';;
5999 >                esac
6000 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6001 >                _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6002 >                ;;
6003 >            esac
6004 >            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6005 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6006 >            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6007 >            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6008 >            ;;
6009 >          pgCC* | pgcpp*)
6010 >            # Portland Group C++ compiler
6011 >            case `$CC -V` in
6012 >            *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6013 >              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6014 >                rm -rf $tpldir~
6015 >                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6016 >                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6017 >              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6018 >                rm -rf $tpldir~
6019 >                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6020 >                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6021 >                $RANLIB $oldlib'
6022 >              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6023 >                rm -rf $tpldir~
6024 >                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6025 >                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6026 >              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6027 >                rm -rf $tpldir~
6028 >                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6029 >                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6030 >              ;;
6031 >            *) # Version 6 will use weak symbols
6032 >              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6033 >              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6034 >              ;;
6035 >            esac
6036 >
6037 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6038 >            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6039 >            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6040 >            ;;
6041 >          cxx*)
6042 >            # Compaq C++
6043 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6044 >            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6045 >
6046 >            runpath_var=LD_RUN_PATH
6047 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6048 >            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6049 >
6050 >            # Commands to make compiler produce verbose output that lists
6051 >            # what "hidden" libraries, object files and flags are used when
6052 >            # linking a shared library.
6053 >            #
6054 >            # There doesn't appear to be a way to prevent this compiler from
6055 >            # explicitly linking system object files so we need to strip them
6056 >            # from the output so that they don't get included in the library
6057 >            # dependencies.
6058 >            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6059 >            ;;
6060 >          xl*)
6061 >            # IBM XL 8.0 on PPC, with GNU ld
6062 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6063 >            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6064 >            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6065 >            if test "x$supports_anon_versioning" = xyes; then
6066 >              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6067 >                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6068 >                echo "local: *; };" >> $output_objdir/$libname.ver~
6069 >                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6070 >            fi
6071 >            ;;
6072 >          *)
6073 >            case `$CC -V 2>&1 | sed 5q` in
6074 >            *Sun\ C*)
6075 >              # Sun C++ 5.9
6076 >              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6077 >              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6078 >              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6079 >              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6080 >              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6081 >              _LT_TAGVAR(compiler_needs_object, $1)=yes
6082 >
6083 >              # Not sure whether something based on
6084 >              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6085 >              # would be better.
6086 >              output_verbose_link_cmd='echo'
6087 >
6088 >              # Archives containing C++ object files must be created using
6089 >              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6090 >              # necessary to make sure instantiated templates are included
6091 >              # in the archive.
6092 >              _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6093 >              ;;
6094 >            esac
6095 >            ;;
6096 >        esac
6097 >        ;;
6098 >
6099 >      lynxos*)
6100 >        # FIXME: insert proper C++ library support
6101 >        _LT_TAGVAR(ld_shlibs, $1)=no
6102 >        ;;
6103 >
6104 >      m88k*)
6105 >        # FIXME: insert proper C++ library support
6106 >        _LT_TAGVAR(ld_shlibs, $1)=no
6107 >        ;;
6108 >
6109 >      mvs*)
6110 >        case $cc_basename in
6111 >          cxx*)
6112 >            # FIXME: insert proper C++ library support
6113 >            _LT_TAGVAR(ld_shlibs, $1)=no
6114 >            ;;
6115 >          *)
6116 >            # FIXME: insert proper C++ library support
6117 >            _LT_TAGVAR(ld_shlibs, $1)=no
6118 >            ;;
6119 >        esac
6120 >        ;;
6121 >
6122 >      netbsd*)
6123 >        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6124 >          _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6125 >          wlarc=
6126 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6127 >          _LT_TAGVAR(hardcode_direct, $1)=yes
6128 >          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6129 >        fi
6130 >        # Workaround some broken pre-1.5 toolchains
6131 >        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6132 >        ;;
6133 >
6134 >      *nto* | *qnx*)
6135 >        _LT_TAGVAR(ld_shlibs, $1)=yes
6136 >        ;;
6137 >
6138 >      openbsd2*)
6139 >        # C++ shared libraries are fairly broken
6140 >        _LT_TAGVAR(ld_shlibs, $1)=no
6141 >        ;;
6142 >
6143 >      openbsd*)
6144 >        if test -f /usr/libexec/ld.so; then
6145 >          _LT_TAGVAR(hardcode_direct, $1)=yes
6146 >          _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6147 >          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6148 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6149 >          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6150 >          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6151 >            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6152 >            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6153 >            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6154 >          fi
6155 >          output_verbose_link_cmd=echo
6156 >        else
6157 >          _LT_TAGVAR(ld_shlibs, $1)=no
6158 >        fi
6159 >        ;;
6160 >
6161 >      osf3* | osf4* | osf5*)
6162 >        case $cc_basename in
6163 >          KCC*)
6164 >            # Kuck and Associates, Inc. (KAI) C++ Compiler
6165 >
6166 >            # KCC will only create a shared library if the output file
6167 >            # ends with ".so" (or ".sl" for HP-UX), so rename the library
6168 >            # to its proper name (with version) after linking.
6169 >            _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6170 >
6171 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6172 >            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6173 >
6174 >            # Archives containing C++ object files must be created using
6175 >            # the KAI C++ compiler.
6176 >            case $host in
6177 >              osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6178 >              *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6179 >            esac
6180 >            ;;
6181 >          RCC*)
6182 >            # Rational C++ 2.4.1
6183 >            # FIXME: insert proper C++ library support
6184 >            _LT_TAGVAR(ld_shlibs, $1)=no
6185 >            ;;
6186 >          cxx*)
6187 >            case $host in
6188 >              osf3*)
6189 >                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6190 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6191 >                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6192 >                ;;
6193 >              *)
6194 >                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6195 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6196 >                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6197 >                  echo "-hidden">> $lib.exp~
6198 >                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6199 >                  $RM $lib.exp'
6200 >                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6201 >                ;;
6202 >            esac
6203 >
6204 >            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6205 >
6206 >            # Commands to make compiler produce verbose output that lists
6207 >            # what "hidden" libraries, object files and flags are used when
6208 >            # linking a shared library.
6209 >            #
6210 >            # There doesn't appear to be a way to prevent this compiler from
6211 >            # explicitly linking system object files so we need to strip them
6212 >            # from the output so that they don't get included in the library
6213 >            # dependencies.
6214 >            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6215 >            ;;
6216 >          *)
6217 >            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6218 >              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6219 >              case $host in
6220 >                osf3*)
6221 >                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6222 >                  ;;
6223 >                *)
6224 >                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6225 >                  ;;
6226 >              esac
6227 >
6228 >              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6229 >              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6230 >
6231 >              # Commands to make compiler produce verbose output that lists
6232 >              # what "hidden" libraries, object files and flags are used when
6233 >              # linking a shared library.
6234 >              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6235 >
6236 >            else
6237 >              # FIXME: insert proper C++ library support
6238 >              _LT_TAGVAR(ld_shlibs, $1)=no
6239 >            fi
6240 >            ;;
6241 >        esac
6242 >        ;;
6243 >
6244 >      psos*)
6245 >        # FIXME: insert proper C++ library support
6246 >        _LT_TAGVAR(ld_shlibs, $1)=no
6247 >        ;;
6248 >
6249 >      sunos4*)
6250 >        case $cc_basename in
6251 >          CC*)
6252 >            # Sun C++ 4.x
6253 >            # FIXME: insert proper C++ library support
6254 >            _LT_TAGVAR(ld_shlibs, $1)=no
6255 >            ;;
6256 >          lcc*)
6257 >            # Lucid
6258 >            # FIXME: insert proper C++ library support
6259 >            _LT_TAGVAR(ld_shlibs, $1)=no
6260 >            ;;
6261 >          *)
6262 >            # FIXME: insert proper C++ library support
6263 >            _LT_TAGVAR(ld_shlibs, $1)=no
6264 >            ;;
6265 >        esac
6266 >        ;;
6267 >
6268 >      solaris*)
6269 >        case $cc_basename in
6270 >          CC*)
6271 >            # Sun C++ 4.2, 5.x and Centerline C++
6272 >            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6273 >            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6274 >            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6275 >            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6276 >              $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6277 >
6278 >            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6279 >            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6280 >            case $host_os in
6281 >              solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6282 >              *)
6283 >                # The compiler driver will combine and reorder linker options,
6284 >                # but understands `-z linker_flag'.
6285 >                # Supported since Solaris 2.6 (maybe 2.5.1?)
6286 >                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6287 >                ;;
6288 >            esac
6289 >            _LT_TAGVAR(link_all_deplibs, $1)=yes
6290 >
6291 >            output_verbose_link_cmd='echo'
6292 >
6293 >            # Archives containing C++ object files must be created using
6294 >            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
6295 >            # necessary to make sure instantiated templates are included
6296 >            # in the archive.
6297 >            _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6298 >            ;;
6299 >          gcx*)
6300 >            # Green Hills C++ Compiler
6301 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6302 >
6303 >            # The C++ compiler must be used to create the archive.
6304 >            _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6305 >            ;;
6306 >          *)
6307 >            # GNU C++ compiler with Solaris linker
6308 >            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6309 >              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6310 >              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6311 >                _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6312 >                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6313 >                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6314 >
6315 >                # Commands to make compiler produce verbose output that lists
6316 >                # what "hidden" libraries, object files and flags are used when
6317 >                # linking a shared library.
6318 >                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6319 >              else
6320 >                # g++ 2.7 appears to require `-G' NOT `-shared' on this
6321 >                # platform.
6322 >                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6323 >                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6324 >                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6325 >
6326 >                # Commands to make compiler produce verbose output that lists
6327 >                # what "hidden" libraries, object files and flags are used when
6328 >                # linking a shared library.
6329 >                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6330 >              fi
6331 >
6332 >              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6333 >              case $host_os in
6334 >                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6335 >                *)
6336 >                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6337 >                  ;;
6338 >              esac
6339 >            fi
6340 >            ;;
6341 >        esac
6342 >        ;;
6343 >
6344 >    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6345 >      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6346 >      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6347 >      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6348 >      runpath_var='LD_RUN_PATH'
6349 >
6350 >      case $cc_basename in
6351 >        CC*)
6352 >          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6353 >          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6354 >          ;;
6355 >        *)
6356 >          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6357 >          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6358 >          ;;
6359 >      esac
6360 >      ;;
6361 >
6362 >      sysv5* | sco3.2v5* | sco5v6*)
6363 >        # Note: We can NOT use -z defs as we might desire, because we do not
6364 >        # link with -lc, and that would cause any symbols used from libc to
6365 >        # always be unresolved, which means just about no library would
6366 >        # ever link correctly.  If we're not using GNU ld we use -z text
6367 >        # though, which does catch some bad symbols but isn't as heavy-handed
6368 >        # as -z defs.
6369 >        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6370 >        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6371 >        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6372 >        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6373 >        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6374 >        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6375 >        _LT_TAGVAR(link_all_deplibs, $1)=yes
6376 >        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6377 >        runpath_var='LD_RUN_PATH'
6378 >
6379 >        case $cc_basename in
6380 >          CC*)
6381 >            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6382 >            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6383 >            ;;
6384 >          *)
6385 >            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6386 >            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6387 >            ;;
6388 >        esac
6389 >      ;;
6390 >
6391 >      tandem*)
6392 >        case $cc_basename in
6393 >          NCC*)
6394 >            # NonStop-UX NCC 3.20
6395 >            # FIXME: insert proper C++ library support
6396 >            _LT_TAGVAR(ld_shlibs, $1)=no
6397 >            ;;
6398 >          *)
6399 >            # FIXME: insert proper C++ library support
6400 >            _LT_TAGVAR(ld_shlibs, $1)=no
6401 >            ;;
6402 >        esac
6403 >        ;;
6404 >
6405 >      vxworks*)
6406 >        # FIXME: insert proper C++ library support
6407 >        _LT_TAGVAR(ld_shlibs, $1)=no
6408 >        ;;
6409 >
6410 >      *)
6411 >        # FIXME: insert proper C++ library support
6412 >        _LT_TAGVAR(ld_shlibs, $1)=no
6413 >        ;;
6414 >    esac
6415 >
6416 >    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6417 >    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6418 >
6419 >    _LT_TAGVAR(GCC, $1)="$GXX"
6420 >    _LT_TAGVAR(LD, $1)="$LD"
6421 >
6422 >    ## CAVEAT EMPTOR:
6423 >    ## There is no encapsulation within the following macros, do not change
6424 >    ## the running order or otherwise move them around unless you know exactly
6425 >    ## what you are doing...
6426 >    _LT_SYS_HIDDEN_LIBDEPS($1)
6427 >    _LT_COMPILER_PIC($1)
6428 >    _LT_COMPILER_C_O($1)
6429 >    _LT_COMPILER_FILE_LOCKS($1)
6430 >    _LT_LINKER_SHLIBS($1)
6431 >    _LT_SYS_DYNAMIC_LINKER($1)
6432 >    _LT_LINKER_HARDCODE_LIBPATH($1)
6433 >
6434 >    _LT_CONFIG($1)
6435 >  fi # test -n "$compiler"
6436 >
6437 >  CC=$lt_save_CC
6438 >  LDCXX=$LD
6439 >  LD=$lt_save_LD
6440 >  GCC=$lt_save_GCC
6441 >  with_gnu_ld=$lt_save_with_gnu_ld
6442 >  lt_cv_path_LDCXX=$lt_cv_path_LD
6443 >  lt_cv_path_LD=$lt_save_path_LD
6444 >  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6445 >  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6446 > fi # test "$_lt_caught_CXX_error" != yes
6447 >
6448 > AC_LANG_POP
6449 > ])# _LT_LANG_CXX_CONFIG
6450 >
6451 >
6452 > # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6453 > # ---------------------------------
6454 > # Figure out "hidden" library dependencies from verbose
6455 > # compiler output when linking a shared library.
6456 > # Parse the compiler output and extract the necessary
6457 > # objects, libraries and library flags.
6458 > m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6459 > [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6460 > # Dependencies to place before and after the object being linked:
6461 > _LT_TAGVAR(predep_objects, $1)=
6462 > _LT_TAGVAR(postdep_objects, $1)=
6463 > _LT_TAGVAR(predeps, $1)=
6464 > _LT_TAGVAR(postdeps, $1)=
6465 > _LT_TAGVAR(compiler_lib_search_path, $1)=
6466 >
6467 > dnl we can't use the lt_simple_compile_test_code here,
6468 > dnl because it contains code intended for an executable,
6469 > dnl not a library.  It's possible we should let each
6470 > dnl tag define a new lt_????_link_test_code variable,
6471 > dnl but it's only used here...
6472 > m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6473 > int a;
6474 > void foo (void) { a = 0; }
6475 > _LT_EOF
6476 > ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6477 > class Foo
6478 > {
6479 > public:
6480 >  Foo (void) { a = 0; }
6481 > private:
6482 >  int a;
6483 > };
6484 > _LT_EOF
6485 > ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6486 >      subroutine foo
6487 >      implicit none
6488 >      integer*4 a
6489 >      a=0
6490 >      return
6491 >      end
6492 > _LT_EOF
6493 > ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6494 >      subroutine foo
6495 >      implicit none
6496 >      integer a
6497 >      a=0
6498 >      return
6499 >      end
6500 > _LT_EOF
6501 > ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6502 > public class foo {
6503 >  private int a;
6504 >  public void bar (void) {
6505 >    a = 0;
6506 >  }
6507 > };
6508 > _LT_EOF
6509   ])
6510 + dnl Parse the compiler output and extract the necessary
6511 + dnl objects, libraries and library flags.
6512 + if AC_TRY_EVAL(ac_compile); then
6513 +  # Parse the compiler output and extract the necessary
6514 +  # objects, libraries and library flags.
6515 +
6516 +  # Sentinel used to keep track of whether or not we are before
6517 +  # the conftest object file.
6518 +  pre_test_object_deps_done=no
6519  
6520 +  for p in `eval "$output_verbose_link_cmd"`; do
6521 +    case $p in
6522  
6523 < # Cheap backport of AS_EXECUTABLE_P and required macros
6524 < # from Autoconf 2.59; we should not use $as_executable_p directly.
6523 >    -L* | -R* | -l*)
6524 >       # Some compilers place space between "-{L,R}" and the path.
6525 >       # Remove the space.
6526 >       if test $p = "-L" ||
6527 >          test $p = "-R"; then
6528 >         prev=$p
6529 >         continue
6530 >       else
6531 >         prev=
6532 >       fi
6533  
6534 < # _AS_TEST_PREPARE
6535 < # ----------------
6536 < m4_ifndef([_AS_TEST_PREPARE],
6537 < [m4_defun([_AS_TEST_PREPARE],
6538 < [if test -x / >/dev/null 2>&1; then
6539 <  as_executable_p='test -x'
6534 >       if test "$pre_test_object_deps_done" = no; then
6535 >         case $p in
6536 >         -L* | -R*)
6537 >           # Internal compiler library paths should come after those
6538 >           # provided the user.  The postdeps already come after the
6539 >           # user supplied libs so there is no need to process them.
6540 >           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6541 >             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6542 >           else
6543 >             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6544 >           fi
6545 >           ;;
6546 >         # The "-l" case would never come before the object being
6547 >         # linked, so don't bother handling this case.
6548 >         esac
6549 >       else
6550 >         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6551 >           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6552 >         else
6553 >           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6554 >         fi
6555 >       fi
6556 >       ;;
6557 >
6558 >    *.$objext)
6559 >       # This assumes that the test object file only shows up
6560 >       # once in the compiler output.
6561 >       if test "$p" = "conftest.$objext"; then
6562 >         pre_test_object_deps_done=yes
6563 >         continue
6564 >       fi
6565 >
6566 >       if test "$pre_test_object_deps_done" = no; then
6567 >         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6568 >           _LT_TAGVAR(predep_objects, $1)="$p"
6569 >         else
6570 >           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6571 >         fi
6572 >       else
6573 >         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6574 >           _LT_TAGVAR(postdep_objects, $1)="$p"
6575 >         else
6576 >           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6577 >         fi
6578 >       fi
6579 >       ;;
6580 >
6581 >    *) ;; # Ignore the rest.
6582 >
6583 >    esac
6584 >  done
6585 >
6586 >  # Clean up.
6587 >  rm -f a.out a.exe
6588   else
6589 <  as_executable_p='test -f'
6589 >  echo "libtool.m4: error: problem compiling $1 test program"
6590   fi
6584 ])])# _AS_TEST_PREPARE
6591  
6592 < # AS_EXECUTABLE_P
6587 < # ---------------
6588 < # Check whether a file is executable.
6589 < m4_ifndef([AS_EXECUTABLE_P],
6590 < [m4_defun([AS_EXECUTABLE_P],
6591 < [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6592 < $as_executable_p $1[]dnl
6593 < ])])# AS_EXECUTABLE_P
6592 > $RM -f confest.$objext
6593  
6594 + # PORTME: override above test on systems where it is broken
6595 + m4_if([$1], [CXX],
6596 + [case $host_os in
6597 + interix[[3-9]]*)
6598 +  # Interix 3.5 installs completely hosed .la files for C++, so rather than
6599 +  # hack all around it, let's just trust "g++" to DTRT.
6600 +  _LT_TAGVAR(predep_objects,$1)=
6601 +  _LT_TAGVAR(postdep_objects,$1)=
6602 +  _LT_TAGVAR(postdeps,$1)=
6603 +  ;;
6604 +
6605 + linux*)
6606 +  case `$CC -V 2>&1 | sed 5q` in
6607 +  *Sun\ C*)
6608 +    # Sun C++ 5.9
6609 +
6610 +    # The more standards-conforming stlport4 library is
6611 +    # incompatible with the Cstd library. Avoid specifying
6612 +    # it if it's in CXXFLAGS. Ignore libCrun as
6613 +    # -library=stlport4 depends on it.
6614 +    case " $CXX $CXXFLAGS " in
6615 +    *" -library=stlport4 "*)
6616 +      solaris_use_stlport4=yes
6617 +      ;;
6618 +    esac
6619 +
6620 +    if test "$solaris_use_stlport4" != yes; then
6621 +      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6622 +    fi
6623 +    ;;
6624 +  esac
6625 +  ;;
6626 +
6627 + solaris*)
6628 +  case $cc_basename in
6629 +  CC*)
6630 +    # The more standards-conforming stlport4 library is
6631 +    # incompatible with the Cstd library. Avoid specifying
6632 +    # it if it's in CXXFLAGS. Ignore libCrun as
6633 +    # -library=stlport4 depends on it.
6634 +    case " $CXX $CXXFLAGS " in
6635 +    *" -library=stlport4 "*)
6636 +      solaris_use_stlport4=yes
6637 +      ;;
6638 +    esac
6639 +
6640 +    # Adding this requires a known-good setup of shared libraries for
6641 +    # Sun compiler versions before 5.6, else PIC objects from an old
6642 +    # archive will be linked into the output, leading to subtle bugs.
6643 +    if test "$solaris_use_stlport4" != yes; then
6644 +      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6645 +    fi
6646 +    ;;
6647 +  esac
6648 +  ;;
6649 + esac
6650 + ])
6651 +
6652 + case " $_LT_TAGVAR(postdeps, $1) " in
6653 + *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6654 + esac
6655 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6656 + if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6657 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
6658 + fi
6659 + _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6660 +    [The directories searched by this compiler when creating a shared library])
6661 + _LT_TAGDECL([], [predep_objects], [1],
6662 +    [Dependencies to place before and after the objects being linked to
6663 +    create a shared library])
6664 + _LT_TAGDECL([], [postdep_objects], [1])
6665 + _LT_TAGDECL([], [predeps], [1])
6666 + _LT_TAGDECL([], [postdeps], [1])
6667 + _LT_TAGDECL([], [compiler_lib_search_path], [1],
6668 +    [The library search path used internally by the compiler when linking
6669 +    a shared library])
6670 + ])# _LT_SYS_HIDDEN_LIBDEPS
6671 +
6672 +
6673 + # _LT_PROG_F77
6674 + # ------------
6675 + # Since AC_PROG_F77 is broken, in that it returns the empty string
6676 + # if there is no fortran compiler, we have our own version here.
6677 + m4_defun([_LT_PROG_F77],
6678 + [
6679 + pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6680 + AC_PROG_F77
6681 + if test -z "$F77" || test "X$F77" = "Xno"; then
6682 +  _lt_disable_F77=yes
6683 + fi
6684 + popdef([AC_MSG_ERROR])
6685 + ])# _LT_PROG_F77
6686 +
6687 + dnl aclocal-1.4 backwards compatibility:
6688 + dnl AC_DEFUN([_LT_PROG_F77], [])
6689 +
6690 +
6691 + # _LT_LANG_F77_CONFIG([TAG])
6692 + # --------------------------
6693 + # Ensure that the configuration variables for a Fortran 77 compiler are
6694 + # suitably defined.  These variables are subsequently used by _LT_CONFIG
6695 + # to write the compiler configuration to `libtool'.
6696 + m4_defun([_LT_LANG_F77_CONFIG],
6697 + [AC_REQUIRE([_LT_PROG_F77])dnl
6698 + AC_LANG_PUSH(Fortran 77)
6699 +
6700 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6701 + _LT_TAGVAR(allow_undefined_flag, $1)=
6702 + _LT_TAGVAR(always_export_symbols, $1)=no
6703 + _LT_TAGVAR(archive_expsym_cmds, $1)=
6704 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6705 + _LT_TAGVAR(hardcode_direct, $1)=no
6706 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6707 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6708 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6709 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
6710 + _LT_TAGVAR(hardcode_minus_L, $1)=no
6711 + _LT_TAGVAR(hardcode_automatic, $1)=no
6712 + _LT_TAGVAR(inherit_rpath, $1)=no
6713 + _LT_TAGVAR(module_cmds, $1)=
6714 + _LT_TAGVAR(module_expsym_cmds, $1)=
6715 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
6716 + _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6717 + _LT_TAGVAR(no_undefined_flag, $1)=
6718 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
6719 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6720 +
6721 + # Source file extension for f77 test sources.
6722 + ac_ext=f
6723 +
6724 + # Object file extension for compiled f77 test sources.
6725 + objext=o
6726 + _LT_TAGVAR(objext, $1)=$objext
6727 +
6728 + # No sense in running all these tests if we already determined that
6729 + # the F77 compiler isn't working.  Some variables (like enable_shared)
6730 + # are currently assumed to apply to all compilers on this platform,
6731 + # and will be corrupted by setting them based on a non-working compiler.
6732 + if test "$_lt_disable_F77" != yes; then
6733 +  # Code to be used in simple compile tests
6734 +  lt_simple_compile_test_code="\
6735 +      subroutine t
6736 +      return
6737 +      end
6738 + "
6739 +
6740 +  # Code to be used in simple link tests
6741 +  lt_simple_link_test_code="\
6742 +      program t
6743 +      end
6744 + "
6745 +
6746 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6747 +  _LT_TAG_COMPILER
6748 +
6749 +  # save warnings/boilerplate of simple test code
6750 +  _LT_COMPILER_BOILERPLATE
6751 +  _LT_LINKER_BOILERPLATE
6752 +
6753 +  # Allow CC to be a program name with arguments.
6754 +  lt_save_CC="$CC"
6755 +  lt_save_GCC=$GCC
6756 +  CC=${F77-"f77"}
6757 +  compiler=$CC
6758 +  _LT_TAGVAR(compiler, $1)=$CC
6759 +  _LT_CC_BASENAME([$compiler])
6760 +  GCC=$G77
6761 +  if test -n "$compiler"; then
6762 +    AC_MSG_CHECKING([if libtool supports shared libraries])
6763 +    AC_MSG_RESULT([$can_build_shared])
6764 +
6765 +    AC_MSG_CHECKING([whether to build shared libraries])
6766 +    test "$can_build_shared" = "no" && enable_shared=no
6767 +
6768 +    # On AIX, shared libraries and static libraries use the same namespace, and
6769 +    # are all built from PIC.
6770 +    case $host_os in
6771 +      aix3*)
6772 +        test "$enable_shared" = yes && enable_static=no
6773 +        if test -n "$RANLIB"; then
6774 +          archive_cmds="$archive_cmds~\$RANLIB \$lib"
6775 +          postinstall_cmds='$RANLIB $lib'
6776 +        fi
6777 +        ;;
6778 +      aix[[4-9]]*)
6779 +        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6780 +          test "$enable_shared" = yes && enable_static=no
6781 +        fi
6782 +        ;;
6783 +    esac
6784 +    AC_MSG_RESULT([$enable_shared])
6785 +
6786 +    AC_MSG_CHECKING([whether to build static libraries])
6787 +    # Make sure either enable_shared or enable_static is yes.
6788 +    test "$enable_shared" = yes || enable_static=yes
6789 +    AC_MSG_RESULT([$enable_static])
6790 +
6791 +    _LT_TAGVAR(GCC, $1)="$G77"
6792 +    _LT_TAGVAR(LD, $1)="$LD"
6793 +
6794 +    ## CAVEAT EMPTOR:
6795 +    ## There is no encapsulation within the following macros, do not change
6796 +    ## the running order or otherwise move them around unless you know exactly
6797 +    ## what you are doing...
6798 +    _LT_COMPILER_PIC($1)
6799 +    _LT_COMPILER_C_O($1)
6800 +    _LT_COMPILER_FILE_LOCKS($1)
6801 +    _LT_LINKER_SHLIBS($1)
6802 +    _LT_SYS_DYNAMIC_LINKER($1)
6803 +    _LT_LINKER_HARDCODE_LIBPATH($1)
6804 +
6805 +    _LT_CONFIG($1)
6806 +  fi # test -n "$compiler"
6807 +
6808 +  GCC=$lt_save_GCC
6809 +  CC="$lt_save_CC"
6810 + fi # test "$_lt_disable_F77" != yes
6811 +
6812 + AC_LANG_POP
6813 + ])# _LT_LANG_F77_CONFIG
6814 +
6815 +
6816 + # _LT_PROG_FC
6817 + # -----------
6818 + # Since AC_PROG_FC is broken, in that it returns the empty string
6819 + # if there is no fortran compiler, we have our own version here.
6820 + m4_defun([_LT_PROG_FC],
6821 + [
6822 + pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6823 + AC_PROG_FC
6824 + if test -z "$FC" || test "X$FC" = "Xno"; then
6825 +  _lt_disable_FC=yes
6826 + fi
6827 + popdef([AC_MSG_ERROR])
6828 + ])# _LT_PROG_FC
6829 +
6830 + dnl aclocal-1.4 backwards compatibility:
6831 + dnl AC_DEFUN([_LT_PROG_FC], [])
6832 +
6833 +
6834 + # _LT_LANG_FC_CONFIG([TAG])
6835 + # -------------------------
6836 + # Ensure that the configuration variables for a Fortran compiler are
6837 + # suitably defined.  These variables are subsequently used by _LT_CONFIG
6838 + # to write the compiler configuration to `libtool'.
6839 + m4_defun([_LT_LANG_FC_CONFIG],
6840 + [AC_REQUIRE([_LT_PROG_FC])dnl
6841 + AC_LANG_PUSH(Fortran)
6842 +
6843 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6844 + _LT_TAGVAR(allow_undefined_flag, $1)=
6845 + _LT_TAGVAR(always_export_symbols, $1)=no
6846 + _LT_TAGVAR(archive_expsym_cmds, $1)=
6847 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6848 + _LT_TAGVAR(hardcode_direct, $1)=no
6849 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6850 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6851 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6852 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
6853 + _LT_TAGVAR(hardcode_minus_L, $1)=no
6854 + _LT_TAGVAR(hardcode_automatic, $1)=no
6855 + _LT_TAGVAR(inherit_rpath, $1)=no
6856 + _LT_TAGVAR(module_cmds, $1)=
6857 + _LT_TAGVAR(module_expsym_cmds, $1)=
6858 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
6859 + _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6860 + _LT_TAGVAR(no_undefined_flag, $1)=
6861 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
6862 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6863 +
6864 + # Source file extension for fc test sources.
6865 + ac_ext=${ac_fc_srcext-f}
6866 +
6867 + # Object file extension for compiled fc test sources.
6868 + objext=o
6869 + _LT_TAGVAR(objext, $1)=$objext
6870 +
6871 + # No sense in running all these tests if we already determined that
6872 + # the FC compiler isn't working.  Some variables (like enable_shared)
6873 + # are currently assumed to apply to all compilers on this platform,
6874 + # and will be corrupted by setting them based on a non-working compiler.
6875 + if test "$_lt_disable_FC" != yes; then
6876 +  # Code to be used in simple compile tests
6877 +  lt_simple_compile_test_code="\
6878 +      subroutine t
6879 +      return
6880 +      end
6881 + "
6882 +
6883 +  # Code to be used in simple link tests
6884 +  lt_simple_link_test_code="\
6885 +      program t
6886 +      end
6887 + "
6888 +
6889 +  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6890 +  _LT_TAG_COMPILER
6891 +
6892 +  # save warnings/boilerplate of simple test code
6893 +  _LT_COMPILER_BOILERPLATE
6894 +  _LT_LINKER_BOILERPLATE
6895 +
6896 +  # Allow CC to be a program name with arguments.
6897 +  lt_save_CC="$CC"
6898 +  lt_save_GCC=$GCC
6899 +  CC=${FC-"f95"}
6900 +  compiler=$CC
6901 +  GCC=$ac_cv_fc_compiler_gnu
6902 +
6903 +  _LT_TAGVAR(compiler, $1)=$CC
6904 +  _LT_CC_BASENAME([$compiler])
6905 +
6906 +  if test -n "$compiler"; then
6907 +    AC_MSG_CHECKING([if libtool supports shared libraries])
6908 +    AC_MSG_RESULT([$can_build_shared])
6909 +
6910 +    AC_MSG_CHECKING([whether to build shared libraries])
6911 +    test "$can_build_shared" = "no" && enable_shared=no
6912 +
6913 +    # On AIX, shared libraries and static libraries use the same namespace, and
6914 +    # are all built from PIC.
6915 +    case $host_os in
6916 +      aix3*)
6917 +        test "$enable_shared" = yes && enable_static=no
6918 +        if test -n "$RANLIB"; then
6919 +          archive_cmds="$archive_cmds~\$RANLIB \$lib"
6920 +          postinstall_cmds='$RANLIB $lib'
6921 +        fi
6922 +        ;;
6923 +      aix[[4-9]]*)
6924 +        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6925 +          test "$enable_shared" = yes && enable_static=no
6926 +        fi
6927 +        ;;
6928 +    esac
6929 +    AC_MSG_RESULT([$enable_shared])
6930 +
6931 +    AC_MSG_CHECKING([whether to build static libraries])
6932 +    # Make sure either enable_shared or enable_static is yes.
6933 +    test "$enable_shared" = yes || enable_static=yes
6934 +    AC_MSG_RESULT([$enable_static])
6935 +
6936 +    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6937 +    _LT_TAGVAR(LD, $1)="$LD"
6938 +
6939 +    ## CAVEAT EMPTOR:
6940 +    ## There is no encapsulation within the following macros, do not change
6941 +    ## the running order or otherwise move them around unless you know exactly
6942 +    ## what you are doing...
6943 +    _LT_SYS_HIDDEN_LIBDEPS($1)
6944 +    _LT_COMPILER_PIC($1)
6945 +    _LT_COMPILER_C_O($1)
6946 +    _LT_COMPILER_FILE_LOCKS($1)
6947 +    _LT_LINKER_SHLIBS($1)
6948 +    _LT_SYS_DYNAMIC_LINKER($1)
6949 +    _LT_LINKER_HARDCODE_LIBPATH($1)
6950 +
6951 +    _LT_CONFIG($1)
6952 +  fi # test -n "$compiler"
6953 +
6954 +  GCC=$lt_save_GCC
6955 +  CC="$lt_save_CC"
6956 + fi # test "$_lt_disable_FC" != yes
6957 +
6958 + AC_LANG_POP
6959 + ])# _LT_LANG_FC_CONFIG
6960 +
6961 +
6962 + # _LT_LANG_GCJ_CONFIG([TAG])
6963 + # --------------------------
6964 + # Ensure that the configuration variables for the GNU Java Compiler compiler
6965 + # are suitably defined.  These variables are subsequently used by _LT_CONFIG
6966 + # to write the compiler configuration to `libtool'.
6967 + m4_defun([_LT_LANG_GCJ_CONFIG],
6968 + [AC_REQUIRE([LT_PROG_GCJ])dnl
6969 + AC_LANG_SAVE
6970 +
6971 + # Source file extension for Java test sources.
6972 + ac_ext=java
6973 +
6974 + # Object file extension for compiled Java test sources.
6975 + objext=o
6976 + _LT_TAGVAR(objext, $1)=$objext
6977 +
6978 + # Code to be used in simple compile tests
6979 + lt_simple_compile_test_code="class foo {}"
6980 +
6981 + # Code to be used in simple link tests
6982 + lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6983 +
6984 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6985 + _LT_TAG_COMPILER
6986 +
6987 + # save warnings/boilerplate of simple test code
6988 + _LT_COMPILER_BOILERPLATE
6989 + _LT_LINKER_BOILERPLATE
6990 +
6991 + # Allow CC to be a program name with arguments.
6992 + lt_save_CC="$CC"
6993 + lt_save_GCC=$GCC
6994 + GCC=yes
6995 + CC=${GCJ-"gcj"}
6996 + compiler=$CC
6997 + _LT_TAGVAR(compiler, $1)=$CC
6998 + _LT_TAGVAR(LD, $1)="$LD"
6999 + _LT_CC_BASENAME([$compiler])
7000 +
7001 + # GCJ did not exist at the time GCC didn't implicitly link libc in.
7002 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7003 +
7004 + _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7005 +
7006 + if test -n "$compiler"; then
7007 +  _LT_COMPILER_NO_RTTI($1)
7008 +  _LT_COMPILER_PIC($1)
7009 +  _LT_COMPILER_C_O($1)
7010 +  _LT_COMPILER_FILE_LOCKS($1)
7011 +  _LT_LINKER_SHLIBS($1)
7012 +  _LT_LINKER_HARDCODE_LIBPATH($1)
7013 +
7014 +  _LT_CONFIG($1)
7015 + fi
7016 +
7017 + AC_LANG_RESTORE
7018 +
7019 + GCC=$lt_save_GCC
7020 + CC="$lt_save_CC"
7021 + ])# _LT_LANG_GCJ_CONFIG
7022 +
7023 +
7024 + # _LT_LANG_RC_CONFIG([TAG])
7025 + # -------------------------
7026 + # Ensure that the configuration variables for the Windows resource compiler
7027 + # are suitably defined.  These variables are subsequently used by _LT_CONFIG
7028 + # to write the compiler configuration to `libtool'.
7029 + m4_defun([_LT_LANG_RC_CONFIG],
7030 + [AC_REQUIRE([LT_PROG_RC])dnl
7031 + AC_LANG_SAVE
7032 +
7033 + # Source file extension for RC test sources.
7034 + ac_ext=rc
7035 +
7036 + # Object file extension for compiled RC test sources.
7037 + objext=o
7038 + _LT_TAGVAR(objext, $1)=$objext
7039 +
7040 + # Code to be used in simple compile tests
7041 + lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7042 +
7043 + # Code to be used in simple link tests
7044 + lt_simple_link_test_code="$lt_simple_compile_test_code"
7045 +
7046 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7047 + _LT_TAG_COMPILER
7048 +
7049 + # save warnings/boilerplate of simple test code
7050 + _LT_COMPILER_BOILERPLATE
7051 + _LT_LINKER_BOILERPLATE
7052 +
7053 + # Allow CC to be a program name with arguments.
7054 + lt_save_CC="$CC"
7055 + lt_save_GCC=$GCC
7056 + GCC=
7057 + CC=${RC-"windres"}
7058 + compiler=$CC
7059 + _LT_TAGVAR(compiler, $1)=$CC
7060 + _LT_CC_BASENAME([$compiler])
7061 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7062 +
7063 + if test -n "$compiler"; then
7064 +  :
7065 +  _LT_CONFIG($1)
7066 + fi
7067 +
7068 + GCC=$lt_save_GCC
7069 + AC_LANG_RESTORE
7070 + CC="$lt_save_CC"
7071 + ])# _LT_LANG_RC_CONFIG
7072 +
7073 +
7074 + # LT_PROG_GCJ
7075 + # -----------
7076 + AC_DEFUN([LT_PROG_GCJ],
7077 + [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7078 +  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7079 +    [AC_CHECK_TOOL(GCJ, gcj,)
7080 +      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7081 +      AC_SUBST(GCJFLAGS)])])[]dnl
7082 + ])
7083 +
7084 + # Old name:
7085 + AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7086 + dnl aclocal-1.4 backwards compatibility:
7087 + dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7088 +
7089 +
7090 + # LT_PROG_RC
7091 + # ----------
7092 + AC_DEFUN([LT_PROG_RC],
7093 + [AC_CHECK_TOOL(RC, windres,)
7094 + ])
7095 +
7096 + # Old name:
7097 + AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7098 + dnl aclocal-1.4 backwards compatibility:
7099 + dnl AC_DEFUN([LT_AC_PROG_RC], [])
7100 +
7101 +
7102 + # _LT_DECL_EGREP
7103 + # --------------
7104 + # If we don't have a new enough Autoconf to choose the best grep
7105 + # available, choose the one first in the user's PATH.
7106 + m4_defun([_LT_DECL_EGREP],
7107 + [AC_REQUIRE([AC_PROG_EGREP])dnl
7108 + AC_REQUIRE([AC_PROG_FGREP])dnl
7109 + test -z "$GREP" && GREP=grep
7110 + _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7111 + _LT_DECL([], [EGREP], [1], [An ERE matcher])
7112 + _LT_DECL([], [FGREP], [1], [A literal string matcher])
7113 + dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7114 + AC_SUBST([GREP])
7115 + ])
7116 +
7117 +
7118 + # _LT_DECL_OBJDUMP
7119 + # --------------
7120 + # If we don't have a new enough Autoconf to choose the best objdump
7121 + # available, choose the one first in the user's PATH.
7122 + m4_defun([_LT_DECL_OBJDUMP],
7123 + [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7124 + test -z "$OBJDUMP" && OBJDUMP=objdump
7125 + _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7126 + AC_SUBST([OBJDUMP])
7127 + ])
7128 +
7129 +
7130 + # _LT_DECL_SED
7131 + # ------------
7132 + # Check for a fully-functional sed program, that truncates
7133 + # as few characters as possible.  Prefer GNU sed if found.
7134 + m4_defun([_LT_DECL_SED],
7135 + [AC_PROG_SED
7136 + test -z "$SED" && SED=sed
7137 + Xsed="$SED -e 1s/^X//"
7138 + _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7139 + _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7140 +    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7141 + ])# _LT_DECL_SED
7142 +
7143 + m4_ifndef([AC_PROG_SED], [
7144   # NOTE: This macro has been submitted for inclusion into   #
7145   #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
7146   #  a released version of Autoconf we should remove this    #
7147   #  macro and use it instead.                               #
7148 < # LT_AC_PROG_SED
7149 < # --------------
6601 < # Check for a fully-functional sed program, that truncates
6602 < # as few characters as possible.  Prefer GNU sed if found.
6603 < AC_DEFUN([LT_AC_PROG_SED],
7148 >
7149 > m4_defun([AC_PROG_SED],
7150   [AC_MSG_CHECKING([for a sed that does not truncate output])
7151   AC_CACHE_VAL(lt_cv_path_SED,
7152   [# Loop through the user's path and test for sed and gsed.
# Line 6612 | Line 7158 | do
7158    test -z "$as_dir" && as_dir=.
7159    for lt_ac_prog in sed gsed; do
7160      for ac_exec_ext in '' $ac_executable_extensions; do
7161 <      if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7161 >      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7162          lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7163        fi
7164      done
# Line 6653 | Line 7199 | done
7199   SED=$lt_cv_path_SED
7200   AC_SUBST([SED])
7201   AC_MSG_RESULT([$SED])
7202 + ])#AC_PROG_SED
7203 + ])#m4_ifndef
7204 +
7205 + # Old name:
7206 + AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7207 + dnl aclocal-1.4 backwards compatibility:
7208 + dnl AC_DEFUN([LT_AC_PROG_SED], [])
7209 +
7210 +
7211 + # _LT_CHECK_SHELL_FEATURES
7212 + # ------------------------
7213 + # Find out whether the shell is Bourne or XSI compatible,
7214 + # or has some other useful features.
7215 + m4_defun([_LT_CHECK_SHELL_FEATURES],
7216 + [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7217 + # Try some XSI features
7218 + xsi_shell=no
7219 + ( _lt_dummy="a/b/c"
7220 +  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7221 +      = c,a/b,, \
7222 +    && eval 'test $(( 1 + 1 )) -eq 2 \
7223 +    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7224 +  && xsi_shell=yes
7225 + AC_MSG_RESULT([$xsi_shell])
7226 + _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7227 +
7228 + AC_MSG_CHECKING([whether the shell understands "+="])
7229 + lt_shell_append=no
7230 + ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7231 +    >/dev/null 2>&1 \
7232 +  && lt_shell_append=yes
7233 + AC_MSG_RESULT([$lt_shell_append])
7234 + _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7235 +
7236 + if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7237 +  lt_unset=unset
7238 + else
7239 +  lt_unset=false
7240 + fi
7241 + _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7242 +
7243 + # test EBCDIC or ASCII
7244 + case `echo X|tr X '\101'` in
7245 + A) # ASCII based system
7246 +    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7247 +  lt_SP2NL='tr \040 \012'
7248 +  lt_NL2SP='tr \015\012 \040\040'
7249 +  ;;
7250 + *) # EBCDIC based system
7251 +  lt_SP2NL='tr \100 \n'
7252 +  lt_NL2SP='tr \r\n \100\100'
7253 +  ;;
7254 + esac
7255 + _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7256 + _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7257 + ])# _LT_CHECK_SHELL_FEATURES
7258 +
7259 +
7260 + # _LT_PROG_XSI_SHELLFNS
7261 + # ---------------------
7262 + # Bourne and XSI compatible variants of some useful shell functions.
7263 + m4_defun([_LT_PROG_XSI_SHELLFNS],
7264 + [case $xsi_shell in
7265 +  yes)
7266 +    cat << \_LT_EOF >> "$cfgfile"
7267 +
7268 + # func_dirname file append nondir_replacement
7269 + # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7270 + # otherwise set result to NONDIR_REPLACEMENT.
7271 + func_dirname ()
7272 + {
7273 +  case ${1} in
7274 +    */*) func_dirname_result="${1%/*}${2}" ;;
7275 +    *  ) func_dirname_result="${3}" ;;
7276 +  esac
7277 + }
7278 +
7279 + # func_basename file
7280 + func_basename ()
7281 + {
7282 +  func_basename_result="${1##*/}"
7283 + }
7284 +
7285 + # func_dirname_and_basename file append nondir_replacement
7286 + # perform func_basename and func_dirname in a single function
7287 + # call:
7288 + #   dirname:  Compute the dirname of FILE.  If nonempty,
7289 + #             add APPEND to the result, otherwise set result
7290 + #             to NONDIR_REPLACEMENT.
7291 + #             value returned in "$func_dirname_result"
7292 + #   basename: Compute filename of FILE.
7293 + #             value retuned in "$func_basename_result"
7294 + # Implementation must be kept synchronized with func_dirname
7295 + # and func_basename. For efficiency, we do not delegate to
7296 + # those functions but instead duplicate the functionality here.
7297 + func_dirname_and_basename ()
7298 + {
7299 +  case ${1} in
7300 +    */*) func_dirname_result="${1%/*}${2}" ;;
7301 +    *  ) func_dirname_result="${3}" ;;
7302 +  esac
7303 +  func_basename_result="${1##*/}"
7304 + }
7305 +
7306 + # func_stripname prefix suffix name
7307 + # strip PREFIX and SUFFIX off of NAME.
7308 + # PREFIX and SUFFIX must not contain globbing or regex special
7309 + # characters, hashes, percent signs, but SUFFIX may contain a leading
7310 + # dot (in which case that matches only a dot).
7311 + func_stripname ()
7312 + {
7313 +  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7314 +  # positional parameters, so assign one to ordinary parameter first.
7315 +  func_stripname_result=${3}
7316 +  func_stripname_result=${func_stripname_result#"${1}"}
7317 +  func_stripname_result=${func_stripname_result%"${2}"}
7318 + }
7319 +
7320 + # func_opt_split
7321 + func_opt_split ()
7322 + {
7323 +  func_opt_split_opt=${1%%=*}
7324 +  func_opt_split_arg=${1#*=}
7325 + }
7326 +
7327 + # func_lo2o object
7328 + func_lo2o ()
7329 + {
7330 +  case ${1} in
7331 +    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7332 +    *)    func_lo2o_result=${1} ;;
7333 +  esac
7334 + }
7335 +
7336 + # func_xform libobj-or-source
7337 + func_xform ()
7338 + {
7339 +  func_xform_result=${1%.*}.lo
7340 + }
7341 +
7342 + # func_arith arithmetic-term...
7343 + func_arith ()
7344 + {
7345 +  func_arith_result=$(( $[*] ))
7346 + }
7347 +
7348 + # func_len string
7349 + # STRING may not start with a hyphen.
7350 + func_len ()
7351 + {
7352 +  func_len_result=${#1}
7353 + }
7354 +
7355 + _LT_EOF
7356 +    ;;
7357 +  *) # Bourne compatible functions.
7358 +    cat << \_LT_EOF >> "$cfgfile"
7359 +
7360 + # func_dirname file append nondir_replacement
7361 + # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
7362 + # otherwise set result to NONDIR_REPLACEMENT.
7363 + func_dirname ()
7364 + {
7365 +  # Extract subdirectory from the argument.
7366 +  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7367 +  if test "X$func_dirname_result" = "X${1}"; then
7368 +    func_dirname_result="${3}"
7369 +  else
7370 +    func_dirname_result="$func_dirname_result${2}"
7371 +  fi
7372 + }
7373 +
7374 + # func_basename file
7375 + func_basename ()
7376 + {
7377 +  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7378 + }
7379 +
7380 + dnl func_dirname_and_basename
7381 + dnl A portable version of this function is already defined in general.m4sh
7382 + dnl so there is no need for it here.
7383 +
7384 + # func_stripname prefix suffix name
7385 + # strip PREFIX and SUFFIX off of NAME.
7386 + # PREFIX and SUFFIX must not contain globbing or regex special
7387 + # characters, hashes, percent signs, but SUFFIX may contain a leading
7388 + # dot (in which case that matches only a dot).
7389 + # func_strip_suffix prefix name
7390 + func_stripname ()
7391 + {
7392 +  case ${2} in
7393 +    .*) func_stripname_result=`$ECHO "X${3}" \
7394 +           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7395 +    *)  func_stripname_result=`$ECHO "X${3}" \
7396 +           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7397 +  esac
7398 + }
7399 +
7400 + # sed scripts:
7401 + my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7402 + my_sed_long_arg='1s/^-[[^=]]*=//'
7403 +
7404 + # func_opt_split
7405 + func_opt_split ()
7406 + {
7407 +  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7408 +  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7409 + }
7410 +
7411 + # func_lo2o object
7412 + func_lo2o ()
7413 + {
7414 +  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7415 + }
7416 +
7417 + # func_xform libobj-or-source
7418 + func_xform ()
7419 + {
7420 +  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7421 + }
7422 +
7423 + # func_arith arithmetic-term...
7424 + func_arith ()
7425 + {
7426 +  func_arith_result=`expr "$[@]"`
7427 + }
7428 +
7429 + # func_len string
7430 + # STRING may not start with a hyphen.
7431 + func_len ()
7432 + {
7433 +  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7434 + }
7435 +
7436 + _LT_EOF
7437 + esac
7438 +
7439 + case $lt_shell_append in
7440 +  yes)
7441 +    cat << \_LT_EOF >> "$cfgfile"
7442 +
7443 + # func_append var value
7444 + # Append VALUE to the end of shell variable VAR.
7445 + func_append ()
7446 + {
7447 +  eval "$[1]+=\$[2]"
7448 + }
7449 + _LT_EOF
7450 +    ;;
7451 +  *)
7452 +    cat << \_LT_EOF >> "$cfgfile"
7453 +
7454 + # func_append var value
7455 + # Append VALUE to the end of shell variable VAR.
7456 + func_append ()
7457 + {
7458 +  eval "$[1]=\$$[1]\$[2]"
7459 + }
7460 +
7461 + _LT_EOF
7462 +    ;;
7463 +  esac
7464   ])
7465  
7466 < # Copyright (C) 2002, 2003, 2005, 2006, 2007  Free Software Foundation, Inc.
7466 > # ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
7467 > #
7468 > #   Copyright (C) 1999-2006, 2007, 2008 Free Software Foundation, Inc.
7469 > #   Written by Thomas Tanner, 1999
7470 > #
7471 > # This file is free software; the Free Software Foundation gives
7472 > # unlimited permission to copy and/or distribute it, with or without
7473 > # modifications, as long as this notice is preserved.
7474 >
7475 > # serial 17 LTDL_INIT
7476 >
7477 > # LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
7478 > # ------------------------------------------
7479 > # DIRECTORY contains the libltdl sources.  It is okay to call this
7480 > # function multiple times, as long as the same DIRECTORY is always given.
7481 > AC_DEFUN([LT_CONFIG_LTDL_DIR],
7482 > [AC_BEFORE([$0], [LTDL_INIT])
7483 > _$0($*)
7484 > ])# LT_CONFIG_LTDL_DIR
7485 >
7486 > # We break this out into a separate macro, so that we can call it safely
7487 > # internally without being caught accidentally by the sed scan in libtoolize.
7488 > m4_defun([_LT_CONFIG_LTDL_DIR],
7489 > [dnl remove trailing slashes
7490 > m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
7491 > m4_case(_LTDL_DIR,
7492 >        [], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply `.'
7493 >             m4_if(_ARG_DIR, [.],
7494 >                     [],
7495 >                 [m4_define([_LTDL_DIR], _ARG_DIR)
7496 >                  _LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
7497 >    [m4_if(_ARG_DIR, _LTDL_DIR,
7498 >            [],
7499 >        [m4_fatal([multiple libltdl directories: `]_LTDL_DIR[', `]_ARG_DIR['])])])
7500 > m4_popdef([_ARG_DIR])
7501 > ])# _LT_CONFIG_LTDL_DIR
7502 >
7503 > # Initialise:
7504 > m4_define([_LTDL_DIR], [])
7505 >
7506 >
7507 > # _LT_BUILD_PREFIX
7508 > # ----------------
7509 > # If Autoconf is new enough, expand to `${top_build_prefix}', otherwise
7510 > # to `${top_builddir}/'.
7511 > m4_define([_LT_BUILD_PREFIX],
7512 > [m4_ifdef([AC_AUTOCONF_VERSION],
7513 >   [m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
7514 >          [-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
7515 >                          [${top_build_prefix}],
7516 >                          [${top_builddir}/])],
7517 >          [${top_build_prefix}])],
7518 >   [${top_builddir}/])[]dnl
7519 > ])
7520 >
7521 >
7522 > # LTDL_CONVENIENCE
7523 > # ----------------
7524 > # sets LIBLTDL to the link flags for the libltdl convenience library and
7525 > # LTDLINCL to the include flags for the libltdl header and adds
7526 > # --enable-ltdl-convenience to the configure arguments.  Note that
7527 > # AC_CONFIG_SUBDIRS is not called here.  LIBLTDL will be prefixed with
7528 > # '${top_build_prefix}' if available, otherwise with '${top_builddir}/',
7529 > # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
7530 > # quotes!).  If your package is not flat and you're not using automake,
7531 > # define top_build_prefix, top_builddir, and top_srcdir appropriately
7532 > # in your Makefiles.
7533 > AC_DEFUN([LTDL_CONVENIENCE],
7534 > [AC_BEFORE([$0], [LTDL_INIT])dnl
7535 > dnl Although the argument is deprecated and no longer documented,
7536 > dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
7537 > dnl here make sure it is the same as any other declaration of libltdl's
7538 > dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
7539 > dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
7540 > m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
7541 > _$0()
7542 > ])# LTDL_CONVENIENCE
7543 >
7544 > # AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
7545 > # now we have LT_CONFIG_LTDL_DIR:
7546 > AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
7547 > [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
7548 > _LTDL_CONVENIENCE])
7549 >
7550 > dnl aclocal-1.4 backwards compatibility:
7551 > dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
7552 >
7553 >
7554 > # _LTDL_CONVENIENCE
7555 > # -----------------
7556 > # Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
7557 > m4_defun([_LTDL_CONVENIENCE],
7558 > [case $enable_ltdl_convenience in
7559 >  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
7560 >  "") enable_ltdl_convenience=yes
7561 >      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
7562 > esac
7563 > LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
7564 > LTDLDEPS=$LIBLTDL
7565 > LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
7566 >
7567 > AC_SUBST([LIBLTDL])
7568 > AC_SUBST([LTDLDEPS])
7569 > AC_SUBST([LTDLINCL])
7570 >
7571 > # For backwards non-gettext consistent compatibility...
7572 > INCLTDL="$LTDLINCL"
7573 > AC_SUBST([INCLTDL])
7574 > ])# _LTDL_CONVENIENCE
7575 >
7576 >
7577 > # LTDL_INSTALLABLE
7578 > # ----------------
7579 > # sets LIBLTDL to the link flags for the libltdl installable library
7580 > # and LTDLINCL to the include flags for the libltdl header and adds
7581 > # --enable-ltdl-install to the configure arguments.  Note that
7582 > # AC_CONFIG_SUBDIRS is not called from here.  If an installed libltdl
7583 > # is not found, LIBLTDL will be prefixed with '${top_build_prefix}' if
7584 > # available, otherwise with '${top_builddir}/', and LTDLINCL will be
7585 > # prefixed with '${top_srcdir}/' (note the single quotes!).  If your
7586 > # package is not flat and you're not using automake, define top_build_prefix,
7587 > # top_builddir, and top_srcdir appropriately in your Makefiles.
7588 > # In the future, this macro may have to be called after LT_INIT.
7589 > AC_DEFUN([LTDL_INSTALLABLE],
7590 > [AC_BEFORE([$0], [LTDL_INIT])dnl
7591 > dnl Although the argument is deprecated and no longer documented,
7592 > dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
7593 > dnl here make sure it is the same as any other declaration of libltdl's
7594 > dnl location!  This also ensures lt_ltdl_dir is set when configure.ac is
7595 > dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
7596 > m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
7597 > _$0()
7598 > ])# LTDL_INSTALLABLE
7599 >
7600 > # AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
7601 > # now we have LT_CONFIG_LTDL_DIR:
7602 > AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
7603 > [_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
7604 > _LTDL_INSTALLABLE])
7605 >
7606 > dnl aclocal-1.4 backwards compatibility:
7607 > dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
7608 >
7609 >
7610 > # _LTDL_INSTALLABLE
7611 > # -----------------
7612 > # Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
7613 > m4_defun([_LTDL_INSTALLABLE],
7614 > [AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
7615 >  if test x"${lt_lib_ltdl-no}" = xyes; then
7616 >    if test x"$enable_ltdl_install" != xyes; then
7617 >      AC_MSG_WARN([not overwriting installed libltdl, force with `--enable-ltdl-install'])
7618 >      enable_ltdl_install=no
7619 >    fi
7620 >  elif test x"$enable_ltdl_install" = xno; then
7621 >    AC_MSG_WARN([libltdl not installed, but installation disabled])
7622 >  fi
7623 >
7624 > # If configure.ac declared an installable ltdl, and the user didn't override
7625 > # with --disable-ltdl-install, we will install the shipped libltdl.
7626 > case $enable_ltdl_install in
7627 >  no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
7628 >      LIBLTDL="-lltdl"
7629 >      LTDLDEPS=
7630 >      LTDLINCL=
7631 >      ;;
7632 >  *)  enable_ltdl_install=yes
7633 >      ac_configure_args="$ac_configure_args --enable-ltdl-install"
7634 >      LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
7635 >      LTDLDEPS=$LIBLTDL
7636 >      LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
7637 >      ;;
7638 > esac
7639 >
7640 > AC_SUBST([LIBLTDL])
7641 > AC_SUBST([LTDLDEPS])
7642 > AC_SUBST([LTDLINCL])
7643 >
7644 > # For backwards non-gettext consistent compatibility...
7645 > INCLTDL="$LTDLINCL"
7646 > AC_SUBST([INCLTDL])
7647 > ])# LTDL_INSTALLABLE
7648 >
7649 >
7650 > # _LTDL_MODE_DISPATCH
7651 > # -------------------
7652 > m4_define([_LTDL_MODE_DISPATCH],
7653 > [dnl If _LTDL_DIR is `.', then we are configuring libltdl itself:
7654 > m4_if(_LTDL_DIR, [],
7655 >        [],
7656 >    dnl if _LTDL_MODE was not set already, the default value is `subproject':
7657 >    [m4_case(m4_default(_LTDL_MODE, [subproject]),
7658 >          [subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
7659 >                          _LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"])],
7660 >          [nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"])],
7661 >          [recursive], [],
7662 >        [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
7663 > dnl Be careful not to expand twice:
7664 > m4_define([$0], [])
7665 > ])# _LTDL_MODE_DISPATCH
7666 >
7667 >
7668 > # _LT_LIBOBJ(MODULE_NAME)
7669 > # -----------------------
7670 > # Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
7671 > # of into LIBOBJS.
7672 > AC_DEFUN([_LT_LIBOBJ], [
7673 >  m4_pattern_allow([^_LT_LIBOBJS$])
7674 >  _LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
7675 > ])# _LT_LIBOBJS
7676 >
7677 >
7678 > # LTDL_INIT([OPTIONS])
7679 > # --------------------
7680 > # Clients of libltdl can use this macro to allow the installer to
7681 > # choose between a shipped copy of the ltdl sources or a preinstalled
7682 > # version of the library.  If the shipped ltdl sources are not in a
7683 > # subdirectory named libltdl, the directory name must be given by
7684 > # LT_CONFIG_LTDL_DIR.
7685 > AC_DEFUN([LTDL_INIT],
7686 > [dnl Parse OPTIONS
7687 > _LT_SET_OPTIONS([$0], [$1])
7688 >
7689 > dnl We need to keep our own list of libobjs separate from our parent project,
7690 > dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
7691 > dnl we look for our own LIBOBJs.
7692 > m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
7693 > m4_pushdef([AC_LIBSOURCES])
7694 >
7695 > dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
7696 > m4_if(_LTDL_MODE, [],
7697 >        [m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
7698 >        m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
7699 >                [m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
7700 >
7701 > AC_ARG_WITH([included_ltdl],
7702 >    [AS_HELP_STRING([--with-included-ltdl],
7703 >                    [use the GNU ltdl sources included here])])
7704 >
7705 > if test "x$with_included_ltdl" != xyes; then
7706 >  # We are not being forced to use the included libltdl sources, so
7707 >  # decide whether there is a useful installed version we can use.
7708 >  AC_CHECK_HEADER([ltdl.h],
7709 >      [AC_CHECK_DECL([lt_dlinterface_register],
7710 >           [AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
7711 >               [with_included_ltdl=no],
7712 >               [with_included_ltdl=yes])],
7713 >           [with_included_ltdl=yes],
7714 >           [AC_INCLUDES_DEFAULT
7715 >            #include <ltdl.h>])],
7716 >      [with_included_ltdl=yes],
7717 >      [AC_INCLUDES_DEFAULT]
7718 >  )
7719 > fi
7720 >
7721 > dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
7722 > dnl was called yet, then for old times' sake, we assume libltdl is in an
7723 > dnl eponymous directory:
7724 > AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
7725 >
7726 > AC_ARG_WITH([ltdl_include],
7727 >    [AS_HELP_STRING([--with-ltdl-include=DIR],
7728 >                    [use the ltdl headers installed in DIR])])
7729 >
7730 > if test -n "$with_ltdl_include"; then
7731 >  if test -f "$with_ltdl_include/ltdl.h"; then :
7732 >  else
7733 >    AC_MSG_ERROR([invalid ltdl include directory: `$with_ltdl_include'])
7734 >  fi
7735 > else
7736 >  with_ltdl_include=no
7737 > fi
7738 >
7739 > AC_ARG_WITH([ltdl_lib],
7740 >    [AS_HELP_STRING([--with-ltdl-lib=DIR],
7741 >                    [use the libltdl.la installed in DIR])])
7742 >
7743 > if test -n "$with_ltdl_lib"; then
7744 >  if test -f "$with_ltdl_lib/libltdl.la"; then :
7745 >  else
7746 >    AC_MSG_ERROR([invalid ltdl library directory: `$with_ltdl_lib'])
7747 >  fi
7748 > else
7749 >  with_ltdl_lib=no
7750 > fi
7751 >
7752 > case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
7753 >  ,yes,no,no,)
7754 >        m4_case(m4_default(_LTDL_TYPE, [convenience]),
7755 >            [convenience], [_LTDL_CONVENIENCE],
7756 >            [installable], [_LTDL_INSTALLABLE],
7757 >          [m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
7758 >        ;;
7759 >  ,no,no,no,)
7760 >        # If the included ltdl is not to be used, then use the
7761 >        # preinstalled libltdl we found.
7762 >        AC_DEFINE([HAVE_LTDL], [1],
7763 >          [Define this if a modern libltdl is already installed])
7764 >        LIBLTDL=-lltdl
7765 >        LTDLDEPS=
7766 >        LTDLINCL=
7767 >        ;;
7768 >  ,no*,no,*)
7769 >        AC_MSG_ERROR([`--with-ltdl-include' and `--with-ltdl-lib' options must be used together])
7770 >        ;;
7771 >  *)    with_included_ltdl=no
7772 >        LIBLTDL="-L$with_ltdl_lib -lltdl"
7773 >        LTDLDEPS=
7774 >        LTDLINCL="-I$with_ltdl_include"
7775 >        ;;
7776 > esac
7777 > INCLTDL="$LTDLINCL"
7778 >
7779 > # Report our decision...
7780 > AC_MSG_CHECKING([where to find libltdl headers])
7781 > AC_MSG_RESULT([$LTDLINCL])
7782 > AC_MSG_CHECKING([where to find libltdl library])
7783 > AC_MSG_RESULT([$LIBLTDL])
7784 >
7785 > _LTDL_SETUP
7786 >
7787 > dnl restore autoconf definition.
7788 > m4_popdef([AC_LIBOBJ])
7789 > m4_popdef([AC_LIBSOURCES])
7790 >
7791 > AC_CONFIG_COMMANDS_PRE([
7792 >    _ltdl_libobjs=
7793 >    _ltdl_ltlibobjs=
7794 >    if test -n "$_LT_LIBOBJS"; then
7795 >      # Remove the extension.
7796 >      _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
7797 >      for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
7798 >        _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
7799 >        _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
7800 >      done
7801 >    fi
7802 >    AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
7803 >    AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
7804 > ])
7805 >
7806 > # Only expand once:
7807 > m4_define([LTDL_INIT])
7808 > ])# LTDL_INIT
7809 >
7810 > # Old names:
7811 > AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
7812 > AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
7813 > AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
7814 > dnl aclocal-1.4 backwards compatibility:
7815 > dnl AC_DEFUN([AC_LIB_LTDL], [])
7816 > dnl AC_DEFUN([AC_WITH_LTDL], [])
7817 > dnl AC_DEFUN([LT_WITH_LTDL], [])
7818 >
7819 >
7820 > # _LTDL_SETUP
7821 > # -----------
7822 > # Perform all the checks necessary for compilation of the ltdl objects
7823 > #  -- including compiler checks and header checks.  This is a public
7824 > # interface  mainly for the benefit of libltdl's own configure.ac, most
7825 > # other users should call LTDL_INIT instead.
7826 > AC_DEFUN([_LTDL_SETUP],
7827 > [AC_REQUIRE([AC_PROG_CC])dnl
7828 > AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
7829 > AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
7830 > AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
7831 > AC_REQUIRE([LT_LIB_DLLOAD])dnl
7832 > AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
7833 > AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
7834 > AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
7835 > AC_REQUIRE([gl_FUNC_ARGZ])dnl
7836 >
7837 > m4_require([_LT_CHECK_OBJDIR])dnl
7838 > m4_require([_LT_HEADER_DLFCN])dnl
7839 > m4_require([_LT_CHECK_DLPREOPEN])dnl
7840 > m4_require([_LT_DECL_SED])dnl
7841 >
7842 > dnl Don't require this, or it will be expanded earlier than the code
7843 > dnl that sets the variables it relies on:
7844 > _LT_ENABLE_INSTALL
7845 >
7846 > dnl _LTDL_MODE specific code must be called at least once:
7847 > _LTDL_MODE_DISPATCH
7848 >
7849 > # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
7850 > # the user used.  This is so that ltdl.h can pick up the parent projects
7851 > # config.h file, The first file in AC_CONFIG_HEADERS must contain the
7852 > # definitions required by ltdl.c.
7853 > # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
7854 > AC_CONFIG_COMMANDS_PRE([dnl
7855 > m4_pattern_allow([^LT_CONFIG_H$])dnl
7856 > m4_ifset([AH_HEADER],
7857 >    [LT_CONFIG_H=AH_HEADER],
7858 >    [m4_ifset([AC_LIST_HEADERS],
7859 >            [LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's,^[[      ]]*,,;s,[[ :]].*$,,'`],
7860 >        [])])])
7861 > AC_SUBST([LT_CONFIG_H])
7862 >
7863 > AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
7864 >        [], [], [AC_INCLUDES_DEFAULT])
7865 >
7866 > AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
7867 > AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
7868 >
7869 > AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
7870 >
7871 > name=ltdl
7872 > LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
7873 > AC_SUBST([LTDLOPEN])
7874 > ])# _LTDL_SETUP
7875 >
7876 >
7877 > # _LT_ENABLE_INSTALL
7878 > # ------------------
7879 > m4_define([_LT_ENABLE_INSTALL],
7880 > [AC_ARG_ENABLE([ltdl-install],
7881 >    [AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
7882 >
7883 > case ,${enable_ltdl_install},${enable_ltdl_convenience} in
7884 >  *yes*) ;;
7885 >  *) enable_ltdl_convenience=yes ;;
7886 > esac
7887 >
7888 > m4_ifdef([AM_CONDITIONAL],
7889 > [AM_CONDITIONAL(INSTALL_LTDL, test x"${enable_ltdl_install-no}" != xno)
7890 > AM_CONDITIONAL(CONVENIENCE_LTDL, test x"${enable_ltdl_convenience-no}" != xno)])
7891 > ])# _LT_ENABLE_INSTALL
7892 >
7893 >
7894 > # LT_SYS_DLOPEN_DEPLIBS
7895 > # ---------------------
7896 > AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
7897 > [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7898 > AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
7899 >  [lt_cv_sys_dlopen_deplibs],
7900 >  [# PORTME does your system automatically load deplibs for dlopen?
7901 >  # or its logical equivalent (e.g. shl_load for HP-UX < 11)
7902 >  # For now, we just catch OSes we know something about -- in the
7903 >  # future, we'll try test this programmatically.
7904 >  lt_cv_sys_dlopen_deplibs=unknown
7905 >  case $host_os in
7906 >  aix3*|aix4.1.*|aix4.2.*)
7907 >    # Unknown whether this is true for these versions of AIX, but
7908 >    # we want this `case' here to explicitly catch those versions.
7909 >    lt_cv_sys_dlopen_deplibs=unknown
7910 >    ;;
7911 >  aix[[4-9]]*)
7912 >    lt_cv_sys_dlopen_deplibs=yes
7913 >    ;;
7914 >  amigaos*)
7915 >    case $host_cpu in
7916 >    powerpc)
7917 >      lt_cv_sys_dlopen_deplibs=no
7918 >      ;;
7919 >    esac
7920 >    ;;
7921 >  darwin*)
7922 >    # Assuming the user has installed a libdl from somewhere, this is true
7923 >    # If you are looking for one http://www.opendarwin.org/projects/dlcompat
7924 >    lt_cv_sys_dlopen_deplibs=yes
7925 >    ;;
7926 >  freebsd* | dragonfly*)
7927 >    lt_cv_sys_dlopen_deplibs=yes
7928 >    ;;
7929 >  gnu* | linux* | k*bsd*-gnu)
7930 >    # GNU and its variants, using gnu ld.so (Glibc)
7931 >    lt_cv_sys_dlopen_deplibs=yes
7932 >    ;;
7933 >  hpux10*|hpux11*)
7934 >    lt_cv_sys_dlopen_deplibs=yes
7935 >    ;;
7936 >  interix*)
7937 >    lt_cv_sys_dlopen_deplibs=yes
7938 >    ;;
7939 >  irix[[12345]]*|irix6.[[01]]*)
7940 >    # Catch all versions of IRIX before 6.2, and indicate that we don't
7941 >    # know how it worked for any of those versions.
7942 >    lt_cv_sys_dlopen_deplibs=unknown
7943 >    ;;
7944 >  irix*)
7945 >    # The case above catches anything before 6.2, and it's known that
7946 >    # at 6.2 and later dlopen does load deplibs.
7947 >    lt_cv_sys_dlopen_deplibs=yes
7948 >    ;;
7949 >  netbsd*)
7950 >    lt_cv_sys_dlopen_deplibs=yes
7951 >    ;;
7952 >  openbsd*)
7953 >    lt_cv_sys_dlopen_deplibs=yes
7954 >    ;;
7955 >  osf[[1234]]*)
7956 >    # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
7957 >    # it did *not* use an RPATH in a shared library to find objects the
7958 >    # library depends on, so we explicitly say `no'.
7959 >    lt_cv_sys_dlopen_deplibs=no
7960 >    ;;
7961 >  osf5.0|osf5.0a|osf5.1)
7962 >    # dlopen *does* load deplibs and with the right loader patch applied
7963 >    # it even uses RPATH in a shared library to search for shared objects
7964 >    # that the library depends on, but there's no easy way to know if that
7965 >    # patch is installed.  Since this is the case, all we can really
7966 >    # say is unknown -- it depends on the patch being installed.  If
7967 >    # it is, this changes to `yes'.  Without it, it would be `no'.
7968 >    lt_cv_sys_dlopen_deplibs=unknown
7969 >    ;;
7970 >  osf*)
7971 >    # the two cases above should catch all versions of osf <= 5.1.  Read
7972 >    # the comments above for what we know about them.
7973 >    # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
7974 >    # is used to find them so we can finally say `yes'.
7975 >    lt_cv_sys_dlopen_deplibs=yes
7976 >    ;;
7977 >  qnx*)
7978 >    lt_cv_sys_dlopen_deplibs=yes
7979 >    ;;
7980 >  solaris*)
7981 >    lt_cv_sys_dlopen_deplibs=yes
7982 >    ;;
7983 >  sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7984 >    libltdl_cv_sys_dlopen_deplibs=yes
7985 >    ;;
7986 >  esac
7987 >  ])
7988 > if test "$lt_cv_sys_dlopen_deplibs" != yes; then
7989 > AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
7990 >    [Define if the OS needs help to load dependent libraries for dlopen().])
7991 > fi
7992 > ])# LT_SYS_DLOPEN_DEPLIBS
7993 >
7994 > # Old name:
7995 > AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
7996 > dnl aclocal-1.4 backwards compatibility:
7997 > dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
7998 >
7999 >
8000 > # LT_SYS_MODULE_EXT
8001 > # -----------------
8002 > AC_DEFUN([LT_SYS_MODULE_EXT],
8003 > [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8004 > AC_CACHE_CHECK([which extension is used for runtime loadable modules],
8005 >  [libltdl_cv_shlibext],
8006 > [
8007 > module=yes
8008 > eval libltdl_cv_shlibext=$shrext_cmds
8009 >  ])
8010 > if test -n "$libltdl_cv_shlibext"; then
8011 >  m4_pattern_allow([LT_MODULE_EXT])dnl
8012 >  AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
8013 >    [Define to the extension used for runtime loadable modules, say, ".so".])
8014 > fi
8015 > ])# LT_SYS_MODULE_EXT
8016 >
8017 > # Old name:
8018 > AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
8019 > dnl aclocal-1.4 backwards compatibility:
8020 > dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
8021 >
8022 >
8023 > # LT_SYS_MODULE_PATH
8024 > # ------------------
8025 > AC_DEFUN([LT_SYS_MODULE_PATH],
8026 > [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8027 > AC_CACHE_CHECK([which variable specifies run-time module search path],
8028 >  [lt_cv_module_path_var], [lt_cv_module_path_var="$shlibpath_var"])
8029 > if test -n "$lt_cv_module_path_var"; then
8030 >  m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
8031 >  AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
8032 >    [Define to the name of the environment variable that determines the run-time module search path.])
8033 > fi
8034 > ])# LT_SYS_MODULE_PATH
8035 >
8036 > # Old name:
8037 > AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
8038 > dnl aclocal-1.4 backwards compatibility:
8039 > dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
8040 >
8041 >
8042 > # LT_SYS_DLSEARCH_PATH
8043 > # --------------------
8044 > AC_DEFUN([LT_SYS_DLSEARCH_PATH],
8045 > [m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
8046 > AC_CACHE_CHECK([for the default library search path],
8047 >  [lt_cv_sys_dlsearch_path],
8048 >  [lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"])
8049 > if test -n "$lt_cv_sys_dlsearch_path"; then
8050 >  sys_dlsearch_path=
8051 >  for dir in $lt_cv_sys_dlsearch_path; do
8052 >    if test -z "$sys_dlsearch_path"; then
8053 >      sys_dlsearch_path="$dir"
8054 >    else
8055 >      sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
8056 >    fi
8057 >  done
8058 >  m4_pattern_allow([LT_DLSEARCH_PATH])dnl
8059 >  AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
8060 >    [Define to the system default library search path.])
8061 > fi
8062 > ])# LT_SYS_DLSEARCH_PATH
8063 >
8064 > # Old name:
8065 > AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
8066 > dnl aclocal-1.4 backwards compatibility:
8067 > dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
8068 >
8069 >
8070 > # _LT_CHECK_DLPREOPEN
8071 > # -------------------
8072 > m4_defun([_LT_CHECK_DLPREOPEN],
8073 > [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8074 > AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
8075 >  [libltdl_cv_preloaded_symbols],
8076 >  [if test -n "$lt_cv_sys_global_symbol_pipe"; then
8077 >    libltdl_cv_preloaded_symbols=yes
8078 >  else
8079 >    libltdl_cv_preloaded_symbols=no
8080 >  fi
8081 >  ])
8082 > if test x"$libltdl_cv_preloaded_symbols" = xyes; then
8083 >  AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
8084 >    [Define if libtool can extract symbol lists from object files.])
8085 > fi
8086 > ])# _LT_CHECK_DLPREOPEN
8087 >
8088 >
8089 > # LT_LIB_DLLOAD
8090 > # -------------
8091 > AC_DEFUN([LT_LIB_DLLOAD],
8092 > [m4_pattern_allow([^LT_DLLOADERS$])
8093 > LT_DLLOADERS=
8094 > AC_SUBST([LT_DLLOADERS])
8095 >
8096 > AC_LANG_PUSH([C])
8097 >
8098 > LIBADD_DLOPEN=
8099 > AC_SEARCH_LIBS([dlopen], [dl],
8100 >        [AC_DEFINE([HAVE_LIBDL], [1],
8101 >                   [Define if you have the libdl library or equivalent.])
8102 >        if test "$ac_cv_search_dlopen" != "none required" ; then
8103 >          LIBADD_DLOPEN="-ldl"
8104 >        fi
8105 >        libltdl_cv_lib_dl_dlopen="yes"
8106 >        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
8107 >    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
8108 > #  include <dlfcn.h>
8109 > #endif
8110 >    ]], [[dlopen(0, 0);]])],
8111 >            [AC_DEFINE([HAVE_LIBDL], [1],
8112 >                       [Define if you have the libdl library or equivalent.])
8113 >            libltdl_cv_func_dlopen="yes"
8114 >            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
8115 >        [AC_CHECK_LIB([svld], [dlopen],
8116 >                [AC_DEFINE([HAVE_LIBDL], [1],
8117 >                         [Define if you have the libdl library or equivalent.])
8118 >                LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
8119 >                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
8120 > if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8121 > then
8122 >  lt_save_LIBS="$LIBS"
8123 >  LIBS="$LIBS $LIBADD_DLOPEN"
8124 >  AC_CHECK_FUNCS([dlerror])
8125 >  LIBS="$lt_save_LIBS"
8126 > fi
8127 > AC_SUBST([LIBADD_DLOPEN])
8128 >
8129 > LIBADD_SHL_LOAD=
8130 > AC_CHECK_FUNC([shl_load],
8131 >        [AC_DEFINE([HAVE_SHL_LOAD], [1],
8132 >                   [Define if you have the shl_load function.])
8133 >        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
8134 >    [AC_CHECK_LIB([dld], [shl_load],
8135 >            [AC_DEFINE([HAVE_SHL_LOAD], [1],
8136 >                       [Define if you have the shl_load function.])
8137 >            LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
8138 >            LIBADD_SHL_LOAD="-ldld"])])
8139 > AC_SUBST([LIBADD_SHL_LOAD])
8140 >
8141 > case $host_os in
8142 > darwin[[1567]].*)
8143 > # We only want this for pre-Mac OS X 10.4.
8144 >  AC_CHECK_FUNC([_dyld_func_lookup],
8145 >        [AC_DEFINE([HAVE_DYLD], [1],
8146 >                   [Define if you have the _dyld_func_lookup function.])
8147 >        LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
8148 >  ;;
8149 > beos*)
8150 >  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
8151 >  ;;
8152 > cygwin* | mingw* | os2* | pw32*)
8153 >  AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
8154 >  LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
8155 >  ;;
8156 > esac
8157 >
8158 > AC_CHECK_LIB([dld], [dld_link],
8159 >        [AC_DEFINE([HAVE_DLD], [1],
8160 >                   [Define if you have the GNU dld library.])
8161 >                LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
8162 > AC_SUBST([LIBADD_DLD_LINK])
8163 >
8164 > m4_pattern_allow([^LT_DLPREOPEN$])
8165 > LT_DLPREOPEN=
8166 > if test -n "$LT_DLLOADERS"
8167 > then
8168 >  for lt_loader in $LT_DLLOADERS; do
8169 >    LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
8170 >  done
8171 >  AC_DEFINE([HAVE_LIBDLLOADER], [1],
8172 >            [Define if libdlloader will be built on this platform])
8173 > fi
8174 > AC_SUBST([LT_DLPREOPEN])
8175 >
8176 > dnl This isn't used anymore, but set it for backwards compatibility
8177 > LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
8178 > AC_SUBST([LIBADD_DL])
8179 >
8180 > AC_LANG_POP
8181 > ])# LT_LIB_DLLOAD
8182 >
8183 > # Old name:
8184 > AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
8185 > dnl aclocal-1.4 backwards compatibility:
8186 > dnl AC_DEFUN([AC_LTDL_DLLIB], [])
8187 >
8188 >
8189 > # LT_SYS_SYMBOL_USCORE
8190 > # --------------------
8191 > # does the compiler prefix global symbols with an underscore?
8192 > AC_DEFUN([LT_SYS_SYMBOL_USCORE],
8193 > [m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8194 > AC_CACHE_CHECK([for _ prefix in compiled symbols],
8195 >  [lt_cv_sys_symbol_underscore],
8196 >  [lt_cv_sys_symbol_underscore=no
8197 >  cat > conftest.$ac_ext <<_LT_EOF
8198 > void nm_test_func(){}
8199 > int main(){nm_test_func;return 0;}
8200 > _LT_EOF
8201 >  if AC_TRY_EVAL(ac_compile); then
8202 >    # Now try to grab the symbols.
8203 >    ac_nlist=conftest.nm
8204 >    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
8205 >      # See whether the symbols have a leading underscore.
8206 >      if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8207 >        lt_cv_sys_symbol_underscore=yes
8208 >      else
8209 >        if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8210 >          :
8211 >        else
8212 >          echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
8213 >        fi
8214 >      fi
8215 >    else
8216 >      echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
8217 >    fi
8218 >  else
8219 >    echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
8220 >    cat conftest.c >&AS_MESSAGE_LOG_FD
8221 >  fi
8222 >  rm -rf conftest*
8223 >  ])
8224 >  sys_symbol_underscore=$lt_cv_sys_symbol_underscore
8225 >  AC_SUBST([sys_symbol_underscore])
8226 > ])# LT_SYS_SYMBOL_USCORE
8227 >
8228 > # Old name:
8229 > AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
8230 > dnl aclocal-1.4 backwards compatibility:
8231 > dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
8232 >
8233 >
8234 > # LT_FUNC_DLSYM_USCORE
8235 > # --------------------
8236 > AC_DEFUN([LT_FUNC_DLSYM_USCORE],
8237 > [AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
8238 > if test x"$lt_cv_sys_symbol_underscore" = xyes; then
8239 >  if test x"$libltdl_cv_func_dlopen" = xyes ||
8240 >     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8241 >        AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
8242 >          [libltdl_cv_need_uscore],
8243 >          [libltdl_cv_need_uscore=unknown
8244 >          save_LIBS="$LIBS"
8245 >          LIBS="$LIBS $LIBADD_DLOPEN"
8246 >          _LT_TRY_DLOPEN_SELF(
8247 >            [libltdl_cv_need_uscore=no], [libltdl_cv_need_uscore=yes],
8248 >            [],                          [libltdl_cv_need_uscore=cross])
8249 >          LIBS="$save_LIBS"
8250 >        ])
8251 >  fi
8252 > fi
8253 >
8254 > if test x"$libltdl_cv_need_uscore" = xyes; then
8255 >  AC_DEFINE([NEED_USCORE], [1],
8256 >    [Define if dlsym() requires a leading underscore in symbol names.])
8257 > fi
8258 > ])# LT_FUNC_DLSYM_USCORE
8259 >
8260 > # Old name:
8261 > AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
8262 > dnl aclocal-1.4 backwards compatibility:
8263 > dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
8264 >
8265 > # Helper functions for option handling.                    -*- Autoconf -*-
8266 > #
8267 > #   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8268 > #   Written by Gary V. Vaughan, 2004
8269 > #
8270 > # This file is free software; the Free Software Foundation gives
8271 > # unlimited permission to copy and/or distribute it, with or without
8272 > # modifications, as long as this notice is preserved.
8273 >
8274 > # serial 6 ltoptions.m4
8275 >
8276 > # This is to help aclocal find these macros, as it can't see m4_define.
8277 > AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8278 >
8279 >
8280 > # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8281 > # ------------------------------------------
8282 > m4_define([_LT_MANGLE_OPTION],
8283 > [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8284 >
8285 >
8286 > # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8287 > # ---------------------------------------
8288 > # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8289 > # matching handler defined, dispatch to it.  Other OPTION-NAMEs are
8290 > # saved as a flag.
8291 > m4_define([_LT_SET_OPTION],
8292 > [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8293 > m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8294 >        _LT_MANGLE_DEFUN([$1], [$2]),
8295 >    [m4_warning([Unknown $1 option `$2'])])[]dnl
8296 > ])
8297 >
8298 >
8299 > # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8300 > # ------------------------------------------------------------
8301 > # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8302 > m4_define([_LT_IF_OPTION],
8303 > [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8304 >
8305 >
8306 > # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8307 > # -------------------------------------------------------
8308 > # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8309 > # are set.
8310 > m4_define([_LT_UNLESS_OPTIONS],
8311 > [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8312 >            [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8313 >                      [m4_define([$0_found])])])[]dnl
8314 > m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8315 > ])[]dnl
8316 > ])
8317 >
8318 >
8319 > # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8320 > # ----------------------------------------
8321 > # OPTION-LIST is a space-separated list of Libtool options associated
8322 > # with MACRO-NAME.  If any OPTION has a matching handler declared with
8323 > # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8324 > # the unknown option and exit.
8325 > m4_defun([_LT_SET_OPTIONS],
8326 > [# Set options
8327 > m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8328 >    [_LT_SET_OPTION([$1], _LT_Option)])
8329 >
8330 > m4_if([$1],[LT_INIT],[
8331 >  dnl
8332 >  dnl Simply set some default values (i.e off) if boolean options were not
8333 >  dnl specified:
8334 >  _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8335 >  ])
8336 >  _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8337 >  ])
8338 >  dnl
8339 >  dnl If no reference was made to various pairs of opposing options, then
8340 >  dnl we run the default mode handler for the pair.  For example, if neither
8341 >  dnl `shared' nor `disable-shared' was passed, we enable building of shared
8342 >  dnl archives by default:
8343 >  _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8344 >  _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8345 >  _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8346 >  _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8347 >                   [_LT_ENABLE_FAST_INSTALL])
8348 >  ])
8349 > ])# _LT_SET_OPTIONS
8350 >
8351 >
8352 >
8353 > # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8354 > # -----------------------------------------
8355 > m4_define([_LT_MANGLE_DEFUN],
8356 > [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8357 >
8358 >
8359 > # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8360 > # -----------------------------------------------
8361 > m4_define([LT_OPTION_DEFINE],
8362 > [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8363 > ])# LT_OPTION_DEFINE
8364 >
8365 >
8366 > # dlopen
8367 > # ------
8368 > LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8369 > ])
8370 >
8371 > AU_DEFUN([AC_LIBTOOL_DLOPEN],
8372 > [_LT_SET_OPTION([LT_INIT], [dlopen])
8373 > AC_DIAGNOSE([obsolete],
8374 > [$0: Remove this warning and the call to _LT_SET_OPTION when you
8375 > put the `dlopen' option into LT_INIT's first parameter.])
8376 > ])
8377 >
8378 > dnl aclocal-1.4 backwards compatibility:
8379 > dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8380 >
8381 >
8382 > # win32-dll
8383 > # ---------
8384 > # Declare package support for building win32 dll's.
8385 > LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8386 > [enable_win32_dll=yes
8387 >
8388 > case $host in
8389 > *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8390 >  AC_CHECK_TOOL(AS, as, false)
8391 >  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8392 >  AC_CHECK_TOOL(OBJDUMP, objdump, false)
8393 >  ;;
8394 > esac
8395 >
8396 > test -z "$AS" && AS=as
8397 > _LT_DECL([], [AS],      [0], [Assembler program])dnl
8398 >
8399 > test -z "$DLLTOOL" && DLLTOOL=dlltool
8400 > _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8401 >
8402 > test -z "$OBJDUMP" && OBJDUMP=objdump
8403 > _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8404 > ])# win32-dll
8405 >
8406 > AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8407 > [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8408 > _LT_SET_OPTION([LT_INIT], [win32-dll])
8409 > AC_DIAGNOSE([obsolete],
8410 > [$0: Remove this warning and the call to _LT_SET_OPTION when you
8411 > put the `win32-dll' option into LT_INIT's first parameter.])
8412 > ])
8413 >
8414 > dnl aclocal-1.4 backwards compatibility:
8415 > dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8416 >
8417 >
8418 > # _LT_ENABLE_SHARED([DEFAULT])
8419 > # ----------------------------
8420 > # implement the --enable-shared flag, and supports the `shared' and
8421 > # `disable-shared' LT_INIT options.
8422 > # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8423 > m4_define([_LT_ENABLE_SHARED],
8424 > [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8425 > AC_ARG_ENABLE([shared],
8426 >    [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8427 >        [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8428 >    [p=${PACKAGE-default}
8429 >    case $enableval in
8430 >    yes) enable_shared=yes ;;
8431 >    no) enable_shared=no ;;
8432 >    *)
8433 >      enable_shared=no
8434 >      # Look at the argument we got.  We use all the common list separators.
8435 >      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8436 >      for pkg in $enableval; do
8437 >        IFS="$lt_save_ifs"
8438 >        if test "X$pkg" = "X$p"; then
8439 >          enable_shared=yes
8440 >        fi
8441 >      done
8442 >      IFS="$lt_save_ifs"
8443 >      ;;
8444 >    esac],
8445 >    [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8446 >
8447 >    _LT_DECL([build_libtool_libs], [enable_shared], [0],
8448 >        [Whether or not to build shared libraries])
8449 > ])# _LT_ENABLE_SHARED
8450 >
8451 > LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8452 > LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8453 >
8454 > # Old names:
8455 > AC_DEFUN([AC_ENABLE_SHARED],
8456 > [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8457 > ])
8458 >
8459 > AC_DEFUN([AC_DISABLE_SHARED],
8460 > [_LT_SET_OPTION([LT_INIT], [disable-shared])
8461 > ])
8462 >
8463 > AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8464 > AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8465 >
8466 > dnl aclocal-1.4 backwards compatibility:
8467 > dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8468 > dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8469 >
8470 >
8471 >
8472 > # _LT_ENABLE_STATIC([DEFAULT])
8473 > # ----------------------------
8474 > # implement the --enable-static flag, and support the `static' and
8475 > # `disable-static' LT_INIT options.
8476 > # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8477 > m4_define([_LT_ENABLE_STATIC],
8478 > [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8479 > AC_ARG_ENABLE([static],
8480 >    [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8481 >        [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8482 >    [p=${PACKAGE-default}
8483 >    case $enableval in
8484 >    yes) enable_static=yes ;;
8485 >    no) enable_static=no ;;
8486 >    *)
8487 >     enable_static=no
8488 >      # Look at the argument we got.  We use all the common list separators.
8489 >      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8490 >      for pkg in $enableval; do
8491 >        IFS="$lt_save_ifs"
8492 >        if test "X$pkg" = "X$p"; then
8493 >          enable_static=yes
8494 >        fi
8495 >      done
8496 >      IFS="$lt_save_ifs"
8497 >      ;;
8498 >    esac],
8499 >    [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8500 >
8501 >    _LT_DECL([build_old_libs], [enable_static], [0],
8502 >        [Whether or not to build static libraries])
8503 > ])# _LT_ENABLE_STATIC
8504 >
8505 > LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8506 > LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8507 >
8508 > # Old names:
8509 > AC_DEFUN([AC_ENABLE_STATIC],
8510 > [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8511 > ])
8512 >
8513 > AC_DEFUN([AC_DISABLE_STATIC],
8514 > [_LT_SET_OPTION([LT_INIT], [disable-static])
8515 > ])
8516 >
8517 > AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8518 > AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8519 >
8520 > dnl aclocal-1.4 backwards compatibility:
8521 > dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8522 > dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8523 >
8524 >
8525 >
8526 > # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8527 > # ----------------------------------
8528 > # implement the --enable-fast-install flag, and support the `fast-install'
8529 > # and `disable-fast-install' LT_INIT options.
8530 > # DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
8531 > m4_define([_LT_ENABLE_FAST_INSTALL],
8532 > [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8533 > AC_ARG_ENABLE([fast-install],
8534 >    [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8535 >    [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8536 >    [p=${PACKAGE-default}
8537 >    case $enableval in
8538 >    yes) enable_fast_install=yes ;;
8539 >    no) enable_fast_install=no ;;
8540 >    *)
8541 >      enable_fast_install=no
8542 >      # Look at the argument we got.  We use all the common list separators.
8543 >      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8544 >      for pkg in $enableval; do
8545 >        IFS="$lt_save_ifs"
8546 >        if test "X$pkg" = "X$p"; then
8547 >          enable_fast_install=yes
8548 >        fi
8549 >      done
8550 >      IFS="$lt_save_ifs"
8551 >      ;;
8552 >    esac],
8553 >    [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8554 >
8555 > _LT_DECL([fast_install], [enable_fast_install], [0],
8556 >         [Whether or not to optimize for fast installation])dnl
8557 > ])# _LT_ENABLE_FAST_INSTALL
8558 >
8559 > LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8560 > LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8561 >
8562 > # Old names:
8563 > AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8564 > [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8565 > AC_DIAGNOSE([obsolete],
8566 > [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8567 > the `fast-install' option into LT_INIT's first parameter.])
8568 > ])
8569 >
8570 > AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8571 > [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8572 > AC_DIAGNOSE([obsolete],
8573 > [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8574 > the `disable-fast-install' option into LT_INIT's first parameter.])
8575 > ])
8576 >
8577 > dnl aclocal-1.4 backwards compatibility:
8578 > dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8579 > dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8580 >
8581 >
8582 > # _LT_WITH_PIC([MODE])
8583 > # --------------------
8584 > # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8585 > # LT_INIT options.
8586 > # MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
8587 > m4_define([_LT_WITH_PIC],
8588 > [AC_ARG_WITH([pic],
8589 >    [AS_HELP_STRING([--with-pic],
8590 >        [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8591 >    [pic_mode="$withval"],
8592 >    [pic_mode=default])
8593 >
8594 > test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8595 >
8596 > _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8597 > ])# _LT_WITH_PIC
8598 >
8599 > LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8600 > LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8601 >
8602 > # Old name:
8603 > AU_DEFUN([AC_LIBTOOL_PICMODE],
8604 > [_LT_SET_OPTION([LT_INIT], [pic-only])
8605 > AC_DIAGNOSE([obsolete],
8606 > [$0: Remove this warning and the call to _LT_SET_OPTION when you
8607 > put the `pic-only' option into LT_INIT's first parameter.])
8608 > ])
8609 >
8610 > dnl aclocal-1.4 backwards compatibility:
8611 > dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8612 >
8613 >
8614 > m4_define([_LTDL_MODE], [])
8615 > LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8616 >                 [m4_define([_LTDL_MODE], [nonrecursive])])
8617 > LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8618 >                 [m4_define([_LTDL_MODE], [recursive])])
8619 > LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8620 >                 [m4_define([_LTDL_MODE], [subproject])])
8621 >
8622 > m4_define([_LTDL_TYPE], [])
8623 > LT_OPTION_DEFINE([LTDL_INIT], [installable],
8624 >                 [m4_define([_LTDL_TYPE], [installable])])
8625 > LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8626 >                 [m4_define([_LTDL_TYPE], [convenience])])
8627 >
8628 > # ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
8629 > #
8630 > # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8631 > # Written by Gary V. Vaughan, 2004
8632 > #
8633 > # This file is free software; the Free Software Foundation gives
8634 > # unlimited permission to copy and/or distribute it, with or without
8635 > # modifications, as long as this notice is preserved.
8636 >
8637 > # serial 6 ltsugar.m4
8638 >
8639 > # This is to help aclocal find these macros, as it can't see m4_define.
8640 > AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8641 >
8642 >
8643 > # lt_join(SEP, ARG1, [ARG2...])
8644 > # -----------------------------
8645 > # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8646 > # associated separator.
8647 > # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8648 > # versions in m4sugar had bugs.
8649 > m4_define([lt_join],
8650 > [m4_if([$#], [1], [],
8651 >       [$#], [2], [[$2]],
8652 >       [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8653 > m4_define([_lt_join],
8654 > [m4_if([$#$2], [2], [],
8655 >       [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8656 >
8657 >
8658 > # lt_car(LIST)
8659 > # lt_cdr(LIST)
8660 > # ------------
8661 > # Manipulate m4 lists.
8662 > # These macros are necessary as long as will still need to support
8663 > # Autoconf-2.59 which quotes differently.
8664 > m4_define([lt_car], [[$1]])
8665 > m4_define([lt_cdr],
8666 > [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8667 >       [$#], 1, [],
8668 >       [m4_dquote(m4_shift($@))])])
8669 > m4_define([lt_unquote], $1)
8670 >
8671 >
8672 > # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8673 > # ------------------------------------------
8674 > # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8675 > # Note that neither SEPARATOR nor STRING are expanded; they are appended
8676 > # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8677 > # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8678 > # than defined and empty).
8679 > #
8680 > # This macro is needed until we can rely on Autoconf 2.62, since earlier
8681 > # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8682 > m4_define([lt_append],
8683 > [m4_define([$1],
8684 >           m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8685 >
8686 >
8687 >
8688 > # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8689 > # ----------------------------------------------------------
8690 > # Produce a SEP delimited list of all paired combinations of elements of
8691 > # PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
8692 > # has the form PREFIXmINFIXSUFFIXn.
8693 > # Needed until we can rely on m4_combine added in Autoconf 2.62.
8694 > m4_define([lt_combine],
8695 > [m4_if(m4_eval([$# > 3]), [1],
8696 >       [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8697 > [[m4_foreach([_Lt_prefix], [$2],
8698 >             [m4_foreach([_Lt_suffix],
8699 >                ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8700 >        [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8701 >
8702 >
8703 > # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8704 > # -----------------------------------------------------------------------
8705 > # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8706 > # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8707 > m4_define([lt_if_append_uniq],
8708 > [m4_ifdef([$1],
8709 >          [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8710 >                 [lt_append([$1], [$2], [$3])$4],
8711 >                 [$5])],
8712 >          [lt_append([$1], [$2], [$3])$4])])
8713 >
8714 >
8715 > # lt_dict_add(DICT, KEY, VALUE)
8716 > # -----------------------------
8717 > m4_define([lt_dict_add],
8718 > [m4_define([$1($2)], [$3])])
8719 >
8720 >
8721 > # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8722 > # --------------------------------------------
8723 > m4_define([lt_dict_add_subkey],
8724 > [m4_define([$1($2:$3)], [$4])])
8725 >
8726 >
8727 > # lt_dict_fetch(DICT, KEY, [SUBKEY])
8728 > # ----------------------------------
8729 > m4_define([lt_dict_fetch],
8730 > [m4_ifval([$3],
8731 >        m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8732 >    m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8733 >
8734 >
8735 > # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8736 > # -----------------------------------------------------------------
8737 > m4_define([lt_if_dict_fetch],
8738 > [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8739 >        [$5],
8740 >    [$6])])
8741 >
8742 >
8743 > # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8744 > # --------------------------------------------------------------
8745 > m4_define([lt_dict_filter],
8746 > [m4_if([$5], [], [],
8747 >  [lt_join(m4_quote(m4_default([$4], [[, ]])),
8748 >           lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8749 >                      [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8750 > ])
8751 >
8752 > # ltversion.m4 -- version numbers                       -*- Autoconf -*-
8753 > #
8754 > #   Copyright (C) 2004 Free Software Foundation, Inc.
8755 > #   Written by Scott James Remnant, 2004
8756 > #
8757 > # This file is free software; the Free Software Foundation gives
8758 > # unlimited permission to copy and/or distribute it, with or without
8759 > # modifications, as long as this notice is preserved.
8760 >
8761 > # Generated from ltversion.in.
8762 >
8763 > # serial 3012 ltversion.m4
8764 > # This file is part of GNU Libtool
8765 >
8766 > m4_define([LT_PACKAGE_VERSION], [2.2.6])
8767 > m4_define([LT_PACKAGE_REVISION], [1.3012])
8768 >
8769 > AC_DEFUN([LTVERSION_VERSION],
8770 > [macro_version='2.2.6'
8771 > macro_revision='1.3012'
8772 > _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8773 > _LT_DECL(, macro_revision, 0)
8774 > ])
8775 >
8776 > # lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
8777 > #
8778 > #   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8779 > #   Written by Scott James Remnant, 2004.
8780 > #
8781 > # This file is free software; the Free Software Foundation gives
8782 > # unlimited permission to copy and/or distribute it, with or without
8783 > # modifications, as long as this notice is preserved.
8784 >
8785 > # serial 4 lt~obsolete.m4
8786 >
8787 > # These exist entirely to fool aclocal when bootstrapping libtool.
8788 > #
8789 > # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8790 > # which have later been changed to m4_define as they aren't part of the
8791 > # exported API, or moved to Autoconf or Automake where they belong.
8792 > #
8793 > # The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
8794 > # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8795 > # using a macro with the same name in our local m4/libtool.m4 it'll
8796 > # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8797 > # and doesn't know about Autoconf macros at all.)
8798 > #
8799 > # So we provide this file, which has a silly filename so it's always
8800 > # included after everything else.  This provides aclocal with the
8801 > # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8802 > # because those macros already exist, or will be overwritten later.
8803 > # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8804 > #
8805 > # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8806 > # Yes, that means every name once taken will need to remain here until
8807 > # we give up compatibility with versions before 1.7, at which point
8808 > # we need to keep only those names which we still refer to.
8809 >
8810 > # This is to help aclocal find these macros, as it can't see m4_define.
8811 > AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8812 >
8813 > m4_ifndef([AC_LIBTOOL_LINKER_OPTION],   [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8814 > m4_ifndef([AC_PROG_EGREP],              [AC_DEFUN([AC_PROG_EGREP])])
8815 > m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8816 > m4_ifndef([_LT_AC_SHELL_INIT],          [AC_DEFUN([_LT_AC_SHELL_INIT])])
8817 > m4_ifndef([_LT_AC_SYS_LIBPATH_AIX],     [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8818 > m4_ifndef([_LT_PROG_LTMAIN],            [AC_DEFUN([_LT_PROG_LTMAIN])])
8819 > m4_ifndef([_LT_AC_TAGVAR],              [AC_DEFUN([_LT_AC_TAGVAR])])
8820 > m4_ifndef([AC_LTDL_ENABLE_INSTALL],     [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8821 > m4_ifndef([AC_LTDL_PREOPEN],            [AC_DEFUN([AC_LTDL_PREOPEN])])
8822 > m4_ifndef([_LT_AC_SYS_COMPILER],        [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8823 > m4_ifndef([_LT_AC_LOCK],                [AC_DEFUN([_LT_AC_LOCK])])
8824 > m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8825 > m4_ifndef([_LT_AC_TRY_DLOPEN_SELF],     [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8826 > m4_ifndef([AC_LIBTOOL_PROG_CC_C_O],     [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8827 > m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8828 > m4_ifndef([AC_LIBTOOL_OBJDIR],          [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8829 > m4_ifndef([AC_LTDL_OBJDIR],             [AC_DEFUN([AC_LTDL_OBJDIR])])
8830 > m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8831 > m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP],   [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8832 > m4_ifndef([AC_PATH_MAGIC],              [AC_DEFUN([AC_PATH_MAGIC])])
8833 > m4_ifndef([AC_PROG_LD_GNU],             [AC_DEFUN([AC_PROG_LD_GNU])])
8834 > m4_ifndef([AC_PROG_LD_RELOAD_FLAG],     [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8835 > m4_ifndef([AC_DEPLIBS_CHECK_METHOD],    [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8836 > m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8837 > m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8838 > m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8839 > m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS],  [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8840 > m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP],  [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8841 > m4_ifndef([LT_AC_PROG_EGREP],           [AC_DEFUN([LT_AC_PROG_EGREP])])
8842 > m4_ifndef([LT_AC_PROG_SED],             [AC_DEFUN([LT_AC_PROG_SED])])
8843 > m4_ifndef([_LT_CC_BASENAME],            [AC_DEFUN([_LT_CC_BASENAME])])
8844 > m4_ifndef([_LT_COMPILER_BOILERPLATE],   [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8845 > m4_ifndef([_LT_LINKER_BOILERPLATE],     [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8846 > m4_ifndef([_AC_PROG_LIBTOOL],           [AC_DEFUN([_AC_PROG_LIBTOOL])])
8847 > m4_ifndef([AC_LIBTOOL_SETUP],           [AC_DEFUN([AC_LIBTOOL_SETUP])])
8848 > m4_ifndef([_LT_AC_CHECK_DLFCN],         [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8849 > m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER],      [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8850 > m4_ifndef([_LT_AC_TAGCONFIG],           [AC_DEFUN([_LT_AC_TAGCONFIG])])
8851 > m4_ifndef([AC_DISABLE_FAST_INSTALL],    [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8852 > m4_ifndef([_LT_AC_LANG_CXX],            [AC_DEFUN([_LT_AC_LANG_CXX])])
8853 > m4_ifndef([_LT_AC_LANG_F77],            [AC_DEFUN([_LT_AC_LANG_F77])])
8854 > m4_ifndef([_LT_AC_LANG_GCJ],            [AC_DEFUN([_LT_AC_LANG_GCJ])])
8855 > m4_ifndef([AC_LIBTOOL_RC],              [AC_DEFUN([AC_LIBTOOL_RC])])
8856 > m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG],   [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8857 > m4_ifndef([_LT_AC_LANG_C_CONFIG],       [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8858 > m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8859 > m4_ifndef([_LT_AC_LANG_CXX_CONFIG],     [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8860 > m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8861 > m4_ifndef([_LT_AC_LANG_F77_CONFIG],     [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8862 > m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8863 > m4_ifndef([_LT_AC_LANG_GCJ_CONFIG],     [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8864 > m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG],  [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8865 > m4_ifndef([_LT_AC_LANG_RC_CONFIG],      [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8866 > m4_ifndef([AC_LIBTOOL_CONFIG],          [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8867 > m4_ifndef([_LT_AC_FILE_LTDLL_C],        [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8868 >
8869 > # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
8870   #
8871   # This file is free software; the Free Software Foundation
8872   # gives unlimited permission to copy and/or distribute it,
# Line 6667 | Line 8878 | AC_MSG_RESULT([$SED])
8878   # generated from the m4 files accompanying Automake X.Y.
8879   # (This private macro should not be called outside this file.)
8880   AC_DEFUN([AM_AUTOMAKE_VERSION],
8881 < [am__api_version='1.10'
8881 > [am__api_version='1.11'
8882   dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8883   dnl require some minimum version.  Point them to the right macro.
8884 < m4_if([$1], [1.10.1], [],
8884 > m4_if([$1], [1.11], [],
8885        [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8886   ])
8887  
# Line 6684 | Line 8895 | m4_define([_AM_AUTOCONF_VERSION], [])
8895   # AM_SET_CURRENT_AUTOMAKE_VERSION
8896   # -------------------------------
8897   # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8898 < # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
8898 > # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8899   AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8900 < [AM_AUTOMAKE_VERSION([1.10.1])dnl
8900 > [AM_AUTOMAKE_VERSION([1.11])dnl
8901   m4_ifndef([AC_AUTOCONF_VERSION],
8902    [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8903 < _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
8903 > _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8904  
8905   # AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
8906  
# Line 6746 | Line 8957 | am_aux_dir=`cd $ac_aux_dir && pwd`
8957  
8958   # AM_CONDITIONAL                                            -*- Autoconf -*-
8959  
8960 < # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
8960 > # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8961   # Free Software Foundation, Inc.
8962   #
8963   # This file is free software; the Free Software Foundation
8964   # gives unlimited permission to copy and/or distribute it,
8965   # with or without modifications, as long as this notice is preserved.
8966  
8967 < # serial 8
8967 > # serial 9
8968  
8969   # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8970   # -------------------------------------
# Line 6766 | Line 8977 | AC_SUBST([$1_TRUE])dnl
8977   AC_SUBST([$1_FALSE])dnl
8978   _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8979   _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8980 + m4_define([_AM_COND_VALUE_$1], [$2])dnl
8981   if $2; then
8982    $1_TRUE=
8983    $1_FALSE='#'
# Line 6779 | Line 8991 | AC_CONFIG_COMMANDS_PRE(
8991   Usually this means the macro was only invoked conditionally.]])
8992   fi])])
8993  
8994 < # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
8994 > # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8995   # Free Software Foundation, Inc.
8996   #
8997   # This file is free software; the Free Software Foundation
8998   # gives unlimited permission to copy and/or distribute it,
8999   # with or without modifications, as long as this notice is preserved.
9000  
9001 < # serial 9
9001 > # serial 10
9002  
9003   # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9004   # written in clear, in which case automake, when reading aclocal.m4,
# Line 6843 | Line 9055 | AC_CACHE_CHECK([dependency style of $dep
9055    if test "$am_compiler_list" = ""; then
9056       am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9057    fi
9058 +  am__universal=false
9059 +  m4_case([$1], [CC],
9060 +    [case " $depcc " in #(
9061 +     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9062 +     esac],
9063 +    [CXX],
9064 +    [case " $depcc " in #(
9065 +     *\ -arch\ *\ -arch\ *) am__universal=true ;;
9066 +     esac])
9067 +
9068    for depmode in $am_compiler_list; do
9069      # Setup a source with many dependencies, because some compilers
9070      # like to wrap large dependency lists on column 80 (with \), and
# Line 6860 | Line 9082 | AC_CACHE_CHECK([dependency style of $dep
9082      done
9083      echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9084  
9085 +    # We check with `-c' and `-o' for the sake of the "dashmstdout"
9086 +    # mode.  It turns out that the SunPro C++ compiler does not properly
9087 +    # handle `-M -o', and we need to detect this.  Also, some Intel
9088 +    # versions had trouble with output in subdirs
9089 +    am__obj=sub/conftest.${OBJEXT-o}
9090 +    am__minus_obj="-o $am__obj"
9091      case $depmode in
9092 +    gcc)
9093 +      # This depmode causes a compiler race in universal mode.
9094 +      test "$am__universal" = false || continue
9095 +      ;;
9096      nosideeffect)
9097        # after this tag, mechanisms are not by side-effect, so they'll
9098        # only be used when explicitly requested
# Line 6870 | Line 9102 | AC_CACHE_CHECK([dependency style of $dep
9102          break
9103        fi
9104        ;;
9105 +    msvisualcpp | msvcmsys)
9106 +      # This compiler won't grok `-c -o', but also, the minuso test has
9107 +      # not run yet.  These depmodes are late enough in the game, and
9108 +      # so weak that their functioning should not be impacted.
9109 +      am__obj=conftest.${OBJEXT-o}
9110 +      am__minus_obj=
9111 +      ;;
9112      none) break ;;
9113      esac
6875    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6876    # mode.  It turns out that the SunPro C++ compiler does not properly
6877    # handle `-M -o', and we need to detect this.
9114      if depmode=$depmode \
9115 <       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9115 >       source=sub/conftest.c object=$am__obj \
9116         depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9117 <       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9117 >       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9118           >/dev/null 2>conftest.err &&
9119         grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9120         grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9121 <       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9121 >       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9122         ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9123        # icc doesn't choke on unknown options, it will just issue warnings
9124        # or remarks (even with -Werror).  So we grep stderr for any message
# Line 6939 | Line 9175 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9175  
9176   # Generate code to set up dependency tracking.              -*- Autoconf -*-
9177  
9178 < # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
9178 > # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9179   # Free Software Foundation, Inc.
9180   #
9181   # This file is free software; the Free Software Foundation
9182   # gives unlimited permission to copy and/or distribute it,
9183   # with or without modifications, as long as this notice is preserved.
9184  
9185 < #serial 3
9185 > #serial 5
9186  
9187   # _AM_OUTPUT_DEPENDENCY_COMMANDS
9188   # ------------------------------
9189   AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9190 < [for mf in $CONFIG_FILES; do
9191 <  # Strip MF so we end up with the name of the file.
9192 <  mf=`echo "$mf" | sed -e 's/:.*$//'`
9193 <  # Check whether this is an Automake generated Makefile or not.
9194 <  # We used to match only the files named `Makefile.in', but
9195 <  # some people rename them; so instead we look at the file content.
9196 <  # Grep'ing the first line is not enough: some people post-process
9197 <  # each Makefile.in and add a new line on top of each file to say so.
9198 <  # Grep'ing the whole file is not good either: AIX grep has a line
9199 <  # limit of 2048, but all sed's we know have understand at least 4000.
9200 <  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9201 <    dirpart=`AS_DIRNAME("$mf")`
9202 <  else
9203 <    continue
9204 <  fi
9205 <  # Extract the definition of DEPDIR, am__include, and am__quote
9206 <  # from the Makefile without running `make'.
9207 <  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9208 <  test -z "$DEPDIR" && continue
9209 <  am__include=`sed -n 's/^am__include = //p' < "$mf"`
9210 <  test -z "am__include" && continue
9211 <  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9212 <  # When using ansi2knr, U may be empty or an underscore; expand it
9213 <  U=`sed -n 's/^U = //p' < "$mf"`
9214 <  # Find all dependency output files, they are included files with
9215 <  # $(DEPDIR) in their names.  We invoke sed twice because it is the
9216 <  # simplest approach to changing $(DEPDIR) to its actual value in the
9217 <  # expansion.
9218 <  for file in `sed -n "
9219 <    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9220 <       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9221 <    # Make sure the directory exists.
9222 <    test -f "$dirpart/$file" && continue
9223 <    fdir=`AS_DIRNAME(["$file"])`
9224 <    AS_MKDIR_P([$dirpart/$fdir])
9225 <    # echo "creating $dirpart/$file"
9226 <    echo '# dummy' > "$dirpart/$file"
9190 > [{
9191 >  # Autoconf 2.62 quotes --file arguments for eval, but not when files
9192 >  # are listed without --file.  Let's play safe and only enable the eval
9193 >  # if we detect the quoting.
9194 >  case $CONFIG_FILES in
9195 >  *\'*) eval set x "$CONFIG_FILES" ;;
9196 >  *)   set x $CONFIG_FILES ;;
9197 >  esac
9198 >  shift
9199 >  for mf
9200 >  do
9201 >    # Strip MF so we end up with the name of the file.
9202 >    mf=`echo "$mf" | sed -e 's/:.*$//'`
9203 >    # Check whether this is an Automake generated Makefile or not.
9204 >    # We used to match only the files named `Makefile.in', but
9205 >    # some people rename them; so instead we look at the file content.
9206 >    # Grep'ing the first line is not enough: some people post-process
9207 >    # each Makefile.in and add a new line on top of each file to say so.
9208 >    # Grep'ing the whole file is not good either: AIX grep has a line
9209 >    # limit of 2048, but all sed's we know have understand at least 4000.
9210 >    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9211 >      dirpart=`AS_DIRNAME("$mf")`
9212 >    else
9213 >      continue
9214 >    fi
9215 >    # Extract the definition of DEPDIR, am__include, and am__quote
9216 >    # from the Makefile without running `make'.
9217 >    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9218 >    test -z "$DEPDIR" && continue
9219 >    am__include=`sed -n 's/^am__include = //p' < "$mf"`
9220 >    test -z "am__include" && continue
9221 >    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9222 >    # When using ansi2knr, U may be empty or an underscore; expand it
9223 >    U=`sed -n 's/^U = //p' < "$mf"`
9224 >    # Find all dependency output files, they are included files with
9225 >    # $(DEPDIR) in their names.  We invoke sed twice because it is the
9226 >    # simplest approach to changing $(DEPDIR) to its actual value in the
9227 >    # expansion.
9228 >    for file in `sed -n "
9229 >      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9230 >         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9231 >      # Make sure the directory exists.
9232 >      test -f "$dirpart/$file" && continue
9233 >      fdir=`AS_DIRNAME(["$file"])`
9234 >      AS_MKDIR_P([$dirpart/$fdir])
9235 >      # echo "creating $dirpart/$file"
9236 >      echo '# dummy' > "$dirpart/$file"
9237 >    done
9238    done
9239 < done
9239 > }
9240   ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9241  
9242  
# Line 7009 | Line 9256 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS]
9256   # Do all the work for Automake.                             -*- Autoconf -*-
9257  
9258   # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9259 < # 2005, 2006, 2008 Free Software Foundation, Inc.
9259 > # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9260   #
9261   # This file is free software; the Free Software Foundation
9262   # gives unlimited permission to copy and/or distribute it,
9263   # with or without modifications, as long as this notice is preserved.
9264  
9265 < # serial 13
9265 > # serial 16
9266  
9267   # This macro actually does too much.  Some checks are only needed if
9268   # your package does certain things.  But this isn't really a big deal.
# Line 7032 | Line 9279 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS]
9279   # arguments mandatory, and then we can depend on a new Autoconf
9280   # release and drop the old call support.
9281   AC_DEFUN([AM_INIT_AUTOMAKE],
9282 < [AC_PREREQ([2.60])dnl
9282 > [AC_PREREQ([2.62])dnl
9283   dnl Autoconf wants to disallow AM_ names.  We explicitly allow
9284   dnl the ones we care about.
9285   m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
# Line 7083 | Line 9330 | AM_MISSING_PROG(AUTOCONF, autoconf)
9330   AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9331   AM_MISSING_PROG(AUTOHEADER, autoheader)
9332   AM_MISSING_PROG(MAKEINFO, makeinfo)
9333 < AM_PROG_INSTALL_SH
9334 < AM_PROG_INSTALL_STRIP
9333 > AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9334 > AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9335   AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9336   # We need awk for the "check" target.  The system "awk" is bad on
9337   # some platforms.
# Line 7092 | Line 9339 | AC_REQUIRE([AC_PROG_AWK])dnl
9339   AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9340   AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9341   _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9342 <              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9343 <                             [_AM_PROG_TAR([v7])])])
9342 >              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9343 >                             [_AM_PROG_TAR([v7])])])
9344   _AM_IF_OPTION([no-dependencies],,
9345   [AC_PROVIDE_IFELSE([AC_PROG_CC],
9346 <                  [_AM_DEPENDENCIES(CC)],
9347 <                  [define([AC_PROG_CC],
9348 <                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9346 >                  [_AM_DEPENDENCIES(CC)],
9347 >                  [define([AC_PROG_CC],
9348 >                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9349   AC_PROVIDE_IFELSE([AC_PROG_CXX],
9350 <                  [_AM_DEPENDENCIES(CXX)],
9351 <                  [define([AC_PROG_CXX],
9352 <                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9350 >                  [_AM_DEPENDENCIES(CXX)],
9351 >                  [define([AC_PROG_CXX],
9352 >                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9353   AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9354 <                  [_AM_DEPENDENCIES(OBJC)],
9355 <                  [define([AC_PROG_OBJC],
9356 <                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9354 >                  [_AM_DEPENDENCIES(OBJC)],
9355 >                  [define([AC_PROG_OBJC],
9356 >                          defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9357   ])
9358 + _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9359 + dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9360 + dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen.  This macro
9361 + dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9362 + AC_CONFIG_COMMANDS_PRE(dnl
9363 + [m4_provide_if([_AM_COMPILER_EXEEXT],
9364 +  [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9365   ])
9366  
9367 + dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion.  Do not
9368 + dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9369 + dnl mangled by Autoconf and run in a shell conditional statement.
9370 + m4_define([_AC_COMPILER_EXEEXT],
9371 + m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9372 +
9373  
9374   # When config.status generates a header, we must update the stamp-h file.
9375   # This file resides in the same directory as the config header
# Line 7132 | Line 9392 | for _am_header in $config_headers :; do
9392   done
9393   echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9394  
9395 < # Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
9395 > # Copyright (C) 2001, 2003, 2005, 2008  Free Software Foundation, Inc.
9396   #
9397   # This file is free software; the Free Software Foundation
9398   # gives unlimited permission to copy and/or distribute it,
# Line 7143 | Line 9403 | echo "timestamp for $_am_arg" >`AS_DIRNA
9403   # Define $install_sh.
9404   AC_DEFUN([AM_PROG_INSTALL_SH],
9405   [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9406 < install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
9406 > if test x"${install_sh}" != xset; then
9407 >  case $am_aux_dir in
9408 >  *\ * | *\     *)
9409 >    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9410 >  *)
9411 >    install_sh="\${SHELL} $am_aux_dir/install-sh"
9412 >  esac
9413 > fi
9414   AC_SUBST(install_sh)])
9415  
9416   # Copyright (C) 2003, 2005  Free Software Foundation, Inc.
# Line 7191 | Line 9458 | fi])
9458   # Add --enable-maintainer-mode option to configure.         -*- Autoconf -*-
9459   # From Jim Meyering
9460  
9461 < # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
9461 > # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9462   # Free Software Foundation, Inc.
9463   #
9464   # This file is free software; the Free Software Foundation
9465   # gives unlimited permission to copy and/or distribute it,
9466   # with or without modifications, as long as this notice is preserved.
9467  
9468 < # serial 4
9468 > # serial 5
9469  
9470 + # AM_MAINTAINER_MODE([DEFAULT-MODE])
9471 + # ----------------------------------
9472 + # Control maintainer-specific portions of Makefiles.
9473 + # Default is to disable them, unless `enable' is passed literally.
9474 + # For symmetry, `disable' may be passed as well.  Anyway, the user
9475 + # can override the default with the --enable/--disable switch.
9476   AC_DEFUN([AM_MAINTAINER_MODE],
9477 < [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9478 <  dnl maintainer-mode is disabled by default
9479 <  AC_ARG_ENABLE(maintainer-mode,
9480 < [  --enable-maintainer-mode  enable make rules and dependencies not useful
9477 > [m4_case(m4_default([$1], [disable]),
9478 >       [enable], [m4_define([am_maintainer_other], [disable])],
9479 >       [disable], [m4_define([am_maintainer_other], [enable])],
9480 >       [m4_define([am_maintainer_other], [enable])
9481 >        m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9482 > AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9483 >  dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9484 >  AC_ARG_ENABLE([maintainer-mode],
9485 > [  --][am_maintainer_other][-maintainer-mode  am_maintainer_other make rules and dependencies not useful
9486                            (and sometimes confusing) to the casual installer],
9487 <      USE_MAINTAINER_MODE=$enableval,
9488 <      USE_MAINTAINER_MODE=no)
9487 >      [USE_MAINTAINER_MODE=$enableval],
9488 >      [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9489    AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9490 <  AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
9490 >  AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9491    MAINT=$MAINTAINER_MODE_TRUE
9492 <  AC_SUBST(MAINT)dnl
9492 >  AC_SUBST([MAINT])dnl
9493   ]
9494   )
9495  
# Line 7219 | Line 9497 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINT
9497  
9498   # Check to see how 'make' treats includes.                  -*- Autoconf -*-
9499  
9500 < # Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9500 > # Copyright (C) 2001, 2002, 2003, 2005, 2009  Free Software Foundation, Inc.
9501   #
9502   # This file is free software; the Free Software Foundation
9503   # gives unlimited permission to copy and/or distribute it,
9504   # with or without modifications, as long as this notice is preserved.
9505  
9506 < # serial 3
9506 > # serial 4
9507  
9508   # AM_MAKE_INCLUDE()
9509   # -----------------
# Line 7234 | Line 9512 | AC_DEFUN([AM_MAKE_INCLUDE],
9512   [am_make=${MAKE-make}
9513   cat > confinc << 'END'
9514   am__doit:
9515 <        @echo done
9515 >        @echo this is the am__doit target
9516   .PHONY: am__doit
9517   END
9518   # If we don't find an include directive, just comment out the code.
# Line 7244 | Line 9522 | am__quote=
9522   _am_result=none
9523   # First try GNU make style include.
9524   echo "include confinc" > confmf
9525 < # We grep out `Entering directory' and `Leaving directory'
9526 < # messages which can occur if `w' ends up in MAKEFLAGS.
9527 < # In particular we don't look at `^make:' because GNU make might
9528 < # be invoked under some other name (usually "gmake"), in which
9529 < # case it prints its new name instead of `make'.
9530 < if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9531 <   am__include=include
9532 <   am__quote=
7255 <   _am_result=GNU
7256 < fi
9525 > # Ignore all kinds of additional output from `make'.
9526 > case `$am_make -s -f confmf 2> /dev/null` in #(
9527 > *the\ am__doit\ target*)
9528 >  am__include=include
9529 >  am__quote=
9530 >  _am_result=GNU
9531 >  ;;
9532 > esac
9533   # Now try BSD make style include.
9534   if test "$am__include" = "#"; then
9535     echo '.include "confinc"' > confmf
9536 <   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9537 <      am__include=.include
9538 <      am__quote="\""
9539 <      _am_result=BSD
9540 <   fi
9536 >   case `$am_make -s -f confmf 2> /dev/null` in #(
9537 >   *the\ am__doit\ target*)
9538 >     am__include=.include
9539 >     am__quote="\""
9540 >     _am_result=BSD
9541 >     ;;
9542 >   esac
9543   fi
9544   AC_SUBST([am__include])
9545   AC_SUBST([am__quote])
# Line 7271 | Line 9549 | rm -f confinc confmf
9549  
9550   # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
9551  
9552 < # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
9552 > # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9553   # Free Software Foundation, Inc.
9554   #
9555   # This file is free software; the Free Software Foundation
9556   # gives unlimited permission to copy and/or distribute it,
9557   # with or without modifications, as long as this notice is preserved.
9558  
9559 < # serial 5
9559 > # serial 6
9560  
9561   # AM_MISSING_PROG(NAME, PROGRAM)
9562   # ------------------------------
# Line 7295 | Line 9573 | AC_SUBST($1)])
9573   AC_DEFUN([AM_MISSING_HAS_RUN],
9574   [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9575   AC_REQUIRE_AUX_FILE([missing])dnl
9576 < test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9576 > if test x"${MISSING+set}" != xset; then
9577 >  case $am_aux_dir in
9578 >  *\ * | *\     *)
9579 >    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9580 >  *)
9581 >    MISSING="\${SHELL} $am_aux_dir/missing" ;;
9582 >  esac
9583 > fi
9584   # Use eval to expand $SHELL
9585   if eval "$MISSING --run true"; then
9586    am_missing_run="$MISSING --run "
# Line 7333 | Line 9618 | esac
9618  
9619   # Helper functions for option handling.                     -*- Autoconf -*-
9620  
9621 < # Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
9621 > # Copyright (C) 2001, 2002, 2003, 2005, 2008  Free Software Foundation, Inc.
9622   #
9623   # This file is free software; the Free Software Foundation
9624   # gives unlimited permission to copy and/or distribute it,
9625   # with or without modifications, as long as this notice is preserved.
9626  
9627 < # serial 3
9627 > # serial 4
9628  
9629   # _AM_MANGLE_OPTION(NAME)
9630   # -----------------------
# Line 7356 | Line 9641 | AC_DEFUN([_AM_SET_OPTION],
9641   # ----------------------------------
9642   # OPTIONS is a space-separated list of Automake options.
9643   AC_DEFUN([_AM_SET_OPTIONS],
9644 < [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9644 > [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9645  
9646   # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9647   # -------------------------------------------
# Line 7366 | Line 9651 | AC_DEFUN([_AM_IF_OPTION],
9651  
9652   # Check to make sure that the build environment is sane.    -*- Autoconf -*-
9653  
9654 < # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9654 > # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9655   # Free Software Foundation, Inc.
9656   #
9657   # This file is free software; the Free Software Foundation
9658   # gives unlimited permission to copy and/or distribute it,
9659   # with or without modifications, as long as this notice is preserved.
9660  
9661 < # serial 4
9661 > # serial 5
9662  
9663   # AM_SANITY_CHECK
9664   # ---------------
# Line 7382 | Line 9667 | AC_DEFUN([AM_SANITY_CHECK],
9667   # Just in case
9668   sleep 1
9669   echo timestamp > conftest.file
9670 + # Reject unsafe characters in $srcdir or the absolute working directory
9671 + # name.  Accept space and tab only in the latter.
9672 + am_lf='
9673 + '
9674 + case `pwd` in
9675 +  *[[\\\"\#\$\&\'\`$am_lf]]*)
9676 +    AC_MSG_ERROR([unsafe absolute working directory name]);;
9677 + esac
9678 + case $srcdir in
9679 +  *[[\\\"\#\$\&\'\`$am_lf\ \    ]]*)
9680 +    AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9681 + esac
9682 +
9683   # Do `set' in a subshell so we don't clobber the current shell's
9684   # arguments.  Must try -L first in case configure is actually a
9685   # symlink; some systems play weird games with the mod time of symlinks
9686   # (eg FreeBSD returns the mod time of the symlink's containing
9687   # directory).
9688   if (
9689 <   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
9689 >   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9690     if test "$[*]" = "X"; then
9691        # -L didn't work.
9692 <      set X `ls -t $srcdir/configure conftest.file`
9692 >      set X `ls -t "$srcdir/configure" conftest.file`
9693     fi
9694     rm -f conftest.file
9695     if test "$[*]" != "X $srcdir/configure conftest.file" \
# Line 7444 | Line 9742 | fi
9742   INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9743   AC_SUBST([INSTALL_STRIP_PROGRAM])])
9744  
9745 < # Copyright (C) 2006  Free Software Foundation, Inc.
9745 > # Copyright (C) 2006, 2008  Free Software Foundation, Inc.
9746   #
9747   # This file is free software; the Free Software Foundation
9748   # gives unlimited permission to copy and/or distribute it,
9749   # with or without modifications, as long as this notice is preserved.
9750  
9751 + # serial 2
9752 +
9753   # _AM_SUBST_NOTMAKE(VARIABLE)
9754   # ---------------------------
9755   # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9756   # This macro is traced by Automake.
9757   AC_DEFUN([_AM_SUBST_NOTMAKE])
9758  
9759 + # AM_SUBST_NOTMAKE(VARIABLE)
9760 + # ---------------------------
9761 + # Public sister of _AM_SUBST_NOTMAKE.
9762 + AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9763 +
9764   # Check how to create a tarball.                            -*- Autoconf -*-
9765  
9766   # Copyright (C) 2004, 2005  Free Software Foundation, Inc.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines