libs/libiconv: update to version 1.11.1
[openwrt/svn-archive/archive.git] / libs / libiconv / patches / 101-autotools.patch
1 Index: libiconv-1.12/libcharset/configure.ac
2 ===================================================================
3 --- libiconv-1.12.orig/libcharset/configure.ac 2007-03-05 01:56:23.000000000 +0100
4 +++ libiconv-1.12/libcharset/configure.ac 2008-06-06 22:59:25.487260530 +0200
5 @@ -16,17 +16,17 @@
6 dnl write to the Free Software Foundation, Inc., 51 Franklin Street,
7 dnl Fifth Floor, Boston, MA 02110-1301, USA.
8
9 -AC_PREREQ(2.13)
10 +AC_PREREQ(2.61)
11 +AC_INIT([libcharset],[1.4] )
12 +AC_CONFIG_SRCDIR([lib/localcharset.c])
13
14 -PACKAGE=libcharset
15 -VERSION=1.4
16 -
17 -AC_INIT(lib/localcharset.c)
18 AC_CONFIG_AUX_DIR(build-aux)
19 AC_CONFIG_HEADER(config.h)
20 AC_PROG_MAKE_SET
21 -AC_SUBST(PACKAGE)
22 -AC_SUBST(VERSION)
23 +dnl AC_SUBST(PACKAGE)
24 +dnl AC_SUBST(VERSION)
25 +
26 +AC_CONFIG_MACRO_DIR([m4])
27
28 dnl checks for basic programs
29
30 Index: libiconv-1.12/configure.ac
31 ===================================================================
32 --- libiconv-1.12.orig/configure.ac 2007-10-24 01:32:52.000000000 +0200
33 +++ libiconv-1.12/configure.ac 2008-06-06 22:59:25.487260530 +0200
34 @@ -24,6 +24,8 @@
35 AC_CONFIG_HEADERS(config.h lib/config.h)
36 AC_PROG_MAKE_SET
37
38 +AC_CONFIG_MACRO_DIR([m4])
39 +
40 dnl checks for basic programs
41
42 AC_PROG_CC
43 Index: libiconv-1.12/libcharset/m4/libtool.m4
44 ===================================================================
45 --- libiconv-1.12.orig/libcharset/m4/libtool.m4 2007-10-27 02:46:10.000000000 +0200
46 +++ libiconv-1.12/libcharset/m4/libtool.m4 2008-06-06 23:00:06.407256379 +0200
47 @@ -1,107 +1,186 @@
48 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
49 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
50 -## Free Software Foundation, Inc.
51 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
52 -##
53 -## This file is free software; the Free Software Foundation gives
54 -## unlimited permission to copy and/or distribute it, with or without
55 -## modifications, as long as this notice is preserved.
56 -
57 -# serial 48 AC_PROG_LIBTOOL
58 -
59 -
60 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
61 -# -----------------------------------------------------------
62 -# If this macro is not defined by Autoconf, define it here.
63 -m4_ifdef([AC_PROVIDE_IFELSE],
64 - [],
65 - [m4_define([AC_PROVIDE_IFELSE],
66 - [m4_ifdef([AC_PROVIDE_$1],
67 - [$2], [$3])])])
68 +#
69 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
70 +# 2006, 2007, 2008 Free Software Foundation, Inc.
71 +# Written by Gordon Matzigkeit, 1996
72 +#
73 +# This file is free software; the Free Software Foundation gives
74 +# unlimited permission to copy and/or distribute it, with or without
75 +# modifications, as long as this notice is preserved.
76 +
77 +m4_define([_LT_COPYING], [dnl
78 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
79 +# 2006, 2007, 2008 Free Software Foundation, Inc.
80 +# Written by Gordon Matzigkeit, 1996
81 +#
82 +# This file is part of GNU Libtool.
83 +#
84 +# GNU Libtool is free software; you can redistribute it and/or
85 +# modify it under the terms of the GNU General Public License as
86 +# published by the Free Software Foundation; either version 2 of
87 +# the License, or (at your option) any later version.
88 +#
89 +# As a special exception to the GNU General Public License,
90 +# if you distribute this file as part of a program or library that
91 +# is built using GNU Libtool, you may include this file under the
92 +# same distribution terms that you use for the rest of that program.
93 +#
94 +# GNU Libtool is distributed in the hope that it will be useful,
95 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
96 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
97 +# GNU General Public License for more details.
98 +#
99 +# You should have received a copy of the GNU General Public License
100 +# along with GNU Libtool; see the file COPYING. If not, a copy
101 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
102 +# obtained by writing to the Free Software Foundation, Inc.,
103 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
104 +])
105
106 +# serial 56 LT_INIT
107
108 -# AC_PROG_LIBTOOL
109 -# ---------------
110 -AC_DEFUN([AC_PROG_LIBTOOL],
111 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
112 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
113 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
114 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
115 - [AC_LIBTOOL_CXX],
116 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
117 - ])])
118 -dnl And a similar setup for Fortran 77 support
119 - AC_PROVIDE_IFELSE([AC_PROG_F77],
120 - [AC_LIBTOOL_F77],
121 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
122 -])])
123 -
124 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
125 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
126 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
127 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
128 - [AC_LIBTOOL_GCJ],
129 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
130 - [AC_LIBTOOL_GCJ],
131 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
132 - [AC_LIBTOOL_GCJ],
133 - [ifdef([AC_PROG_GCJ],
134 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
135 - ifdef([A][M_PROG_GCJ],
136 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
137 - ifdef([LT_AC_PROG_GCJ],
138 - [define([LT_AC_PROG_GCJ],
139 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
140 -])])# AC_PROG_LIBTOOL
141
142 +# LT_PREREQ(VERSION)
143 +# ------------------
144 +# Complain and exit if this libtool version is less that VERSION.
145 +m4_defun([LT_PREREQ],
146 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
147 + [m4_default([$3],
148 + [m4_fatal([Libtool version $1 or higher is required],
149 + 63)])],
150 + [$2])])
151
152 -# _AC_PROG_LIBTOOL
153 -# ----------------
154 -AC_DEFUN([_AC_PROG_LIBTOOL],
155 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
156 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
157 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
158 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
159 +
160 +# _LT_CHECK_BUILDDIR
161 +# ------------------
162 +# Complain if the absolute build directory name contains unusual characters
163 +m4_defun([_LT_CHECK_BUILDDIR],
164 +[case `pwd` in
165 + *\ * | *\ *)
166 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
167 +esac
168 +])
169 +
170 +
171 +# LT_INIT([OPTIONS])
172 +# ------------------
173 +AC_DEFUN([LT_INIT],
174 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
175 +AC_BEFORE([$0], [LT_LANG])dnl
176 +AC_BEFORE([$0], [LT_OUTPUT])dnl
177 +AC_BEFORE([$0], [LTDL_INIT])dnl
178 +m4_require([_LT_CHECK_BUILDDIR])dnl
179 +
180 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
181 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
182 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
183 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
184 +dnl unless we require an AC_DEFUNed macro:
185 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
186 +AC_REQUIRE([LTSUGAR_VERSION])dnl
187 +AC_REQUIRE([LTVERSION_VERSION])dnl
188 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
189 +m4_require([_LT_PROG_LTMAIN])dnl
190 +
191 +dnl Parse OPTIONS
192 +_LT_SET_OPTIONS([$0], [$1])
193
194 # This can be used to rebuild libtool when needed
195 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
196 +LIBTOOL_DEPS="$ltmain"
197
198 # Always use our own libtool.
199 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
200 +LIBTOOL='$(SHELL) $(top_builddir)'
201 +LIBTOOL="$LIBTOOL/$host_alias-libtool"
202 AC_SUBST(LIBTOOL)dnl
203
204 -# Prevent multiple expansion
205 -define([AC_PROG_LIBTOOL], [])
206 -])# _AC_PROG_LIBTOOL
207 +_LT_SETUP
208
209 +# Only expand once:
210 +m4_define([LT_INIT])
211 +])# LT_INIT
212 +
213 +# Old names:
214 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
215 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
216 +dnl aclocal-1.4 backwards compatibility:
217 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
218 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
219
220 -# AC_LIBTOOL_SETUP
221 -# ----------------
222 -AC_DEFUN([AC_LIBTOOL_SETUP],
223 -[AC_PREREQ(2.50)dnl
224 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
225 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
226 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
227 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
228 +
229 +# _LT_CC_BASENAME(CC)
230 +# -------------------
231 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
232 +m4_defun([_LT_CC_BASENAME],
233 +[for cc_temp in $1""; do
234 + case $cc_temp in
235 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
236 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
237 + \-*) ;;
238 + *) break;;
239 + esac
240 +done
241 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
242 +])
243 +
244 +
245 +# _LT_FILEUTILS_DEFAULTS
246 +# ----------------------
247 +# It is okay to use these file commands and assume they have been set
248 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
249 +m4_defun([_LT_FILEUTILS_DEFAULTS],
250 +[: ${CP="cp -f"}
251 +: ${MV="mv -f"}
252 +: ${RM="rm -f"}
253 +])# _LT_FILEUTILS_DEFAULTS
254 +
255 +
256 +# _LT_SETUP
257 +# ---------
258 +m4_defun([_LT_SETUP],
259 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
260 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
261 +_LT_DECL([], [host_alias], [0], [The host system])dnl
262 +_LT_DECL([], [host], [0])dnl
263 +_LT_DECL([], [host_os], [0])dnl
264 +dnl
265 +_LT_DECL([], [build_alias], [0], [The build system])dnl
266 +_LT_DECL([], [build], [0])dnl
267 +_LT_DECL([], [build_os], [0])dnl
268 +dnl
269 AC_REQUIRE([AC_PROG_CC])dnl
270 -AC_REQUIRE([AC_PROG_LD])dnl
271 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
272 -AC_REQUIRE([AC_PROG_NM])dnl
273 -
274 +AC_REQUIRE([LT_PATH_LD])dnl
275 +AC_REQUIRE([LT_PATH_NM])dnl
276 +dnl
277 AC_REQUIRE([AC_PROG_LN_S])dnl
278 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
279 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
280 -AC_REQUIRE([AC_OBJEXT])dnl
281 -AC_REQUIRE([AC_EXEEXT])dnl
282 +test -z "$LN_S" && LN_S="ln -s"
283 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
284 dnl
285 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
286 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
287 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
288 +dnl
289 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
290 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
291 +m4_require([_LT_CMD_RELOAD])dnl
292 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
293 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
294 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
295 +
296 +_LT_CONFIG_LIBTOOL_INIT([
297 +# See if we are running on zsh, and set the options which allow our
298 +# commands through without removal of \ escapes INIT.
299 +if test -n "\${ZSH_VERSION+set}" ; then
300 + setopt NO_GLOB_SUBST
301 +fi
302 +])
303 +if test -n "${ZSH_VERSION+set}" ; then
304 + setopt NO_GLOB_SUBST
305 +fi
306
307 -AC_LIBTOOL_SYS_MAX_CMD_LEN
308 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
309 -AC_LIBTOOL_OBJDIR
310 +_LT_CHECK_OBJDIR
311
312 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
313 -_LT_AC_PROG_ECHO_BACKSLASH
314 +m4_require([_LT_TAG_COMPILER])dnl
315 +_LT_PROG_ECHO_BACKSLASH
316
317 case $host_os in
318 aix3*)
319 @@ -117,6307 +196,6803 @@ esac
320
321 # Sed substitution that helps us do robust quoting. It backslashifies
322 # metacharacters that are still active within double-quoted strings.
323 -Xsed='sed -e 1s/^X//'
324 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
325 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
326
327 # Same as above, but do not quote variable references.
328 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
329 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
330
331 # Sed substitution to delay expansion of an escaped shell variable in a
332 # double_quote_subst'ed string.
333 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
334
335 +# Sed substitution to delay expansion of an escaped single quote.
336 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
337 +
338 # Sed substitution to avoid accidental globbing in evaled expressions
339 no_glob_subst='s/\*/\\\*/g'
340
341 -# Constants:
342 -rm="rm -f"
343 -
344 # Global variables:
345 -default_ofile=libtool
346 +ofile=${host_alias}-libtool
347 can_build_shared=yes
348
349 # All known linkers require a `.a' archive for static linking (except MSVC,
350 # which needs '.lib').
351 libext=a
352 -ltmain="$ac_aux_dir/ltmain.sh"
353 -ofile="$default_ofile"
354 -with_gnu_ld="$lt_cv_prog_gnu_ld"
355
356 -AC_CHECK_TOOL(AR, ar, false)
357 -AC_CHECK_TOOL(RANLIB, ranlib, :)
358 -AC_CHECK_TOOL(STRIP, strip, :)
359 +with_gnu_ld="$lt_cv_prog_gnu_ld"
360
361 old_CC="$CC"
362 old_CFLAGS="$CFLAGS"
363
364 # Set sane defaults for various variables
365 -test -z "$AR" && AR=ar
366 -test -z "$AR_FLAGS" && AR_FLAGS=cru
367 -test -z "$AS" && AS=as
368 test -z "$CC" && CC=cc
369 test -z "$LTCC" && LTCC=$CC
370 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
371 -test -z "$DLLTOOL" && DLLTOOL=dlltool
372 test -z "$LD" && LD=ld
373 -test -z "$LN_S" && LN_S="ln -s"
374 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
375 -test -z "$NM" && NM=nm
376 -test -z "$SED" && SED=sed
377 -test -z "$OBJDUMP" && OBJDUMP=objdump
378 -test -z "$RANLIB" && RANLIB=:
379 -test -z "$STRIP" && STRIP=:
380 test -z "$ac_objext" && ac_objext=o
381
382 -# Determine commands to create old-style static archives.
383 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
384 -old_postinstall_cmds='chmod 644 $oldlib'
385 -old_postuninstall_cmds=
386 -
387 -if test -n "$RANLIB"; then
388 - case $host_os in
389 - openbsd*)
390 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
391 - ;;
392 - *)
393 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
394 - ;;
395 - esac
396 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
397 -fi
398 -
399 _LT_CC_BASENAME([$compiler])
400
401 # Only perform the check for file, if the check method requires it
402 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
403 case $deplibs_check_method in
404 file_magic*)
405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
406 - AC_PATH_MAGIC
407 + _LT_PATH_MAGIC
408 fi
409 ;;
410 esac
411
412 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
413 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
414 -enable_win32_dll=yes, enable_win32_dll=no)
415 -
416 -AC_ARG_ENABLE([libtool-lock],
417 - [AC_HELP_STRING([--disable-libtool-lock],
418 - [avoid locking (might break parallel builds)])])
419 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
420 +# Use C for the default configuration in the libtool script
421 +LT_SUPPORTED_TAG([CC])
422 +_LT_LANG_C_CONFIG
423 +_LT_LANG_DEFAULT_CONFIG
424 +_LT_CONFIG_COMMANDS
425 +])# _LT_SETUP
426
427 -AC_ARG_WITH([pic],
428 - [AC_HELP_STRING([--with-pic],
429 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
430 - [pic_mode="$withval"],
431 - [pic_mode=default])
432 -test -z "$pic_mode" && pic_mode=default
433
434 -# Use C for the default configuration in the libtool script
435 -tagname=
436 -AC_LIBTOOL_LANG_C_CONFIG
437 -_LT_AC_TAGCONFIG
438 -])# AC_LIBTOOL_SETUP
439 +# _LT_PROG_LTMAIN
440 +# ---------------
441 +# Note that this code is called both from `configure', and `config.status'
442 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
443 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
444 +# so we pass a copy along to make sure it has a sensible value anyway.
445 +m4_defun([_LT_PROG_LTMAIN],
446 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
447 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
448 +ltmain="$ac_aux_dir/ltmain.sh"
449 +])# _LT_PROG_LTMAIN
450
451
452 -# _LT_AC_SYS_COMPILER
453 -# -------------------
454 -AC_DEFUN([_LT_AC_SYS_COMPILER],
455 -[AC_REQUIRE([AC_PROG_CC])dnl
456 +## ------------------------------------- ##
457 +## Accumulate code for creating libtool. ##
458 +## ------------------------------------- ##
459 +
460 +# So that we can recreate a full libtool script including additional
461 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
462 +# in macros and then make a single call at the end using the `libtool'
463 +# label.
464 +
465 +
466 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
467 +# ----------------------------------------
468 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
469 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
470 +[m4_ifval([$1],
471 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
472 + [$1
473 +])])])
474 +
475 +# Initialize.
476 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
477 +
478 +
479 +# _LT_CONFIG_LIBTOOL([COMMANDS])
480 +# ------------------------------
481 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
482 +m4_define([_LT_CONFIG_LIBTOOL],
483 +[m4_ifval([$1],
484 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
485 + [$1
486 +])])])
487 +
488 +# Initialize.
489 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
490 +
491 +
492 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
493 +# -----------------------------------------------------
494 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
495 +[_LT_CONFIG_LIBTOOL([$1])
496 +_LT_CONFIG_LIBTOOL_INIT([$2])
497 +])
498
499 -# If no C compiler was specified, use CC.
500 -LTCC=${LTCC-"$CC"}
501
502 -# If no C compiler flags were specified, use CFLAGS.
503 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
504 +# _LT_FORMAT_COMMENT([COMMENT])
505 +# -----------------------------
506 +# Add leading comment marks to the start of each line, and a trailing
507 +# full-stop to the whole comment if one is not present already.
508 +m4_define([_LT_FORMAT_COMMENT],
509 +[m4_ifval([$1], [
510 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
511 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
512 +)])
513
514 -# Allow CC to be a program name with arguments.
515 -compiler=$CC
516 -])# _LT_AC_SYS_COMPILER
517
518
519 -# _LT_CC_BASENAME(CC)
520 -# -------------------
521 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
522 -AC_DEFUN([_LT_CC_BASENAME],
523 -[for cc_temp in $1""; do
524 - case $cc_temp in
525 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
526 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
527 - \-*) ;;
528 - *) break;;
529 - esac
530 -done
531 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
532 +## ------------------------ ##
533 +## FIXME: Eliminate VARNAME ##
534 +## ------------------------ ##
535 +
536 +
537 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
538 +# -------------------------------------------------------------------
539 +# CONFIGNAME is the name given to the value in the libtool script.
540 +# VARNAME is the (base) name used in the configure script.
541 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
542 +# VARNAME. Any other value will be used directly.
543 +m4_define([_LT_DECL],
544 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
545 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
546 + [m4_ifval([$1], [$1], [$2])])
547 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
548 + m4_ifval([$4],
549 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
550 + lt_dict_add_subkey([lt_decl_dict], [$2],
551 + [tagged?], [m4_ifval([$5], [yes], [no])])])
552 ])
553
554
555 -# _LT_COMPILER_BOILERPLATE
556 -# ------------------------
557 -# Check for compiler boilerplate output or warnings with
558 -# the simple compiler test code.
559 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
560 -[ac_outfile=conftest.$ac_objext
561 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
562 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
563 -_lt_compiler_boilerplate=`cat conftest.err`
564 -$rm conftest*
565 -])# _LT_COMPILER_BOILERPLATE
566 -
567 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
568 +# --------------------------------------------------------
569 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
570 +
571 +
572 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
573 +# ------------------------------------------------
574 +m4_define([lt_decl_tag_varnames],
575 +[_lt_decl_filter([tagged?], [yes], $@)])
576 +
577 +
578 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
579 +# ---------------------------------------------------------
580 +m4_define([_lt_decl_filter],
581 +[m4_case([$#],
582 + [0], [m4_fatal([$0: too few arguments: $#])],
583 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
584 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
585 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
586 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
587 +])
588
589 -# _LT_LINKER_BOILERPLATE
590 -# ----------------------
591 -# Check for linker boilerplate output or warnings with
592 -# the simple link test code.
593 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
594 -[ac_outfile=conftest.$ac_objext
595 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
596 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
597 -_lt_linker_boilerplate=`cat conftest.err`
598 -$rm conftest*
599 -])# _LT_LINKER_BOILERPLATE
600
601 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
602 +# --------------------------------------------------
603 +m4_define([lt_decl_quote_varnames],
604 +[_lt_decl_filter([value], [1], $@)])
605 +
606 +
607 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
608 +# ---------------------------------------------------
609 +m4_define([lt_decl_dquote_varnames],
610 +[_lt_decl_filter([value], [2], $@)])
611 +
612 +
613 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
614 +# ---------------------------------------------------
615 +m4_define([lt_decl_varnames_tagged],
616 +[_$0(m4_quote(m4_default([$1], [[, ]])),
617 + m4_quote(m4_if([$2], [],
618 + m4_quote(lt_decl_tag_varnames),
619 + m4_quote(m4_shift($@)))),
620 + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
621 +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
622 +
623 +
624 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
625 +# ------------------------------------------------
626 +m4_define([lt_decl_all_varnames],
627 +[_$0(m4_quote(m4_default([$1], [[, ]])),
628 + m4_if([$2], [],
629 + m4_quote(lt_decl_varnames),
630 + m4_quote(m4_shift($@))))[]dnl
631 +])
632 +m4_define([_lt_decl_all_varnames],
633 +[lt_join($@, lt_decl_varnames_tagged([$1],
634 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
635 +])
636
637 -# _LT_AC_SYS_LIBPATH_AIX
638 -# ----------------------
639 -# Links a minimal program and checks the executable
640 -# for the system default hardcoded library path. In most cases,
641 -# this is /usr/lib:/lib, but when the MPI compilers are used
642 -# the location of the communication and MPI libs are included too.
643 -# If we don't find anything, use the default library path according
644 -# to the aix ld manual.
645 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
646 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
647 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
648 -}'`
649 -# Check for a 64-bit object if we didn't find anything.
650 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
651 -}'`; fi],[])
652 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
653 -])# _LT_AC_SYS_LIBPATH_AIX
654
655 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
656 +# ------------------------------------
657 +# Quote a variable value, and forward it to `config.status' so that its
658 +# declaration there will have the same value as in `configure'. VARNAME
659 +# must have a single quote delimited value for this to work.
660 +m4_define([_LT_CONFIG_STATUS_DECLARE],
661 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
662
663 -# _LT_AC_SHELL_INIT(ARG)
664 -# ----------------------
665 -AC_DEFUN([_LT_AC_SHELL_INIT],
666 -[ifdef([AC_DIVERSION_NOTICE],
667 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
668 - [AC_DIVERT_PUSH(NOTICE)])
669 -$1
670 -AC_DIVERT_POP
671 -])# _LT_AC_SHELL_INIT
672
673 +# _LT_CONFIG_STATUS_DECLARATIONS
674 +# ------------------------------
675 +# We delimit libtool config variables with single quotes, so when
676 +# we write them to config.status, we have to be sure to quote all
677 +# embedded single quotes properly. In configure, this macro expands
678 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
679 +#
680 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
681 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
682 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
683 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
684
685 -# _LT_AC_PROG_ECHO_BACKSLASH
686 -# --------------------------
687 -# Add some code to the start of the generated configure script which
688 -# will find an echo command which doesn't interpret backslashes.
689 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
690 -[_LT_AC_SHELL_INIT([
691 -# Check that we are running under the correct shell.
692 -SHELL=${CONFIG_SHELL-/bin/sh}
693
694 -case X$ECHO in
695 -X*--fallback-echo)
696 - # Remove one level of quotation (which was required for Make).
697 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
698 - ;;
699 -esac
700 +# _LT_LIBTOOL_TAGS
701 +# ----------------
702 +# Output comment and list of tags supported by the script
703 +m4_defun([_LT_LIBTOOL_TAGS],
704 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
705 +available_tags="_LT_TAGS"dnl
706 +])
707
708 -echo=${ECHO-echo}
709 -if test "X[$]1" = X--no-reexec; then
710 - # Discard the --no-reexec flag, and continue.
711 - shift
712 -elif test "X[$]1" = X--fallback-echo; then
713 - # Avoid inline document here, it may be left over
714 - :
715 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
716 - # Yippee, $echo works!
717 - :
718 -else
719 - # Restart under the correct shell.
720 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
721 -fi
722
723 -if test "X[$]1" = X--fallback-echo; then
724 - # used as fallback echo
725 - shift
726 - cat <<EOF
727 -[$]*
728 -EOF
729 - exit 0
730 -fi
731 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
732 +# -----------------------------------
733 +# Extract the dictionary values for VARNAME (optionally with TAG) and
734 +# expand to a commented shell variable setting:
735 +#
736 +# # Some comment about what VAR is for.
737 +# visible_name=$lt_internal_name
738 +m4_define([_LT_LIBTOOL_DECLARE],
739 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
740 + [description])))[]dnl
741 +m4_pushdef([_libtool_name],
742 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
743 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
744 + [0], [_libtool_name=[$]$1],
745 + [1], [_libtool_name=$lt_[]$1],
746 + [2], [_libtool_name=$lt_[]$1],
747 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
748 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
749 +])
750
751 -# The HP-UX ksh and POSIX shell print the target directory to stdout
752 -# if CDPATH is set.
753 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
754
755 -if test -z "$ECHO"; then
756 -if test "X${echo_test_string+set}" != Xset; then
757 -# find a string as large as possible, as long as the shell can cope with it
758 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
759 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
760 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
761 - echo_test_string=`eval $cmd` &&
762 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
763 - then
764 - break
765 - fi
766 - done
767 -fi
768 +# _LT_LIBTOOL_CONFIG_VARS
769 +# -----------------------
770 +# Produce commented declarations of non-tagged libtool config variables
771 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
772 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
773 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
774 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
775 +[m4_foreach([_lt_var],
776 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
777 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
778
779 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
780 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
781 - test "X$echo_testing_string" = "X$echo_test_string"; then
782 - :
783 -else
784 - # The Solaris, AIX, and Digital Unix default echo programs unquote
785 - # backslashes. This makes it impossible to quote backslashes using
786 - # echo "$something" | sed 's/\\/\\\\/g'
787 - #
788 - # So, first we look for a working echo in the user's PATH.
789
790 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
791 - for dir in $PATH /usr/ucb; do
792 - IFS="$lt_save_ifs"
793 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
794 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
795 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
796 - test "X$echo_testing_string" = "X$echo_test_string"; then
797 - echo="$dir/echo"
798 - break
799 - fi
800 - done
801 - IFS="$lt_save_ifs"
802 +# _LT_LIBTOOL_TAG_VARS(TAG)
803 +# -------------------------
804 +m4_define([_LT_LIBTOOL_TAG_VARS],
805 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
806 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
807
808 - if test "X$echo" = Xecho; then
809 - # We didn't find a better echo, so look for alternatives.
810 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
811 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
812 - test "X$echo_testing_string" = "X$echo_test_string"; then
813 - # This shell has a builtin print -r that does the trick.
814 - echo='print -r'
815 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
816 - test "X$CONFIG_SHELL" != X/bin/ksh; then
817 - # If we have ksh, try running configure again with it.
818 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
819 - export ORIGINAL_CONFIG_SHELL
820 - CONFIG_SHELL=/bin/ksh
821 - export CONFIG_SHELL
822 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
823 - else
824 - # Try using printf.
825 - echo='printf %s\n'
826 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
827 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
828 - test "X$echo_testing_string" = "X$echo_test_string"; then
829 - # Cool, printf works
830 - :
831 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
832 - test "X$echo_testing_string" = 'X\t' &&
833 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
834 - test "X$echo_testing_string" = "X$echo_test_string"; then
835 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
836 - export CONFIG_SHELL
837 - SHELL="$CONFIG_SHELL"
838 - export SHELL
839 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
840 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
841 - test "X$echo_testing_string" = 'X\t' &&
842 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
843 - test "X$echo_testing_string" = "X$echo_test_string"; then
844 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
845 - else
846 - # maybe with a smaller string...
847 - prev=:
848
849 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
850 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
851 - then
852 - break
853 - fi
854 - prev="$cmd"
855 - done
856 +# _LT_TAGVAR(VARNAME, [TAGNAME])
857 +# ------------------------------
858 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
859
860 - if test "$prev" != 'sed 50q "[$]0"'; then
861 - echo_test_string=`eval $prev`
862 - export echo_test_string
863 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
864 - else
865 - # Oops. We lost completely, so just stick with echo.
866 - echo=echo
867 - fi
868 - fi
869 - fi
870 - fi
871 -fi
872 -fi
873
874 -# Copy echo and quote the copy suitably for passing to libtool from
875 -# the Makefile, instead of quoting the original, which is used later.
876 -ECHO=$echo
877 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
878 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
879 -fi
880 +# _LT_CONFIG_COMMANDS
881 +# -------------------
882 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
883 +# variables for single and double quote escaping we saved from calls
884 +# to _LT_DECL, we can put quote escaped variables declarations
885 +# into `config.status', and then the shell code to quote escape them in
886 +# for loops in `config.status'. Finally, any additional code accumulated
887 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
888 +m4_defun([_LT_CONFIG_COMMANDS],
889 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
890 + dnl If the libtool generation code has been placed in $CONFIG_LT,
891 + dnl instead of duplicating it all over again into config.status,
892 + dnl then we will have config.status run $CONFIG_LT later, so it
893 + dnl needs to know what name is stored there:
894 + [AC_CONFIG_COMMANDS([libtool],
895 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
896 + dnl If the libtool generation code is destined for config.status,
897 + dnl expand the accumulated commands and init code now:
898 + [AC_CONFIG_COMMANDS([libtool],
899 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
900 +])#_LT_CONFIG_COMMANDS
901
902 -AC_SUBST(ECHO)
903 -])])# _LT_AC_PROG_ECHO_BACKSLASH
904
905 +# Initialize.
906 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
907 +[
908
909 -# _LT_AC_LOCK
910 -# -----------
911 -AC_DEFUN([_LT_AC_LOCK],
912 -[AC_ARG_ENABLE([libtool-lock],
913 - [AC_HELP_STRING([--disable-libtool-lock],
914 - [avoid locking (might break parallel builds)])])
915 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
916 +# The HP-UX ksh and POSIX shell print the target directory to stdout
917 +# if CDPATH is set.
918 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
919
920 -# Some flags need to be propagated to the compiler or linker for good
921 -# libtool support.
922 -case $host in
923 -ia64-*-hpux*)
924 - # Find out which ABI we are using.
925 - echo 'int i;' > conftest.$ac_ext
926 - if AC_TRY_EVAL(ac_compile); then
927 - case `/usr/bin/file conftest.$ac_objext` in
928 - *ELF-32*)
929 - HPUX_IA64_MODE="32"
930 - ;;
931 - *ELF-64*)
932 - HPUX_IA64_MODE="64"
933 - ;;
934 - esac
935 - fi
936 - rm -rf conftest*
937 - ;;
938 -*-*-irix6*)
939 - # Find out which ABI we are using.
940 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
941 - if AC_TRY_EVAL(ac_compile); then
942 - if test "$lt_cv_prog_gnu_ld" = yes; then
943 - case `/usr/bin/file conftest.$ac_objext` in
944 - *32-bit*)
945 - LD="${LD-ld} -melf32bsmip"
946 - ;;
947 - *N32*)
948 - LD="${LD-ld} -melf32bmipn32"
949 +sed_quote_subst='$sed_quote_subst'
950 +double_quote_subst='$double_quote_subst'
951 +delay_variable_subst='$delay_variable_subst'
952 +_LT_CONFIG_STATUS_DECLARATIONS
953 +LTCC='$LTCC'
954 +LTCFLAGS='$LTCFLAGS'
955 +compiler='$compiler_DEFAULT'
956 +
957 +# Quote evaled strings.
958 +for var in lt_decl_all_varnames([[ \
959 +]], lt_decl_quote_varnames); do
960 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
961 + *[[\\\\\\\`\\"\\\$]]*)
962 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
963 ;;
964 - *64-bit*)
965 - LD="${LD-ld} -melf64bmip"
966 + *)
967 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
968 ;;
969 esac
970 - else
971 - case `/usr/bin/file conftest.$ac_objext` in
972 - *32-bit*)
973 - LD="${LD-ld} -32"
974 - ;;
975 - *N32*)
976 - LD="${LD-ld} -n32"
977 +done
978 +
979 +# Double-quote double-evaled strings.
980 +for var in lt_decl_all_varnames([[ \
981 +]], lt_decl_dquote_varnames); do
982 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
983 + *[[\\\\\\\`\\"\\\$]]*)
984 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
985 ;;
986 - *64-bit*)
987 - LD="${LD-ld} -64"
988 + *)
989 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
990 ;;
991 esac
992 - fi
993 - fi
994 - rm -rf conftest*
995 +done
996 +
997 +# Fix-up fallback echo if it was mangled by the above quoting rules.
998 +case \$lt_ECHO in
999 +*'\\\[$]0 --fallback-echo"')dnl "
1000 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1001 ;;
1002 +esac
1003
1004 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1005 - # Find out which ABI we are using.
1006 - echo 'int i;' > conftest.$ac_ext
1007 - if AC_TRY_EVAL(ac_compile); then
1008 - case `/usr/bin/file conftest.o` in
1009 - *32-bit*)
1010 - case $host in
1011 - x86_64-*linux*)
1012 - LD="${LD-ld} -m elf_i386"
1013 - ;;
1014 - ppc64-*linux*|powerpc64-*linux*)
1015 - LD="${LD-ld} -m elf32ppclinux"
1016 - ;;
1017 - s390x-*linux*)
1018 - LD="${LD-ld} -m elf_s390"
1019 - ;;
1020 - sparc64-*linux*)
1021 - LD="${LD-ld} -m elf32_sparc"
1022 - ;;
1023 - esac
1024 - ;;
1025 - *64-bit*)
1026 - case $host in
1027 - x86_64-*linux*)
1028 - LD="${LD-ld} -m elf_x86_64"
1029 - ;;
1030 - ppc*-*linux*|powerpc*-*linux*)
1031 - LD="${LD-ld} -m elf64ppc"
1032 - ;;
1033 - s390*-*linux*)
1034 - LD="${LD-ld} -m elf64_s390"
1035 - ;;
1036 - sparc*-*linux*)
1037 - LD="${LD-ld} -m elf64_sparc"
1038 - ;;
1039 - esac
1040 - ;;
1041 - esac
1042 - fi
1043 - rm -rf conftest*
1044 - ;;
1045 +_LT_OUTPUT_LIBTOOL_INIT
1046 +])
1047
1048 -*-*-sco3.2v5*)
1049 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1050 - SAVE_CFLAGS="$CFLAGS"
1051 - CFLAGS="$CFLAGS -belf"
1052 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1053 - [AC_LANG_PUSH(C)
1054 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1055 - AC_LANG_POP])
1056 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1057 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1058 - CFLAGS="$SAVE_CFLAGS"
1059 - fi
1060 - ;;
1061 -sparc*-*solaris*)
1062 - # Find out which ABI we are using.
1063 - echo 'int i;' > conftest.$ac_ext
1064 - if AC_TRY_EVAL(ac_compile); then
1065 - case `/usr/bin/file conftest.o` in
1066 - *64-bit*)
1067 - case $lt_cv_prog_gnu_ld in
1068 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
1069 - *) LD="${LD-ld} -64" ;;
1070 - esac
1071 - ;;
1072 - esac
1073 - fi
1074 - rm -rf conftest*
1075 - ;;
1076
1077 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1078 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1079 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1080 - AC_CHECK_TOOL(AS, as, false)
1081 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
1082 - ;;
1083 - ])
1084 -esac
1085 +# LT_OUTPUT
1086 +# ---------
1087 +# This macro allows early generation of the libtool script (before
1088 +# AC_OUTPUT is called), incase it is used in configure for compilation
1089 +# tests.
1090 +AC_DEFUN([LT_OUTPUT],
1091 +[: ${CONFIG_LT=./config.lt}
1092 +AC_MSG_NOTICE([creating $CONFIG_LT])
1093 +cat >"$CONFIG_LT" <<_LTEOF
1094 +#! $SHELL
1095 +# Generated by $as_me.
1096 +# Run this file to recreate a libtool stub with the current configuration.
1097 +
1098 +lt_cl_silent=false
1099 +SHELL=\${CONFIG_SHELL-$SHELL}
1100 +_LTEOF
1101 +
1102 +cat >>"$CONFIG_LT" <<\_LTEOF
1103 +AS_SHELL_SANITIZE
1104 +_AS_PREPARE
1105
1106 -need_locks="$enable_libtool_lock"
1107 +exec AS_MESSAGE_FD>&1
1108 +exec AS_MESSAGE_LOG_FD>>config.log
1109 +{
1110 + echo
1111 + AS_BOX([Running $as_me.])
1112 +} >&AS_MESSAGE_LOG_FD
1113 +
1114 +lt_cl_help="\
1115 +\`$as_me' creates a local libtool stub from the current configuration,
1116 +for use in further configure time tests before the real libtool is
1117 +generated.
1118 +
1119 +Usage: $[0] [[OPTIONS]]
1120 +
1121 + -h, --help print this help, then exit
1122 + -V, --version print version number, then exit
1123 + -q, --quiet do not print progress messages
1124 + -d, --debug don't remove temporary files
1125 +
1126 +Report bugs to <bug-libtool@gnu.org>."
1127 +
1128 +lt_cl_version="\
1129 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1130 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1131 +configured by $[0], generated by m4_PACKAGE_STRING.
1132 +
1133 +Copyright (C) 2008 Free Software Foundation, Inc.
1134 +This config.lt script is free software; the Free Software Foundation
1135 +gives unlimited permision to copy, distribute and modify it."
1136
1137 -])# _LT_AC_LOCK
1138 +while test $[#] != 0
1139 +do
1140 + case $[1] in
1141 + --version | --v* | -V )
1142 + echo "$lt_cl_version"; exit 0 ;;
1143 + --help | --h* | -h )
1144 + echo "$lt_cl_help"; exit 0 ;;
1145 + --debug | --d* | -d )
1146 + debug=: ;;
1147 + --quiet | --q* | --silent | --s* | -q )
1148 + lt_cl_silent=: ;;
1149
1150 + -*) AC_MSG_ERROR([unrecognized option: $[1]
1151 +Try \`$[0] --help' for more information.]) ;;
1152
1153 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1154 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1155 -# ----------------------------------------------------------------
1156 -# Check whether the given compiler option works
1157 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1158 -[AC_REQUIRE([LT_AC_PROG_SED])
1159 -AC_CACHE_CHECK([$1], [$2],
1160 - [$2=no
1161 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1162 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1163 - lt_compiler_flag="$3"
1164 - # Insert the option either (1) after the last *FLAGS variable, or
1165 - # (2) before a word containing "conftest.", or (3) at the end.
1166 - # Note that $ac_compile itself does not contain backslashes and begins
1167 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1168 - # The option is referenced via a variable to avoid confusing sed.
1169 - lt_compile=`echo "$ac_compile" | $SED \
1170 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1171 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1172 - -e 's:$: $lt_compiler_flag:'`
1173 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1174 - (eval "$lt_compile" 2>conftest.err)
1175 - ac_status=$?
1176 - cat conftest.err >&AS_MESSAGE_LOG_FD
1177 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1178 - if (exit $ac_status) && test -s "$ac_outfile"; then
1179 - # The compiler can only warn and ignore the option if not recognized
1180 - # So say no if there are warnings other than the usual output.
1181 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1182 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1183 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1184 - $2=yes
1185 - fi
1186 - fi
1187 - $rm conftest*
1188 -])
1189 + *) AC_MSG_ERROR([unrecognized argument: $[1]
1190 +Try \`$[0] --help' for more information.]) ;;
1191 + esac
1192 + shift
1193 +done
1194
1195 -if test x"[$]$2" = xyes; then
1196 - ifelse([$5], , :, [$5])
1197 -else
1198 - ifelse([$6], , :, [$6])
1199 +if $lt_cl_silent; then
1200 + exec AS_MESSAGE_FD>/dev/null
1201 fi
1202 -])# AC_LIBTOOL_COMPILER_OPTION
1203 -
1204 -
1205 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1206 -# [ACTION-SUCCESS], [ACTION-FAILURE])
1207 -# ------------------------------------------------------------
1208 -# Check whether the given compiler option works
1209 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1210 -[AC_CACHE_CHECK([$1], [$2],
1211 - [$2=no
1212 - save_LDFLAGS="$LDFLAGS"
1213 - LDFLAGS="$LDFLAGS $3"
1214 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
1215 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1216 - # The linker can only warn and ignore the option if not recognized
1217 - # So say no if there are warnings
1218 - if test -s conftest.err; then
1219 - # Append any errors to the config.log.
1220 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
1221 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1222 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1223 - if diff conftest.exp conftest.er2 >/dev/null; then
1224 - $2=yes
1225 - fi
1226 - else
1227 - $2=yes
1228 - fi
1229 - fi
1230 - $rm conftest*
1231 - LDFLAGS="$save_LDFLAGS"
1232 -])
1233 +_LTEOF
1234
1235 -if test x"[$]$2" = xyes; then
1236 - ifelse([$4], , :, [$4])
1237 -else
1238 - ifelse([$5], , :, [$5])
1239 +cat >>"$CONFIG_LT" <<_LTEOF
1240 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1241 +_LTEOF
1242 +
1243 +cat >>"$CONFIG_LT" <<\_LTEOF
1244 +AC_MSG_NOTICE([creating $ofile])
1245 +_LT_OUTPUT_LIBTOOL_COMMANDS
1246 +AS_EXIT(0)
1247 +_LTEOF
1248 +chmod +x "$CONFIG_LT"
1249 +
1250 +# configure is writing to config.log, but config.lt does its own redirection,
1251 +# appending to config.log, which fails on DOS, as config.log is still kept
1252 +# open by configure. Here we exec the FD to /dev/null, effectively closing
1253 +# config.log, so it can be properly (re)opened and appended to by config.lt.
1254 +if test "$no_create" != yes; then
1255 + lt_cl_success=:
1256 + test "$silent" = yes &&
1257 + lt_config_lt_args="$lt_config_lt_args --quiet"
1258 + exec AS_MESSAGE_LOG_FD>/dev/null
1259 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1260 + exec AS_MESSAGE_LOG_FD>>config.log
1261 + $lt_cl_success || AS_EXIT(1)
1262 fi
1263 -])# AC_LIBTOOL_LINKER_OPTION
1264 -
1265 +])# LT_OUTPUT
1266
1267 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
1268 -# --------------------------
1269 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1270 -[# find the maximum length of command line arguments
1271 -AC_MSG_CHECKING([the maximum length of command line arguments])
1272 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1273 - i=0
1274 - teststring="ABCD"
1275
1276 - case $build_os in
1277 - msdosdjgpp*)
1278 - # On DJGPP, this test can blow up pretty badly due to problems in libc
1279 - # (any single argument exceeding 2000 bytes causes a buffer overrun
1280 - # during glob expansion). Even if it were fixed, the result of this
1281 - # check would be larger than it should be.
1282 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
1283 - ;;
1284 +# _LT_CONFIG(TAG)
1285 +# ---------------
1286 +# If TAG is the built-in tag, create an initial libtool script with a
1287 +# default configuration from the untagged config vars. Otherwise add code
1288 +# to config.status for appending the configuration named by TAG from the
1289 +# matching tagged config vars.
1290 +m4_defun([_LT_CONFIG],
1291 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1292 +_LT_CONFIG_SAVE_COMMANDS([
1293 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1294 + m4_if(_LT_TAG, [C], [
1295 + # See if we are running on zsh, and set the options which allow our
1296 + # commands through without removal of \ escapes.
1297 + if test -n "${ZSH_VERSION+set}" ; then
1298 + setopt NO_GLOB_SUBST
1299 + fi
1300
1301 - gnu*)
1302 - # Under GNU Hurd, this test is not required because there is
1303 - # no limit to the length of command line arguments.
1304 - # Libtool will interpret -1 as no limit whatsoever
1305 - lt_cv_sys_max_cmd_len=-1;
1306 - ;;
1307 + cfgfile="${ofile}T"
1308 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1309 + $RM "$cfgfile"
1310
1311 - cygwin* | mingw*)
1312 - # On Win9x/ME, this test blows up -- it succeeds, but takes
1313 - # about 5 minutes as the teststring grows exponentially.
1314 - # Worse, since 9x/ME are not pre-emptively multitasking,
1315 - # you end up with a "frozen" computer, even though with patience
1316 - # the test eventually succeeds (with a max line length of 256k).
1317 - # Instead, let's just punt: use the minimum linelength reported by
1318 - # all of the supported platforms: 8192 (on NT/2K/XP).
1319 - lt_cv_sys_max_cmd_len=8192;
1320 - ;;
1321 + cat <<_LT_EOF >> "$cfgfile"
1322 +#! $SHELL
1323
1324 - amigaos*)
1325 - # On AmigaOS with pdksh, this test takes hours, literally.
1326 - # So we just punt and use a minimum line length of 8192.
1327 - lt_cv_sys_max_cmd_len=8192;
1328 - ;;
1329 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1330 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1331 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1332 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1333 +#
1334 +_LT_COPYING
1335 +_LT_LIBTOOL_TAGS
1336
1337 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1338 - # This has been around since 386BSD, at least. Likely further.
1339 - if test -x /sbin/sysctl; then
1340 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1341 - elif test -x /usr/sbin/sysctl; then
1342 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1343 - else
1344 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1345 - fi
1346 - # And add a safety zone
1347 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1348 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1349 - ;;
1350 +# ### BEGIN LIBTOOL CONFIG
1351 +_LT_LIBTOOL_CONFIG_VARS
1352 +_LT_LIBTOOL_TAG_VARS
1353 +# ### END LIBTOOL CONFIG
1354
1355 - interix*)
1356 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
1357 - lt_cv_sys_max_cmd_len=196608
1358 - ;;
1359 +_LT_EOF
1360
1361 - osf*)
1362 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1363 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1364 - # nice to cause kernel panics so lets avoid the loop below.
1365 - # First set a reasonable default.
1366 - lt_cv_sys_max_cmd_len=16384
1367 - #
1368 - if test -x /sbin/sysconfig; then
1369 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1370 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
1371 - esac
1372 - fi
1373 - ;;
1374 - sco3.2v5*)
1375 - lt_cv_sys_max_cmd_len=102400
1376 - ;;
1377 - sysv5* | sco5v6* | sysv4.2uw2*)
1378 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1379 - if test -n "$kargmax"; then
1380 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1381 - else
1382 - lt_cv_sys_max_cmd_len=32768
1383 - fi
1384 - ;;
1385 - *)
1386 - # If test is not a shell built-in, we'll probably end up computing a
1387 - # maximum length that is only half of the actual maximum length, but
1388 - # we can't tell.
1389 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1390 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1391 - = "XX$teststring") >/dev/null 2>&1 &&
1392 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
1393 - lt_cv_sys_max_cmd_len=$new_result &&
1394 - test $i != 17 # 1/2 MB should be enough
1395 - do
1396 - i=`expr $i + 1`
1397 - teststring=$teststring$teststring
1398 - done
1399 - teststring=
1400 - # Add a significant safety factor because C++ compilers can tack on massive
1401 - # amounts of additional arguments before passing them to the linker.
1402 - # It appears as though 1/2 is a usable value.
1403 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1404 + case $host_os in
1405 + aix3*)
1406 + cat <<\_LT_EOF >> "$cfgfile"
1407 +# AIX sometimes has problems with the GCC collect2 program. For some
1408 +# reason, if we set the COLLECT_NAMES environment variable, the problems
1409 +# vanish in a puff of smoke.
1410 +if test "X${COLLECT_NAMES+set}" != Xset; then
1411 + COLLECT_NAMES=
1412 + export COLLECT_NAMES
1413 +fi
1414 +_LT_EOF
1415 ;;
1416 esac
1417 -])
1418 -if test -n $lt_cv_sys_max_cmd_len ; then
1419 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1420 -else
1421 - AC_MSG_RESULT(none)
1422 -fi
1423 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1424
1425 + _LT_PROG_LTMAIN
1426
1427 -# _LT_AC_CHECK_DLFCN
1428 -# ------------------
1429 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
1430 -[AC_CHECK_HEADERS(dlfcn.h)dnl
1431 -])# _LT_AC_CHECK_DLFCN
1432 + # We use sed instead of cat because bash on DJGPP gets confused if
1433 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
1434 + # text mode, it properly converts lines to CR/LF. This bash problem
1435 + # is reportedly fixed, but why not run on old versions too?
1436 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1437 + || (rm -f "$cfgfile"; exit 1)
1438
1439 + _LT_PROG_XSI_SHELLFNS
1440
1441 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1442 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1443 -# ---------------------------------------------------------------------
1444 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1445 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1446 -if test "$cross_compiling" = yes; then :
1447 - [$4]
1448 -else
1449 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1450 - lt_status=$lt_dlunknown
1451 - cat > conftest.$ac_ext <<EOF
1452 -[#line __oline__ "configure"
1453 -#include "confdefs.h"
1454 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1455 + || (rm -f "$cfgfile"; exit 1)
1456
1457 -#if HAVE_DLFCN_H
1458 -#include <dlfcn.h>
1459 -#endif
1460 + mv -f "$cfgfile" "$ofile" ||
1461 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1462 + chmod +x "$ofile"
1463 +],
1464 +[cat <<_LT_EOF >> "$ofile"
1465
1466 -#include <stdio.h>
1467 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1468 +dnl in a comment (ie after a #).
1469 +# ### BEGIN LIBTOOL TAG CONFIG: $1
1470 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1471 +# ### END LIBTOOL TAG CONFIG: $1
1472 +_LT_EOF
1473 +])dnl /m4_if
1474 +],
1475 +[m4_if([$1], [], [
1476 + PACKAGE='$PACKAGE'
1477 + VERSION='$VERSION'
1478 + TIMESTAMP='$TIMESTAMP'
1479 + RM='$RM'
1480 + ofile='$ofile'], [])
1481 +])dnl /_LT_CONFIG_SAVE_COMMANDS
1482 +])# _LT_CONFIG
1483 +
1484 +
1485 +# LT_SUPPORTED_TAG(TAG)
1486 +# ---------------------
1487 +# Trace this macro to discover what tags are supported by the libtool
1488 +# --tag option, using:
1489 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1490 +AC_DEFUN([LT_SUPPORTED_TAG], [])
1491 +
1492 +
1493 +# C support is built-in for now
1494 +m4_define([_LT_LANG_C_enabled], [])
1495 +m4_define([_LT_TAGS], [])
1496
1497 -#ifdef RTLD_GLOBAL
1498 -# define LT_DLGLOBAL RTLD_GLOBAL
1499 -#else
1500 -# ifdef DL_GLOBAL
1501 -# define LT_DLGLOBAL DL_GLOBAL
1502 -# else
1503 -# define LT_DLGLOBAL 0
1504 -# endif
1505 -#endif
1506
1507 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1508 - find out it does not work in some platform. */
1509 -#ifndef LT_DLLAZY_OR_NOW
1510 -# ifdef RTLD_LAZY
1511 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
1512 -# else
1513 -# ifdef DL_LAZY
1514 -# define LT_DLLAZY_OR_NOW DL_LAZY
1515 -# else
1516 -# ifdef RTLD_NOW
1517 -# define LT_DLLAZY_OR_NOW RTLD_NOW
1518 -# else
1519 -# ifdef DL_NOW
1520 -# define LT_DLLAZY_OR_NOW DL_NOW
1521 -# else
1522 -# define LT_DLLAZY_OR_NOW 0
1523 -# endif
1524 -# endif
1525 -# endif
1526 -# endif
1527 -#endif
1528 +# LT_LANG(LANG)
1529 +# -------------
1530 +# Enable libtool support for the given language if not already enabled.
1531 +AC_DEFUN([LT_LANG],
1532 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
1533 +m4_case([$1],
1534 + [C], [_LT_LANG(C)],
1535 + [C++], [_LT_LANG(CXX)],
1536 + [Java], [_LT_LANG(GCJ)],
1537 + [Fortran 77], [_LT_LANG(F77)],
1538 + [Fortran], [_LT_LANG(FC)],
1539 + [Windows Resource], [_LT_LANG(RC)],
1540 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1541 + [_LT_LANG($1)],
1542 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
1543 +])# LT_LANG
1544
1545 -#ifdef __cplusplus
1546 -extern "C" void exit (int);
1547 -#endif
1548
1549 -void fnord() { int i=42;}
1550 -int main ()
1551 -{
1552 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1553 - int status = $lt_dlunknown;
1554 -
1555 - if (self)
1556 - {
1557 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1558 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1559 - /* dlclose (self); */
1560 - }
1561 - else
1562 - puts (dlerror ());
1563 +# _LT_LANG(LANGNAME)
1564 +# ------------------
1565 +m4_defun([_LT_LANG],
1566 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1567 + [LT_SUPPORTED_TAG([$1])dnl
1568 + m4_append([_LT_TAGS], [$1 ])dnl
1569 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
1570 + _LT_LANG_$1_CONFIG($1)])dnl
1571 +])# _LT_LANG
1572
1573 - exit (status);
1574 -}]
1575 -EOF
1576 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1577 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1578 - lt_status=$?
1579 - case x$lt_status in
1580 - x$lt_dlno_uscore) $1 ;;
1581 - x$lt_dlneed_uscore) $2 ;;
1582 - x$lt_dlunknown|x*) $3 ;;
1583 - esac
1584 - else :
1585 - # compilation failed
1586 - $3
1587 - fi
1588 -fi
1589 -rm -fr conftest*
1590 -])# _LT_AC_TRY_DLOPEN_SELF
1591
1592 +# _LT_LANG_DEFAULT_CONFIG
1593 +# -----------------------
1594 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
1595 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1596 + [LT_LANG(CXX)],
1597 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1598 +
1599 +AC_PROVIDE_IFELSE([AC_PROG_F77],
1600 + [LT_LANG(F77)],
1601 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1602 +
1603 +AC_PROVIDE_IFELSE([AC_PROG_FC],
1604 + [LT_LANG(FC)],
1605 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1606 +
1607 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1608 +dnl pulling things in needlessly.
1609 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1610 + [LT_LANG(GCJ)],
1611 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1612 + [LT_LANG(GCJ)],
1613 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1614 + [LT_LANG(GCJ)],
1615 + [m4_ifdef([AC_PROG_GCJ],
1616 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1617 + m4_ifdef([A][M_PROG_GCJ],
1618 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1619 + m4_ifdef([LT_PROG_GCJ],
1620 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1621 +
1622 +AC_PROVIDE_IFELSE([LT_PROG_RC],
1623 + [LT_LANG(RC)],
1624 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1625 +])# _LT_LANG_DEFAULT_CONFIG
1626 +
1627 +# Obsolete macros:
1628 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1629 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1630 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1631 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1632 +dnl aclocal-1.4 backwards compatibility:
1633 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1634 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1635 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1636 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1637
1638 -# AC_LIBTOOL_DLOPEN_SELF
1639 -# ----------------------
1640 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1641 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1642 -if test "x$enable_dlopen" != xyes; then
1643 - enable_dlopen=unknown
1644 - enable_dlopen_self=unknown
1645 - enable_dlopen_self_static=unknown
1646 -else
1647 - lt_cv_dlopen=no
1648 - lt_cv_dlopen_libs=
1649
1650 - case $host_os in
1651 - beos*)
1652 - lt_cv_dlopen="load_add_on"
1653 - lt_cv_dlopen_libs=
1654 - lt_cv_dlopen_self=yes
1655 - ;;
1656 +# _LT_TAG_COMPILER
1657 +# ----------------
1658 +m4_defun([_LT_TAG_COMPILER],
1659 +[AC_REQUIRE([AC_PROG_CC])dnl
1660
1661 - mingw* | pw32*)
1662 - lt_cv_dlopen="LoadLibrary"
1663 - lt_cv_dlopen_libs=
1664 - ;;
1665 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1666 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1667 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1668 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1669
1670 - cygwin*)
1671 - lt_cv_dlopen="dlopen"
1672 - lt_cv_dlopen_libs=
1673 - ;;
1674 +# If no C compiler was specified, use CC.
1675 +LTCC=${LTCC-"$CC"}
1676
1677 - darwin*)
1678 - # if libdl is installed we need to link against it
1679 - AC_CHECK_LIB([dl], [dlopen],
1680 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1681 - lt_cv_dlopen="dyld"
1682 - lt_cv_dlopen_libs=
1683 - lt_cv_dlopen_self=yes
1684 - ])
1685 - ;;
1686 +# If no C compiler flags were specified, use CFLAGS.
1687 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1688
1689 - *)
1690 - AC_CHECK_FUNC([shl_load],
1691 - [lt_cv_dlopen="shl_load"],
1692 - [AC_CHECK_LIB([dld], [shl_load],
1693 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1694 - [AC_CHECK_FUNC([dlopen],
1695 - [lt_cv_dlopen="dlopen"],
1696 - [AC_CHECK_LIB([dl], [dlopen],
1697 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1698 - [AC_CHECK_LIB([svld], [dlopen],
1699 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1700 - [AC_CHECK_LIB([dld], [dld_link],
1701 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1702 - ])
1703 - ])
1704 - ])
1705 - ])
1706 - ])
1707 - ;;
1708 - esac
1709 +# Allow CC to be a program name with arguments.
1710 +compiler=$CC
1711 +])# _LT_TAG_COMPILER
1712
1713 - if test "x$lt_cv_dlopen" != xno; then
1714 - enable_dlopen=yes
1715 - else
1716 - enable_dlopen=no
1717 - fi
1718
1719 - case $lt_cv_dlopen in
1720 - dlopen)
1721 - save_CPPFLAGS="$CPPFLAGS"
1722 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1723 +# _LT_COMPILER_BOILERPLATE
1724 +# ------------------------
1725 +# Check for compiler boilerplate output or warnings with
1726 +# the simple compiler test code.
1727 +m4_defun([_LT_COMPILER_BOILERPLATE],
1728 +[m4_require([_LT_DECL_SED])dnl
1729 +ac_outfile=conftest.$ac_objext
1730 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1731 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1732 +_lt_compiler_boilerplate=`cat conftest.err`
1733 +$RM conftest*
1734 +])# _LT_COMPILER_BOILERPLATE
1735
1736 - save_LDFLAGS="$LDFLAGS"
1737 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1738
1739 - save_LIBS="$LIBS"
1740 - LIBS="$lt_cv_dlopen_libs $LIBS"
1741 +# _LT_LINKER_BOILERPLATE
1742 +# ----------------------
1743 +# Check for linker boilerplate output or warnings with
1744 +# the simple link test code.
1745 +m4_defun([_LT_LINKER_BOILERPLATE],
1746 +[m4_require([_LT_DECL_SED])dnl
1747 +ac_outfile=conftest.$ac_objext
1748 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
1749 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1750 +_lt_linker_boilerplate=`cat conftest.err`
1751 +$RM -r conftest*
1752 +])# _LT_LINKER_BOILERPLATE
1753
1754 - AC_CACHE_CHECK([whether a program can dlopen itself],
1755 - lt_cv_dlopen_self, [dnl
1756 - _LT_AC_TRY_DLOPEN_SELF(
1757 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1758 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1759 +# _LT_REQUIRED_DARWIN_CHECKS
1760 +# -------------------------
1761 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1762 + case $host_os in
1763 + rhapsody* | darwin*)
1764 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1765 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1766 + AC_CHECK_TOOL([LIPO], [lipo], [:])
1767 + AC_CHECK_TOOL([OTOOL], [otool], [:])
1768 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1769 + _LT_DECL([], [DSYMUTIL], [1],
1770 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1771 + _LT_DECL([], [NMEDIT], [1],
1772 + [Tool to change global to local symbols on Mac OS X])
1773 + _LT_DECL([], [LIPO], [1],
1774 + [Tool to manipulate fat objects and archives on Mac OS X])
1775 + _LT_DECL([], [OTOOL], [1],
1776 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1777 + _LT_DECL([], [OTOOL64], [1],
1778 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1779 +
1780 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1781 + [lt_cv_apple_cc_single_mod=no
1782 + if test -z "${LT_MULTI_MODULE}"; then
1783 + # By default we will add the -single_module flag. You can override
1784 + # by either setting the environment variable LT_MULTI_MODULE
1785 + # non-empty at configure time, or by adding -multi_module to the
1786 + # link flags.
1787 + rm -rf libconftest.dylib*
1788 + echo "int foo(void){return 1;}" > conftest.c
1789 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1790 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1791 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1792 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1793 + _lt_result=$?
1794 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1795 + lt_cv_apple_cc_single_mod=yes
1796 + else
1797 + cat conftest.err >&AS_MESSAGE_LOG_FD
1798 + fi
1799 + rm -rf libconftest.dylib*
1800 + rm -f conftest.*
1801 + fi])
1802 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1803 + [lt_cv_ld_exported_symbols_list],
1804 + [lt_cv_ld_exported_symbols_list=no
1805 + save_LDFLAGS=$LDFLAGS
1806 + echo "_main" > conftest.sym
1807 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1808 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1809 + [lt_cv_ld_exported_symbols_list=yes],
1810 + [lt_cv_ld_exported_symbols_list=no])
1811 + LDFLAGS="$save_LDFLAGS"
1812 ])
1813 -
1814 - if test "x$lt_cv_dlopen_self" = xyes; then
1815 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1816 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1817 - lt_cv_dlopen_self_static, [dnl
1818 - _LT_AC_TRY_DLOPEN_SELF(
1819 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1820 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1821 - ])
1822 + case $host_os in
1823 + rhapsody* | darwin1.[[012]])
1824 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1825 + darwin1.*)
1826 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1827 + darwin*) # darwin 5.x on
1828 + # if running on 10.5 or later, the deployment target defaults
1829 + # to the OS version, if on x86, and 10.4, the deployment
1830 + # target defaults to 10.4. Don't you love it?
1831 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1832 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1833 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1834 + 10.[[012]]*)
1835 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1836 + 10.*)
1837 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1838 + esac
1839 + ;;
1840 + esac
1841 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1842 + _lt_dar_single_mod='$single_module'
1843 + fi
1844 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1845 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1846 + else
1847 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1848 + fi
1849 + if test "$DSYMUTIL" != ":"; then
1850 + _lt_dsymutil='~$DSYMUTIL $lib || :'
1851 + else
1852 + _lt_dsymutil=
1853 fi
1854 -
1855 - CPPFLAGS="$save_CPPFLAGS"
1856 - LDFLAGS="$save_LDFLAGS"
1857 - LIBS="$save_LIBS"
1858 ;;
1859 esac
1860 +])
1861
1862 - case $lt_cv_dlopen_self in
1863 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1864 - *) enable_dlopen_self=unknown ;;
1865 - esac
1866
1867 - case $lt_cv_dlopen_self_static in
1868 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1869 - *) enable_dlopen_self_static=unknown ;;
1870 - esac
1871 -fi
1872 -])# AC_LIBTOOL_DLOPEN_SELF
1873 +# _LT_DARWIN_LINKER_FEATURES
1874 +# --------------------------
1875 +# Checks for linker and compiler features on darwin
1876 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
1877 +[
1878 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1879 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1880 + _LT_TAGVAR(hardcode_direct, $1)=no
1881 + _LT_TAGVAR(hardcode_automatic, $1)=yes
1882 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1883 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1884 + _LT_TAGVAR(link_all_deplibs, $1)=yes
1885 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1886 + if test "$GCC" = "yes"; then
1887 + output_verbose_link_cmd=echo
1888 + _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}"
1889 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1890 + _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}"
1891 + _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}"
1892 + m4_if([$1], [CXX],
1893 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1894 + _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}"
1895 + _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}"
1896 + fi
1897 +],[])
1898 + else
1899 + _LT_TAGVAR(ld_shlibs, $1)=no
1900 + fi
1901 +])
1902
1903 +# _LT_SYS_MODULE_PATH_AIX
1904 +# -----------------------
1905 +# Links a minimal program and checks the executable
1906 +# for the system default hardcoded library path. In most cases,
1907 +# this is /usr/lib:/lib, but when the MPI compilers are used
1908 +# the location of the communication and MPI libs are included too.
1909 +# If we don't find anything, use the default library path according
1910 +# to the aix ld manual.
1911 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
1912 +[m4_require([_LT_DECL_SED])dnl
1913 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1914 +lt_aix_libpath_sed='
1915 + /Import File Strings/,/^$/ {
1916 + /^0/ {
1917 + s/^0 *\(.*\)$/\1/
1918 + p
1919 + }
1920 + }'
1921 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1922 +# Check for a 64-bit object if we didn't find anything.
1923 +if test -z "$aix_libpath"; then
1924 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1925 +fi],[])
1926 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1927 +])# _LT_SYS_MODULE_PATH_AIX
1928
1929 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1930 -# ---------------------------------
1931 -# Check to see if options -c and -o are simultaneously supported by compiler
1932 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1933 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1934 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1935 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1936 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1937 - $rm -r conftest 2>/dev/null
1938 - mkdir conftest
1939 - cd conftest
1940 - mkdir out
1941 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1942
1943 - lt_compiler_flag="-o out/conftest2.$ac_objext"
1944 - # Insert the option either (1) after the last *FLAGS variable, or
1945 - # (2) before a word containing "conftest.", or (3) at the end.
1946 - # Note that $ac_compile itself does not contain backslashes and begins
1947 - # with a dollar sign (not a hyphen), so the echo should work correctly.
1948 - lt_compile=`echo "$ac_compile" | $SED \
1949 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1950 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1951 - -e 's:$: $lt_compiler_flag:'`
1952 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1953 - (eval "$lt_compile" 2>out/conftest.err)
1954 - ac_status=$?
1955 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
1956 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1957 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
1958 - then
1959 - # The compiler can only warn and ignore the option if not recognized
1960 - # So say no if there are warnings
1961 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1962 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1963 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1964 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1965 - fi
1966 - fi
1967 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
1968 - $rm conftest*
1969 - # SGI C++ compiler will create directory out/ii_files/ for
1970 - # template instantiation
1971 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1972 - $rm out/* && rmdir out
1973 - cd ..
1974 - rmdir conftest
1975 - $rm conftest*
1976 -])
1977 -])# AC_LIBTOOL_PROG_CC_C_O
1978 +# _LT_SHELL_INIT(ARG)
1979 +# -------------------
1980 +m4_define([_LT_SHELL_INIT],
1981 +[ifdef([AC_DIVERSION_NOTICE],
1982 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1983 + [AC_DIVERT_PUSH(NOTICE)])
1984 +$1
1985 +AC_DIVERT_POP
1986 +])# _LT_SHELL_INIT
1987
1988
1989 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1990 -# -----------------------------------------
1991 -# Check to see if we can do hard links to lock some files if needed
1992 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1993 -[AC_REQUIRE([_LT_AC_LOCK])dnl
1994 +# _LT_PROG_ECHO_BACKSLASH
1995 +# -----------------------
1996 +# Add some code to the start of the generated configure script which
1997 +# will find an echo command which doesn't interpret backslashes.
1998 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
1999 +[_LT_SHELL_INIT([
2000 +# Check that we are running under the correct shell.
2001 +SHELL=${CONFIG_SHELL-/bin/sh}
2002
2003 -hard_links="nottested"
2004 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2005 - # do not overwrite the value of need_locks provided by the user
2006 - AC_MSG_CHECKING([if we can lock with hard links])
2007 - hard_links=yes
2008 - $rm conftest*
2009 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2010 - touch conftest.a
2011 - ln conftest.a conftest.b 2>&5 || hard_links=no
2012 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
2013 - AC_MSG_RESULT([$hard_links])
2014 - if test "$hard_links" = no; then
2015 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2016 - need_locks=warn
2017 - fi
2018 +case X$lt_ECHO in
2019 +X*--fallback-echo)
2020 + # Remove one level of quotation (which was required for Make).
2021 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2022 + ;;
2023 +esac
2024 +
2025 +ECHO=${lt_ECHO-echo}
2026 +if test "X[$]1" = X--no-reexec; then
2027 + # Discard the --no-reexec flag, and continue.
2028 + shift
2029 +elif test "X[$]1" = X--fallback-echo; then
2030 + # Avoid inline document here, it may be left over
2031 + :
2032 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2033 + # Yippee, $ECHO works!
2034 + :
2035 else
2036 - need_locks=no
2037 + # Restart under the correct shell.
2038 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2039 fi
2040 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2041
2042 -
2043 -# AC_LIBTOOL_OBJDIR
2044 -# -----------------
2045 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
2046 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2047 -[rm -f .libs 2>/dev/null
2048 -mkdir .libs 2>/dev/null
2049 -if test -d .libs; then
2050 - lt_cv_objdir=.libs
2051 -else
2052 - # MS-DOS does not allow filenames that begin with a dot.
2053 - lt_cv_objdir=_libs
2054 +if test "X[$]1" = X--fallback-echo; then
2055 + # used as fallback echo
2056 + shift
2057 + cat <<_LT_EOF
2058 +[$]*
2059 +_LT_EOF
2060 + exit 0
2061 fi
2062 -rmdir .libs 2>/dev/null])
2063 -objdir=$lt_cv_objdir
2064 -])# AC_LIBTOOL_OBJDIR
2065
2066 +# The HP-UX ksh and POSIX shell print the target directory to stdout
2067 +# if CDPATH is set.
2068 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2069
2070 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2071 -# ----------------------------------------------
2072 -# Check hardcoding attributes.
2073 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2074 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
2075 -_LT_AC_TAGVAR(hardcode_action, $1)=
2076 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2077 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2078 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2079 -
2080 - # We can hardcode non-existant directories.
2081 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2082 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
2083 - # have to relink, otherwise we might link with an installed library
2084 - # when we should be linking with a yet-to-be-installed one
2085 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2086 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2087 - # Linking always hardcodes the temporary library directory.
2088 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
2089 - else
2090 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
2091 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2092 +if test -z "$lt_ECHO"; then
2093 + if test "X${echo_test_string+set}" != Xset; then
2094 + # find a string as large as possible, as long as the shell can cope with it
2095 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2096 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2097 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2098 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2099 + then
2100 + break
2101 + fi
2102 + done
2103 fi
2104 -else
2105 - # We cannot hardcode anything, or else we can only hardcode existing
2106 - # directories.
2107 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2108 -fi
2109 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2110
2111 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2112 - # Fast installation is not supported
2113 - enable_fast_install=no
2114 -elif test "$shlibpath_overrides_runpath" = yes ||
2115 - test "$enable_shared" = no; then
2116 - # Fast installation is not necessary
2117 - enable_fast_install=needless
2118 -fi
2119 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2120 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2121 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2122 + test "X$echo_testing_string" = "X$echo_test_string"; then
2123 + :
2124 + else
2125 + # The Solaris, AIX, and Digital Unix default echo programs unquote
2126 + # backslashes. This makes it impossible to quote backslashes using
2127 + # echo "$something" | sed 's/\\/\\\\/g'
2128 + #
2129 + # So, first we look for a working echo in the user's PATH.
2130
2131 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2132 + for dir in $PATH /usr/ucb; do
2133 + IFS="$lt_save_ifs"
2134 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2135 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2136 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2137 + test "X$echo_testing_string" = "X$echo_test_string"; then
2138 + ECHO="$dir/echo"
2139 + break
2140 + fi
2141 + done
2142 + IFS="$lt_save_ifs"
2143
2144 -# AC_LIBTOOL_SYS_LIB_STRIP
2145 -# ------------------------
2146 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2147 -[striplib=
2148 -old_striplib=
2149 -AC_MSG_CHECKING([whether stripping libraries is possible])
2150 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2151 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2152 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2153 - AC_MSG_RESULT([yes])
2154 -else
2155 -# FIXME - insert some real tests, host_os isn't really good enough
2156 - case $host_os in
2157 - darwin*)
2158 - if test -n "$STRIP" ; then
2159 - striplib="$STRIP -x"
2160 - AC_MSG_RESULT([yes])
2161 - else
2162 - AC_MSG_RESULT([no])
2163 -fi
2164 - ;;
2165 - *)
2166 - AC_MSG_RESULT([no])
2167 - ;;
2168 - esac
2169 -fi
2170 -])# AC_LIBTOOL_SYS_LIB_STRIP
2171 + if test "X$ECHO" = Xecho; then
2172 + # We didn't find a better echo, so look for alternatives.
2173 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2174 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2175 + test "X$echo_testing_string" = "X$echo_test_string"; then
2176 + # This shell has a builtin print -r that does the trick.
2177 + ECHO='print -r'
2178 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2179 + test "X$CONFIG_SHELL" != X/bin/ksh; then
2180 + # If we have ksh, try running configure again with it.
2181 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2182 + export ORIGINAL_CONFIG_SHELL
2183 + CONFIG_SHELL=/bin/ksh
2184 + export CONFIG_SHELL
2185 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2186 + else
2187 + # Try using printf.
2188 + ECHO='printf %s\n'
2189 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2190 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2191 + test "X$echo_testing_string" = "X$echo_test_string"; then
2192 + # Cool, printf works
2193 + :
2194 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2195 + test "X$echo_testing_string" = 'X\t' &&
2196 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2197 + test "X$echo_testing_string" = "X$echo_test_string"; then
2198 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2199 + export CONFIG_SHELL
2200 + SHELL="$CONFIG_SHELL"
2201 + export SHELL
2202 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2203 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2204 + test "X$echo_testing_string" = 'X\t' &&
2205 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2206 + test "X$echo_testing_string" = "X$echo_test_string"; then
2207 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2208 + else
2209 + # maybe with a smaller string...
2210 + prev=:
2211
2212 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2213 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2214 + then
2215 + break
2216 + fi
2217 + prev="$cmd"
2218 + done
2219
2220 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2221 -# -----------------------------
2222 -# PORTME Fill in your ld.so characteristics
2223 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2224 -[AC_MSG_CHECKING([dynamic linker characteristics])
2225 -library_names_spec=
2226 -libname_spec='lib$name'
2227 -soname_spec=
2228 -shrext_cmds=".so"
2229 -postinstall_cmds=
2230 -postuninstall_cmds=
2231 -finish_cmds=
2232 -finish_eval=
2233 -shlibpath_var=
2234 -shlibpath_overrides_runpath=unknown
2235 -version_type=none
2236 -dynamic_linker="$host_os ld.so"
2237 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
2238 -if test "$GCC" = yes; then
2239 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2240 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2241 - # if the path contains ";" then we assume it to be the separator
2242 - # otherwise default to the standard path separator (i.e. ":") - it is
2243 - # assumed that no part of a normal pathname contains ";" but that should
2244 - # okay in the real world where ";" in dirpaths is itself problematic.
2245 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2246 - else
2247 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2248 + if test "$prev" != 'sed 50q "[$]0"'; then
2249 + echo_test_string=`eval $prev`
2250 + export echo_test_string
2251 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2252 + else
2253 + # Oops. We lost completely, so just stick with echo.
2254 + ECHO=echo
2255 + fi
2256 + fi
2257 + fi
2258 + fi
2259 fi
2260 -else
2261 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2262 fi
2263 -need_lib_prefix=unknown
2264 -hardcode_into_libs=no
2265
2266 -# when you set need_version to no, make sure it does not cause -set_version
2267 -# flags to be left without arguments
2268 -need_version=unknown
2269 +# Copy echo and quote the copy suitably for passing to libtool from
2270 +# the Makefile, instead of quoting the original, which is used later.
2271 +lt_ECHO=$ECHO
2272 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2273 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2274 +fi
2275
2276 -case $host_os in
2277 -aix3*)
2278 - version_type=linux
2279 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2280 - shlibpath_var=LIBPATH
2281 +AC_SUBST(lt_ECHO)
2282 +])
2283 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2284 +_LT_DECL([], [ECHO], [1],
2285 + [An echo program that does not interpret backslashes])
2286 +])# _LT_PROG_ECHO_BACKSLASH
2287
2288 - # AIX 3 has no versioning support, so we append a major version to the name.
2289 - soname_spec='${libname}${release}${shared_ext}$major'
2290 - ;;
2291
2292 -aix4* | aix5*)
2293 - version_type=linux
2294 - need_lib_prefix=no
2295 - need_version=no
2296 - hardcode_into_libs=yes
2297 - if test "$host_cpu" = ia64; then
2298 - # AIX 5 supports IA64
2299 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2300 - shlibpath_var=LD_LIBRARY_PATH
2301 - else
2302 - # With GCC up to 2.95.x, collect2 would create an import file
2303 - # for dependence libraries. The import file would start with
2304 - # the line `#! .'. This would cause the generated library to
2305 - # depend on `.', always an invalid library. This was fixed in
2306 - # development snapshots of GCC prior to 3.0.
2307 - case $host_os in
2308 - aix4 | aix4.[[01]] | aix4.[[01]].*)
2309 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2310 - echo ' yes '
2311 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2312 - :
2313 - else
2314 - can_build_shared=no
2315 - fi
2316 - ;;
2317 +# _LT_ENABLE_LOCK
2318 +# ---------------
2319 +m4_defun([_LT_ENABLE_LOCK],
2320 +[AC_ARG_ENABLE([libtool-lock],
2321 + [AS_HELP_STRING([--disable-libtool-lock],
2322 + [avoid locking (might break parallel builds)])])
2323 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2324 +
2325 +# Some flags need to be propagated to the compiler or linker for good
2326 +# libtool support.
2327 +case $host in
2328 +ia64-*-hpux*)
2329 + # Find out which ABI we are using.
2330 + echo 'int i;' > conftest.$ac_ext
2331 + if AC_TRY_EVAL(ac_compile); then
2332 + case `/usr/bin/file conftest.$ac_objext` in
2333 + *ELF-32*)
2334 + HPUX_IA64_MODE="32"
2335 + ;;
2336 + *ELF-64*)
2337 + HPUX_IA64_MODE="64"
2338 + ;;
2339 esac
2340 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2341 - # soname into executable. Probably we can add versioning support to
2342 - # collect2, so additional links can be useful in future.
2343 - if test "$aix_use_runtimelinking" = yes; then
2344 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2345 - # instead of lib<name>.a to let people know that these are not
2346 - # typical AIX shared libraries.
2347 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2348 + fi
2349 + rm -rf conftest*
2350 + ;;
2351 +*-*-irix6*)
2352 + # Find out which ABI we are using.
2353 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2354 + if AC_TRY_EVAL(ac_compile); then
2355 + if test "$lt_cv_prog_gnu_ld" = yes; then
2356 + case `/usr/bin/file conftest.$ac_objext` in
2357 + *32-bit*)
2358 + LD="${LD-ld} -melf32bsmip"
2359 + ;;
2360 + *N32*)
2361 + LD="${LD-ld} -melf32bmipn32"
2362 + ;;
2363 + *64-bit*)
2364 + LD="${LD-ld} -melf64bmip"
2365 + ;;
2366 + esac
2367 else
2368 - # We preserve .a as extension for shared libraries through AIX4.2
2369 - # and later when we are not doing run time linking.
2370 - library_names_spec='${libname}${release}.a $libname.a'
2371 - soname_spec='${libname}${release}${shared_ext}$major'
2372 + case `/usr/bin/file conftest.$ac_objext` in
2373 + *32-bit*)
2374 + LD="${LD-ld} -32"
2375 + ;;
2376 + *N32*)
2377 + LD="${LD-ld} -n32"
2378 + ;;
2379 + *64-bit*)
2380 + LD="${LD-ld} -64"
2381 + ;;
2382 + esac
2383 fi
2384 - shlibpath_var=LIBPATH
2385 fi
2386 + rm -rf conftest*
2387 ;;
2388
2389 -amigaos*)
2390 - library_names_spec='$libname.ixlibrary $libname.a'
2391 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
2392 - 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'
2393 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2394 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2395 + # Find out which ABI we are using.
2396 + echo 'int i;' > conftest.$ac_ext
2397 + if AC_TRY_EVAL(ac_compile); then
2398 + case `/usr/bin/file conftest.o` in
2399 + *32-bit*)
2400 + case $host in
2401 + x86_64-*kfreebsd*-gnu)
2402 + LD="${LD-ld} -m elf_i386_fbsd"
2403 + ;;
2404 + x86_64-*linux*)
2405 + LD="${LD-ld} -m elf_i386"
2406 + ;;
2407 + ppc64-*linux*|powerpc64-*linux*)
2408 + LD="${LD-ld} -m elf32ppclinux"
2409 + ;;
2410 + s390x-*linux*)
2411 + LD="${LD-ld} -m elf_s390"
2412 + ;;
2413 + sparc64-*linux*)
2414 + LD="${LD-ld} -m elf32_sparc"
2415 + ;;
2416 + esac
2417 + ;;
2418 + *64-bit*)
2419 + case $host in
2420 + x86_64-*kfreebsd*-gnu)
2421 + LD="${LD-ld} -m elf_x86_64_fbsd"
2422 + ;;
2423 + x86_64-*linux*)
2424 + LD="${LD-ld} -m elf_x86_64"
2425 + ;;
2426 + ppc*-*linux*|powerpc*-*linux*)
2427 + LD="${LD-ld} -m elf64ppc"
2428 + ;;
2429 + s390*-*linux*|s390*-*tpf*)
2430 + LD="${LD-ld} -m elf64_s390"
2431 + ;;
2432 + sparc*-*linux*)
2433 + LD="${LD-ld} -m elf64_sparc"
2434 + ;;
2435 + esac
2436 + ;;
2437 + esac
2438 + fi
2439 + rm -rf conftest*
2440 ;;
2441
2442 -beos*)
2443 - library_names_spec='${libname}${shared_ext}'
2444 - dynamic_linker="$host_os ld.so"
2445 - shlibpath_var=LIBRARY_PATH
2446 +*-*-sco3.2v5*)
2447 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2448 + SAVE_CFLAGS="$CFLAGS"
2449 + CFLAGS="$CFLAGS -belf"
2450 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2451 + [AC_LANG_PUSH(C)
2452 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2453 + AC_LANG_POP])
2454 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2455 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2456 + CFLAGS="$SAVE_CFLAGS"
2457 + fi
2458 ;;
2459 -
2460 -bsdi[[45]]*)
2461 - version_type=linux
2462 - need_version=no
2463 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2464 - soname_spec='${libname}${release}${shared_ext}$major'
2465 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2466 - shlibpath_var=LD_LIBRARY_PATH
2467 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2468 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2469 - # the default ld.so.conf also contains /usr/contrib/lib and
2470 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2471 - # libtool to hard-code these into programs
2472 +sparc*-*solaris*)
2473 + # Find out which ABI we are using.
2474 + echo 'int i;' > conftest.$ac_ext
2475 + if AC_TRY_EVAL(ac_compile); then
2476 + case `/usr/bin/file conftest.o` in
2477 + *64-bit*)
2478 + case $lt_cv_prog_gnu_ld in
2479 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2480 + *)
2481 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2482 + LD="${LD-ld} -64"
2483 + fi
2484 + ;;
2485 + esac
2486 + ;;
2487 + esac
2488 + fi
2489 + rm -rf conftest*
2490 ;;
2491 +esac
2492
2493 -cygwin* | mingw* | pw32*)
2494 - version_type=windows
2495 - shrext_cmds=".dll"
2496 - need_version=no
2497 - need_lib_prefix=no
2498 +need_locks="$enable_libtool_lock"
2499 +])# _LT_ENABLE_LOCK
2500
2501 - case $GCC,$host_os in
2502 - yes,cygwin* | yes,mingw* | yes,pw32*)
2503 - library_names_spec='$libname.dll.a'
2504 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
2505 - postinstall_cmds='base_file=`basename \${file}`~
2506 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2507 - dldir=$destdir/`dirname \$dlpath`~
2508 - test -d \$dldir || mkdir -p \$dldir~
2509 - $install_prog $dir/$dlname \$dldir/$dlname~
2510 - chmod a+x \$dldir/$dlname'
2511 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2512 - dlpath=$dir/\$dldll~
2513 - $rm \$dlpath'
2514 - shlibpath_overrides_runpath=yes
2515
2516 - case $host_os in
2517 - cygwin*)
2518 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2519 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2520 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2521 - ;;
2522 - mingw*)
2523 - # MinGW DLLs use traditional 'lib' prefix
2524 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2525 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2526 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2527 - # It is most probably a Windows format PATH printed by
2528 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
2529 - # path with ; separators, and with drive letters. We can handle the
2530 - # drive letters (cygwin fileutils understands them), so leave them,
2531 - # especially as we might pass files found there to a mingw objdump,
2532 - # which wouldn't understand a cygwinified path. Ahh.
2533 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2534 - else
2535 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2536 - fi
2537 - ;;
2538 - pw32*)
2539 - # pw32 DLLs use 'pw' prefix rather than 'lib'
2540 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2541 - ;;
2542 - esac
2543 - ;;
2544 +# _LT_CMD_OLD_ARCHIVE
2545 +# -------------------
2546 +m4_defun([_LT_CMD_OLD_ARCHIVE],
2547 +[AC_CHECK_TOOL(AR, ar, false)
2548 +test -z "$AR" && AR=ar
2549 +test -z "$AR_FLAGS" && AR_FLAGS=cru
2550 +_LT_DECL([], [AR], [1], [The archiver])
2551 +_LT_DECL([], [AR_FLAGS], [1])
2552 +
2553 +AC_CHECK_TOOL(STRIP, strip, :)
2554 +test -z "$STRIP" && STRIP=:
2555 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2556 +
2557 +AC_CHECK_TOOL(RANLIB, ranlib, :)
2558 +test -z "$RANLIB" && RANLIB=:
2559 +_LT_DECL([], [RANLIB], [1],
2560 + [Commands used to install an old-style archive])
2561 +
2562 +# Determine commands to create old-style static archives.
2563 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2564 +old_postinstall_cmds='chmod 644 $oldlib'
2565 +old_postuninstall_cmds=
2566
2567 +if test -n "$RANLIB"; then
2568 + case $host_os in
2569 + openbsd*)
2570 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2571 + ;;
2572 *)
2573 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2574 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2575 ;;
2576 esac
2577 - dynamic_linker='Win32 ld.exe'
2578 - # FIXME: first we should search . and the directory the executable is in
2579 - shlibpath_var=PATH
2580 - ;;
2581 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2582 +fi
2583 +_LT_DECL([], [old_postinstall_cmds], [2])
2584 +_LT_DECL([], [old_postuninstall_cmds], [2])
2585 +_LT_TAGDECL([], [old_archive_cmds], [2],
2586 + [Commands used to build an old-style archive])
2587 +])# _LT_CMD_OLD_ARCHIVE
2588
2589 -darwin* | rhapsody*)
2590 - dynamic_linker="$host_os dyld"
2591 - version_type=darwin
2592 - need_lib_prefix=no
2593 - need_version=no
2594 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2595 - soname_spec='${libname}${release}${major}$shared_ext'
2596 - shlibpath_overrides_runpath=yes
2597 - shlibpath_var=DYLD_LIBRARY_PATH
2598 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2599 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2600 - if test "$GCC" = yes; then
2601 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2602 - else
2603 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2604 - fi
2605 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2606 - ;;
2607
2608 -dgux*)
2609 - version_type=linux
2610 - need_lib_prefix=no
2611 - need_version=no
2612 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2613 - soname_spec='${libname}${release}${shared_ext}$major'
2614 - shlibpath_var=LD_LIBRARY_PATH
2615 - ;;
2616 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2617 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2618 +# ----------------------------------------------------------------
2619 +# Check whether the given compiler option works
2620 +AC_DEFUN([_LT_COMPILER_OPTION],
2621 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2622 +m4_require([_LT_DECL_SED])dnl
2623 +AC_CACHE_CHECK([$1], [$2],
2624 + [$2=no
2625 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2626 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2627 + lt_compiler_flag="$3"
2628 + # Insert the option either (1) after the last *FLAGS variable, or
2629 + # (2) before a word containing "conftest.", or (3) at the end.
2630 + # Note that $ac_compile itself does not contain backslashes and begins
2631 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2632 + # The option is referenced via a variable to avoid confusing sed.
2633 + lt_compile=`echo "$ac_compile" | $SED \
2634 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2635 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2636 + -e 's:$: $lt_compiler_flag:'`
2637 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2638 + (eval "$lt_compile" 2>conftest.err)
2639 + ac_status=$?
2640 + cat conftest.err >&AS_MESSAGE_LOG_FD
2641 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2642 + if (exit $ac_status) && test -s "$ac_outfile"; then
2643 + # The compiler can only warn and ignore the option if not recognized
2644 + # So say no if there are warnings other than the usual output.
2645 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2646 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2647 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2648 + $2=yes
2649 + fi
2650 + fi
2651 + $RM conftest*
2652 +])
2653
2654 -freebsd1*)
2655 - dynamic_linker=no
2656 - ;;
2657 +if test x"[$]$2" = xyes; then
2658 + m4_if([$5], , :, [$5])
2659 +else
2660 + m4_if([$6], , :, [$6])
2661 +fi
2662 +])# _LT_COMPILER_OPTION
2663
2664 -kfreebsd*-gnu)
2665 - version_type=linux
2666 - need_lib_prefix=no
2667 - need_version=no
2668 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2669 - soname_spec='${libname}${release}${shared_ext}$major'
2670 - shlibpath_var=LD_LIBRARY_PATH
2671 - shlibpath_overrides_runpath=no
2672 - hardcode_into_libs=yes
2673 - dynamic_linker='GNU ld.so'
2674 - ;;
2675 +# Old name:
2676 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2677 +dnl aclocal-1.4 backwards compatibility:
2678 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2679
2680 -freebsd* | dragonfly*)
2681 - # DragonFly does not have aout. When/if they implement a new
2682 - # versioning mechanism, adjust this.
2683 - if test -x /usr/bin/objformat; then
2684 - objformat=`/usr/bin/objformat`
2685 - else
2686 - case $host_os in
2687 - freebsd[[123]]*) objformat=aout ;;
2688 - *) objformat=elf ;;
2689 - esac
2690 - fi
2691 - version_type=freebsd-$objformat
2692 - case $version_type in
2693 - freebsd-elf*)
2694 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2695 - need_version=no
2696 - need_lib_prefix=no
2697 - ;;
2698 - freebsd-*)
2699 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2700 - need_version=yes
2701 - ;;
2702 - esac
2703 - shlibpath_var=LD_LIBRARY_PATH
2704 - case $host_os in
2705 - freebsd2*)
2706 - shlibpath_overrides_runpath=yes
2707 - ;;
2708 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2709 - shlibpath_overrides_runpath=yes
2710 - hardcode_into_libs=yes
2711 +
2712 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2713 +# [ACTION-SUCCESS], [ACTION-FAILURE])
2714 +# ----------------------------------------------------
2715 +# Check whether the given linker option works
2716 +AC_DEFUN([_LT_LINKER_OPTION],
2717 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2718 +m4_require([_LT_DECL_SED])dnl
2719 +AC_CACHE_CHECK([$1], [$2],
2720 + [$2=no
2721 + save_LDFLAGS="$LDFLAGS"
2722 + LDFLAGS="$LDFLAGS $3"
2723 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
2724 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2725 + # The linker can only warn and ignore the option if not recognized
2726 + # So say no if there are warnings
2727 + if test -s conftest.err; then
2728 + # Append any errors to the config.log.
2729 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
2730 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2731 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2732 + if diff conftest.exp conftest.er2 >/dev/null; then
2733 + $2=yes
2734 + fi
2735 + else
2736 + $2=yes
2737 + fi
2738 + fi
2739 + $RM -r conftest*
2740 + LDFLAGS="$save_LDFLAGS"
2741 +])
2742 +
2743 +if test x"[$]$2" = xyes; then
2744 + m4_if([$4], , :, [$4])
2745 +else
2746 + m4_if([$5], , :, [$5])
2747 +fi
2748 +])# _LT_LINKER_OPTION
2749 +
2750 +# Old name:
2751 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2752 +dnl aclocal-1.4 backwards compatibility:
2753 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2754 +
2755 +
2756 +# LT_CMD_MAX_LEN
2757 +#---------------
2758 +AC_DEFUN([LT_CMD_MAX_LEN],
2759 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2760 +# find the maximum length of command line arguments
2761 +AC_MSG_CHECKING([the maximum length of command line arguments])
2762 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2763 + i=0
2764 + teststring="ABCD"
2765 +
2766 + case $build_os in
2767 + msdosdjgpp*)
2768 + # On DJGPP, this test can blow up pretty badly due to problems in libc
2769 + # (any single argument exceeding 2000 bytes causes a buffer overrun
2770 + # during glob expansion). Even if it were fixed, the result of this
2771 + # check would be larger than it should be.
2772 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
2773 ;;
2774 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2775 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2776 - shlibpath_overrides_runpath=no
2777 - hardcode_into_libs=yes
2778 +
2779 + gnu*)
2780 + # Under GNU Hurd, this test is not required because there is
2781 + # no limit to the length of command line arguments.
2782 + # Libtool will interpret -1 as no limit whatsoever
2783 + lt_cv_sys_max_cmd_len=-1;
2784 ;;
2785 - freebsd*) # from 4.6 on
2786 - shlibpath_overrides_runpath=yes
2787 - hardcode_into_libs=yes
2788 +
2789 + cygwin* | mingw*)
2790 + # On Win9x/ME, this test blows up -- it succeeds, but takes
2791 + # about 5 minutes as the teststring grows exponentially.
2792 + # Worse, since 9x/ME are not pre-emptively multitasking,
2793 + # you end up with a "frozen" computer, even though with patience
2794 + # the test eventually succeeds (with a max line length of 256k).
2795 + # Instead, let's just punt: use the minimum linelength reported by
2796 + # all of the supported platforms: 8192 (on NT/2K/XP).
2797 + lt_cv_sys_max_cmd_len=8192;
2798 ;;
2799 - esac
2800 - ;;
2801
2802 -gnu*)
2803 - version_type=linux
2804 - need_lib_prefix=no
2805 - need_version=no
2806 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2807 - soname_spec='${libname}${release}${shared_ext}$major'
2808 - shlibpath_var=LD_LIBRARY_PATH
2809 - hardcode_into_libs=yes
2810 - ;;
2811 + amigaos*)
2812 + # On AmigaOS with pdksh, this test takes hours, literally.
2813 + # So we just punt and use a minimum line length of 8192.
2814 + lt_cv_sys_max_cmd_len=8192;
2815 + ;;
2816
2817 -hpux9* | hpux10* | hpux11*)
2818 - # Give a soname corresponding to the major version so that dld.sl refuses to
2819 - # link against other versions.
2820 - version_type=sunos
2821 - need_lib_prefix=no
2822 - need_version=no
2823 - case $host_cpu in
2824 - ia64*)
2825 - shrext_cmds='.so'
2826 - hardcode_into_libs=yes
2827 - dynamic_linker="$host_os dld.so"
2828 - shlibpath_var=LD_LIBRARY_PATH
2829 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2830 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2831 - soname_spec='${libname}${release}${shared_ext}$major'
2832 - if test "X$HPUX_IA64_MODE" = X32; then
2833 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2834 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2835 + # This has been around since 386BSD, at least. Likely further.
2836 + if test -x /sbin/sysctl; then
2837 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2838 + elif test -x /usr/sbin/sysctl; then
2839 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2840 else
2841 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2842 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2843 fi
2844 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2845 - ;;
2846 - hppa*64*)
2847 - shrext_cmds='.sl'
2848 - hardcode_into_libs=yes
2849 - dynamic_linker="$host_os dld.sl"
2850 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2851 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2852 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2853 - soname_spec='${libname}${release}${shared_ext}$major'
2854 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2855 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2856 - ;;
2857 - *)
2858 - shrext_cmds='.sl'
2859 - dynamic_linker="$host_os dld.sl"
2860 - shlibpath_var=SHLIB_PATH
2861 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2862 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2863 - soname_spec='${libname}${release}${shared_ext}$major'
2864 + # And add a safety zone
2865 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2866 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2867 ;;
2868 - esac
2869 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
2870 - postinstall_cmds='chmod 555 $lib'
2871 - ;;
2872
2873 -interix3*)
2874 - version_type=linux
2875 - need_lib_prefix=no
2876 - need_version=no
2877 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2878 - soname_spec='${libname}${release}${shared_ext}$major'
2879 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2880 - shlibpath_var=LD_LIBRARY_PATH
2881 - shlibpath_overrides_runpath=no
2882 - hardcode_into_libs=yes
2883 - ;;
2884 + interix*)
2885 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2886 + lt_cv_sys_max_cmd_len=196608
2887 + ;;
2888
2889 -irix5* | irix6* | nonstopux*)
2890 - case $host_os in
2891 - nonstopux*) version_type=nonstopux ;;
2892 - *)
2893 - if test "$lt_cv_prog_gnu_ld" = yes; then
2894 - version_type=linux
2895 - else
2896 - version_type=irix
2897 - fi ;;
2898 - esac
2899 - need_lib_prefix=no
2900 - need_version=no
2901 - soname_spec='${libname}${release}${shared_ext}$major'
2902 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2903 - case $host_os in
2904 - irix5* | nonstopux*)
2905 - libsuff= shlibsuff=
2906 + osf*)
2907 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2908 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2909 + # nice to cause kernel panics so lets avoid the loop below.
2910 + # First set a reasonable default.
2911 + lt_cv_sys_max_cmd_len=16384
2912 + #
2913 + if test -x /sbin/sysconfig; then
2914 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2915 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
2916 + esac
2917 + fi
2918 + ;;
2919 + sco3.2v5*)
2920 + lt_cv_sys_max_cmd_len=102400
2921 + ;;
2922 + sysv5* | sco5v6* | sysv4.2uw2*)
2923 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2924 + if test -n "$kargmax"; then
2925 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2926 + else
2927 + lt_cv_sys_max_cmd_len=32768
2928 + fi
2929 ;;
2930 *)
2931 - case $LD in # libtool.m4 will add one of these switches to LD
2932 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2933 - libsuff= shlibsuff= libmagic=32-bit;;
2934 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2935 - libsuff=32 shlibsuff=N32 libmagic=N32;;
2936 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2937 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
2938 - *) libsuff= shlibsuff= libmagic=never-match;;
2939 - esac
2940 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2941 + if test -n "$lt_cv_sys_max_cmd_len"; then
2942 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2943 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2944 + else
2945 + # Make teststring a little bigger before we do anything with it.
2946 + # a 1K string should be a reasonable start.
2947 + for i in 1 2 3 4 5 6 7 8 ; do
2948 + teststring=$teststring$teststring
2949 + done
2950 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2951 + # If test is not a shell built-in, we'll probably end up computing a
2952 + # maximum length that is only half of the actual maximum length, but
2953 + # we can't tell.
2954 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2955 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2956 + test $i != 17 # 1/2 MB should be enough
2957 + do
2958 + i=`expr $i + 1`
2959 + teststring=$teststring$teststring
2960 + done
2961 + # Only check the string length outside the loop.
2962 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2963 + teststring=
2964 + # Add a significant safety factor because C++ compilers can tack on
2965 + # massive amounts of additional arguments before passing them to the
2966 + # linker. It appears as though 1/2 is a usable value.
2967 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2968 + fi
2969 ;;
2970 esac
2971 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2972 - shlibpath_overrides_runpath=no
2973 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2974 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2975 - hardcode_into_libs=yes
2976 - ;;
2977 +])
2978 +if test -n $lt_cv_sys_max_cmd_len ; then
2979 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2980 +else
2981 + AC_MSG_RESULT(none)
2982 +fi
2983 +max_cmd_len=$lt_cv_sys_max_cmd_len
2984 +_LT_DECL([], [max_cmd_len], [0],
2985 + [What is the maximum length of a command?])
2986 +])# LT_CMD_MAX_LEN
2987
2988 -# No shared lib support for Linux oldld, aout, or coff.
2989 -linux*oldld* | linux*aout* | linux*coff*)
2990 - dynamic_linker=no
2991 - ;;
2992 +# Old name:
2993 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2994 +dnl aclocal-1.4 backwards compatibility:
2995 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2996
2997 -# This must be Linux ELF.
2998 -linux*)
2999 - version_type=linux
3000 - need_lib_prefix=no
3001 - need_version=no
3002 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3003 - soname_spec='${libname}${release}${shared_ext}$major'
3004 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3005 - shlibpath_var=LD_LIBRARY_PATH
3006 - shlibpath_overrides_runpath=no
3007 - # This implies no fast_install, which is unacceptable.
3008 - # Some rework will be needed to allow for fast_install
3009 - # before this can be enabled.
3010 - hardcode_into_libs=yes
3011
3012 - # Append ld.so.conf contents to the search path
3013 - if test -f /etc/ld.so.conf; then
3014 - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3015 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3016 - fi
3017 +# _LT_HEADER_DLFCN
3018 +# ----------------
3019 +m4_defun([_LT_HEADER_DLFCN],
3020 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
3021 +])# _LT_HEADER_DLFCN
3022
3023 - # We used to test for /lib/ld.so.1 and disable shared libraries on
3024 - # powerpc, because MkLinux only supported shared libraries with the
3025 - # GNU dynamic linker. Since this was broken with cross compilers,
3026 - # most powerpc-linux boxes support dynamic linking these days and
3027 - # people can always --disable-shared, the test was removed, and we
3028 - # assume the GNU/Linux dynamic linker is in use.
3029 - dynamic_linker='GNU/Linux ld.so'
3030 - ;;
3031
3032 -knetbsd*-gnu)
3033 - version_type=linux
3034 - need_lib_prefix=no
3035 - need_version=no
3036 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3037 - soname_spec='${libname}${release}${shared_ext}$major'
3038 - shlibpath_var=LD_LIBRARY_PATH
3039 - shlibpath_overrides_runpath=no
3040 - hardcode_into_libs=yes
3041 - dynamic_linker='GNU ld.so'
3042 - ;;
3043 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3044 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3045 +# ----------------------------------------------------------------
3046 +m4_defun([_LT_TRY_DLOPEN_SELF],
3047 +[m4_require([_LT_HEADER_DLFCN])dnl
3048 +if test "$cross_compiling" = yes; then :
3049 + [$4]
3050 +else
3051 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
3052 + lt_status=$lt_dlunknown
3053 + cat > conftest.$ac_ext <<_LT_EOF
3054 +[#line __oline__ "configure"
3055 +#include "confdefs.h"
3056
3057 -netbsd*)
3058 - version_type=sunos
3059 - need_lib_prefix=no
3060 - need_version=no
3061 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3062 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3063 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3064 - dynamic_linker='NetBSD (a.out) ld.so'
3065 - else
3066 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3067 - soname_spec='${libname}${release}${shared_ext}$major'
3068 - dynamic_linker='NetBSD ld.elf_so'
3069 - fi
3070 - shlibpath_var=LD_LIBRARY_PATH
3071 - shlibpath_overrides_runpath=yes
3072 - hardcode_into_libs=yes
3073 - ;;
3074 +#if HAVE_DLFCN_H
3075 +#include <dlfcn.h>
3076 +#endif
3077
3078 -newsos6)
3079 - version_type=linux
3080 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3081 - shlibpath_var=LD_LIBRARY_PATH
3082 - shlibpath_overrides_runpath=yes
3083 - ;;
3084 +#include <stdio.h>
3085
3086 -nto-qnx*)
3087 - version_type=linux
3088 - need_lib_prefix=no
3089 - need_version=no
3090 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3091 - soname_spec='${libname}${release}${shared_ext}$major'
3092 - shlibpath_var=LD_LIBRARY_PATH
3093 - shlibpath_overrides_runpath=yes
3094 - ;;
3095 +#ifdef RTLD_GLOBAL
3096 +# define LT_DLGLOBAL RTLD_GLOBAL
3097 +#else
3098 +# ifdef DL_GLOBAL
3099 +# define LT_DLGLOBAL DL_GLOBAL
3100 +# else
3101 +# define LT_DLGLOBAL 0
3102 +# endif
3103 +#endif
3104
3105 -openbsd*)
3106 - version_type=sunos
3107 - sys_lib_dlsearch_path_spec="/usr/lib"
3108 - need_lib_prefix=no
3109 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3110 - case $host_os in
3111 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3112 - *) need_version=no ;;
3113 - esac
3114 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3115 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3116 - shlibpath_var=LD_LIBRARY_PATH
3117 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3118 - case $host_os in
3119 - openbsd2.[[89]] | openbsd2.[[89]].*)
3120 - shlibpath_overrides_runpath=no
3121 - ;;
3122 - *)
3123 - shlibpath_overrides_runpath=yes
3124 - ;;
3125 - esac
3126 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
3127 + find out it does not work in some platform. */
3128 +#ifndef LT_DLLAZY_OR_NOW
3129 +# ifdef RTLD_LAZY
3130 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
3131 +# else
3132 +# ifdef DL_LAZY
3133 +# define LT_DLLAZY_OR_NOW DL_LAZY
3134 +# else
3135 +# ifdef RTLD_NOW
3136 +# define LT_DLLAZY_OR_NOW RTLD_NOW
3137 +# else
3138 +# ifdef DL_NOW
3139 +# define LT_DLLAZY_OR_NOW DL_NOW
3140 +# else
3141 +# define LT_DLLAZY_OR_NOW 0
3142 +# endif
3143 +# endif
3144 +# endif
3145 +# endif
3146 +#endif
3147 +
3148 +#ifdef __cplusplus
3149 +extern "C" void exit (int);
3150 +#endif
3151 +
3152 +void fnord() { int i=42;}
3153 +int main ()
3154 +{
3155 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
3156 + int status = $lt_dlunknown;
3157 +
3158 + if (self)
3159 + {
3160 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3161 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
3162 + /* dlclose (self); */
3163 + }
3164 else
3165 - shlibpath_overrides_runpath=yes
3166 + puts (dlerror ());
3167 +
3168 + exit (status);
3169 +}]
3170 +_LT_EOF
3171 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
3172 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
3173 + lt_status=$?
3174 + case x$lt_status in
3175 + x$lt_dlno_uscore) $1 ;;
3176 + x$lt_dlneed_uscore) $2 ;;
3177 + x$lt_dlunknown|x*) $3 ;;
3178 + esac
3179 + else :
3180 + # compilation failed
3181 + $3
3182 fi
3183 - ;;
3184 +fi
3185 +rm -fr conftest*
3186 +])# _LT_TRY_DLOPEN_SELF
3187
3188 -os2*)
3189 - libname_spec='$name'
3190 - shrext_cmds=".dll"
3191 - need_lib_prefix=no
3192 - library_names_spec='$libname${shared_ext} $libname.a'
3193 - dynamic_linker='OS/2 ld.exe'
3194 - shlibpath_var=LIBPATH
3195 - ;;
3196
3197 -osf3* | osf4* | osf5*)
3198 - version_type=osf
3199 - need_lib_prefix=no
3200 - need_version=no
3201 - soname_spec='${libname}${release}${shared_ext}$major'
3202 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3203 - shlibpath_var=LD_LIBRARY_PATH
3204 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3205 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3206 - ;;
3207 +# LT_SYS_DLOPEN_SELF
3208 +# ------------------
3209 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
3210 +[m4_require([_LT_HEADER_DLFCN])dnl
3211 +if test "x$enable_dlopen" != xyes; then
3212 + enable_dlopen=unknown
3213 + enable_dlopen_self=unknown
3214 + enable_dlopen_self_static=unknown
3215 +else
3216 + lt_cv_dlopen=no
3217 + lt_cv_dlopen_libs=
3218
3219 -solaris*)
3220 - version_type=linux
3221 - need_lib_prefix=no
3222 - need_version=no
3223 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3224 - soname_spec='${libname}${release}${shared_ext}$major'
3225 - shlibpath_var=LD_LIBRARY_PATH
3226 - shlibpath_overrides_runpath=yes
3227 - hardcode_into_libs=yes
3228 - # ldd complains unless libraries are executable
3229 - postinstall_cmds='chmod +x $lib'
3230 - ;;
3231 + case $host_os in
3232 + beos*)
3233 + lt_cv_dlopen="load_add_on"
3234 + lt_cv_dlopen_libs=
3235 + lt_cv_dlopen_self=yes
3236 + ;;
3237
3238 -sunos4*)
3239 - version_type=sunos
3240 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3241 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3242 - shlibpath_var=LD_LIBRARY_PATH
3243 - shlibpath_overrides_runpath=yes
3244 - if test "$with_gnu_ld" = yes; then
3245 - need_lib_prefix=no
3246 - fi
3247 - need_version=yes
3248 - ;;
3249 + mingw* | pw32*)
3250 + lt_cv_dlopen="LoadLibrary"
3251 + lt_cv_dlopen_libs=
3252 + ;;
3253
3254 -sysv4 | sysv4.3*)
3255 - version_type=linux
3256 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3257 - soname_spec='${libname}${release}${shared_ext}$major'
3258 - shlibpath_var=LD_LIBRARY_PATH
3259 - case $host_vendor in
3260 - sni)
3261 - shlibpath_overrides_runpath=no
3262 - need_lib_prefix=no
3263 - export_dynamic_flag_spec='${wl}-Blargedynsym'
3264 - runpath_var=LD_RUN_PATH
3265 - ;;
3266 - siemens)
3267 - need_lib_prefix=no
3268 - ;;
3269 - motorola)
3270 - need_lib_prefix=no
3271 - need_version=no
3272 - shlibpath_overrides_runpath=no
3273 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3274 - ;;
3275 - esac
3276 - ;;
3277 + cygwin*)
3278 + lt_cv_dlopen="dlopen"
3279 + lt_cv_dlopen_libs=
3280 + ;;
3281
3282 -sysv4*MP*)
3283 - if test -d /usr/nec ;then
3284 - version_type=linux
3285 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3286 - soname_spec='$libname${shared_ext}.$major'
3287 - shlibpath_var=LD_LIBRARY_PATH
3288 - fi
3289 - ;;
3290 + darwin*)
3291 + # if libdl is installed we need to link against it
3292 + AC_CHECK_LIB([dl], [dlopen],
3293 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
3294 + lt_cv_dlopen="dyld"
3295 + lt_cv_dlopen_libs=
3296 + lt_cv_dlopen_self=yes
3297 + ])
3298 + ;;
3299
3300 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3301 - version_type=freebsd-elf
3302 - need_lib_prefix=no
3303 - need_version=no
3304 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3305 - soname_spec='${libname}${release}${shared_ext}$major'
3306 - shlibpath_var=LD_LIBRARY_PATH
3307 - hardcode_into_libs=yes
3308 - if test "$with_gnu_ld" = yes; then
3309 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3310 - shlibpath_overrides_runpath=no
3311 + *)
3312 + AC_CHECK_FUNC([shl_load],
3313 + [lt_cv_dlopen="shl_load"],
3314 + [AC_CHECK_LIB([dld], [shl_load],
3315 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
3316 + [AC_CHECK_FUNC([dlopen],
3317 + [lt_cv_dlopen="dlopen"],
3318 + [AC_CHECK_LIB([dl], [dlopen],
3319 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
3320 + [AC_CHECK_LIB([svld], [dlopen],
3321 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
3322 + [AC_CHECK_LIB([dld], [dld_link],
3323 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
3324 + ])
3325 + ])
3326 + ])
3327 + ])
3328 + ])
3329 + ;;
3330 + esac
3331 +
3332 + if test "x$lt_cv_dlopen" != xno; then
3333 + enable_dlopen=yes
3334 else
3335 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3336 - shlibpath_overrides_runpath=yes
3337 - case $host_os in
3338 - sco3.2v5*)
3339 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3340 - ;;
3341 - esac
3342 + enable_dlopen=no
3343 fi
3344 - sys_lib_dlsearch_path_spec='/usr/lib'
3345 - ;;
3346 -
3347 -uts4*)
3348 - version_type=linux
3349 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3350 - soname_spec='${libname}${release}${shared_ext}$major'
3351 - shlibpath_var=LD_LIBRARY_PATH
3352 - ;;
3353 -
3354 -*)
3355 - dynamic_linker=no
3356 - ;;
3357 -esac
3358 -AC_MSG_RESULT([$dynamic_linker])
3359 -test "$dynamic_linker" = no && can_build_shared=no
3360 -
3361 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3362 -if test "$GCC" = yes; then
3363 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3364 -fi
3365 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3366 -
3367
3368 -# _LT_AC_TAGCONFIG
3369 -# ----------------
3370 -AC_DEFUN([_LT_AC_TAGCONFIG],
3371 -[AC_ARG_WITH([tags],
3372 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3373 - [include additional configurations @<:@automatic@:>@])],
3374 - [tagnames="$withval"])
3375 -
3376 -if test -f "$ltmain" && test -n "$tagnames"; then
3377 - if test ! -f "${ofile}"; then
3378 - AC_MSG_WARN([output file `$ofile' does not exist])
3379 - fi
3380 + case $lt_cv_dlopen in
3381 + dlopen)
3382 + save_CPPFLAGS="$CPPFLAGS"
3383 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
3384
3385 - if test -z "$LTCC"; then
3386 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3387 - if test -z "$LTCC"; then
3388 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3389 - else
3390 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3391 - fi
3392 - fi
3393 - if test -z "$LTCFLAGS"; then
3394 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3395 - fi
3396 + save_LDFLAGS="$LDFLAGS"
3397 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
3398
3399 - # Extract list of available tagged configurations in $ofile.
3400 - # Note that this assumes the entire list is on one line.
3401 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3402 + save_LIBS="$LIBS"
3403 + LIBS="$lt_cv_dlopen_libs $LIBS"
3404
3405 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3406 - for tagname in $tagnames; do
3407 - IFS="$lt_save_ifs"
3408 - # Check whether tagname contains only valid characters
3409 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3410 - "") ;;
3411 - *) AC_MSG_ERROR([invalid tag name: $tagname])
3412 - ;;
3413 - esac
3414 + AC_CACHE_CHECK([whether a program can dlopen itself],
3415 + lt_cv_dlopen_self, [dnl
3416 + _LT_TRY_DLOPEN_SELF(
3417 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
3418 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
3419 + ])
3420
3421 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3422 - then
3423 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
3424 + if test "x$lt_cv_dlopen_self" = xyes; then
3425 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
3426 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
3427 + lt_cv_dlopen_self_static, [dnl
3428 + _LT_TRY_DLOPEN_SELF(
3429 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
3430 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
3431 + ])
3432 fi
3433
3434 - # Update the list of available tags.
3435 - if test -n "$tagname"; then
3436 - echo appending configuration tag \"$tagname\" to $ofile
3437 -
3438 - case $tagname in
3439 - CXX)
3440 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3441 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3442 - (test "X$CXX" != "Xg++"))) ; then
3443 - AC_LIBTOOL_LANG_CXX_CONFIG
3444 - else
3445 - tagname=""
3446 - fi
3447 - ;;
3448 -
3449 - F77)
3450 - if test -n "$F77" && test "X$F77" != "Xno"; then
3451 - AC_LIBTOOL_LANG_F77_CONFIG
3452 - else
3453 - tagname=""
3454 - fi
3455 - ;;
3456 -
3457 - GCJ)
3458 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3459 - AC_LIBTOOL_LANG_GCJ_CONFIG
3460 - else
3461 - tagname=""
3462 - fi
3463 - ;;
3464 -
3465 - RC)
3466 - AC_LIBTOOL_LANG_RC_CONFIG
3467 - ;;
3468 -
3469 - *)
3470 - AC_MSG_ERROR([Unsupported tag name: $tagname])
3471 - ;;
3472 - esac
3473 + CPPFLAGS="$save_CPPFLAGS"
3474 + LDFLAGS="$save_LDFLAGS"
3475 + LIBS="$save_LIBS"
3476 + ;;
3477 + esac
3478
3479 - # Append the new tag name to the list of available tags.
3480 - if test -n "$tagname" ; then
3481 - available_tags="$available_tags $tagname"
3482 - fi
3483 - fi
3484 - done
3485 - IFS="$lt_save_ifs"
3486 + case $lt_cv_dlopen_self in
3487 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
3488 + *) enable_dlopen_self=unknown ;;
3489 + esac
3490
3491 - # Now substitute the updated list of available tags.
3492 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3493 - mv "${ofile}T" "$ofile"
3494 - chmod +x "$ofile"
3495 - else
3496 - rm -f "${ofile}T"
3497 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
3498 - fi
3499 + case $lt_cv_dlopen_self_static in
3500 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
3501 + *) enable_dlopen_self_static=unknown ;;
3502 + esac
3503 fi
3504 -])# _LT_AC_TAGCONFIG
3505 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
3506 + [Whether dlopen is supported])
3507 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
3508 + [Whether dlopen of programs is supported])
3509 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
3510 + [Whether dlopen of statically linked programs is supported])
3511 +])# LT_SYS_DLOPEN_SELF
3512 +
3513 +# Old name:
3514 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
3515 +dnl aclocal-1.4 backwards compatibility:
3516 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
3517
3518
3519 -# AC_LIBTOOL_DLOPEN
3520 -# -----------------
3521 -# enable checks for dlopen support
3522 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
3523 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3524 -])# AC_LIBTOOL_DLOPEN
3525 +# _LT_COMPILER_C_O([TAGNAME])
3526 +# ---------------------------
3527 +# Check to see if options -c and -o are simultaneously supported by compiler.
3528 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
3529 +m4_defun([_LT_COMPILER_C_O],
3530 +[m4_require([_LT_DECL_SED])dnl
3531 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3532 +m4_require([_LT_TAG_COMPILER])dnl
3533 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
3534 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
3535 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
3536 + $RM -r conftest 2>/dev/null
3537 + mkdir conftest
3538 + cd conftest
3539 + mkdir out
3540 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
3541
3542 + lt_compiler_flag="-o out/conftest2.$ac_objext"
3543 + # Insert the option either (1) after the last *FLAGS variable, or
3544 + # (2) before a word containing "conftest.", or (3) at the end.
3545 + # Note that $ac_compile itself does not contain backslashes and begins
3546 + # with a dollar sign (not a hyphen), so the echo should work correctly.
3547 + lt_compile=`echo "$ac_compile" | $SED \
3548 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
3549 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3550 + -e 's:$: $lt_compiler_flag:'`
3551 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3552 + (eval "$lt_compile" 2>out/conftest.err)
3553 + ac_status=$?
3554 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
3555 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3556 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
3557 + then
3558 + # The compiler can only warn and ignore the option if not recognized
3559 + # So say no if there are warnings
3560 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
3561 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
3562 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
3563 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
3564 + fi
3565 + fi
3566 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
3567 + $RM conftest*
3568 + # SGI C++ compiler will create directory out/ii_files/ for
3569 + # template instantiation
3570 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
3571 + $RM out/* && rmdir out
3572 + cd ..
3573 + $RM -r conftest
3574 + $RM conftest*
3575 +])
3576 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
3577 + [Does compiler simultaneously support -c and -o options?])
3578 +])# _LT_COMPILER_C_O
3579
3580 -# AC_LIBTOOL_WIN32_DLL
3581 -# --------------------
3582 -# declare package support for building win32 DLLs
3583 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3584 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3585 -])# AC_LIBTOOL_WIN32_DLL
3586
3587 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
3588 +# ----------------------------------
3589 +# Check to see if we can do hard links to lock some files if needed
3590 +m4_defun([_LT_COMPILER_FILE_LOCKS],
3591 +[m4_require([_LT_ENABLE_LOCK])dnl
3592 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3593 +_LT_COMPILER_C_O([$1])
3594
3595 -# AC_ENABLE_SHARED([DEFAULT])
3596 -# ---------------------------
3597 -# implement the --enable-shared flag
3598 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3599 -AC_DEFUN([AC_ENABLE_SHARED],
3600 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3601 -AC_ARG_ENABLE([shared],
3602 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3603 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3604 - [p=${PACKAGE-default}
3605 - case $enableval in
3606 - yes) enable_shared=yes ;;
3607 - no) enable_shared=no ;;
3608 - *)
3609 - enable_shared=no
3610 - # Look at the argument we got. We use all the common list separators.
3611 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3612 - for pkg in $enableval; do
3613 - IFS="$lt_save_ifs"
3614 - if test "X$pkg" = "X$p"; then
3615 - enable_shared=yes
3616 - fi
3617 - done
3618 - IFS="$lt_save_ifs"
3619 - ;;
3620 - esac],
3621 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3622 -])# AC_ENABLE_SHARED
3623 -
3624 -
3625 -# AC_DISABLE_SHARED
3626 -# -----------------
3627 -# set the default shared flag to --disable-shared
3628 -AC_DEFUN([AC_DISABLE_SHARED],
3629 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3630 -AC_ENABLE_SHARED(no)
3631 -])# AC_DISABLE_SHARED
3632 -
3633 -
3634 -# AC_ENABLE_STATIC([DEFAULT])
3635 -# ---------------------------
3636 -# implement the --enable-static flag
3637 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3638 -AC_DEFUN([AC_ENABLE_STATIC],
3639 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3640 -AC_ARG_ENABLE([static],
3641 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3642 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3643 - [p=${PACKAGE-default}
3644 - case $enableval in
3645 - yes) enable_static=yes ;;
3646 - no) enable_static=no ;;
3647 - *)
3648 - enable_static=no
3649 - # Look at the argument we got. We use all the common list separators.
3650 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3651 - for pkg in $enableval; do
3652 - IFS="$lt_save_ifs"
3653 - if test "X$pkg" = "X$p"; then
3654 - enable_static=yes
3655 - fi
3656 - done
3657 - IFS="$lt_save_ifs"
3658 - ;;
3659 - esac],
3660 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3661 -])# AC_ENABLE_STATIC
3662 -
3663 -
3664 -# AC_DISABLE_STATIC
3665 -# -----------------
3666 -# set the default static flag to --disable-static
3667 -AC_DEFUN([AC_DISABLE_STATIC],
3668 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3669 -AC_ENABLE_STATIC(no)
3670 -])# AC_DISABLE_STATIC
3671 -
3672 -
3673 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
3674 -# ---------------------------------
3675 -# implement the --enable-fast-install flag
3676 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3677 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3678 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3679 -AC_ARG_ENABLE([fast-install],
3680 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3681 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3682 - [p=${PACKAGE-default}
3683 - case $enableval in
3684 - yes) enable_fast_install=yes ;;
3685 - no) enable_fast_install=no ;;
3686 - *)
3687 - enable_fast_install=no
3688 - # Look at the argument we got. We use all the common list separators.
3689 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3690 - for pkg in $enableval; do
3691 - IFS="$lt_save_ifs"
3692 - if test "X$pkg" = "X$p"; then
3693 - enable_fast_install=yes
3694 - fi
3695 - done
3696 - IFS="$lt_save_ifs"
3697 - ;;
3698 - esac],
3699 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3700 -])# AC_ENABLE_FAST_INSTALL
3701 -
3702 -
3703 -# AC_DISABLE_FAST_INSTALL
3704 -# -----------------------
3705 -# set the default to --disable-fast-install
3706 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3707 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3708 -AC_ENABLE_FAST_INSTALL(no)
3709 -])# AC_DISABLE_FAST_INSTALL
3710 -
3711 -
3712 -# AC_LIBTOOL_PICMODE([MODE])
3713 -# --------------------------
3714 -# implement the --with-pic flag
3715 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3716 -AC_DEFUN([AC_LIBTOOL_PICMODE],
3717 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3718 -pic_mode=ifelse($#,1,$1,default)
3719 -])# AC_LIBTOOL_PICMODE
3720 -
3721 -
3722 -# AC_PROG_EGREP
3723 -# -------------
3724 -# This is predefined starting with Autoconf 2.54, so this conditional
3725 -# definition can be removed once we require Autoconf 2.54 or later.
3726 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3727 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3728 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3729 - then ac_cv_prog_egrep='grep -E'
3730 - else ac_cv_prog_egrep='egrep'
3731 - fi])
3732 - EGREP=$ac_cv_prog_egrep
3733 - AC_SUBST([EGREP])
3734 -])])
3735 -
3736 -
3737 -# AC_PATH_TOOL_PREFIX
3738 -# -------------------
3739 -# find a file program which can recognise shared library
3740 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
3741 -[AC_REQUIRE([AC_PROG_EGREP])dnl
3742 -AC_MSG_CHECKING([for $1])
3743 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3744 -[case $MAGIC_CMD in
3745 -[[\\/*] | ?:[\\/]*])
3746 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3747 - ;;
3748 -*)
3749 - lt_save_MAGIC_CMD="$MAGIC_CMD"
3750 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3751 -dnl $ac_dummy forces splitting on constant user-supplied paths.
3752 -dnl POSIX.2 word splitting is done only on the output of word expansions,
3753 -dnl not every word. This closes a longstanding sh security hole.
3754 - ac_dummy="ifelse([$2], , $PATH, [$2])"
3755 - for ac_dir in $ac_dummy; do
3756 - IFS="$lt_save_ifs"
3757 - test -z "$ac_dir" && ac_dir=.
3758 - if test -f $ac_dir/$1; then
3759 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3760 - if test -n "$file_magic_test_file"; then
3761 - case $deplibs_check_method in
3762 - "file_magic "*)
3763 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3764 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3765 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3766 - $EGREP "$file_magic_regex" > /dev/null; then
3767 - :
3768 - else
3769 - cat <<EOF 1>&2
3770 +hard_links="nottested"
3771 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
3772 + # do not overwrite the value of need_locks provided by the user
3773 + AC_MSG_CHECKING([if we can lock with hard links])
3774 + hard_links=yes
3775 + $RM conftest*
3776 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3777 + touch conftest.a
3778 + ln conftest.a conftest.b 2>&5 || hard_links=no
3779 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
3780 + AC_MSG_RESULT([$hard_links])
3781 + if test "$hard_links" = no; then
3782 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
3783 + need_locks=warn
3784 + fi
3785 +else
3786 + need_locks=no
3787 +fi
3788 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
3789 +])# _LT_COMPILER_FILE_LOCKS
3790
3791 -*** Warning: the command libtool uses to detect shared libraries,
3792 -*** $file_magic_cmd, produces output that libtool cannot recognize.
3793 -*** The result is that libtool may fail to recognize shared libraries
3794 -*** as such. This will affect the creation of libtool libraries that
3795 -*** depend on shared libraries, but programs linked with such libtool
3796 -*** libraries will work regardless of this problem. Nevertheless, you
3797 -*** may want to report the problem to your system manager and/or to
3798 -*** bug-libtool@gnu.org
3799
3800 -EOF
3801 - fi ;;
3802 - esac
3803 - fi
3804 - break
3805 - fi
3806 - done
3807 - IFS="$lt_save_ifs"
3808 - MAGIC_CMD="$lt_save_MAGIC_CMD"
3809 - ;;
3810 -esac])
3811 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3812 -if test -n "$MAGIC_CMD"; then
3813 - AC_MSG_RESULT($MAGIC_CMD)
3814 +# _LT_CHECK_OBJDIR
3815 +# ----------------
3816 +m4_defun([_LT_CHECK_OBJDIR],
3817 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
3818 +[rm -f .libs 2>/dev/null
3819 +mkdir .libs 2>/dev/null
3820 +if test -d .libs; then
3821 + lt_cv_objdir=.libs
3822 else
3823 - AC_MSG_RESULT(no)
3824 + # MS-DOS does not allow filenames that begin with a dot.
3825 + lt_cv_objdir=_libs
3826 fi
3827 -])# AC_PATH_TOOL_PREFIX
3828 +rmdir .libs 2>/dev/null])
3829 +objdir=$lt_cv_objdir
3830 +_LT_DECL([], [objdir], [0],
3831 + [The name of the directory that contains temporary libtool files])dnl
3832 +m4_pattern_allow([LT_OBJDIR])dnl
3833 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
3834 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
3835 +])# _LT_CHECK_OBJDIR
3836
3837
3838 -# AC_PATH_MAGIC
3839 -# -------------
3840 -# find a file program which can recognise a shared library
3841 -AC_DEFUN([AC_PATH_MAGIC],
3842 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3843 -if test -z "$lt_cv_path_MAGIC_CMD"; then
3844 - if test -n "$ac_tool_prefix"; then
3845 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3846 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
3847 +# --------------------------------------
3848 +# Check hardcoding attributes.
3849 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
3850 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
3851 +_LT_TAGVAR(hardcode_action, $1)=
3852 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
3853 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
3854 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
3855 +
3856 + # We can hardcode non-existent directories.
3857 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
3858 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
3859 + # have to relink, otherwise we might link with an installed library
3860 + # when we should be linking with a yet-to-be-installed one
3861 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
3862 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
3863 + # Linking always hardcodes the temporary library directory.
3864 + _LT_TAGVAR(hardcode_action, $1)=relink
3865 else
3866 - MAGIC_CMD=:
3867 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
3868 + _LT_TAGVAR(hardcode_action, $1)=immediate
3869 fi
3870 +else
3871 + # We cannot hardcode anything, or else we can only hardcode existing
3872 + # directories.
3873 + _LT_TAGVAR(hardcode_action, $1)=unsupported
3874 +fi
3875 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3876 +
3877 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3878 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3879 + # Fast installation is not supported
3880 + enable_fast_install=no
3881 +elif test "$shlibpath_overrides_runpath" = yes ||
3882 + test "$enable_shared" = no; then
3883 + # Fast installation is not necessary
3884 + enable_fast_install=needless
3885 fi
3886 -])# AC_PATH_MAGIC
3887 +_LT_TAGDECL([], [hardcode_action], [0],
3888 + [How to hardcode a shared library path into an executable])
3889 +])# _LT_LINKER_HARDCODE_LIBPATH
3890
3891
3892 -# AC_PROG_LD
3893 -# ----------
3894 -# find the pathname to the GNU or non-GNU linker
3895 -AC_DEFUN([AC_PROG_LD],
3896 -[AC_ARG_WITH([gnu-ld],
3897 - [AC_HELP_STRING([--with-gnu-ld],
3898 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3899 - [test "$withval" = no || with_gnu_ld=yes],
3900 - [with_gnu_ld=no])
3901 -AC_REQUIRE([LT_AC_PROG_SED])dnl
3902 -AC_REQUIRE([AC_PROG_CC])dnl
3903 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
3904 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3905 -ac_prog=ld
3906 -if test "$GCC" = yes; then
3907 - # Check if gcc -print-prog-name=ld gives a path.
3908 - AC_MSG_CHECKING([for ld used by $CC])
3909 - case $host in
3910 - *-*-mingw*)
3911 - # gcc leaves a trailing carriage return which upsets mingw
3912 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3913 - *)
3914 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3915 - esac
3916 - case $ac_prog in
3917 - # Accept absolute paths.
3918 - [[\\/]]* | ?:[[\\/]]*)
3919 - re_direlt='/[[^/]][[^/]]*/\.\./'
3920 - # Canonicalize the pathname of ld
3921 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3922 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3923 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3924 - done
3925 - test -z "$LD" && LD="$ac_prog"
3926 - ;;
3927 - "")
3928 - # If it fails, then pretend we aren't using GCC.
3929 - ac_prog=ld
3930 +# _LT_CMD_STRIPLIB
3931 +# ----------------
3932 +m4_defun([_LT_CMD_STRIPLIB],
3933 +[m4_require([_LT_DECL_EGREP])
3934 +striplib=
3935 +old_striplib=
3936 +AC_MSG_CHECKING([whether stripping libraries is possible])
3937 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3938 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3939 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3940 + AC_MSG_RESULT([yes])
3941 +else
3942 +# FIXME - insert some real tests, host_os isn't really good enough
3943 + case $host_os in
3944 + darwin*)
3945 + if test -n "$STRIP" ; then
3946 + striplib="$STRIP -x"
3947 + old_striplib="$STRIP -S"
3948 + AC_MSG_RESULT([yes])
3949 + else
3950 + AC_MSG_RESULT([no])
3951 + fi
3952 ;;
3953 *)
3954 - # If it is relative, then search for the first ld in PATH.
3955 - with_gnu_ld=unknown
3956 + AC_MSG_RESULT([no])
3957 ;;
3958 esac
3959 -elif test "$with_gnu_ld" = yes; then
3960 - AC_MSG_CHECKING([for GNU ld])
3961 -else
3962 - AC_MSG_CHECKING([for non-GNU ld])
3963 fi
3964 -AC_CACHE_VAL(lt_cv_path_LD,
3965 -[if test -z "$LD"; then
3966 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3967 - for ac_dir in $PATH; do
3968 - IFS="$lt_save_ifs"
3969 - test -z "$ac_dir" && ac_dir=.
3970 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3971 - lt_cv_path_LD="$ac_dir/$ac_prog"
3972 - # Check to see if the program is GNU ld. I'd rather use --version,
3973 - # but apparently some variants of GNU ld only accept -v.
3974 - # Break only if it was the GNU/non-GNU ld that we prefer.
3975 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3976 - *GNU* | *'with BFD'*)
3977 - test "$with_gnu_ld" != no && break
3978 - ;;
3979 - *)
3980 - test "$with_gnu_ld" != yes && break
3981 - ;;
3982 - esac
3983 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3984 +_LT_DECL([], [striplib], [1])
3985 +])# _LT_CMD_STRIPLIB
3986 +
3987 +
3988 +# _LT_SYS_DYNAMIC_LINKER([TAG])
3989 +# -----------------------------
3990 +# PORTME Fill in your ld.so characteristics
3991 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
3992 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3993 +m4_require([_LT_DECL_EGREP])dnl
3994 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3995 +m4_require([_LT_DECL_SED])dnl
3996 +AC_MSG_CHECKING([dynamic linker characteristics])
3997 +m4_if([$1],
3998 + [], [
3999 +if test "$GCC" = yes; then
4000 + case $host_os in
4001 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4002 + *) lt_awk_arg="/^libraries:/" ;;
4003 + esac
4004 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4005 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4006 + # if the path contains ";" then we assume it to be the separator
4007 + # otherwise default to the standard path separator (i.e. ":") - it is
4008 + # assumed that no part of a normal pathname contains ";" but that should
4009 + # okay in the real world where ";" in dirpaths is itself problematic.
4010 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4011 + else
4012 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4013 + fi
4014 + # Ok, now we have the path, separated by spaces, we can step through it
4015 + # and add multilib dir if necessary.
4016 + lt_tmp_lt_search_path_spec=
4017 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
4018 + for lt_sys_path in $lt_search_path_spec; do
4019 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
4020 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
4021 + else
4022 + test -d "$lt_sys_path" && \
4023 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
4024 fi
4025 done
4026 - IFS="$lt_save_ifs"
4027 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
4028 +BEGIN {RS=" "; FS="/|\n";} {
4029 + lt_foo="";
4030 + lt_count=0;
4031 + for (lt_i = NF; lt_i > 0; lt_i--) {
4032 + if ($lt_i != "" && $lt_i != ".") {
4033 + if ($lt_i == "..") {
4034 + lt_count++;
4035 + } else {
4036 + if (lt_count == 0) {
4037 + lt_foo="/" $lt_i lt_foo;
4038 + } else {
4039 + lt_count--;
4040 + }
4041 + }
4042 + }
4043 + }
4044 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
4045 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
4046 +}'`
4047 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
4048 else
4049 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
4050 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4051 fi])
4052 -LD="$lt_cv_path_LD"
4053 -if test -n "$LD"; then
4054 - AC_MSG_RESULT($LD)
4055 -else
4056 - AC_MSG_RESULT(no)
4057 -fi
4058 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4059 -AC_PROG_LD_GNU
4060 -])# AC_PROG_LD
4061 +library_names_spec=
4062 +libname_spec='lib$name'
4063 +soname_spec=
4064 +shrext_cmds=".so"
4065 +postinstall_cmds=
4066 +postuninstall_cmds=
4067 +finish_cmds=
4068 +finish_eval=
4069 +shlibpath_var=
4070 +shlibpath_overrides_runpath=unknown
4071 +version_type=none
4072 +dynamic_linker="$host_os ld.so"
4073 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
4074 +need_lib_prefix=unknown
4075 +hardcode_into_libs=no
4076 +
4077 +# when you set need_version to no, make sure it does not cause -set_version
4078 +# flags to be left without arguments
4079 +need_version=unknown
4080
4081 +case $host_os in
4082 +aix3*)
4083 + version_type=linux
4084 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4085 + shlibpath_var=LIBPATH
4086
4087 -# AC_PROG_LD_GNU
4088 -# --------------
4089 -AC_DEFUN([AC_PROG_LD_GNU],
4090 -[AC_REQUIRE([AC_PROG_EGREP])dnl
4091 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
4092 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
4093 -case `$LD -v 2>&1 </dev/null` in
4094 -*GNU* | *'with BFD'*)
4095 - lt_cv_prog_gnu_ld=yes
4096 + # AIX 3 has no versioning support, so we append a major version to the name.
4097 + soname_spec='${libname}${release}${shared_ext}$major'
4098 ;;
4099 -*)
4100 - lt_cv_prog_gnu_ld=no
4101 - ;;
4102 -esac])
4103 -with_gnu_ld=$lt_cv_prog_gnu_ld
4104 -])# AC_PROG_LD_GNU
4105 -
4106
4107 -# AC_PROG_LD_RELOAD_FLAG
4108 -# ----------------------
4109 -# find reload flag for linker
4110 -# -- PORTME Some linkers may need a different reload flag.
4111 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
4112 -[AC_CACHE_CHECK([for $LD option to reload object files],
4113 - lt_cv_ld_reload_flag,
4114 - [lt_cv_ld_reload_flag='-r'])
4115 -reload_flag=$lt_cv_ld_reload_flag
4116 -case $reload_flag in
4117 -"" | " "*) ;;
4118 -*) reload_flag=" $reload_flag" ;;
4119 -esac
4120 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
4121 -case $host_os in
4122 - darwin*)
4123 - if test "$GCC" = yes; then
4124 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4125 +aix[[4-9]]*)
4126 + version_type=linux
4127 + need_lib_prefix=no
4128 + need_version=no
4129 + hardcode_into_libs=yes
4130 + if test "$host_cpu" = ia64; then
4131 + # AIX 5 supports IA64
4132 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4133 + shlibpath_var=LD_LIBRARY_PATH
4134 + else
4135 + # With GCC up to 2.95.x, collect2 would create an import file
4136 + # for dependence libraries. The import file would start with
4137 + # the line `#! .'. This would cause the generated library to
4138 + # depend on `.', always an invalid library. This was fixed in
4139 + # development snapshots of GCC prior to 3.0.
4140 + case $host_os in
4141 + aix4 | aix4.[[01]] | aix4.[[01]].*)
4142 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4143 + echo ' yes '
4144 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
4145 + :
4146 + else
4147 + can_build_shared=no
4148 + fi
4149 + ;;
4150 + esac
4151 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4152 + # soname into executable. Probably we can add versioning support to
4153 + # collect2, so additional links can be useful in future.
4154 + if test "$aix_use_runtimelinking" = yes; then
4155 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4156 + # instead of lib<name>.a to let people know that these are not
4157 + # typical AIX shared libraries.
4158 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4159 else
4160 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
4161 + # We preserve .a as extension for shared libraries through AIX4.2
4162 + # and later when we are not doing run time linking.
4163 + library_names_spec='${libname}${release}.a $libname.a'
4164 + soname_spec='${libname}${release}${shared_ext}$major'
4165 fi
4166 - ;;
4167 -esac
4168 -])# AC_PROG_LD_RELOAD_FLAG
4169 -
4170 -
4171 -# AC_DEPLIBS_CHECK_METHOD
4172 -# -----------------------
4173 -# how to check for library dependencies
4174 -# -- PORTME fill in with the dynamic library characteristics
4175 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4176 -[AC_CACHE_CHECK([how to recognise dependent libraries],
4177 -lt_cv_deplibs_check_method,
4178 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
4179 -lt_cv_file_magic_test_file=
4180 -lt_cv_deplibs_check_method='unknown'
4181 -# Need to set the preceding variable on all platforms that support
4182 -# interlibrary dependencies.
4183 -# 'none' -- dependencies not supported.
4184 -# `unknown' -- same as none, but documents that we really don't know.
4185 -# 'pass_all' -- all dependencies passed with no checks.
4186 -# 'test_compile' -- check by making test program.
4187 -# 'file_magic [[regex]]' -- check by looking for files in library path
4188 -# which responds to the $file_magic_cmd with a given extended regex.
4189 -# If you have `file' or equivalent on your system and you're not sure
4190 -# whether `pass_all' will *always* work, you probably want this one.
4191 + shlibpath_var=LIBPATH
4192 + fi
4193 + ;;
4194
4195 -case $host_os in
4196 -aix4* | aix5*)
4197 - lt_cv_deplibs_check_method=pass_all
4198 +amigaos*)
4199 + case $host_cpu in
4200 + powerpc)
4201 + # Since July 2007 AmigaOS4 officially supports .so libraries.
4202 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
4203 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4204 + ;;
4205 + m68k)
4206 + library_names_spec='$libname.ixlibrary $libname.a'
4207 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
4208 + 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'
4209 + ;;
4210 + esac
4211 ;;
4212
4213 beos*)
4214 - lt_cv_deplibs_check_method=pass_all
4215 + library_names_spec='${libname}${shared_ext}'
4216 + dynamic_linker="$host_os ld.so"
4217 + shlibpath_var=LIBRARY_PATH
4218 ;;
4219
4220 bsdi[[45]]*)
4221 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4222 - lt_cv_file_magic_cmd='/usr/bin/file -L'
4223 - lt_cv_file_magic_test_file=/shlib/libc.so
4224 - ;;
4225 -
4226 -cygwin*)
4227 - # func_win32_libid is a shell function defined in ltmain.sh
4228 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4229 - lt_cv_file_magic_cmd='func_win32_libid'
4230 + version_type=linux
4231 + need_version=no
4232 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4233 + soname_spec='${libname}${release}${shared_ext}$major'
4234 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4235 + shlibpath_var=LD_LIBRARY_PATH
4236 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4237 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4238 + # the default ld.so.conf also contains /usr/contrib/lib and
4239 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4240 + # libtool to hard-code these into programs
4241 ;;
4242
4243 -mingw* | pw32*)
4244 - # Base MSYS/MinGW do not provide the 'file' command needed by
4245 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4246 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4247 - lt_cv_file_magic_cmd='$OBJDUMP -f'
4248 - ;;
4249 +cygwin* | mingw* | pw32*)
4250 + version_type=windows
4251 + shrext_cmds=".dll"
4252 + need_version=no
4253 + need_lib_prefix=no
4254
4255 -darwin* | rhapsody*)
4256 - lt_cv_deplibs_check_method=pass_all
4257 - ;;
4258 + case $GCC,$host_os in
4259 + yes,cygwin* | yes,mingw* | yes,pw32*)
4260 + library_names_spec='$libname.dll.a'
4261 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
4262 + postinstall_cmds='base_file=`basename \${file}`~
4263 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
4264 + dldir=$destdir/`dirname \$dlpath`~
4265 + test -d \$dldir || mkdir -p \$dldir~
4266 + $install_prog $dir/$dlname \$dldir/$dlname~
4267 + chmod a+x \$dldir/$dlname~
4268 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
4269 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
4270 + fi'
4271 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4272 + dlpath=$dir/\$dldll~
4273 + $RM \$dlpath'
4274 + shlibpath_overrides_runpath=yes
4275
4276 -freebsd* | kfreebsd*-gnu | dragonfly*)
4277 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4278 - case $host_cpu in
4279 - i*86 )
4280 - # Not sure whether the presence of OpenBSD here was a mistake.
4281 - # Let's accept both of them until this is cleared up.
4282 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4283 - lt_cv_file_magic_cmd=/usr/bin/file
4284 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4285 + case $host_os in
4286 + cygwin*)
4287 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4288 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4289 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4290 + ;;
4291 + mingw*)
4292 + # MinGW DLLs use traditional 'lib' prefix
4293 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4294 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4295 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
4296 + # It is most probably a Windows format PATH printed by
4297 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
4298 + # path with ; separators, and with drive letters. We can handle the
4299 + # drive letters (cygwin fileutils understands them), so leave them,
4300 + # especially as we might pass files found there to a mingw objdump,
4301 + # which wouldn't understand a cygwinified path. Ahh.
4302 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4303 + else
4304 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4305 + fi
4306 + ;;
4307 + pw32*)
4308 + # pw32 DLLs use 'pw' prefix rather than 'lib'
4309 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4310 ;;
4311 esac
4312 - else
4313 - lt_cv_deplibs_check_method=pass_all
4314 - fi
4315 - ;;
4316 -
4317 -gnu*)
4318 - lt_cv_deplibs_check_method=pass_all
4319 - ;;
4320 -
4321 -hpux10.20* | hpux11*)
4322 - lt_cv_file_magic_cmd=/usr/bin/file
4323 - case $host_cpu in
4324 - ia64*)
4325 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4326 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4327 - ;;
4328 - hppa*64*)
4329 - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4330 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4331 ;;
4332 +
4333 *)
4334 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4335 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
4336 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4337 ;;
4338 esac
4339 + dynamic_linker='Win32 ld.exe'
4340 + # FIXME: first we should search . and the directory the executable is in
4341 + shlibpath_var=PATH
4342 ;;
4343
4344 -interix3*)
4345 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4346 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4347 - ;;
4348 -
4349 -irix5* | irix6* | nonstopux*)
4350 - case $LD in
4351 - *-32|*"-32 ") libmagic=32-bit;;
4352 - *-n32|*"-n32 ") libmagic=N32;;
4353 - *-64|*"-64 ") libmagic=64-bit;;
4354 - *) libmagic=never-match;;
4355 - esac
4356 - lt_cv_deplibs_check_method=pass_all
4357 - ;;
4358 -
4359 -# This must be Linux ELF.
4360 -linux*)
4361 - lt_cv_deplibs_check_method=pass_all
4362 - ;;
4363 -
4364 -netbsd*)
4365 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4366 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4367 - else
4368 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4369 - fi
4370 +darwin* | rhapsody*)
4371 + dynamic_linker="$host_os dyld"
4372 + version_type=darwin
4373 + need_lib_prefix=no
4374 + need_version=no
4375 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4376 + soname_spec='${libname}${release}${major}$shared_ext'
4377 + shlibpath_overrides_runpath=yes
4378 + shlibpath_var=DYLD_LIBRARY_PATH
4379 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
4380 +m4_if([$1], [],[
4381 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
4382 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4383 ;;
4384
4385 -newos6*)
4386 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4387 - lt_cv_file_magic_cmd=/usr/bin/file
4388 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
4389 +dgux*)
4390 + version_type=linux
4391 + need_lib_prefix=no
4392 + need_version=no
4393 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4394 + soname_spec='${libname}${release}${shared_ext}$major'
4395 + shlibpath_var=LD_LIBRARY_PATH
4396 ;;
4397
4398 -nto-qnx*)
4399 - lt_cv_deplibs_check_method=unknown
4400 +freebsd1*)
4401 + dynamic_linker=no
4402 ;;
4403
4404 -openbsd*)
4405 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4406 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4407 +freebsd* | dragonfly*)
4408 + # DragonFly does not have aout. When/if they implement a new
4409 + # versioning mechanism, adjust this.
4410 + if test -x /usr/bin/objformat; then
4411 + objformat=`/usr/bin/objformat`
4412 else
4413 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4414 + case $host_os in
4415 + freebsd[[123]]*) objformat=aout ;;
4416 + *) objformat=elf ;;
4417 + esac
4418 fi
4419 - ;;
4420 -
4421 -osf3* | osf4* | osf5*)
4422 - lt_cv_deplibs_check_method=pass_all
4423 - ;;
4424 -
4425 -solaris*)
4426 - lt_cv_deplibs_check_method=pass_all
4427 - ;;
4428 -
4429 -sysv4 | sysv4.3*)
4430 - case $host_vendor in
4431 - motorola)
4432 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4433 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4434 - ;;
4435 - ncr)
4436 - lt_cv_deplibs_check_method=pass_all
4437 - ;;
4438 - sequent)
4439 - lt_cv_file_magic_cmd='/bin/file'
4440 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4441 + version_type=freebsd-$objformat
4442 + case $version_type in
4443 + freebsd-elf*)
4444 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4445 + need_version=no
4446 + need_lib_prefix=no
4447 + ;;
4448 + freebsd-*)
4449 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4450 + need_version=yes
4451 + ;;
4452 + esac
4453 + shlibpath_var=LD_LIBRARY_PATH
4454 + case $host_os in
4455 + freebsd2*)
4456 + shlibpath_overrides_runpath=yes
4457 ;;
4458 - sni)
4459 - lt_cv_file_magic_cmd='/bin/file'
4460 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4461 - lt_cv_file_magic_test_file=/lib/libc.so
4462 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
4463 + shlibpath_overrides_runpath=yes
4464 + hardcode_into_libs=yes
4465 ;;
4466 - siemens)
4467 - lt_cv_deplibs_check_method=pass_all
4468 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
4469 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
4470 + shlibpath_overrides_runpath=no
4471 + hardcode_into_libs=yes
4472 ;;
4473 - pc)
4474 - lt_cv_deplibs_check_method=pass_all
4475 + *) # from 4.6 on, and DragonFly
4476 + shlibpath_overrides_runpath=yes
4477 + hardcode_into_libs=yes
4478 ;;
4479 esac
4480 ;;
4481
4482 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4483 - lt_cv_deplibs_check_method=pass_all
4484 +gnu*)
4485 + version_type=linux
4486 + need_lib_prefix=no
4487 + need_version=no
4488 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
4489 + soname_spec='${libname}${release}${shared_ext}$major'
4490 + shlibpath_var=LD_LIBRARY_PATH
4491 + hardcode_into_libs=yes
4492 ;;
4493 -esac
4494 -])
4495 -file_magic_cmd=$lt_cv_file_magic_cmd
4496 -deplibs_check_method=$lt_cv_deplibs_check_method
4497 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
4498 -])# AC_DEPLIBS_CHECK_METHOD
4499
4500 -
4501 -# AC_PROG_NM
4502 -# ----------
4503 -# find the pathname to a BSD-compatible name lister
4504 -AC_DEFUN([AC_PROG_NM],
4505 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4506 -[if test -n "$NM"; then
4507 - # Let the user override the test.
4508 - lt_cv_path_NM="$NM"
4509 -else
4510 - lt_nm_to_check="${ac_tool_prefix}nm"
4511 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4512 - lt_nm_to_check="$lt_nm_to_check nm"
4513 - fi
4514 - for lt_tmp_nm in $lt_nm_to_check; do
4515 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4516 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4517 - IFS="$lt_save_ifs"
4518 - test -z "$ac_dir" && ac_dir=.
4519 - tmp_nm="$ac_dir/$lt_tmp_nm"
4520 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4521 - # Check to see if the nm accepts a BSD-compat flag.
4522 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4523 - # nm: unknown option "B" ignored
4524 - # Tru64's nm complains that /dev/null is an invalid object file
4525 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4526 - */dev/null* | *'Invalid file or object type'*)
4527 - lt_cv_path_NM="$tmp_nm -B"
4528 - break
4529 - ;;
4530 - *)
4531 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4532 - */dev/null*)
4533 - lt_cv_path_NM="$tmp_nm -p"
4534 - break
4535 - ;;
4536 - *)
4537 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4538 - continue # so that we can try to find one that supports BSD flags
4539 - ;;
4540 - esac
4541 - ;;
4542 - esac
4543 - fi
4544 - done
4545 - IFS="$lt_save_ifs"
4546 - done
4547 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4548 -fi])
4549 -NM="$lt_cv_path_NM"
4550 -])# AC_PROG_NM
4551 -
4552 -
4553 -# AC_CHECK_LIBM
4554 -# -------------
4555 -# check for math library
4556 -AC_DEFUN([AC_CHECK_LIBM],
4557 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4558 -LIBM=
4559 -case $host in
4560 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4561 - # These system don't have libm, or don't need it
4562 - ;;
4563 -*-ncr-sysv4.3*)
4564 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4565 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4566 - ;;
4567 -*)
4568 - AC_CHECK_LIB(m, cos, LIBM="-lm")
4569 +hpux9* | hpux10* | hpux11*)
4570 + # Give a soname corresponding to the major version so that dld.sl refuses to
4571 + # link against other versions.
4572 + version_type=sunos
4573 + need_lib_prefix=no
4574 + need_version=no
4575 + case $host_cpu in
4576 + ia64*)
4577 + shrext_cmds='.so'
4578 + hardcode_into_libs=yes
4579 + dynamic_linker="$host_os dld.so"
4580 + shlibpath_var=LD_LIBRARY_PATH
4581 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4582 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4583 + soname_spec='${libname}${release}${shared_ext}$major'
4584 + if test "X$HPUX_IA64_MODE" = X32; then
4585 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
4586 + else
4587 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
4588 + fi
4589 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4590 + ;;
4591 + hppa*64*)
4592 + shrext_cmds='.sl'
4593 + hardcode_into_libs=yes
4594 + dynamic_linker="$host_os dld.sl"
4595 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
4596 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
4597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4598 + soname_spec='${libname}${release}${shared_ext}$major'
4599 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
4600 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
4601 + ;;
4602 + *)
4603 + shrext_cmds='.sl'
4604 + dynamic_linker="$host_os dld.sl"
4605 + shlibpath_var=SHLIB_PATH
4606 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4607 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4608 + soname_spec='${libname}${release}${shared_ext}$major'
4609 + ;;
4610 + esac
4611 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
4612 + postinstall_cmds='chmod 555 $lib'
4613 ;;
4614 -esac
4615 -])# AC_CHECK_LIBM
4616
4617 +interix[[3-9]]*)
4618 + version_type=linux
4619 + need_lib_prefix=no
4620 + need_version=no
4621 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4622 + soname_spec='${libname}${release}${shared_ext}$major'
4623 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
4624 + shlibpath_var=LD_LIBRARY_PATH
4625 + shlibpath_overrides_runpath=no
4626 + hardcode_into_libs=yes
4627 + ;;
4628
4629 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4630 -# -----------------------------------
4631 -# sets LIBLTDL to the link flags for the libltdl convenience library and
4632 -# LTDLINCL to the include flags for the libltdl header and adds
4633 -# --enable-ltdl-convenience to the configure arguments. Note that
4634 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4635 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4636 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4637 -# (note the single quotes!). If your package is not flat and you're not
4638 -# using automake, define top_builddir and top_srcdir appropriately in
4639 -# the Makefiles.
4640 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4641 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4642 - case $enable_ltdl_convenience in
4643 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4644 - "") enable_ltdl_convenience=yes
4645 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4646 +irix5* | irix6* | nonstopux*)
4647 + case $host_os in
4648 + nonstopux*) version_type=nonstopux ;;
4649 + *)
4650 + if test "$lt_cv_prog_gnu_ld" = yes; then
4651 + version_type=linux
4652 + else
4653 + version_type=irix
4654 + fi ;;
4655 esac
4656 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4657 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4658 - # For backwards non-gettext consistent compatibility...
4659 - INCLTDL="$LTDLINCL"
4660 -])# AC_LIBLTDL_CONVENIENCE
4661 -
4662 -
4663 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4664 -# -----------------------------------
4665 -# sets LIBLTDL to the link flags for the libltdl installable library and
4666 -# LTDLINCL to the include flags for the libltdl header and adds
4667 -# --enable-ltdl-install to the configure arguments. Note that
4668 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4669 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
4670 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4671 -# '${top_srcdir}/' (note the single quotes!). If your package is not
4672 -# flat and you're not using automake, define top_builddir and top_srcdir
4673 -# appropriately in the Makefiles.
4674 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4675 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4676 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4677 - AC_CHECK_LIB(ltdl, lt_dlinit,
4678 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4679 - [if test x"$enable_ltdl_install" = xno; then
4680 - AC_MSG_WARN([libltdl not installed, but installation disabled])
4681 - else
4682 - enable_ltdl_install=yes
4683 - fi
4684 - ])
4685 - if test x"$enable_ltdl_install" = x"yes"; then
4686 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
4687 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4688 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4689 - else
4690 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4691 - LIBLTDL="-lltdl"
4692 - LTDLINCL=
4693 - fi
4694 - # For backwards non-gettext consistent compatibility...
4695 - INCLTDL="$LTDLINCL"
4696 -])# AC_LIBLTDL_INSTALLABLE
4697 + need_lib_prefix=no
4698 + need_version=no
4699 + soname_spec='${libname}${release}${shared_ext}$major'
4700 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
4701 + case $host_os in
4702 + irix5* | nonstopux*)
4703 + libsuff= shlibsuff=
4704 + ;;
4705 + *)
4706 + case $LD in # libtool.m4 will add one of these switches to LD
4707 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
4708 + libsuff= shlibsuff= libmagic=32-bit;;
4709 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
4710 + libsuff=32 shlibsuff=N32 libmagic=N32;;
4711 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
4712 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
4713 + *) libsuff= shlibsuff= libmagic=never-match;;
4714 + esac
4715 + ;;
4716 + esac
4717 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4718 + shlibpath_overrides_runpath=no
4719 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4720 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4721 + hardcode_into_libs=yes
4722 + ;;
4723
4724 +# No shared lib support for Linux oldld, aout, or coff.
4725 +linux*oldld* | linux*aout* | linux*coff*)
4726 + dynamic_linker=no
4727 + ;;
4728
4729 -# AC_LIBTOOL_CXX
4730 -# --------------
4731 -# enable support for C++ libraries
4732 -AC_DEFUN([AC_LIBTOOL_CXX],
4733 -[AC_REQUIRE([_LT_AC_LANG_CXX])
4734 -])# AC_LIBTOOL_CXX
4735 +# This must be Linux ELF.
4736 +linux* | k*bsd*-gnu)
4737 + version_type=linux
4738 + need_lib_prefix=no
4739 + need_version=no
4740 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4741 + soname_spec='${libname}${release}${shared_ext}$major'
4742 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4743 + shlibpath_var=LD_LIBRARY_PATH
4744 + shlibpath_overrides_runpath=no
4745 + # Some binutils ld are patched to set DT_RUNPATH
4746 + save_LDFLAGS=$LDFLAGS
4747 + save_libdir=$libdir
4748 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4749 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4750 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4751 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4752 + [shlibpath_overrides_runpath=yes])])
4753 + LDFLAGS=$save_LDFLAGS
4754 + libdir=$save_libdir
4755
4756 + # This implies no fast_install, which is unacceptable.
4757 + # Some rework will be needed to allow for fast_install
4758 + # before this can be enabled.
4759 + hardcode_into_libs=yes
4760
4761 -# _LT_AC_LANG_CXX
4762 -# ---------------
4763 -AC_DEFUN([_LT_AC_LANG_CXX],
4764 -[AC_REQUIRE([AC_PROG_CXX])
4765 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4766 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4767 -])# _LT_AC_LANG_CXX
4768 + # Append ld.so.conf contents to the search path
4769 + if test -f /etc/ld.so.conf; then
4770 + 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' ' '`
4771 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
4772 + fi
4773
4774 -# _LT_AC_PROG_CXXCPP
4775 -# ------------------
4776 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
4777 -[
4778 -AC_REQUIRE([AC_PROG_CXX])
4779 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4780 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4781 - (test "X$CXX" != "Xg++"))) ; then
4782 - AC_PROG_CXXCPP
4783 -fi
4784 -])# _LT_AC_PROG_CXXCPP
4785 -
4786 -# AC_LIBTOOL_F77
4787 -# --------------
4788 -# enable support for Fortran 77 libraries
4789 -AC_DEFUN([AC_LIBTOOL_F77],
4790 -[AC_REQUIRE([_LT_AC_LANG_F77])
4791 -])# AC_LIBTOOL_F77
4792 -
4793 -
4794 -# _LT_AC_LANG_F77
4795 -# ---------------
4796 -AC_DEFUN([_LT_AC_LANG_F77],
4797 -[AC_REQUIRE([AC_PROG_F77])
4798 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4799 -])# _LT_AC_LANG_F77
4800 -
4801 -
4802 -# AC_LIBTOOL_GCJ
4803 -# --------------
4804 -# enable support for GCJ libraries
4805 -AC_DEFUN([AC_LIBTOOL_GCJ],
4806 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
4807 -])# AC_LIBTOOL_GCJ
4808 -
4809 -
4810 -# _LT_AC_LANG_GCJ
4811 -# ---------------
4812 -AC_DEFUN([_LT_AC_LANG_GCJ],
4813 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4814 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4815 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4816 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4817 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4818 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4819 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4820 -])# _LT_AC_LANG_GCJ
4821 -
4822 -
4823 -# AC_LIBTOOL_RC
4824 -# -------------
4825 -# enable support for Windows resource files
4826 -AC_DEFUN([AC_LIBTOOL_RC],
4827 -[AC_REQUIRE([LT_AC_PROG_RC])
4828 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4829 -])# AC_LIBTOOL_RC
4830 + # We used to test for /lib/ld.so.1 and disable shared libraries on
4831 + # powerpc, because MkLinux only supported shared libraries with the
4832 + # GNU dynamic linker. Since this was broken with cross compilers,
4833 + # most powerpc-linux boxes support dynamic linking these days and
4834 + # people can always --disable-shared, the test was removed, and we
4835 + # assume the GNU/Linux dynamic linker is in use.
4836 + dynamic_linker='GNU/Linux ld.so'
4837 + ;;
4838
4839 +netbsd*)
4840 + version_type=sunos
4841 + need_lib_prefix=no
4842 + need_version=no
4843 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4844 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4845 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4846 + dynamic_linker='NetBSD (a.out) ld.so'
4847 + else
4848 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4849 + soname_spec='${libname}${release}${shared_ext}$major'
4850 + dynamic_linker='NetBSD ld.elf_so'
4851 + fi
4852 + shlibpath_var=LD_LIBRARY_PATH
4853 + shlibpath_overrides_runpath=yes
4854 + hardcode_into_libs=yes
4855 + ;;
4856
4857 -# AC_LIBTOOL_LANG_C_CONFIG
4858 -# ------------------------
4859 -# Ensure that the configuration vars for the C compiler are
4860 -# suitably defined. Those variables are subsequently used by
4861 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4862 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4863 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4864 -[lt_save_CC="$CC"
4865 -AC_LANG_PUSH(C)
4866 +newsos6)
4867 + version_type=linux
4868 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4869 + shlibpath_var=LD_LIBRARY_PATH
4870 + shlibpath_overrides_runpath=yes
4871 + ;;
4872
4873 -# Source file extension for C test sources.
4874 -ac_ext=c
4875 +*nto* | *qnx*)
4876 + version_type=qnx
4877 + need_lib_prefix=no
4878 + need_version=no
4879 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4880 + soname_spec='${libname}${release}${shared_ext}$major'
4881 + shlibpath_var=LD_LIBRARY_PATH
4882 + shlibpath_overrides_runpath=no
4883 + hardcode_into_libs=yes
4884 + dynamic_linker='ldqnx.so'
4885 + ;;
4886
4887 -# Object file extension for compiled C test sources.
4888 -objext=o
4889 -_LT_AC_TAGVAR(objext, $1)=$objext
4890 +openbsd*)
4891 + version_type=sunos
4892 + sys_lib_dlsearch_path_spec="/usr/lib"
4893 + need_lib_prefix=no
4894 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
4895 + case $host_os in
4896 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
4897 + *) need_version=no ;;
4898 + esac
4899 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4900 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4901 + shlibpath_var=LD_LIBRARY_PATH
4902 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4903 + case $host_os in
4904 + openbsd2.[[89]] | openbsd2.[[89]].*)
4905 + shlibpath_overrides_runpath=no
4906 + ;;
4907 + *)
4908 + shlibpath_overrides_runpath=yes
4909 + ;;
4910 + esac
4911 + else
4912 + shlibpath_overrides_runpath=yes
4913 + fi
4914 + ;;
4915
4916 -# Code to be used in simple compile tests
4917 -lt_simple_compile_test_code="int some_variable = 0;\n"
4918 +os2*)
4919 + libname_spec='$name'
4920 + shrext_cmds=".dll"
4921 + need_lib_prefix=no
4922 + library_names_spec='$libname${shared_ext} $libname.a'
4923 + dynamic_linker='OS/2 ld.exe'
4924 + shlibpath_var=LIBPATH
4925 + ;;
4926
4927 -# Code to be used in simple link tests
4928 -lt_simple_link_test_code='int main(){return(0);}\n'
4929 +osf3* | osf4* | osf5*)
4930 + version_type=osf
4931 + need_lib_prefix=no
4932 + need_version=no
4933 + soname_spec='${libname}${release}${shared_ext}$major'
4934 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4935 + shlibpath_var=LD_LIBRARY_PATH
4936 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4937 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4938 + ;;
4939
4940 -_LT_AC_SYS_COMPILER
4941 +rdos*)
4942 + dynamic_linker=no
4943 + ;;
4944
4945 -# save warnings/boilerplate of simple test code
4946 -_LT_COMPILER_BOILERPLATE
4947 -_LT_LINKER_BOILERPLATE
4948 +solaris*)
4949 + version_type=linux
4950 + need_lib_prefix=no
4951 + need_version=no
4952 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4953 + soname_spec='${libname}${release}${shared_ext}$major'
4954 + shlibpath_var=LD_LIBRARY_PATH
4955 + shlibpath_overrides_runpath=yes
4956 + hardcode_into_libs=yes
4957 + # ldd complains unless libraries are executable
4958 + postinstall_cmds='chmod +x $lib'
4959 + ;;
4960
4961 -## CAVEAT EMPTOR:
4962 -## There is no encapsulation within the following macros, do not change
4963 -## the running order or otherwise move them around unless you know exactly
4964 -## what you are doing...
4965 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4966 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
4967 -AC_LIBTOOL_PROG_CC_C_O($1)
4968 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4969 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
4970 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4971 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4972 -AC_LIBTOOL_SYS_LIB_STRIP
4973 -AC_LIBTOOL_DLOPEN_SELF
4974 -
4975 -# Report which library types will actually be built
4976 -AC_MSG_CHECKING([if libtool supports shared libraries])
4977 -AC_MSG_RESULT([$can_build_shared])
4978 +sunos4*)
4979 + version_type=sunos
4980 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
4981 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4982 + shlibpath_var=LD_LIBRARY_PATH
4983 + shlibpath_overrides_runpath=yes
4984 + if test "$with_gnu_ld" = yes; then
4985 + need_lib_prefix=no
4986 + fi
4987 + need_version=yes
4988 + ;;
4989
4990 -AC_MSG_CHECKING([whether to build shared libraries])
4991 -test "$can_build_shared" = "no" && enable_shared=no
4992 +sysv4 | sysv4.3*)
4993 + version_type=linux
4994 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4995 + soname_spec='${libname}${release}${shared_ext}$major'
4996 + shlibpath_var=LD_LIBRARY_PATH
4997 + case $host_vendor in
4998 + sni)
4999 + shlibpath_overrides_runpath=no
5000 + need_lib_prefix=no
5001 + runpath_var=LD_RUN_PATH
5002 + ;;
5003 + siemens)
5004 + need_lib_prefix=no
5005 + ;;
5006 + motorola)
5007 + need_lib_prefix=no
5008 + need_version=no
5009 + shlibpath_overrides_runpath=no
5010 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5011 + ;;
5012 + esac
5013 + ;;
5014
5015 -# On AIX, shared libraries and static libraries use the same namespace, and
5016 -# are all built from PIC.
5017 -case $host_os in
5018 -aix3*)
5019 - test "$enable_shared" = yes && enable_static=no
5020 - if test -n "$RANLIB"; then
5021 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
5022 - postinstall_cmds='$RANLIB $lib'
5023 +sysv4*MP*)
5024 + if test -d /usr/nec ;then
5025 + version_type=linux
5026 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5027 + soname_spec='$libname${shared_ext}.$major'
5028 + shlibpath_var=LD_LIBRARY_PATH
5029 fi
5030 ;;
5031
5032 -aix4* | aix5*)
5033 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5034 - test "$enable_shared" = yes && enable_static=no
5035 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036 + version_type=freebsd-elf
5037 + need_lib_prefix=no
5038 + need_version=no
5039 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5040 + soname_spec='${libname}${release}${shared_ext}$major'
5041 + shlibpath_var=LD_LIBRARY_PATH
5042 + shlibpath_overrides_runpath=yes
5043 + hardcode_into_libs=yes
5044 + if test "$with_gnu_ld" = yes; then
5045 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
5046 + else
5047 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
5048 + case $host_os in
5049 + sco3.2v5*)
5050 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
5051 + ;;
5052 + esac
5053 fi
5054 - ;;
5055 -esac
5056 -AC_MSG_RESULT([$enable_shared])
5057 -
5058 -AC_MSG_CHECKING([whether to build static libraries])
5059 -# Make sure either enable_shared or enable_static is yes.
5060 -test "$enable_shared" = yes || enable_static=yes
5061 -AC_MSG_RESULT([$enable_static])
5062 -
5063 -AC_LIBTOOL_CONFIG($1)
5064 -
5065 -AC_LANG_POP
5066 -CC="$lt_save_CC"
5067 -])# AC_LIBTOOL_LANG_C_CONFIG
5068 -
5069 -
5070 -# AC_LIBTOOL_LANG_CXX_CONFIG
5071 -# --------------------------
5072 -# Ensure that the configuration vars for the C compiler are
5073 -# suitably defined. Those variables are subsequently used by
5074 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5075 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
5076 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
5077 -[AC_LANG_PUSH(C++)
5078 -AC_REQUIRE([AC_PROG_CXX])
5079 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
5080 -
5081 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5082 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5083 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
5084 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5085 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5086 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
5087 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5088 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5089 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5090 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5091 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5092 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5093 -_LT_AC_TAGVAR(module_cmds, $1)=
5094 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5095 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5096 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5097 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
5098 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5099 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5100 -
5101 -# Dependencies to place before and after the object being linked:
5102 -_LT_AC_TAGVAR(predep_objects, $1)=
5103 -_LT_AC_TAGVAR(postdep_objects, $1)=
5104 -_LT_AC_TAGVAR(predeps, $1)=
5105 -_LT_AC_TAGVAR(postdeps, $1)=
5106 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
5107 -
5108 -# Source file extension for C++ test sources.
5109 -ac_ext=cpp
5110 -
5111 -# Object file extension for compiled C++ test sources.
5112 -objext=o
5113 -_LT_AC_TAGVAR(objext, $1)=$objext
5114 -
5115 -# Code to be used in simple compile tests
5116 -lt_simple_compile_test_code="int some_variable = 0;\n"
5117 + sys_lib_dlsearch_path_spec='/usr/lib'
5118 + ;;
5119
5120 -# Code to be used in simple link tests
5121 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
5122 +tpf*)
5123 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
5124 + version_type=linux
5125 + need_lib_prefix=no
5126 + need_version=no
5127 + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5128 + shlibpath_var=LD_LIBRARY_PATH
5129 + shlibpath_overrides_runpath=no
5130 + hardcode_into_libs=yes
5131 + ;;
5132
5133 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5134 -_LT_AC_SYS_COMPILER
5135 +uts4*)
5136 + version_type=linux
5137 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5138 + soname_spec='${libname}${release}${shared_ext}$major'
5139 + shlibpath_var=LD_LIBRARY_PATH
5140 + ;;
5141
5142 -# save warnings/boilerplate of simple test code
5143 -_LT_COMPILER_BOILERPLATE
5144 -_LT_LINKER_BOILERPLATE
5145 +*)
5146 + dynamic_linker=no
5147 + ;;
5148 +esac
5149 +AC_MSG_RESULT([$dynamic_linker])
5150 +test "$dynamic_linker" = no && can_build_shared=no
5151
5152 -# Allow CC to be a program name with arguments.
5153 -lt_save_CC=$CC
5154 -lt_save_LD=$LD
5155 -lt_save_GCC=$GCC
5156 -GCC=$GXX
5157 -lt_save_with_gnu_ld=$with_gnu_ld
5158 -lt_save_path_LD=$lt_cv_path_LD
5159 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5160 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5161 -else
5162 - $as_unset lt_cv_prog_gnu_ld
5163 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5164 +if test "$GCC" = yes; then
5165 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5166 fi
5167 -if test -n "${lt_cv_path_LDCXX+set}"; then
5168 - lt_cv_path_LD=$lt_cv_path_LDCXX
5169 -else
5170 - $as_unset lt_cv_path_LD
5171 +
5172 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
5173 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
5174 fi
5175 -test -z "${LDCXX+set}" || LD=$LDCXX
5176 -CC=${CXX-"c++"}
5177 -compiler=$CC
5178 -_LT_AC_TAGVAR(compiler, $1)=$CC
5179 -_LT_CC_BASENAME([$compiler])
5180 -
5181 -# We don't want -fno-exception wen compiling C++ code, so set the
5182 -# no_builtin_flag separately
5183 -if test "$GXX" = yes; then
5184 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5185 -else
5186 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5187 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
5188 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
5189 fi
5190
5191 -if test "$GXX" = yes; then
5192 - # Set up default GNU C++ configuration
5193 -
5194 - AC_PROG_LD
5195 -
5196 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
5197 - # archiving commands below assume that GNU ld is being used.
5198 - if test "$with_gnu_ld" = yes; then
5199 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5200 - _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'
5201 -
5202 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5203 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5204 -
5205 - # If archive_cmds runs LD, not CC, wlarc should be empty
5206 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5207 - # investigate it a little bit more. (MM)
5208 - wlarc='${wl}'
5209 -
5210 - # ancient GNU ld didn't support --whole-archive et. al.
5211 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5212 - grep 'no-whole-archive' > /dev/null; then
5213 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5214 - else
5215 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5216 - fi
5217 - else
5218 - with_gnu_ld=no
5219 - wlarc=
5220 -
5221 - # A generic and very simple default shared library creation
5222 - # command for GNU C++ for the case where it uses the native
5223 - # linker, instead of GNU ld. If possible, this setting should
5224 - # overridden to take advantage of the native linker features on
5225 - # the platform it is being used on.
5226 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5227 - fi
5228 -
5229 - # Commands to make compiler produce verbose output that lists
5230 - # what "hidden" libraries, object files and flags are used when
5231 - # linking a shared library.
5232 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5233 -
5234 -else
5235 - GXX=no
5236 - with_gnu_ld=no
5237 - wlarc=
5238 -fi
5239 +_LT_DECL([], [variables_saved_for_relink], [1],
5240 + [Variables whose values should be saved in libtool wrapper scripts and
5241 + restored at link time])
5242 +_LT_DECL([], [need_lib_prefix], [0],
5243 + [Do we need the "lib" prefix for modules?])
5244 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
5245 +_LT_DECL([], [version_type], [0], [Library versioning type])
5246 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
5247 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
5248 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
5249 + [Is shlibpath searched before the hard-coded library search path?])
5250 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
5251 +_LT_DECL([], [library_names_spec], [1],
5252 + [[List of archive names. First name is the real one, the rest are links.
5253 + The last name is the one that the linker finds with -lNAME]])
5254 +_LT_DECL([], [soname_spec], [1],
5255 + [[The coded name of the library, if different from the real name]])
5256 +_LT_DECL([], [postinstall_cmds], [2],
5257 + [Command to use after installation of a shared archive])
5258 +_LT_DECL([], [postuninstall_cmds], [2],
5259 + [Command to use after uninstallation of a shared archive])
5260 +_LT_DECL([], [finish_cmds], [2],
5261 + [Commands used to finish a libtool library installation in a directory])
5262 +_LT_DECL([], [finish_eval], [1],
5263 + [[As "finish_cmds", except a single script fragment to be evaled but
5264 + not shown]])
5265 +_LT_DECL([], [hardcode_into_libs], [0],
5266 + [Whether we should hardcode library paths into libraries])
5267 +_LT_DECL([], [sys_lib_search_path_spec], [2],
5268 + [Compile-time system search path for libraries])
5269 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
5270 + [Run-time system search path for libraries])
5271 +])# _LT_SYS_DYNAMIC_LINKER
5272
5273 -# PORTME: fill in a description of your system's C++ link characteristics
5274 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5275 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5276 -case $host_os in
5277 - aix3*)
5278 - # FIXME: insert proper C++ library support
5279 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5280 - ;;
5281 - aix4* | aix5*)
5282 - if test "$host_cpu" = ia64; then
5283 - # On IA64, the linker does run time linking by default, so we don't
5284 - # have to do anything special.
5285 - aix_use_runtimelinking=no
5286 - exp_sym_flag='-Bexport'
5287 - no_entry_flag=""
5288 - else
5289 - aix_use_runtimelinking=no
5290
5291 - # Test if we are trying to use run time linking or normal
5292 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5293 - # need to do runtime linking.
5294 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5295 - for ld_flag in $LDFLAGS; do
5296 - case $ld_flag in
5297 - *-brtl*)
5298 - aix_use_runtimelinking=yes
5299 - break
5300 - ;;
5301 - esac
5302 - done
5303 - ;;
5304 - esac
5305 -
5306 - exp_sym_flag='-bexport'
5307 - no_entry_flag='-bnoentry'
5308 - fi
5309 +# _LT_PATH_TOOL_PREFIX(TOOL)
5310 +# --------------------------
5311 +# find a file program which can recognize shared library
5312 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
5313 +[m4_require([_LT_DECL_EGREP])dnl
5314 +AC_MSG_CHECKING([for $1])
5315 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
5316 +[case $MAGIC_CMD in
5317 +[[\\/*] | ?:[\\/]*])
5318 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5319 + ;;
5320 +*)
5321 + lt_save_MAGIC_CMD="$MAGIC_CMD"
5322 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5323 +dnl $ac_dummy forces splitting on constant user-supplied paths.
5324 +dnl POSIX.2 word splitting is done only on the output of word expansions,
5325 +dnl not every word. This closes a longstanding sh security hole.
5326 + ac_dummy="m4_if([$2], , $PATH, [$2])"
5327 + for ac_dir in $ac_dummy; do
5328 + IFS="$lt_save_ifs"
5329 + test -z "$ac_dir" && ac_dir=.
5330 + if test -f $ac_dir/$1; then
5331 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
5332 + if test -n "$file_magic_test_file"; then
5333 + case $deplibs_check_method in
5334 + "file_magic "*)
5335 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5336 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5337 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5338 + $EGREP "$file_magic_regex" > /dev/null; then
5339 + :
5340 + else
5341 + cat <<_LT_EOF 1>&2
5342
5343 - # When large executables or shared objects are built, AIX ld can
5344 - # have problems creating the table of contents. If linking a library
5345 - # or program results in "error TOC overflow" add -mminimal-toc to
5346 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5347 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5348 -
5349 - _LT_AC_TAGVAR(archive_cmds, $1)=''
5350 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5351 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5352 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5353 +*** Warning: the command libtool uses to detect shared libraries,
5354 +*** $file_magic_cmd, produces output that libtool cannot recognize.
5355 +*** The result is that libtool may fail to recognize shared libraries
5356 +*** as such. This will affect the creation of libtool libraries that
5357 +*** depend on shared libraries, but programs linked with such libtool
5358 +*** libraries will work regardless of this problem. Nevertheless, you
5359 +*** may want to report the problem to your system manager and/or to
5360 +*** bug-libtool@gnu.org
5361
5362 - if test "$GXX" = yes; then
5363 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
5364 - # We only want to do this on AIX 4.2 and lower, the check
5365 - # below for broken collect2 doesn't work under 4.3+
5366 - collect2name=`${CC} -print-prog-name=collect2`
5367 - if test -f "$collect2name" && \
5368 - strings "$collect2name" | grep resolve_lib_name >/dev/null
5369 - then
5370 - # We have reworked collect2
5371 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5372 - else
5373 - # We have old collect2
5374 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5375 - # It fails to find uninstalled libraries when the uninstalled
5376 - # path is not listed in the libpath. Setting hardcode_minus_L
5377 - # to unsupported forces relinking
5378 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5379 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5380 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5381 - fi
5382 - ;;
5383 - esac
5384 - shared_flag='-shared'
5385 - if test "$aix_use_runtimelinking" = yes; then
5386 - shared_flag="$shared_flag "'${wl}-G'
5387 - fi
5388 - else
5389 - # not using gcc
5390 - if test "$host_cpu" = ia64; then
5391 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5392 - # chokes on -Wl,-G. The following line is correct:
5393 - shared_flag='-G'
5394 - else
5395 - if test "$aix_use_runtimelinking" = yes; then
5396 - shared_flag='${wl}-G'
5397 - else
5398 - shared_flag='${wl}-bM:SRE'
5399 - fi
5400 +_LT_EOF
5401 + fi ;;
5402 + esac
5403 fi
5404 + break
5405 fi
5406 + done
5407 + IFS="$lt_save_ifs"
5408 + MAGIC_CMD="$lt_save_MAGIC_CMD"
5409 + ;;
5410 +esac])
5411 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5412 +if test -n "$MAGIC_CMD"; then
5413 + AC_MSG_RESULT($MAGIC_CMD)
5414 +else
5415 + AC_MSG_RESULT(no)
5416 +fi
5417 +_LT_DECL([], [MAGIC_CMD], [0],
5418 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
5419 +])# _LT_PATH_TOOL_PREFIX
5420
5421 - # It seems that -bexpall does not export symbols beginning with
5422 - # underscore (_), so it is better to generate a list of symbols to export.
5423 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5424 - if test "$aix_use_runtimelinking" = yes; then
5425 - # Warning - without using the other runtime loading flags (-brtl),
5426 - # -berok will link without error, but may produce a broken library.
5427 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5428 - # Determine the default libpath from the value encoded in an empty executable.
5429 - _LT_AC_SYS_LIBPATH_AIX
5430 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5431 +# Old name:
5432 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
5433 +dnl aclocal-1.4 backwards compatibility:
5434 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
5435
5436 - _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"
5437 - else
5438 - if test "$host_cpu" = ia64; then
5439 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5440 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5441 - _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"
5442 - else
5443 - # Determine the default libpath from the value encoded in an empty executable.
5444 - _LT_AC_SYS_LIBPATH_AIX
5445 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5446 - # Warning - without using the other run time loading flags,
5447 - # -berok will link without error, but may produce a broken library.
5448 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5449 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5450 - # Exported symbols can be pulled into shared objects from archives
5451 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5452 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5453 - # This is similar to how AIX traditionally builds its shared libraries.
5454 - _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'
5455 - fi
5456 - fi
5457 - ;;
5458
5459 - beos*)
5460 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5461 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5462 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5463 - # support --undefined. This deserves some investigation. FIXME
5464 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5465 - else
5466 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5467 - fi
5468 - ;;
5469 +# _LT_PATH_MAGIC
5470 +# --------------
5471 +# find a file program which can recognize a shared library
5472 +m4_defun([_LT_PATH_MAGIC],
5473 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
5474 +if test -z "$lt_cv_path_MAGIC_CMD"; then
5475 + if test -n "$ac_tool_prefix"; then
5476 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
5477 + else
5478 + MAGIC_CMD=:
5479 + fi
5480 +fi
5481 +])# _LT_PATH_MAGIC
5482
5483 - chorus*)
5484 - case $cc_basename in
5485 - *)
5486 - # FIXME: insert proper C++ library support
5487 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5488 - ;;
5489 - esac
5490 - ;;
5491
5492 - cygwin* | mingw* | pw32*)
5493 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5494 - # as there is no search path for DLLs.
5495 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5496 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5497 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
5498 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5499 -
5500 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5501 - _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'
5502 - # If the export-symbols file already is a .def file (1st line
5503 - # is EXPORTS), use it as is; otherwise, prepend...
5504 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5505 - cp $export_symbols $output_objdir/$soname.def;
5506 - else
5507 - echo EXPORTS > $output_objdir/$soname.def;
5508 - cat $export_symbols >> $output_objdir/$soname.def;
5509 - fi~
5510 - $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'
5511 - else
5512 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5513 - fi
5514 - ;;
5515 - darwin* | rhapsody*)
5516 - case $host_os in
5517 - rhapsody* | darwin1.[[012]])
5518 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5519 - ;;
5520 - *) # Darwin 1.3 on
5521 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5522 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5523 - else
5524 - case ${MACOSX_DEPLOYMENT_TARGET} in
5525 - 10.[[012]])
5526 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5527 - ;;
5528 - 10.*)
5529 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5530 - ;;
5531 - esac
5532 - fi
5533 - ;;
5534 - esac
5535 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5536 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5537 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5538 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5539 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5540 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5541 -
5542 - if test "$GXX" = yes ; then
5543 - lt_int_apple_cc_single_mod=no
5544 - output_verbose_link_cmd='echo'
5545 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5546 - lt_int_apple_cc_single_mod=yes
5547 - fi
5548 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5549 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5550 - else
5551 - _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'
5552 - fi
5553 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5554 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5555 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5556 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5557 - else
5558 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5559 - fi
5560 - _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}'
5561 - else
5562 - case $cc_basename in
5563 - xlc*)
5564 - output_verbose_link_cmd='echo'
5565 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5566 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5567 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5568 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5569 - _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}'
5570 - ;;
5571 - *)
5572 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5573 - ;;
5574 - esac
5575 - fi
5576 - ;;
5577 +# LT_PATH_LD
5578 +# ----------
5579 +# find the pathname to the GNU or non-GNU linker
5580 +AC_DEFUN([LT_PATH_LD],
5581 +[AC_REQUIRE([AC_PROG_CC])dnl
5582 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
5583 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
5584 +m4_require([_LT_DECL_SED])dnl
5585 +m4_require([_LT_DECL_EGREP])dnl
5586
5587 - dgux*)
5588 - case $cc_basename in
5589 - ec++*)
5590 - # FIXME: insert proper C++ library support
5591 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5592 - ;;
5593 - ghcx*)
5594 - # Green Hills C++ Compiler
5595 - # FIXME: insert proper C++ library support
5596 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5597 - ;;
5598 - *)
5599 - # FIXME: insert proper C++ library support
5600 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5601 - ;;
5602 - esac
5603 - ;;
5604 - freebsd[[12]]*)
5605 - # C++ shared libraries reported to be fairly broken before switch to ELF
5606 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5607 - ;;
5608 - freebsd-elf*)
5609 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5610 - ;;
5611 - freebsd* | kfreebsd*-gnu | dragonfly*)
5612 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5613 - # conventions
5614 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5615 - ;;
5616 - gnu*)
5617 - ;;
5618 - hpux9*)
5619 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5620 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5621 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5622 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5623 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5624 - # but as the default
5625 - # location of the library.
5626 -
5627 - case $cc_basename in
5628 - CC*)
5629 - # FIXME: insert proper C++ library support
5630 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5631 - ;;
5632 - aCC*)
5633 - _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'
5634 - # Commands to make compiler produce verbose output that lists
5635 - # what "hidden" libraries, object files and flags are used when
5636 - # linking a shared library.
5637 - #
5638 - # There doesn't appear to be a way to prevent this compiler from
5639 - # explicitly linking system object files so we need to strip them
5640 - # from the output so that they don't get included in the library
5641 - # dependencies.
5642 - 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'
5643 - ;;
5644 - *)
5645 - if test "$GXX" = yes; then
5646 - _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'
5647 - else
5648 - # FIXME: insert proper C++ library support
5649 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5650 - fi
5651 - ;;
5652 - esac
5653 - ;;
5654 - hpux10*|hpux11*)
5655 - if test $with_gnu_ld = no; then
5656 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5657 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5658 +AC_ARG_WITH([gnu-ld],
5659 + [AS_HELP_STRING([--with-gnu-ld],
5660 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
5661 + [test "$withval" = no || with_gnu_ld=yes],
5662 + [with_gnu_ld=no])dnl
5663
5664 - case $host_cpu in
5665 - hppa*64*|ia64*)
5666 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5667 - ;;
5668 - *)
5669 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5670 - ;;
5671 - esac
5672 - fi
5673 - case $host_cpu in
5674 - hppa*64*|ia64*)
5675 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5676 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5677 - ;;
5678 - *)
5679 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5680 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5681 - # but as the default
5682 - # location of the library.
5683 +ac_prog=ld
5684 +if test "$GCC" = yes; then
5685 + # Check if gcc -print-prog-name=ld gives a path.
5686 + AC_MSG_CHECKING([for ld used by $CC])
5687 + case $host in
5688 + *-*-mingw*)
5689 + # gcc leaves a trailing carriage return which upsets mingw
5690 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5691 + *)
5692 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5693 + esac
5694 + case $ac_prog in
5695 + # Accept absolute paths.
5696 + [[\\/]]* | ?:[[\\/]]*)
5697 + re_direlt='/[[^/]][[^/]]*/\.\./'
5698 + # Canonicalize the pathname of ld
5699 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5700 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5701 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5702 + done
5703 + test -z "$LD" && LD="$ac_prog"
5704 ;;
5705 - esac
5706 -
5707 - case $cc_basename in
5708 - CC*)
5709 - # FIXME: insert proper C++ library support
5710 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5711 - ;;
5712 - aCC*)
5713 - case $host_cpu in
5714 - hppa*64*)
5715 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5716 - ;;
5717 - ia64*)
5718 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5719 - ;;
5720 - *)
5721 - _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'
5722 - ;;
5723 - esac
5724 - # Commands to make compiler produce verbose output that lists
5725 - # what "hidden" libraries, object files and flags are used when
5726 - # linking a shared library.
5727 - #
5728 - # There doesn't appear to be a way to prevent this compiler from
5729 - # explicitly linking system object files so we need to strip them
5730 - # from the output so that they don't get included in the library
5731 - # dependencies.
5732 - 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'
5733 - ;;
5734 - *)
5735 - if test "$GXX" = yes; then
5736 - if test $with_gnu_ld = no; then
5737 - case $host_cpu in
5738 - hppa*64*)
5739 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5740 - ;;
5741 - ia64*)
5742 - _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'
5743 - ;;
5744 - *)
5745 - _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'
5746 - ;;
5747 - esac
5748 - fi
5749 - else
5750 - # FIXME: insert proper C++ library support
5751 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5752 - fi
5753 - ;;
5754 - esac
5755 - ;;
5756 - interix3*)
5757 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
5758 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5759 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5760 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5761 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5762 - # Instead, shared libraries are loaded at an image base (0x10000000 by
5763 - # default) and relocated if they conflict, which is a slow very memory
5764 - # consuming and fragmenting process. To avoid this, we pick a random,
5765 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5766 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5767 - _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'
5768 - _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'
5769 - ;;
5770 - irix5* | irix6*)
5771 - case $cc_basename in
5772 - CC*)
5773 - # SGI C++
5774 - _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'
5775 -
5776 - # Archives containing C++ object files must be created using
5777 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5778 - # necessary to make sure instantiated templates are included
5779 - # in the archive.
5780 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5781 - ;;
5782 - *)
5783 - if test "$GXX" = yes; then
5784 - if test "$with_gnu_ld" = no; then
5785 - _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'
5786 - else
5787 - _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'
5788 - fi
5789 - fi
5790 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5791 - ;;
5792 - esac
5793 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5794 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5795 + "")
5796 + # If it fails, then pretend we aren't using GCC.
5797 + ac_prog=ld
5798 ;;
5799 - linux*)
5800 - case $cc_basename in
5801 - KCC*)
5802 - # Kuck and Associates, Inc. (KAI) C++ Compiler
5803 -
5804 - # KCC will only create a shared library if the output file
5805 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
5806 - # to its proper name (with version) after linking.
5807 - _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'
5808 - _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'
5809 - # Commands to make compiler produce verbose output that lists
5810 - # what "hidden" libraries, object files and flags are used when
5811 - # linking a shared library.
5812 - #
5813 - # There doesn't appear to be a way to prevent this compiler from
5814 - # explicitly linking system object files so we need to strip them
5815 - # from the output so that they don't get included in the library
5816 - # dependencies.
5817 - 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'
5818 -
5819 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5820 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5821 -
5822 - # Archives containing C++ object files must be created using
5823 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5824 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5825 - ;;
5826 - icpc*)
5827 - # Intel C++
5828 - with_gnu_ld=yes
5829 - # version 8.0 and above of icpc choke on multiply defined symbols
5830 - # if we add $predep_objects and $postdep_objects, however 7.1 and
5831 - # earlier do not add the objects themselves.
5832 - case `$CC -V 2>&1` in
5833 - *"Version 7."*)
5834 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5835 - _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'
5836 - ;;
5837 - *) # Version 8.0 or newer
5838 - tmp_idyn=
5839 - case $host_cpu in
5840 - ia64*) tmp_idyn=' -i_dynamic';;
5841 - esac
5842 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5843 - _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'
5844 - ;;
5845 - esac
5846 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5847 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5848 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5849 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5850 - ;;
5851 - pgCC*)
5852 - # Portland Group C++ compiler
5853 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5854 - _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'
5855 -
5856 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5857 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5858 - _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'
5859 - ;;
5860 - cxx*)
5861 - # Compaq C++
5862 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5863 - _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'
5864 -
5865 - runpath_var=LD_RUN_PATH
5866 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5867 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5868 -
5869 - # Commands to make compiler produce verbose output that lists
5870 - # what "hidden" libraries, object files and flags are used when
5871 - # linking a shared library.
5872 - #
5873 - # There doesn't appear to be a way to prevent this compiler from
5874 - # explicitly linking system object files so we need to strip them
5875 - # from the output so that they don't get included in the library
5876 - # dependencies.
5877 - 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'
5878 - ;;
5879 - *)
5880 - case `$CC -V 2>&1 | sed 5q` in
5881 - *Sun\ C*)
5882 - # Sun C++ 5.9
5883 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5884 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5885 - _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'
5886 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5887 - _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'
5888 -
5889 - # Not sure whether something based on
5890 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5891 - # would be better.
5892 - output_verbose_link_cmd='echo'
5893 -
5894 - # Archives containing C++ object files must be created using
5895 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
5896 - # necessary to make sure instantiated templates are included
5897 - # in the archive.
5898 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5899 - ;;
5900 - esac
5901 - ;;
5902 - esac
5903 + *)
5904 + # If it is relative, then search for the first ld in PATH.
5905 + with_gnu_ld=unknown
5906 ;;
5907 - lynxos*)
5908 - # FIXME: insert proper C++ library support
5909 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5910 - ;;
5911 - m88k*)
5912 - # FIXME: insert proper C++ library support
5913 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5914 - ;;
5915 - mvs*)
5916 - case $cc_basename in
5917 - cxx*)
5918 - # FIXME: insert proper C++ library support
5919 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5920 + esac
5921 +elif test "$with_gnu_ld" = yes; then
5922 + AC_MSG_CHECKING([for GNU ld])
5923 +else
5924 + AC_MSG_CHECKING([for non-GNU ld])
5925 +fi
5926 +AC_CACHE_VAL(lt_cv_path_LD,
5927 +[if test -z "$LD"; then
5928 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5929 + for ac_dir in $PATH; do
5930 + IFS="$lt_save_ifs"
5931 + test -z "$ac_dir" && ac_dir=.
5932 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5933 + lt_cv_path_LD="$ac_dir/$ac_prog"
5934 + # Check to see if the program is GNU ld. I'd rather use --version,
5935 + # but apparently some variants of GNU ld only accept -v.
5936 + # Break only if it was the GNU/non-GNU ld that we prefer.
5937 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5938 + *GNU* | *'with BFD'*)
5939 + test "$with_gnu_ld" != no && break
5940 ;;
5941 *)
5942 - # FIXME: insert proper C++ library support
5943 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5944 + test "$with_gnu_ld" != yes && break
5945 ;;
5946 - esac
5947 - ;;
5948 - netbsd*)
5949 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5950 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5951 - wlarc=
5952 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5953 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5954 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5955 - fi
5956 - # Workaround some broken pre-1.5 toolchains
5957 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5958 - ;;
5959 - openbsd2*)
5960 - # C++ shared libraries are fairly broken
5961 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5962 - ;;
5963 - openbsd*)
5964 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5965 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5967 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5968 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969 - _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'
5970 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5971 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5972 + esac
5973 fi
5974 - output_verbose_link_cmd='echo'
5975 - ;;
5976 - osf3*)
5977 - case $cc_basename in
5978 - KCC*)
5979 - # Kuck and Associates, Inc. (KAI) C++ Compiler
5980 -
5981 - # KCC will only create a shared library if the output file
5982 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
5983 - # to its proper name (with version) after linking.
5984 - _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'
5985 -
5986 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5987 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5988 -
5989 - # Archives containing C++ object files must be created using
5990 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5991 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5992 -
5993 - ;;
5994 - RCC*)
5995 - # Rational C++ 2.4.1
5996 - # FIXME: insert proper C++ library support
5997 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
5998 - ;;
5999 - cxx*)
6000 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6001 - _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'
6002 -
6003 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6004 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6005 -
6006 - # Commands to make compiler produce verbose output that lists
6007 - # what "hidden" libraries, object files and flags are used when
6008 - # linking a shared library.
6009 - #
6010 - # There doesn't appear to be a way to prevent this compiler from
6011 - # explicitly linking system object files so we need to strip them
6012 - # from the output so that they don't get included in the library
6013 - # dependencies.
6014 - 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'
6015 - ;;
6016 - *)
6017 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6018 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6019 - _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'
6020 -
6021 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6022 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6023 -
6024 - # Commands to make compiler produce verbose output that lists
6025 - # what "hidden" libraries, object files and flags are used when
6026 - # linking a shared library.
6027 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6028 + done
6029 + IFS="$lt_save_ifs"
6030 +else
6031 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
6032 +fi])
6033 +LD="$lt_cv_path_LD"
6034 +if test -n "$LD"; then
6035 + AC_MSG_RESULT($LD)
6036 +else
6037 + AC_MSG_RESULT(no)
6038 +fi
6039 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
6040 +_LT_PATH_LD_GNU
6041 +AC_SUBST([LD])
6042
6043 - else
6044 - # FIXME: insert proper C++ library support
6045 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6046 - fi
6047 - ;;
6048 - esac
6049 - ;;
6050 - osf4* | osf5*)
6051 - case $cc_basename in
6052 - KCC*)
6053 - # Kuck and Associates, Inc. (KAI) C++ Compiler
6054 -
6055 - # KCC will only create a shared library if the output file
6056 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
6057 - # to its proper name (with version) after linking.
6058 - _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'
6059 -
6060 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6061 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6062 -
6063 - # Archives containing C++ object files must be created using
6064 - # the KAI C++ compiler.
6065 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
6066 - ;;
6067 - RCC*)
6068 - # Rational C++ 2.4.1
6069 - # FIXME: insert proper C++ library support
6070 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6071 - ;;
6072 - cxx*)
6073 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6074 - _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'
6075 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6076 - echo "-hidden">> $lib.exp~
6077 - $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~
6078 - $rm $lib.exp'
6079 -
6080 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6081 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6082 -
6083 - # Commands to make compiler produce verbose output that lists
6084 - # what "hidden" libraries, object files and flags are used when
6085 - # linking a shared library.
6086 - #
6087 - # There doesn't appear to be a way to prevent this compiler from
6088 - # explicitly linking system object files so we need to strip them
6089 - # from the output so that they don't get included in the library
6090 - # dependencies.
6091 - 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'
6092 - ;;
6093 - *)
6094 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6095 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096 - _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'
6097 -
6098 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6099 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6100 -
6101 - # Commands to make compiler produce verbose output that lists
6102 - # what "hidden" libraries, object files and flags are used when
6103 - # linking a shared library.
6104 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6105 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
6106 +])# LT_PATH_LD
6107
6108 - else
6109 - # FIXME: insert proper C++ library support
6110 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6111 - fi
6112 - ;;
6113 - esac
6114 - ;;
6115 - psos*)
6116 - # FIXME: insert proper C++ library support
6117 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6118 - ;;
6119 - sunos4*)
6120 - case $cc_basename in
6121 - CC*)
6122 - # Sun C++ 4.x
6123 - # FIXME: insert proper C++ library support
6124 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6125 - ;;
6126 - lcc*)
6127 - # Lucid
6128 - # FIXME: insert proper C++ library support
6129 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6130 - ;;
6131 - *)
6132 - # FIXME: insert proper C++ library support
6133 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6134 - ;;
6135 - esac
6136 +# Old names:
6137 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
6138 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
6139 +dnl aclocal-1.4 backwards compatibility:
6140 +dnl AC_DEFUN([AM_PROG_LD], [])
6141 +dnl AC_DEFUN([AC_PROG_LD], [])
6142 +
6143 +
6144 +# _LT_PATH_LD_GNU
6145 +#- --------------
6146 +m4_defun([_LT_PATH_LD_GNU],
6147 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
6148 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
6149 +case `$LD -v 2>&1 </dev/null` in
6150 +*GNU* | *'with BFD'*)
6151 + lt_cv_prog_gnu_ld=yes
6152 + ;;
6153 +*)
6154 + lt_cv_prog_gnu_ld=no
6155 + ;;
6156 +esac])
6157 +with_gnu_ld=$lt_cv_prog_gnu_ld
6158 +])# _LT_PATH_LD_GNU
6159 +
6160 +
6161 +# _LT_CMD_RELOAD
6162 +# --------------
6163 +# find reload flag for linker
6164 +# -- PORTME Some linkers may need a different reload flag.
6165 +m4_defun([_LT_CMD_RELOAD],
6166 +[AC_CACHE_CHECK([for $LD option to reload object files],
6167 + lt_cv_ld_reload_flag,
6168 + [lt_cv_ld_reload_flag='-r'])
6169 +reload_flag=$lt_cv_ld_reload_flag
6170 +case $reload_flag in
6171 +"" | " "*) ;;
6172 +*) reload_flag=" $reload_flag" ;;
6173 +esac
6174 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
6175 +case $host_os in
6176 + darwin*)
6177 + if test "$GCC" = yes; then
6178 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6179 + else
6180 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
6181 + fi
6182 ;;
6183 - solaris*)
6184 - case $cc_basename in
6185 - CC*)
6186 - # Sun C++ 4.2, 5.x and Centerline C++
6187 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6188 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6189 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6190 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6191 - $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'
6192 -
6193 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6194 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6195 - case $host_os in
6196 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6197 - *)
6198 - # The C++ compiler is used as linker so we must use $wl
6199 - # flag to pass the commands to the underlying system
6200 - # linker. We must also pass each convience library through
6201 - # to the system linker between allextract/defaultextract.
6202 - # The C++ compiler will combine linker options so we
6203 - # cannot just pass the convience library names through
6204 - # without $wl.
6205 - # Supported since Solaris 2.6 (maybe 2.5.1?)
6206 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
6207 - ;;
6208 - esac
6209 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6210 +esac
6211 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
6212 +_LT_DECL([], [reload_cmds], [2])dnl
6213 +])# _LT_CMD_RELOAD
6214
6215 - output_verbose_link_cmd='echo'
6216
6217 - # Archives containing C++ object files must be created using
6218 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
6219 - # necessary to make sure instantiated templates are included
6220 - # in the archive.
6221 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6222 - ;;
6223 - gcx*)
6224 - # Green Hills C++ Compiler
6225 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6226 +# _LT_CHECK_MAGIC_METHOD
6227 +# ----------------------
6228 +# how to check for library dependencies
6229 +# -- PORTME fill in with the dynamic library characteristics
6230 +m4_defun([_LT_CHECK_MAGIC_METHOD],
6231 +[m4_require([_LT_DECL_EGREP])
6232 +AC_CACHE_CHECK([how to recognize dependent libraries],
6233 +lt_cv_deplibs_check_method,
6234 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
6235 +lt_cv_file_magic_test_file=
6236 +lt_cv_deplibs_check_method='unknown'
6237 +# Need to set the preceding variable on all platforms that support
6238 +# interlibrary dependencies.
6239 +# 'none' -- dependencies not supported.
6240 +# `unknown' -- same as none, but documents that we really don't know.
6241 +# 'pass_all' -- all dependencies passed with no checks.
6242 +# 'test_compile' -- check by making test program.
6243 +# 'file_magic [[regex]]' -- check by looking for files in library path
6244 +# which responds to the $file_magic_cmd with a given extended regex.
6245 +# If you have `file' or equivalent on your system and you're not sure
6246 +# whether `pass_all' will *always* work, you probably want this one.
6247
6248 - # The C++ compiler must be used to create the archive.
6249 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6250 - ;;
6251 - *)
6252 - # GNU C++ compiler with Solaris linker
6253 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6254 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6255 - if $CC --version | grep -v '^2\.7' > /dev/null; then
6256 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6257 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6258 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6259 +case $host_os in
6260 +aix[[4-9]]*)
6261 + lt_cv_deplibs_check_method=pass_all
6262 + ;;
6263
6264 - # Commands to make compiler produce verbose output that lists
6265 - # what "hidden" libraries, object files and flags are used when
6266 - # linking a shared library.
6267 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6268 - else
6269 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
6270 - # platform.
6271 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6272 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6273 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6274 +beos*)
6275 + lt_cv_deplibs_check_method=pass_all
6276 + ;;
6277
6278 - # Commands to make compiler produce verbose output that lists
6279 - # what "hidden" libraries, object files and flags are used when
6280 - # linking a shared library.
6281 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6282 - fi
6283 +bsdi[[45]]*)
6284 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
6285 + lt_cv_file_magic_cmd='/usr/bin/file -L'
6286 + lt_cv_file_magic_test_file=/shlib/libc.so
6287 + ;;
6288
6289 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6290 - fi
6291 - ;;
6292 - esac
6293 - ;;
6294 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6295 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6296 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6297 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6298 - runpath_var='LD_RUN_PATH'
6299 -
6300 - case $cc_basename in
6301 - CC*)
6302 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6303 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6304 - ;;
6305 - *)
6306 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6307 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6308 - ;;
6309 - esac
6310 - ;;
6311 - sysv5* | sco3.2v5* | sco5v6*)
6312 - # Note: We can NOT use -z defs as we might desire, because we do not
6313 - # link with -lc, and that would cause any symbols used from libc to
6314 - # always be unresolved, which means just about no library would
6315 - # ever link correctly. If we're not using GNU ld we use -z text
6316 - # though, which does catch some bad symbols but isn't as heavy-handed
6317 - # as -z defs.
6318 - # For security reasons, it is highly recommended that you always
6319 - # use absolute paths for naming shared libraries, and exclude the
6320 - # DT_RUNPATH tag from executables and libraries. But doing so
6321 - # requires that you compile everything twice, which is a pain.
6322 - # So that behaviour is only enabled if SCOABSPATH is set to a
6323 - # non-empty value in the environment. Most likely only useful for
6324 - # creating official distributions of packages.
6325 - # This is a hack until libtool officially supports absolute path
6326 - # names for shared libraries.
6327 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6328 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6329 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6330 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6331 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6332 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6333 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6334 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6335 - runpath_var='LD_RUN_PATH'
6336 -
6337 - case $cc_basename in
6338 - CC*)
6339 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6340 - _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'
6341 - ;;
6342 - *)
6343 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6344 - _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'
6345 - ;;
6346 - esac
6347 - ;;
6348 - tandem*)
6349 - case $cc_basename in
6350 - NCC*)
6351 - # NonStop-UX NCC 3.20
6352 - # FIXME: insert proper C++ library support
6353 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6354 - ;;
6355 - *)
6356 - # FIXME: insert proper C++ library support
6357 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6358 - ;;
6359 +cygwin*)
6360 + # func_win32_libid is a shell function defined in ltmain.sh
6361 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6362 + lt_cv_file_magic_cmd='func_win32_libid'
6363 + ;;
6364 +
6365 +mingw* | pw32*)
6366 + # Base MSYS/MinGW do not provide the 'file' command needed by
6367 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
6368 + # unless we find 'file', for example because we are cross-compiling.
6369 + if ( file / ) >/dev/null 2>&1; then
6370 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6371 + lt_cv_file_magic_cmd='func_win32_libid'
6372 + else
6373 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6374 + lt_cv_file_magic_cmd='$OBJDUMP -f'
6375 + fi
6376 + ;;
6377 +
6378 +darwin* | rhapsody*)
6379 + lt_cv_deplibs_check_method=pass_all
6380 + ;;
6381 +
6382 +freebsd* | dragonfly*)
6383 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6384 + case $host_cpu in
6385 + i*86 )
6386 + # Not sure whether the presence of OpenBSD here was a mistake.
6387 + # Let's accept both of them until this is cleared up.
6388 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
6389 + lt_cv_file_magic_cmd=/usr/bin/file
6390 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6391 + ;;
6392 esac
6393 + else
6394 + lt_cv_deplibs_check_method=pass_all
6395 + fi
6396 + ;;
6397 +
6398 +gnu*)
6399 + lt_cv_deplibs_check_method=pass_all
6400 + ;;
6401 +
6402 +hpux10.20* | hpux11*)
6403 + lt_cv_file_magic_cmd=/usr/bin/file
6404 + case $host_cpu in
6405 + ia64*)
6406 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
6407 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6408 ;;
6409 - vxworks*)
6410 - # FIXME: insert proper C++ library support
6411 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6412 + hppa*64*)
6413 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
6414 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6415 ;;
6416 *)
6417 - # FIXME: insert proper C++ library support
6418 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
6419 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
6420 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
6421 ;;
6422 -esac
6423 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6424 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6425 + esac
6426 + ;;
6427
6428 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
6429 -_LT_AC_TAGVAR(LD, $1)="$LD"
6430 +interix[[3-9]]*)
6431 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6432 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
6433 + ;;
6434
6435 -## CAVEAT EMPTOR:
6436 -## There is no encapsulation within the following macros, do not change
6437 -## the running order or otherwise move them around unless you know exactly
6438 -## what you are doing...
6439 -AC_LIBTOOL_POSTDEP_PREDEP($1)
6440 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
6441 -AC_LIBTOOL_PROG_CC_C_O($1)
6442 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6443 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
6444 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6445 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6446 +irix5* | irix6* | nonstopux*)
6447 + case $LD in
6448 + *-32|*"-32 ") libmagic=32-bit;;
6449 + *-n32|*"-n32 ") libmagic=N32;;
6450 + *-64|*"-64 ") libmagic=64-bit;;
6451 + *) libmagic=never-match;;
6452 + esac
6453 + lt_cv_deplibs_check_method=pass_all
6454 + ;;
6455
6456 -AC_LIBTOOL_CONFIG($1)
6457 +# This must be Linux ELF.
6458 +linux* | k*bsd*-gnu)
6459 + lt_cv_deplibs_check_method=pass_all
6460 + ;;
6461
6462 -AC_LANG_POP
6463 -CC=$lt_save_CC
6464 -LDCXX=$LD
6465 -LD=$lt_save_LD
6466 -GCC=$lt_save_GCC
6467 -with_gnu_ldcxx=$with_gnu_ld
6468 -with_gnu_ld=$lt_save_with_gnu_ld
6469 -lt_cv_path_LDCXX=$lt_cv_path_LD
6470 -lt_cv_path_LD=$lt_save_path_LD
6471 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6472 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6473 -])# AC_LIBTOOL_LANG_CXX_CONFIG
6474 +netbsd*)
6475 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6477 + else
6478 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
6479 + fi
6480 + ;;
6481
6482 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6483 -# ------------------------------------
6484 -# Figure out "hidden" library dependencies from verbose
6485 -# compiler output when linking a shared library.
6486 -# Parse the compiler output and extract the necessary
6487 -# objects, libraries and library flags.
6488 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6489 -dnl we can't use the lt_simple_compile_test_code here,
6490 -dnl because it contains code intended for an executable,
6491 -dnl not a library. It's possible we should let each
6492 -dnl tag define a new lt_????_link_test_code variable,
6493 -dnl but it's only used here...
6494 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6495 -int a;
6496 -void foo (void) { a = 0; }
6497 -EOF
6498 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6499 -class Foo
6500 -{
6501 -public:
6502 - Foo (void) { a = 0; }
6503 -private:
6504 - int a;
6505 -};
6506 -EOF
6507 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6508 - subroutine foo
6509 - implicit none
6510 - integer*4 a
6511 - a=0
6512 - return
6513 - end
6514 -EOF
6515 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6516 -public class foo {
6517 - private int a;
6518 - public void bar (void) {
6519 - a = 0;
6520 - }
6521 -};
6522 -EOF
6523 -])
6524 -dnl Parse the compiler output and extract the necessary
6525 -dnl objects, libraries and library flags.
6526 -if AC_TRY_EVAL(ac_compile); then
6527 - # Parse the compiler output and extract the necessary
6528 - # objects, libraries and library flags.
6529 +newos6*)
6530 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
6531 + lt_cv_file_magic_cmd=/usr/bin/file
6532 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
6533 + ;;
6534
6535 - # Sentinel used to keep track of whether or not we are before
6536 - # the conftest object file.
6537 - pre_test_object_deps_done=no
6538 +*nto* | *qnx*)
6539 + lt_cv_deplibs_check_method=pass_all
6540 + ;;
6541
6542 - # The `*' in the case matches for architectures that use `case' in
6543 - # $output_verbose_cmd can trigger glob expansion during the loop
6544 - # eval without this substitution.
6545 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6546 +openbsd*)
6547 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6548 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
6549 + else
6550 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6551 + fi
6552 + ;;
6553
6554 - for p in `eval $output_verbose_link_cmd`; do
6555 - case $p in
6556 +osf3* | osf4* | osf5*)
6557 + lt_cv_deplibs_check_method=pass_all
6558 + ;;
6559
6560 - -L* | -R* | -l*)
6561 - # Some compilers place space between "-{L,R}" and the path.
6562 - # Remove the space.
6563 - if test $p = "-L" \
6564 - || test $p = "-R"; then
6565 - prev=$p
6566 - continue
6567 - else
6568 - prev=
6569 - fi
6570 +rdos*)
6571 + lt_cv_deplibs_check_method=pass_all
6572 + ;;
6573 +
6574 +solaris*)
6575 + lt_cv_deplibs_check_method=pass_all
6576 + ;;
6577 +
6578 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6579 + lt_cv_deplibs_check_method=pass_all
6580 + ;;
6581 +
6582 +sysv4 | sysv4.3*)
6583 + case $host_vendor in
6584 + motorola)
6585 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
6586 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6587 + ;;
6588 + ncr)
6589 + lt_cv_deplibs_check_method=pass_all
6590 + ;;
6591 + sequent)
6592 + lt_cv_file_magic_cmd='/bin/file'
6593 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
6594 + ;;
6595 + sni)
6596 + lt_cv_file_magic_cmd='/bin/file'
6597 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
6598 + lt_cv_file_magic_test_file=/lib/libc.so
6599 + ;;
6600 + siemens)
6601 + lt_cv_deplibs_check_method=pass_all
6602 + ;;
6603 + pc)
6604 + lt_cv_deplibs_check_method=pass_all
6605 + ;;
6606 + esac
6607 + ;;
6608 +
6609 +tpf*)
6610 + lt_cv_deplibs_check_method=pass_all
6611 + ;;
6612 +esac
6613 +])
6614 +file_magic_cmd=$lt_cv_file_magic_cmd
6615 +deplibs_check_method=$lt_cv_deplibs_check_method
6616 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
6617 +
6618 +_LT_DECL([], [deplibs_check_method], [1],
6619 + [Method to check whether dependent libraries are shared objects])
6620 +_LT_DECL([], [file_magic_cmd], [1],
6621 + [Command to use when deplibs_check_method == "file_magic"])
6622 +])# _LT_CHECK_MAGIC_METHOD
6623 +
6624 +
6625 +# LT_PATH_NM
6626 +# ----------
6627 +# find the pathname to a BSD- or MS-compatible name lister
6628 +AC_DEFUN([LT_PATH_NM],
6629 +[AC_REQUIRE([AC_PROG_CC])dnl
6630 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
6631 +[if test -n "$NM"; then
6632 + # Let the user override the test.
6633 + lt_cv_path_NM="$NM"
6634 +else
6635 + lt_nm_to_check="${ac_tool_prefix}nm"
6636 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6637 + lt_nm_to_check="$lt_nm_to_check nm"
6638 + fi
6639 + for lt_tmp_nm in $lt_nm_to_check; do
6640 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6641 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6642 + IFS="$lt_save_ifs"
6643 + test -z "$ac_dir" && ac_dir=.
6644 + tmp_nm="$ac_dir/$lt_tmp_nm"
6645 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6646 + # Check to see if the nm accepts a BSD-compat flag.
6647 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6648 + # nm: unknown option "B" ignored
6649 + # Tru64's nm complains that /dev/null is an invalid object file
6650 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6651 + */dev/null* | *'Invalid file or object type'*)
6652 + lt_cv_path_NM="$tmp_nm -B"
6653 + break
6654 + ;;
6655 + *)
6656 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6657 + */dev/null*)
6658 + lt_cv_path_NM="$tmp_nm -p"
6659 + break
6660 + ;;
6661 + *)
6662 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6663 + continue # so that we can try to find one that supports BSD flags
6664 + ;;
6665 + esac
6666 + ;;
6667 + esac
6668 + fi
6669 + done
6670 + IFS="$lt_save_ifs"
6671 + done
6672 + : ${lt_cv_path_NM=no}
6673 +fi])
6674 +if test "$lt_cv_path_NM" != "no"; then
6675 + NM="$lt_cv_path_NM"
6676 +else
6677 + # Didn't find any BSD compatible name lister, look for dumpbin.
6678 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
6679 + AC_SUBST([DUMPBIN])
6680 + if test "$DUMPBIN" != ":"; then
6681 + NM="$DUMPBIN"
6682 + fi
6683 +fi
6684 +test -z "$NM" && NM=nm
6685 +AC_SUBST([NM])
6686 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
6687 +
6688 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
6689 + [lt_cv_nm_interface="BSD nm"
6690 + echo "int some_variable = 0;" > conftest.$ac_ext
6691 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
6692 + (eval "$ac_compile" 2>conftest.err)
6693 + cat conftest.err >&AS_MESSAGE_LOG_FD
6694 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
6695 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6696 + cat conftest.err >&AS_MESSAGE_LOG_FD
6697 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
6698 + cat conftest.out >&AS_MESSAGE_LOG_FD
6699 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6700 + lt_cv_nm_interface="MS dumpbin"
6701 + fi
6702 + rm -f conftest*])
6703 +])# LT_PATH_NM
6704 +
6705 +# Old names:
6706 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
6707 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
6708 +dnl aclocal-1.4 backwards compatibility:
6709 +dnl AC_DEFUN([AM_PROG_NM], [])
6710 +dnl AC_DEFUN([AC_PROG_NM], [])
6711 +
6712 +
6713 +# LT_LIB_M
6714 +# --------
6715 +# check for math library
6716 +AC_DEFUN([LT_LIB_M],
6717 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6718 +LIBM=
6719 +case $host in
6720 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
6721 + # These system don't have libm, or don't need it
6722 + ;;
6723 +*-ncr-sysv4.3*)
6724 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
6725 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
6726 + ;;
6727 +*)
6728 + AC_CHECK_LIB(m, cos, LIBM="-lm")
6729 + ;;
6730 +esac
6731 +AC_SUBST([LIBM])
6732 +])# LT_LIB_M
6733 +
6734 +# Old name:
6735 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
6736 +dnl aclocal-1.4 backwards compatibility:
6737 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
6738 +
6739 +
6740 +# _LT_COMPILER_NO_RTTI([TAGNAME])
6741 +# -------------------------------
6742 +m4_defun([_LT_COMPILER_NO_RTTI],
6743 +[m4_require([_LT_TAG_COMPILER])dnl
6744 +
6745 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6746 +
6747 +if test "$GCC" = yes; then
6748 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6749 +
6750 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6751 + lt_cv_prog_compiler_rtti_exceptions,
6752 + [-fno-rtti -fno-exceptions], [],
6753 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6754 +fi
6755 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
6756 + [Compiler flag to turn off builtin functions])
6757 +])# _LT_COMPILER_NO_RTTI
6758 +
6759 +
6760 +# _LT_CMD_GLOBAL_SYMBOLS
6761 +# ----------------------
6762 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
6763 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6764 +AC_REQUIRE([AC_PROG_CC])dnl
6765 +AC_REQUIRE([LT_PATH_NM])dnl
6766 +AC_REQUIRE([LT_PATH_LD])dnl
6767 +m4_require([_LT_DECL_SED])dnl
6768 +m4_require([_LT_DECL_EGREP])dnl
6769 +m4_require([_LT_TAG_COMPILER])dnl
6770 +
6771 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6772 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6773 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6774 +[
6775 +# These are sane defaults that work on at least a few old systems.
6776 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6777 +
6778 +# Character class describing NM global symbol codes.
6779 +symcode='[[BCDEGRST]]'
6780 +
6781 +# Regexp to match symbols that can be accessed directly from C.
6782 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6783 +
6784 +# Define system-specific variables.
6785 +case $host_os in
6786 +aix*)
6787 + symcode='[[BCDT]]'
6788 + ;;
6789 +cygwin* | mingw* | pw32*)
6790 + symcode='[[ABCDGISTW]]'
6791 + ;;
6792 +hpux*)
6793 + if test "$host_cpu" = ia64; then
6794 + symcode='[[ABCDEGRST]]'
6795 + fi
6796 + ;;
6797 +irix* | nonstopux*)
6798 + symcode='[[BCDEGRST]]'
6799 + ;;
6800 +osf*)
6801 + symcode='[[BCDEGQRST]]'
6802 + ;;
6803 +solaris*)
6804 + symcode='[[BDRT]]'
6805 + ;;
6806 +sco3.2v5*)
6807 + symcode='[[DT]]'
6808 + ;;
6809 +sysv4.2uw2*)
6810 + symcode='[[DT]]'
6811 + ;;
6812 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
6813 + symcode='[[ABDT]]'
6814 + ;;
6815 +sysv4)
6816 + symcode='[[DFNSTU]]'
6817 + ;;
6818 +esac
6819 +
6820 +# If we're using GNU nm, then use its standard symbol codes.
6821 +case `$NM -V 2>&1` in
6822 +*GNU* | *'with BFD'*)
6823 + symcode='[[ABCDGIRSTW]]' ;;
6824 +esac
6825 +
6826 +# Transform an extracted symbol line into a proper C declaration.
6827 +# Some systems (esp. on ia64) link data and code symbols differently,
6828 +# so use this general approach.
6829 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6830 +
6831 +# Transform an extracted symbol line into symbol name and symbol address
6832 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
6833 +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'"
6834 +
6835 +# Handle CRLF in mingw tool chain
6836 +opt_cr=
6837 +case $build_os in
6838 +mingw*)
6839 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6840 + ;;
6841 +esac
6842 +
6843 +# Try without a prefix underscore, then with it.
6844 +for ac_symprfx in "" "_"; do
6845 +
6846 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6847 + symxfrm="\\1 $ac_symprfx\\2 \\2"
6848 +
6849 + # Write the raw and C identifiers.
6850 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6851 + # Fake it for dumpbin and say T for any non-static function
6852 + # and D for any global variable.
6853 + # Also find C++ and __fastcall symbols from MSVC++,
6854 + # which start with @ or ?.
6855 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
6856 +" {last_section=section; section=\$ 3};"\
6857 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6858 +" \$ 0!~/External *\|/{next};"\
6859 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6860 +" {if(hide[section]) next};"\
6861 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6862 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6863 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6864 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6865 +" ' prfx=^$ac_symprfx]"
6866 + else
6867 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6868 + fi
6869 +
6870 + # Check to see that the pipe works correctly.
6871 + pipe_works=no
6872 +
6873 + rm -f conftest*
6874 + cat > conftest.$ac_ext <<_LT_EOF
6875 +#ifdef __cplusplus
6876 +extern "C" {
6877 +#endif
6878 +char nm_test_var;
6879 +void nm_test_func(void);
6880 +void nm_test_func(void){}
6881 +#ifdef __cplusplus
6882 +}
6883 +#endif
6884 +int main(){nm_test_var='a';nm_test_func();return(0);}
6885 +_LT_EOF
6886 +
6887 + if AC_TRY_EVAL(ac_compile); then
6888 + # Now try to grab the symbols.
6889 + nlist=conftest.nm
6890 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6891 + # Try sorting and uniquifying the output.
6892 + if sort "$nlist" | uniq > "$nlist"T; then
6893 + mv -f "$nlist"T "$nlist"
6894 + else
6895 + rm -f "$nlist"T
6896 + fi
6897 +
6898 + # Make sure that we snagged all the symbols we need.
6899 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6900 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6901 + cat <<_LT_EOF > conftest.$ac_ext
6902 +#ifdef __cplusplus
6903 +extern "C" {
6904 +#endif
6905 +
6906 +_LT_EOF
6907 + # Now generate the symbol file.
6908 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6909 +
6910 + cat <<_LT_EOF >> conftest.$ac_ext
6911 +
6912 +/* The mapping between symbol names and symbols. */
6913 +const struct {
6914 + const char *name;
6915 + void *address;
6916 +}
6917 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
6918 +{
6919 + { "@PROGRAM@", (void *) 0 },
6920 +_LT_EOF
6921 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6922 + cat <<\_LT_EOF >> conftest.$ac_ext
6923 + {0, (void *) 0}
6924 +};
6925 +
6926 +/* This works around a problem in FreeBSD linker */
6927 +#ifdef FREEBSD_WORKAROUND
6928 +static const void *lt_preloaded_setup() {
6929 + return lt__PROGRAM__LTX_preloaded_symbols;
6930 +}
6931 +#endif
6932 +
6933 +#ifdef __cplusplus
6934 +}
6935 +#endif
6936 +_LT_EOF
6937 + # Now try linking the two files.
6938 + mv conftest.$ac_objext conftstm.$ac_objext
6939 + lt_save_LIBS="$LIBS"
6940 + lt_save_CFLAGS="$CFLAGS"
6941 + LIBS="conftstm.$ac_objext"
6942 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6943 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6944 + pipe_works=yes
6945 + fi
6946 + LIBS="$lt_save_LIBS"
6947 + CFLAGS="$lt_save_CFLAGS"
6948 + else
6949 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6950 + fi
6951 + else
6952 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6953 + fi
6954 + else
6955 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6956 + fi
6957 + else
6958 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6959 + cat conftest.$ac_ext >&5
6960 + fi
6961 + rm -rf conftest* conftst*
6962
6963 - if test "$pre_test_object_deps_done" = no; then
6964 - case $p in
6965 - -L* | -R*)
6966 - # Internal compiler library paths should come after those
6967 - # provided the user. The postdeps already come after the
6968 - # user supplied libs so there is no need to process them.
6969 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6970 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6971 - else
6972 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6973 - fi
6974 - ;;
6975 - # The "-l" case would never come before the object being
6976 - # linked, so don't bother handling this case.
6977 - esac
6978 - else
6979 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6980 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6981 - else
6982 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6983 - fi
6984 - fi
6985 - ;;
6986 + # Do not use the global_symbol_pipe unless it works.
6987 + if test "$pipe_works" = yes; then
6988 + break
6989 + else
6990 + lt_cv_sys_global_symbol_pipe=
6991 + fi
6992 +done
6993 +])
6994 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6995 + lt_cv_sys_global_symbol_to_cdecl=
6996 +fi
6997 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6998 + AC_MSG_RESULT(failed)
6999 +else
7000 + AC_MSG_RESULT(ok)
7001 +fi
7002
7003 - *.$objext)
7004 - # This assumes that the test object file only shows up
7005 - # once in the compiler output.
7006 - if test "$p" = "conftest.$objext"; then
7007 - pre_test_object_deps_done=yes
7008 - continue
7009 - fi
7010 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
7011 + [Take the output of nm and produce a listing of raw symbols and C names])
7012 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
7013 + [Transform the output of nm in a proper C declaration])
7014 +_LT_DECL([global_symbol_to_c_name_address],
7015 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
7016 + [Transform the output of nm in a C name address pair])
7017 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
7018 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
7019 + [Transform the output of nm in a C name address pair when lib prefix is needed])
7020 +]) # _LT_CMD_GLOBAL_SYMBOLS
7021
7022 - if test "$pre_test_object_deps_done" = no; then
7023 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
7024 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
7025 - else
7026 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
7027 - fi
7028 - else
7029 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
7030 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
7031 - else
7032 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
7033 - fi
7034 - fi
7035 - ;;
7036
7037 - *) ;; # Ignore the rest.
7038 +# _LT_COMPILER_PIC([TAGNAME])
7039 +# ---------------------------
7040 +m4_defun([_LT_COMPILER_PIC],
7041 +[m4_require([_LT_TAG_COMPILER])dnl
7042 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
7043 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7044 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
7045 +
7046 +AC_MSG_CHECKING([for $compiler option to produce PIC])
7047 +m4_if([$1], [CXX], [
7048 + # C++ specific cases for pic, static, wl, etc.
7049 + if test "$GXX" = yes; then
7050 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7051 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7052
7053 + case $host_os in
7054 + aix*)
7055 + # All AIX code is PIC.
7056 + if test "$host_cpu" = ia64; then
7057 + # AIX 5 now supports IA64 processor
7058 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7059 + fi
7060 + ;;
7061 +
7062 + amigaos*)
7063 + case $host_cpu in
7064 + powerpc)
7065 + # see comment about AmigaOS4 .so support
7066 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7067 + ;;
7068 + m68k)
7069 + # FIXME: we need at least 68020 code to build shared libraries, but
7070 + # adding the `-m68020' flag to GCC prevents building anything better,
7071 + # like `-m68040'.
7072 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7073 + ;;
7074 + esac
7075 + ;;
7076 +
7077 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7078 + # PIC is the default for these OSes.
7079 + ;;
7080 + mingw* | cygwin* | os2* | pw32*)
7081 + # This hack is so that the source file can tell whether it is being
7082 + # built for inclusion in a dll (and should export symbols for example).
7083 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
7084 + # (--disable-auto-import) libraries
7085 + m4_if([$1], [GCJ], [],
7086 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7087 + ;;
7088 + darwin* | rhapsody*)
7089 + # PIC is the default on this platform
7090 + # Common symbols not allowed in MH_DYLIB files
7091 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7092 + ;;
7093 + *djgpp*)
7094 + # DJGPP does not support shared libraries at all
7095 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7096 + ;;
7097 + interix[[3-9]]*)
7098 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7099 + # Instead, we relocate shared libraries at runtime.
7100 + ;;
7101 + sysv4*MP*)
7102 + if test -d /usr/nec; then
7103 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7104 + fi
7105 + ;;
7106 + hpux*)
7107 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7108 + # not for PA HP-UX.
7109 + case $host_cpu in
7110 + hppa*64*|ia64*)
7111 + ;;
7112 + *)
7113 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7114 + ;;
7115 + esac
7116 + ;;
7117 + *qnx* | *nto*)
7118 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7119 + # it will coredump.
7120 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7121 + ;;
7122 + *)
7123 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7124 + ;;
7125 + esac
7126 + else
7127 + case $host_os in
7128 + aix[[4-9]]*)
7129 + # All AIX code is PIC.
7130 + if test "$host_cpu" = ia64; then
7131 + # AIX 5 now supports IA64 processor
7132 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7133 + else
7134 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7135 + fi
7136 + ;;
7137 + chorus*)
7138 + case $cc_basename in
7139 + cxch68*)
7140 + # Green Hills C++ Compiler
7141 + # _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"
7142 + ;;
7143 + esac
7144 + ;;
7145 + dgux*)
7146 + case $cc_basename in
7147 + ec++*)
7148 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7149 + ;;
7150 + ghcx*)
7151 + # Green Hills C++ Compiler
7152 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7153 + ;;
7154 + *)
7155 + ;;
7156 + esac
7157 + ;;
7158 + freebsd* | dragonfly*)
7159 + # FreeBSD uses GNU C++
7160 + ;;
7161 + hpux9* | hpux10* | hpux11*)
7162 + case $cc_basename in
7163 + CC*)
7164 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7165 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7166 + if test "$host_cpu" != ia64; then
7167 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7168 + fi
7169 + ;;
7170 + aCC*)
7171 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7172 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7173 + case $host_cpu in
7174 + hppa*64*|ia64*)
7175 + # +Z the default
7176 + ;;
7177 + *)
7178 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7179 + ;;
7180 + esac
7181 + ;;
7182 + *)
7183 + ;;
7184 + esac
7185 + ;;
7186 + interix*)
7187 + # This is c89, which is MS Visual C++ (no shared libs)
7188 + # Anyone wants to do a port?
7189 + ;;
7190 + irix5* | irix6* | nonstopux*)
7191 + case $cc_basename in
7192 + CC*)
7193 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7194 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7195 + # CC pic flag -KPIC is the default.
7196 + ;;
7197 + *)
7198 + ;;
7199 + esac
7200 + ;;
7201 + linux* | k*bsd*-gnu)
7202 + case $cc_basename in
7203 + KCC*)
7204 + # KAI C++ Compiler
7205 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7206 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7207 + ;;
7208 + icpc* | ecpc* )
7209 + # Intel C++
7210 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7211 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7212 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7213 + ;;
7214 + pgCC* | pgcpp*)
7215 + # Portland Group C++ compiler
7216 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7217 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7218 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7219 + ;;
7220 + cxx*)
7221 + # Compaq C++
7222 + # Make sure the PIC flag is empty. It appears that all Alpha
7223 + # Linux and Compaq Tru64 Unix objects are PIC.
7224 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7225 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7226 + ;;
7227 + xlc* | xlC*)
7228 + # IBM XL 8.0 on PPC
7229 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7230 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7231 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7232 + ;;
7233 + *)
7234 + case `$CC -V 2>&1 | sed 5q` in
7235 + *Sun\ C*)
7236 + # Sun C++ 5.9
7237 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7238 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7239 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7240 + ;;
7241 + esac
7242 + ;;
7243 + esac
7244 + ;;
7245 + lynxos*)
7246 + ;;
7247 + m88k*)
7248 + ;;
7249 + mvs*)
7250 + case $cc_basename in
7251 + cxx*)
7252 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
7253 + ;;
7254 + *)
7255 + ;;
7256 + esac
7257 + ;;
7258 + netbsd*)
7259 + ;;
7260 + *qnx* | *nto*)
7261 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7262 + # it will coredump.
7263 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7264 + ;;
7265 + osf3* | osf4* | osf5*)
7266 + case $cc_basename in
7267 + KCC*)
7268 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
7269 + ;;
7270 + RCC*)
7271 + # Rational C++ 2.4.1
7272 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7273 + ;;
7274 + cxx*)
7275 + # Digital/Compaq C++
7276 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7277 + # Make sure the PIC flag is empty. It appears that all Alpha
7278 + # Linux and Compaq Tru64 Unix objects are PIC.
7279 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7280 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7281 + ;;
7282 + *)
7283 + ;;
7284 + esac
7285 + ;;
7286 + psos*)
7287 + ;;
7288 + solaris*)
7289 + case $cc_basename in
7290 + CC*)
7291 + # Sun C++ 4.2, 5.x and Centerline C++
7292 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7293 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7294 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7295 + ;;
7296 + gcx*)
7297 + # Green Hills C++ Compiler
7298 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7299 + ;;
7300 + *)
7301 + ;;
7302 + esac
7303 + ;;
7304 + sunos4*)
7305 + case $cc_basename in
7306 + CC*)
7307 + # Sun C++ 4.x
7308 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7309 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7310 + ;;
7311 + lcc*)
7312 + # Lucid
7313 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7314 + ;;
7315 + *)
7316 + ;;
7317 + esac
7318 + ;;
7319 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7320 + case $cc_basename in
7321 + CC*)
7322 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7323 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7324 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7325 + ;;
7326 + esac
7327 + ;;
7328 + tandem*)
7329 + case $cc_basename in
7330 + NCC*)
7331 + # NonStop-UX NCC 3.20
7332 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7333 + ;;
7334 + *)
7335 + ;;
7336 + esac
7337 + ;;
7338 + vxworks*)
7339 + ;;
7340 + *)
7341 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7342 + ;;
7343 esac
7344 - done
7345 -
7346 - # Clean up.
7347 - rm -f a.out a.exe
7348 -else
7349 - echo "libtool.m4: error: problem compiling $1 test program"
7350 -fi
7351 -
7352 -$rm -f confest.$objext
7353 -
7354 -# PORTME: override above test on systems where it is broken
7355 -ifelse([$1],[CXX],
7356 -[case $host_os in
7357 -interix3*)
7358 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
7359 - # hack all around it, let's just trust "g++" to DTRT.
7360 - _LT_AC_TAGVAR(predep_objects,$1)=
7361 - _LT_AC_TAGVAR(postdep_objects,$1)=
7362 - _LT_AC_TAGVAR(postdeps,$1)=
7363 - ;;
7364 -
7365 -linux*)
7366 - case `$CC -V 2>&1 | sed 5q` in
7367 - *Sun\ C*)
7368 - # Sun C++ 5.9
7369 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
7370 - ;;
7371 - esac
7372 - ;;
7373 -
7374 -solaris*)
7375 - case $cc_basename in
7376 - CC*)
7377 - # Adding this requires a known-good setup of shared libraries for
7378 - # Sun compiler versions before 5.6, else PIC objects from an old
7379 - # archive will be linked into the output, leading to subtle bugs.
7380 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
7381 - ;;
7382 - esac
7383 - ;;
7384 -esac
7385 -])
7386 -
7387 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
7388 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7389 -esac
7390 -])# AC_LIBTOOL_POSTDEP_PREDEP
7391 -
7392 -# AC_LIBTOOL_LANG_F77_CONFIG
7393 -# --------------------------
7394 -# Ensure that the configuration vars for the C compiler are
7395 -# suitably defined. Those variables are subsequently used by
7396 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7397 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7398 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7399 -[AC_REQUIRE([AC_PROG_F77])
7400 -AC_LANG_PUSH(Fortran 77)
7401 -
7402 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7403 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7404 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
7405 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7406 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7407 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
7408 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7409 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7410 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7411 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7412 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7413 -_LT_AC_TAGVAR(module_cmds, $1)=
7414 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7415 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7416 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7417 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
7418 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7419 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7420 -
7421 -# Source file extension for f77 test sources.
7422 -ac_ext=f
7423 -
7424 -# Object file extension for compiled f77 test sources.
7425 -objext=o
7426 -_LT_AC_TAGVAR(objext, $1)=$objext
7427 -
7428 -# Code to be used in simple compile tests
7429 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
7430 -
7431 -# Code to be used in simple link tests
7432 -lt_simple_link_test_code=" program t\n end\n"
7433 -
7434 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7435 -_LT_AC_SYS_COMPILER
7436 -
7437 -# save warnings/boilerplate of simple test code
7438 -_LT_COMPILER_BOILERPLATE
7439 -_LT_LINKER_BOILERPLATE
7440 -
7441 -# Allow CC to be a program name with arguments.
7442 -lt_save_CC="$CC"
7443 -CC=${F77-"f77"}
7444 -compiler=$CC
7445 -_LT_AC_TAGVAR(compiler, $1)=$CC
7446 -_LT_CC_BASENAME([$compiler])
7447 -
7448 -AC_MSG_CHECKING([if libtool supports shared libraries])
7449 -AC_MSG_RESULT([$can_build_shared])
7450 -
7451 -AC_MSG_CHECKING([whether to build shared libraries])
7452 -test "$can_build_shared" = "no" && enable_shared=no
7453 -
7454 -# On AIX, shared libraries and static libraries use the same namespace, and
7455 -# are all built from PIC.
7456 -case $host_os in
7457 -aix3*)
7458 - test "$enable_shared" = yes && enable_static=no
7459 - if test -n "$RANLIB"; then
7460 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
7461 - postinstall_cmds='$RANLIB $lib'
7462 fi
7463 - ;;
7464 -aix4* | aix5*)
7465 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7466 - test "$enable_shared" = yes && enable_static=no
7467 - fi
7468 - ;;
7469 -esac
7470 -AC_MSG_RESULT([$enable_shared])
7471 -
7472 -AC_MSG_CHECKING([whether to build static libraries])
7473 -# Make sure either enable_shared or enable_static is yes.
7474 -test "$enable_shared" = yes || enable_static=yes
7475 -AC_MSG_RESULT([$enable_static])
7476 -
7477 -_LT_AC_TAGVAR(GCC, $1)="$G77"
7478 -_LT_AC_TAGVAR(LD, $1)="$LD"
7479 -
7480 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7481 -AC_LIBTOOL_PROG_CC_C_O($1)
7482 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7483 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7484 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7485 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7486 -
7487 -AC_LIBTOOL_CONFIG($1)
7488 -
7489 -AC_LANG_POP
7490 -CC="$lt_save_CC"
7491 -])# AC_LIBTOOL_LANG_F77_CONFIG
7492 -
7493 -
7494 -# AC_LIBTOOL_LANG_GCJ_CONFIG
7495 -# --------------------------
7496 -# Ensure that the configuration vars for the C compiler are
7497 -# suitably defined. Those variables are subsequently used by
7498 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7499 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7500 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7501 -[AC_LANG_SAVE
7502 -
7503 -# Source file extension for Java test sources.
7504 -ac_ext=java
7505 +],
7506 +[
7507 + if test "$GCC" = yes; then
7508 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7509 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7510
7511 -# Object file extension for compiled Java test sources.
7512 -objext=o
7513 -_LT_AC_TAGVAR(objext, $1)=$objext
7514 + case $host_os in
7515 + aix*)
7516 + # All AIX code is PIC.
7517 + if test "$host_cpu" = ia64; then
7518 + # AIX 5 now supports IA64 processor
7519 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7520 + fi
7521 + ;;
7522
7523 -# Code to be used in simple compile tests
7524 -lt_simple_compile_test_code="class foo {}\n"
7525 + amigaos*)
7526 + case $host_cpu in
7527 + powerpc)
7528 + # see comment about AmigaOS4 .so support
7529 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7530 + ;;
7531 + m68k)
7532 + # FIXME: we need at least 68020 code to build shared libraries, but
7533 + # adding the `-m68020' flag to GCC prevents building anything better,
7534 + # like `-m68040'.
7535 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
7536 + ;;
7537 + esac
7538 + ;;
7539
7540 -# Code to be used in simple link tests
7541 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
7542 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7543 + # PIC is the default for these OSes.
7544 + ;;
7545
7546 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7547 -_LT_AC_SYS_COMPILER
7548 + mingw* | cygwin* | pw32* | os2*)
7549 + # This hack is so that the source file can tell whether it is being
7550 + # built for inclusion in a dll (and should export symbols for example).
7551 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
7552 + # (--disable-auto-import) libraries
7553 + m4_if([$1], [GCJ], [],
7554 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7555 + ;;
7556
7557 -# save warnings/boilerplate of simple test code
7558 -_LT_COMPILER_BOILERPLATE
7559 -_LT_LINKER_BOILERPLATE
7560 + darwin* | rhapsody*)
7561 + # PIC is the default on this platform
7562 + # Common symbols not allowed in MH_DYLIB files
7563 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
7564 + ;;
7565
7566 -# Allow CC to be a program name with arguments.
7567 -lt_save_CC="$CC"
7568 -CC=${GCJ-"gcj"}
7569 -compiler=$CC
7570 -_LT_AC_TAGVAR(compiler, $1)=$CC
7571 -_LT_CC_BASENAME([$compiler])
7572 + hpux*)
7573 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7574 + # not for PA HP-UX.
7575 + case $host_cpu in
7576 + hppa*64*|ia64*)
7577 + # +Z the default
7578 + ;;
7579 + *)
7580 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7581 + ;;
7582 + esac
7583 + ;;
7584
7585 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
7586 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7587 + interix[[3-9]]*)
7588 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7589 + # Instead, we relocate shared libraries at runtime.
7590 + ;;
7591
7592 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7593 + msdosdjgpp*)
7594 + # Just because we use GCC doesn't mean we suddenly get shared libraries
7595 + # on systems that don't support them.
7596 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7597 + enable_shared=no
7598 + ;;
7599
7600 -## CAVEAT EMPTOR:
7601 -## There is no encapsulation within the following macros, do not change
7602 -## the running order or otherwise move them around unless you know exactly
7603 -## what you are doing...
7604 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7605 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7606 -AC_LIBTOOL_PROG_CC_C_O($1)
7607 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7608 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7609 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7610 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7611 + *nto* | *qnx*)
7612 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7613 + # it will coredump.
7614 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7615 + ;;
7616
7617 -AC_LIBTOOL_CONFIG($1)
7618 + sysv4*MP*)
7619 + if test -d /usr/nec; then
7620 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
7621 + fi
7622 + ;;
7623
7624 -AC_LANG_RESTORE
7625 -CC="$lt_save_CC"
7626 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
7627 + *)
7628 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
7629 + ;;
7630 + esac
7631 + else
7632 + # PORTME Check for flag to pass linker flags through the system compiler.
7633 + case $host_os in
7634 + aix*)
7635 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7636 + if test "$host_cpu" = ia64; then
7637 + # AIX 5 now supports IA64 processor
7638 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7639 + else
7640 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
7641 + fi
7642 + ;;
7643
7644 + mingw* | cygwin* | pw32* | os2*)
7645 + # This hack is so that the source file can tell whether it is being
7646 + # built for inclusion in a dll (and should export symbols for example).
7647 + m4_if([$1], [GCJ], [],
7648 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
7649 + ;;
7650
7651 -# AC_LIBTOOL_LANG_RC_CONFIG
7652 -# -------------------------
7653 -# Ensure that the configuration vars for the Windows resource compiler are
7654 -# suitably defined. Those variables are subsequently used by
7655 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7656 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7657 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7658 -[AC_LANG_SAVE
7659 + hpux9* | hpux10* | hpux11*)
7660 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7661 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7662 + # not for PA HP-UX.
7663 + case $host_cpu in
7664 + hppa*64*|ia64*)
7665 + # +Z the default
7666 + ;;
7667 + *)
7668 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7669 + ;;
7670 + esac
7671 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
7672 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7673 + ;;
7674
7675 -# Source file extension for RC test sources.
7676 -ac_ext=rc
7677 + irix5* | irix6* | nonstopux*)
7678 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7679 + # PIC (with -KPIC) is the default.
7680 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7681 + ;;
7682
7683 -# Object file extension for compiled RC test sources.
7684 -objext=o
7685 -_LT_AC_TAGVAR(objext, $1)=$objext
7686 + linux* | k*bsd*-gnu)
7687 + case $cc_basename in
7688 + icc* | ecc* | ifort*)
7689 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7690 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7691 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
7692 + ;;
7693 + pgcc* | pgf77* | pgf90* | pgf95*)
7694 + # Portland Group compilers (*not* the Pentium gcc compiler,
7695 + # which looks to be a dead project)
7696 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7697 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7698 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7699 + ;;
7700 + ccc*)
7701 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7702 + # All Alpha code is PIC.
7703 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7704 + ;;
7705 + xl*)
7706 + # IBM XL C 8.0/Fortran 10.1 on PPC
7707 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7708 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
7709 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7710 + ;;
7711 + *)
7712 + case `$CC -V 2>&1 | sed 5q` in
7713 + *Sun\ C*)
7714 + # Sun C 5.9
7715 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7716 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7717 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7718 + ;;
7719 + *Sun\ F*)
7720 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
7721 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7722 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7723 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
7724 + ;;
7725 + esac
7726 + ;;
7727 + esac
7728 + ;;
7729
7730 -# Code to be used in simple compile tests
7731 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7732 + newsos6)
7733 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7734 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7735 + ;;
7736
7737 -# Code to be used in simple link tests
7738 -lt_simple_link_test_code="$lt_simple_compile_test_code"
7739 + *nto* | *qnx*)
7740 + # QNX uses GNU C++, but need to define -shared option too, otherwise
7741 + # it will coredump.
7742 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7743 + ;;
7744
7745 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7746 -_LT_AC_SYS_COMPILER
7747 + osf3* | osf4* | osf5*)
7748 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7749 + # All OSF/1 code is PIC.
7750 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7751 + ;;
7752
7753 -# save warnings/boilerplate of simple test code
7754 -_LT_COMPILER_BOILERPLATE
7755 -_LT_LINKER_BOILERPLATE
7756 + rdos*)
7757 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7758 + ;;
7759
7760 -# Allow CC to be a program name with arguments.
7761 -lt_save_CC="$CC"
7762 -CC=${RC-"windres"}
7763 -compiler=$CC
7764 -_LT_AC_TAGVAR(compiler, $1)=$CC
7765 -_LT_CC_BASENAME([$compiler])
7766 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7767 + solaris*)
7768 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7769 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7770 + case $cc_basename in
7771 + f77* | f90* | f95*)
7772 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7773 + *)
7774 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7775 + esac
7776 + ;;
7777
7778 -AC_LIBTOOL_CONFIG($1)
7779 + sunos4*)
7780 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7781 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7782 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7783 + ;;
7784
7785 -AC_LANG_RESTORE
7786 -CC="$lt_save_CC"
7787 -])# AC_LIBTOOL_LANG_RC_CONFIG
7788 + sysv4 | sysv4.2uw2* | sysv4.3*)
7789 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7790 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7791 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7792 + ;;
7793 +
7794 + sysv4*MP*)
7795 + if test -d /usr/nec ;then
7796 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7797 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7798 + fi
7799 + ;;
7800
7801 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7802 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7803 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7804 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7805 + ;;
7806
7807 -# AC_LIBTOOL_CONFIG([TAGNAME])
7808 -# ----------------------------
7809 -# If TAGNAME is not passed, then create an initial libtool script
7810 -# with a default configuration from the untagged config vars. Otherwise
7811 -# add code to config.status for appending the configuration named by
7812 -# TAGNAME from the matching tagged config vars.
7813 -AC_DEFUN([AC_LIBTOOL_CONFIG],
7814 -[# The else clause should only fire when bootstrapping the
7815 -# libtool distribution, otherwise you forgot to ship ltmain.sh
7816 -# with your package, and you will get complaints that there are
7817 -# no rules to generate ltmain.sh.
7818 -if test -f "$ltmain"; then
7819 - # See if we are running on zsh, and set the options which allow our commands through
7820 - # without removal of \ escapes.
7821 - if test -n "${ZSH_VERSION+set}" ; then
7822 - setopt NO_GLOB_SUBST
7823 - fi
7824 - # Now quote all the things that may contain metacharacters while being
7825 - # careful not to overquote the AC_SUBSTed values. We take copies of the
7826 - # variables and quote the copies for generation of the libtool script.
7827 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
7828 - SED SHELL STRIP \
7829 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7830 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7831 - deplibs_check_method reload_flag reload_cmds need_locks \
7832 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7833 - lt_cv_sys_global_symbol_to_c_name_address \
7834 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7835 - old_postinstall_cmds old_postuninstall_cmds \
7836 - _LT_AC_TAGVAR(compiler, $1) \
7837 - _LT_AC_TAGVAR(CC, $1) \
7838 - _LT_AC_TAGVAR(LD, $1) \
7839 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7840 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7841 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7842 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7843 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7844 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7845 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7846 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7847 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
7848 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7849 - _LT_AC_TAGVAR(predep_objects, $1) \
7850 - _LT_AC_TAGVAR(postdep_objects, $1) \
7851 - _LT_AC_TAGVAR(predeps, $1) \
7852 - _LT_AC_TAGVAR(postdeps, $1) \
7853 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7854 - _LT_AC_TAGVAR(archive_cmds, $1) \
7855 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7856 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
7857 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7858 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7859 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7860 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
7861 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7862 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7863 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7864 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7865 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
7866 - _LT_AC_TAGVAR(module_cmds, $1) \
7867 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7868 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7869 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
7870 - _LT_AC_TAGVAR(include_expsyms, $1); do
7871 -
7872 - case $var in
7873 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7874 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7875 - _LT_AC_TAGVAR(archive_cmds, $1) | \
7876 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7877 - _LT_AC_TAGVAR(module_cmds, $1) | \
7878 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7879 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7880 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7881 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
7882 - postinstall_cmds | postuninstall_cmds | \
7883 - old_postinstall_cmds | old_postuninstall_cmds | \
7884 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7885 - # Double-quote double-evaled strings.
7886 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7887 + unicos*)
7888 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7889 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7890 + ;;
7891 +
7892 + uts4*)
7893 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7894 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7895 ;;
7896 +
7897 *)
7898 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7899 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7900 ;;
7901 esac
7902 - done
7903 -
7904 - case $lt_echo in
7905 - *'\[$]0 --fallback-echo"')
7906 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
7907 + fi
7908 +])
7909 +case $host_os in
7910 + # For platforms which do not support PIC, -DPIC is meaningless:
7911 + *djgpp*)
7912 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
7913 ;;
7914 - esac
7915 -
7916 -ifelse([$1], [],
7917 - [cfgfile="${ofile}T"
7918 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
7919 - $rm -f "$cfgfile"
7920 - AC_MSG_NOTICE([creating $ofile])],
7921 - [cfgfile="$ofile"])
7922 -
7923 - cat <<__EOF__ >> "$cfgfile"
7924 -ifelse([$1], [],
7925 -[#! $SHELL
7926 + *)
7927 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
7928 + ;;
7929 +esac
7930 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
7931 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
7932 + [How to pass a linker flag through the compiler])
7933
7934 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7935 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7936 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7937 #
7938 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
7939 -# Free Software Foundation, Inc.
7940 -#
7941 -# This file is part of GNU Libtool:
7942 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7943 -#
7944 -# This program is free software; you can redistribute it and/or modify
7945 -# it under the terms of the GNU General Public License as published by
7946 -# the Free Software Foundation; either version 2 of the License, or
7947 -# (at your option) any later version.
7948 +# Check to make sure the PIC flag actually works.
7949 #
7950 -# This program is distributed in the hope that it will be useful, but
7951 -# WITHOUT ANY WARRANTY; without even the implied warranty of
7952 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7953 -# General Public License for more details.
7954 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
7955 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
7956 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
7957 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
7958 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7959 + "" | " "*) ;;
7960 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7961 + esac],
7962 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
7963 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7964 +fi
7965 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
7966 + [Additional compiler flags for building library objects])
7967 +
7968 #
7969 -# You should have received a copy of the GNU General Public License
7970 -# along with this program; if not, write to the Free Software
7971 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7972 +# Check to make sure the static flag actually works.
7973 #
7974 -# As a special exception to the GNU General Public License, if you
7975 -# distribute this file as part of a program that contains a
7976 -# configuration script generated by Autoconf, you may include it under
7977 -# the same distribution terms that you use for the rest of that program.
7978 -
7979 -# A sed program that does not truncate output.
7980 -SED=$lt_SED
7981 -
7982 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7983 -Xsed="$SED -e 1s/^X//"
7984 -
7985 -# The HP-UX ksh and POSIX shell print the target directory to stdout
7986 -# if CDPATH is set.
7987 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7988 -
7989 -# The names of the tagged configurations supported by this script.
7990 -available_tags=
7991 -
7992 -# ### BEGIN LIBTOOL CONFIG],
7993 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
7994 -
7995 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7996 -
7997 -# Shell to use when invoking shell scripts.
7998 -SHELL=$lt_SHELL
7999 -
8000 -# Whether or not to build shared libraries.
8001 -build_libtool_libs=$enable_shared
8002 -
8003 -# Whether or not to build static libraries.
8004 -build_old_libs=$enable_static
8005 -
8006 -# Whether or not to add -lc for building shared libraries.
8007 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
8008 -
8009 -# Whether or not to disallow shared libs when runtime libs are static
8010 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
8011 -
8012 -# Whether or not to optimize for fast installation.
8013 -fast_install=$enable_fast_install
8014 -
8015 -# The host system.
8016 -host_alias=$host_alias
8017 -host=$host
8018 -host_os=$host_os
8019 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
8020 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
8021 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
8022 + $lt_tmp_static_flag,
8023 + [],
8024 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
8025 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
8026 + [Compiler flag to prevent dynamic linking])
8027 +])# _LT_COMPILER_PIC
8028
8029 -# The build system.
8030 -build_alias=$build_alias
8031 -build=$build
8032 -build_os=$build_os
8033
8034 -# An echo program that does not interpret backslashes.
8035 -echo=$lt_echo
8036 +# _LT_LINKER_SHLIBS([TAGNAME])
8037 +# ----------------------------
8038 +# See if the linker supports building shared libraries.
8039 +m4_defun([_LT_LINKER_SHLIBS],
8040 +[AC_REQUIRE([LT_PATH_LD])dnl
8041 +AC_REQUIRE([LT_PATH_NM])dnl
8042 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
8043 +m4_require([_LT_DECL_EGREP])dnl
8044 +m4_require([_LT_DECL_SED])dnl
8045 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
8046 +m4_require([_LT_TAG_COMPILER])dnl
8047 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
8048 +m4_if([$1], [CXX], [
8049 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8050 + case $host_os in
8051 + aix[[4-9]]*)
8052 + # If we're using GNU nm, then we don't want the "-C" option.
8053 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8054 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8055 + _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'
8056 + else
8057 + _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'
8058 + fi
8059 + ;;
8060 + pw32*)
8061 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
8062 + ;;
8063 + cygwin* | mingw*)
8064 + _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'
8065 + ;;
8066 + *)
8067 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8068 + ;;
8069 + esac
8070 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8071 +], [
8072 + runpath_var=
8073 + _LT_TAGVAR(allow_undefined_flag, $1)=
8074 + _LT_TAGVAR(always_export_symbols, $1)=no
8075 + _LT_TAGVAR(archive_cmds, $1)=
8076 + _LT_TAGVAR(archive_expsym_cmds, $1)=
8077 + _LT_TAGVAR(compiler_needs_object, $1)=no
8078 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8079 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8080 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8081 + _LT_TAGVAR(hardcode_automatic, $1)=no
8082 + _LT_TAGVAR(hardcode_direct, $1)=no
8083 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
8084 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8085 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8086 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
8087 + _LT_TAGVAR(hardcode_minus_L, $1)=no
8088 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
8089 + _LT_TAGVAR(inherit_rpath, $1)=no
8090 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
8091 + _LT_TAGVAR(module_cmds, $1)=
8092 + _LT_TAGVAR(module_expsym_cmds, $1)=
8093 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
8094 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
8095 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
8096 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
8097 + # include_expsyms should be a list of space-separated symbols to be *always*
8098 + # included in the symbol list
8099 + _LT_TAGVAR(include_expsyms, $1)=
8100 + # exclude_expsyms can be an extended regexp of symbols to exclude
8101 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
8102 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8103 + # as well as any symbol that contains `d'.
8104 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
8105 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8106 + # platforms (ab)use it in PIC code, but their linkers get confused if
8107 + # the symbol is explicitly referenced. Since portable code cannot
8108 + # rely on this symbol name, it's probably fine to never include it in
8109 + # preloaded symbol tables.
8110 + # Exclude shared library initialization/finalization symbols.
8111 +dnl Note also adjust exclude_expsyms for C++ above.
8112 + extract_expsyms_cmds=
8113
8114 -# The archiver.
8115 -AR=$lt_AR
8116 -AR_FLAGS=$lt_AR_FLAGS
8117 + case $host_os in
8118 + cygwin* | mingw* | pw32*)
8119 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
8120 + # When not using gcc, we currently assume that we are using
8121 + # Microsoft Visual C++.
8122 + if test "$GCC" != yes; then
8123 + with_gnu_ld=no
8124 + fi
8125 + ;;
8126 + interix*)
8127 + # we just hope/assume this is gcc and not c89 (= MSVC++)
8128 + with_gnu_ld=yes
8129 + ;;
8130 + openbsd*)
8131 + with_gnu_ld=no
8132 + ;;
8133 + esac
8134
8135 -# A C compiler.
8136 -LTCC=$lt_LTCC
8137 + _LT_TAGVAR(ld_shlibs, $1)=yes
8138 + if test "$with_gnu_ld" = yes; then
8139 + # If archive_cmds runs LD, not CC, wlarc should be empty
8140 + wlarc='${wl}'
8141
8142 -# LTCC compiler flags.
8143 -LTCFLAGS=$lt_LTCFLAGS
8144 + # Set some defaults for GNU ld with shared library support. These
8145 + # are reset later if shared libraries are not supported. Putting them
8146 + # here allows them to be overridden if necessary.
8147 + runpath_var=LD_RUN_PATH
8148 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8149 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8150 + # ancient GNU ld didn't support --whole-archive et. al.
8151 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8152 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8153 + else
8154 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
8155 + fi
8156 + supports_anon_versioning=no
8157 + case `$LD -v 2>&1` in
8158 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
8159 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8160 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8161 + *\ 2.11.*) ;; # other 2.11 versions
8162 + *) supports_anon_versioning=yes ;;
8163 + esac
8164
8165 -# A language-specific compiler.
8166 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
8167 + # See if GNU ld supports shared libraries.
8168 + case $host_os in
8169 + aix[[3-9]]*)
8170 + # On AIX/PPC, the GNU linker is very broken
8171 + if test "$host_cpu" != ia64; then
8172 + _LT_TAGVAR(ld_shlibs, $1)=no
8173 + cat <<_LT_EOF 1>&2
8174
8175 -# Is the compiler the GNU C compiler?
8176 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
8177 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8178 +*** to be unable to reliably create shared libraries on AIX.
8179 +*** Therefore, libtool is disabling shared libraries support. If you
8180 +*** really care for shared libraries, you may want to modify your PATH
8181 +*** so that a non-GNU linker is found, and then restart.
8182
8183 -# An ERE matcher.
8184 -EGREP=$lt_EGREP
8185 +_LT_EOF
8186 + fi
8187 + ;;
8188
8189 -# The linker used to build libraries.
8190 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
8191 + amigaos*)
8192 + case $host_cpu in
8193 + powerpc)
8194 + # see comment about AmigaOS4 .so support
8195 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8196 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
8197 + ;;
8198 + m68k)
8199 + _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)'
8200 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8201 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8202 + ;;
8203 + esac
8204 + ;;
8205
8206 -# Whether we need hard or soft links.
8207 -LN_S=$lt_LN_S
8208 + beos*)
8209 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8210 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8211 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8212 + # support --undefined. This deserves some investigation. FIXME
8213 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8214 + else
8215 + _LT_TAGVAR(ld_shlibs, $1)=no
8216 + fi
8217 + ;;
8218
8219 -# A BSD-compatible nm program.
8220 -NM=$lt_NM
8221 + cygwin* | mingw* | pw32*)
8222 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
8223 + # as there is no search path for DLLs.
8224 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8225 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8226 + _LT_TAGVAR(always_export_symbols, $1)=no
8227 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8228 + _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'
8229
8230 -# A symbol stripping program
8231 -STRIP=$lt_STRIP
8232 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8233 + _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'
8234 + # If the export-symbols file already is a .def file (1st line
8235 + # is EXPORTS), use it as is; otherwise, prepend...
8236 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8237 + cp $export_symbols $output_objdir/$soname.def;
8238 + else
8239 + echo EXPORTS > $output_objdir/$soname.def;
8240 + cat $export_symbols >> $output_objdir/$soname.def;
8241 + fi~
8242 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8243 + else
8244 + _LT_TAGVAR(ld_shlibs, $1)=no
8245 + fi
8246 + ;;
8247
8248 -# Used to examine libraries when file_magic_cmd begins "file"
8249 -MAGIC_CMD=$MAGIC_CMD
8250 + interix[[3-9]]*)
8251 + _LT_TAGVAR(hardcode_direct, $1)=no
8252 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8253 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8254 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8255 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8256 + # Instead, shared libraries are loaded at an image base (0x10000000 by
8257 + # default) and relocated if they conflict, which is a slow very memory
8258 + # consuming and fragmenting process. To avoid this, we pick a random,
8259 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8260 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8261 + _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'
8262 + _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'
8263 + ;;
8264
8265 -# Used on cygwin: DLL creation program.
8266 -DLLTOOL="$DLLTOOL"
8267 + gnu* | linux* | tpf* | k*bsd*-gnu)
8268 + tmp_diet=no
8269 + if test "$host_os" = linux-dietlibc; then
8270 + case $cc_basename in
8271 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8272 + esac
8273 + fi
8274 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8275 + && test "$tmp_diet" = no
8276 + then
8277 + tmp_addflag=
8278 + tmp_sharedflag='-shared'
8279 + case $cc_basename,$host_cpu in
8280 + pgcc*) # Portland Group C compiler
8281 + _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'
8282 + tmp_addflag=' $pic_flag'
8283 + ;;
8284 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8285 + _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'
8286 + tmp_addflag=' $pic_flag -Mnomain' ;;
8287 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8288 + tmp_addflag=' -i_dynamic' ;;
8289 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8290 + tmp_addflag=' -i_dynamic -nofor_main' ;;
8291 + ifc* | ifort*) # Intel Fortran compiler
8292 + tmp_addflag=' -nofor_main' ;;
8293 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8294 + tmp_sharedflag='-qmkshrobj'
8295 + tmp_addflag= ;;
8296 + esac
8297 + case `$CC -V 2>&1 | sed 5q` in
8298 + *Sun\ C*) # Sun C 5.9
8299 + _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'
8300 + _LT_TAGVAR(compiler_needs_object, $1)=yes
8301 + tmp_sharedflag='-G' ;;
8302 + *Sun\ F*) # Sun Fortran 8.3
8303 + tmp_sharedflag='-G' ;;
8304 + esac
8305 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8306
8307 -# Used on cygwin: object dumper.
8308 -OBJDUMP="$OBJDUMP"
8309 + if test "x$supports_anon_versioning" = xyes; then
8310 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8311 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8312 + echo "local: *; };" >> $output_objdir/$libname.ver~
8313 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8314 + fi
8315
8316 -# Used on cygwin: assembler.
8317 -AS="$AS"
8318 + case $cc_basename in
8319 + xlf*)
8320 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8321 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
8322 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8323 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
8324 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8325 + if test "x$supports_anon_versioning" = xyes; then
8326 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
8327 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8328 + echo "local: *; };" >> $output_objdir/$libname.ver~
8329 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8330 + fi
8331 + ;;
8332 + esac
8333 + else
8334 + _LT_TAGVAR(ld_shlibs, $1)=no
8335 + fi
8336 + ;;
8337
8338 -# The name of the directory that contains temporary libtool files.
8339 -objdir=$objdir
8340 + netbsd*)
8341 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8342 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8343 + wlarc=
8344 + else
8345 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8346 + _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'
8347 + fi
8348 + ;;
8349
8350 -# How to create reloadable object files.
8351 -reload_flag=$lt_reload_flag
8352 -reload_cmds=$lt_reload_cmds
8353 + solaris*)
8354 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8355 + _LT_TAGVAR(ld_shlibs, $1)=no
8356 + cat <<_LT_EOF 1>&2
8357
8358 -# How to pass a linker flag through the compiler.
8359 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8360 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8361 +*** create shared libraries on Solaris systems. Therefore, libtool
8362 +*** is disabling shared libraries support. We urge you to upgrade GNU
8363 +*** binutils to release 2.9.1 or newer. Another option is to modify
8364 +*** your PATH or compiler configuration so that the native linker is
8365 +*** used, and then restart.
8366
8367 -# Object file suffix (normally "o").
8368 -objext="$ac_objext"
8369 +_LT_EOF
8370 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8371 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8372 + _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'
8373 + else
8374 + _LT_TAGVAR(ld_shlibs, $1)=no
8375 + fi
8376 + ;;
8377
8378 -# Old archive suffix (normally "a").
8379 -libext="$libext"
8380 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8381 + case `$LD -v 2>&1` in
8382 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
8383 + _LT_TAGVAR(ld_shlibs, $1)=no
8384 + cat <<_LT_EOF 1>&2
8385
8386 -# Shared library suffix (normally ".so").
8387 -shrext_cmds='$shrext_cmds'
8388 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8389 +*** reliably create shared libraries on SCO systems. Therefore, libtool
8390 +*** is disabling shared libraries support. We urge you to upgrade GNU
8391 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8392 +*** your PATH or compiler configuration so that the native linker is
8393 +*** used, and then restart.
8394
8395 -# Executable file suffix (normally "").
8396 -exeext="$exeext"
8397 +_LT_EOF
8398 + ;;
8399 + *)
8400 + # For security reasons, it is highly recommended that you always
8401 + # use absolute paths for naming shared libraries, and exclude the
8402 + # DT_RUNPATH tag from executables and libraries. But doing so
8403 + # requires that you compile everything twice, which is a pain.
8404 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8405 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8406 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8407 + _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'
8408 + else
8409 + _LT_TAGVAR(ld_shlibs, $1)=no
8410 + fi
8411 + ;;
8412 + esac
8413 + ;;
8414
8415 -# Additional compiler flags for building library objects.
8416 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
8417 -pic_mode=$pic_mode
8418 + sunos4*)
8419 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8420 + wlarc=
8421 + _LT_TAGVAR(hardcode_direct, $1)=yes
8422 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8423 + ;;
8424
8425 -# What is the maximum length of a command?
8426 -max_cmd_len=$lt_cv_sys_max_cmd_len
8427 + *)
8428 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8429 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8430 + _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'
8431 + else
8432 + _LT_TAGVAR(ld_shlibs, $1)=no
8433 + fi
8434 + ;;
8435 + esac
8436
8437 -# Does compiler simultaneously support -c and -o options?
8438 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
8439 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
8440 + runpath_var=
8441 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
8442 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
8443 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
8444 + fi
8445 + else
8446 + # PORTME fill in a description of your system's linker (not GNU ld)
8447 + case $host_os in
8448 + aix3*)
8449 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8450 + _LT_TAGVAR(always_export_symbols, $1)=yes
8451 + _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'
8452 + # Note: this linker hardcodes the directories in LIBPATH if there
8453 + # are no directories specified by -L.
8454 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8455 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8456 + # Neither direct hardcoding nor static linking is supported with a
8457 + # broken collect2.
8458 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
8459 + fi
8460 + ;;
8461
8462 -# Must we lock files when doing compilation?
8463 -need_locks=$lt_need_locks
8464 + aix[[4-9]]*)
8465 + if test "$host_cpu" = ia64; then
8466 + # On IA64, the linker does run time linking by default, so we don't
8467 + # have to do anything special.
8468 + aix_use_runtimelinking=no
8469 + exp_sym_flag='-Bexport'
8470 + no_entry_flag=""
8471 + else
8472 + # If we're using GNU nm, then we don't want the "-C" option.
8473 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
8474 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8475 + _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'
8476 + else
8477 + _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'
8478 + fi
8479 + aix_use_runtimelinking=no
8480
8481 -# Do we need the lib prefix for modules?
8482 -need_lib_prefix=$need_lib_prefix
8483 + # Test if we are trying to use run time linking or normal
8484 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8485 + # need to do runtime linking.
8486 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
8487 + for ld_flag in $LDFLAGS; do
8488 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8489 + aix_use_runtimelinking=yes
8490 + break
8491 + fi
8492 + done
8493 + ;;
8494 + esac
8495
8496 -# Do we need a version for libraries?
8497 -need_version=$need_version
8498 + exp_sym_flag='-bexport'
8499 + no_entry_flag='-bnoentry'
8500 + fi
8501
8502 -# Whether dlopen is supported.
8503 -dlopen_support=$enable_dlopen
8504 + # When large executables or shared objects are built, AIX ld can
8505 + # have problems creating the table of contents. If linking a library
8506 + # or program results in "error TOC overflow" add -mminimal-toc to
8507 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8508 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8509
8510 -# Whether dlopen of programs is supported.
8511 -dlopen_self=$enable_dlopen_self
8512 + _LT_TAGVAR(archive_cmds, $1)=''
8513 + _LT_TAGVAR(hardcode_direct, $1)=yes
8514 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8515 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
8516 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8517 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
8518
8519 -# Whether dlopen of statically linked programs is supported.
8520 -dlopen_self_static=$enable_dlopen_self_static
8521 + if test "$GCC" = yes; then
8522 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
8523 + # We only want to do this on AIX 4.2 and lower, the check
8524 + # below for broken collect2 doesn't work under 4.3+
8525 + collect2name=`${CC} -print-prog-name=collect2`
8526 + if test -f "$collect2name" &&
8527 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8528 + then
8529 + # We have reworked collect2
8530 + :
8531 + else
8532 + # We have old collect2
8533 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
8534 + # It fails to find uninstalled libraries when the uninstalled
8535 + # path is not listed in the libpath. Setting hardcode_minus_L
8536 + # to unsupported forces relinking
8537 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8538 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8539 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
8540 + fi
8541 + ;;
8542 + esac
8543 + shared_flag='-shared'
8544 + if test "$aix_use_runtimelinking" = yes; then
8545 + shared_flag="$shared_flag "'${wl}-G'
8546 + fi
8547 + else
8548 + # not using gcc
8549 + if test "$host_cpu" = ia64; then
8550 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8551 + # chokes on -Wl,-G. The following line is correct:
8552 + shared_flag='-G'
8553 + else
8554 + if test "$aix_use_runtimelinking" = yes; then
8555 + shared_flag='${wl}-G'
8556 + else
8557 + shared_flag='${wl}-bM:SRE'
8558 + fi
8559 + fi
8560 + fi
8561
8562 -# Compiler flag to prevent dynamic linking.
8563 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
8564 + # It seems that -bexpall does not export symbols beginning with
8565 + # underscore (_), so it is better to generate a list of symbols to export.
8566 + _LT_TAGVAR(always_export_symbols, $1)=yes
8567 + if test "$aix_use_runtimelinking" = yes; then
8568 + # Warning - without using the other runtime loading flags (-brtl),
8569 + # -berok will link without error, but may produce a broken library.
8570 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
8571 + # Determine the default libpath from the value encoded in an
8572 + # empty executable.
8573 + _LT_SYS_MODULE_PATH_AIX
8574 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8575 + _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"
8576 + else
8577 + if test "$host_cpu" = ia64; then
8578 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
8579 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
8580 + _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"
8581 + else
8582 + # Determine the default libpath from the value encoded in an
8583 + # empty executable.
8584 + _LT_SYS_MODULE_PATH_AIX
8585 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
8586 + # Warning - without using the other run time loading flags,
8587 + # -berok will link without error, but may produce a broken library.
8588 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
8589 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
8590 + # Exported symbols can be pulled into shared objects from archives
8591 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
8592 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8593 + # This is similar to how AIX traditionally builds its shared libraries.
8594 + _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'
8595 + fi
8596 + fi
8597 + ;;
8598
8599 -# Compiler flag to turn off builtin functions.
8600 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
8601 + amigaos*)
8602 + case $host_cpu in
8603 + powerpc)
8604 + # see comment about AmigaOS4 .so support
8605 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
8607 + ;;
8608 + m68k)
8609 + _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)'
8610 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8611 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8612 + ;;
8613 + esac
8614 + ;;
8615
8616 -# Compiler flag to allow reflexive dlopens.
8617 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
8618 + bsdi[[45]]*)
8619 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
8620 + ;;
8621
8622 -# Compiler flag to generate shared objects directly from archives.
8623 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
8624 + cygwin* | mingw* | pw32*)
8625 + # When not using gcc, we currently assume that we are using
8626 + # Microsoft Visual C++.
8627 + # hardcode_libdir_flag_spec is actually meaningless, as there is
8628 + # no search path for DLLs.
8629 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
8630 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8631 + # Tell ltmain to make .lib files, not .a files.
8632 + libext=lib
8633 + # Tell ltmain to make .dll files, not .so files.
8634 + shrext_cmds=".dll"
8635 + # FIXME: Setting linknames here is a bad hack.
8636 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8637 + # The linker will automatically build a .lib file if we build a DLL.
8638 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
8639 + # FIXME: Should let the user specify the lib program.
8640 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
8641 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
8642 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
8643 + ;;
8644
8645 -# Compiler flag to generate thread-safe objects.
8646 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
8647 + darwin* | rhapsody*)
8648 + _LT_DARWIN_LINKER_FEATURES($1)
8649 + ;;
8650
8651 -# Library versioning type.
8652 -version_type=$version_type
8653 + dgux*)
8654 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8656 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8657 + ;;
8658
8659 -# Format of library name prefix.
8660 -libname_spec=$lt_libname_spec
8661 + freebsd1*)
8662 + _LT_TAGVAR(ld_shlibs, $1)=no
8663 + ;;
8664
8665 -# List of archive names. First name is the real one, the rest are links.
8666 -# The last name is the one that the linker finds with -lNAME.
8667 -library_names_spec=$lt_library_names_spec
8668 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8669 + # support. Future versions do this automatically, but an explicit c++rt0.o
8670 + # does not break anything, and helps significantly (at the cost of a little
8671 + # extra space).
8672 + freebsd2.2*)
8673 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8674 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8675 + _LT_TAGVAR(hardcode_direct, $1)=yes
8676 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8677 + ;;
8678
8679 -# The coded name of the library, if different from the real name.
8680 -soname_spec=$lt_soname_spec
8681 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8682 + freebsd2*)
8683 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8684 + _LT_TAGVAR(hardcode_direct, $1)=yes
8685 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8686 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8687 + ;;
8688
8689 -# Commands used to build and install an old-style archive.
8690 -RANLIB=$lt_RANLIB
8691 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
8692 -old_postinstall_cmds=$lt_old_postinstall_cmds
8693 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
8694 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8695 + freebsd* | dragonfly*)
8696 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8697 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8698 + _LT_TAGVAR(hardcode_direct, $1)=yes
8699 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8700 + ;;
8701
8702 -# Create an old-style archive from a shared archive.
8703 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
8704 + hpux9*)
8705 + if test "$GCC" = yes; then
8706 + _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'
8707 + else
8708 + _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'
8709 + fi
8710 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8711 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8712 + _LT_TAGVAR(hardcode_direct, $1)=yes
8713
8714 -# Create a temporary old-style archive to link instead of a shared archive.
8715 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
8716 + # hardcode_minus_L: Not really in the search PATH,
8717 + # but as the default location of the library.
8718 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8719 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8720 + ;;
8721
8722 -# Commands used to build and install a shared archive.
8723 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
8724 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
8725 -postinstall_cmds=$lt_postinstall_cmds
8726 -postuninstall_cmds=$lt_postuninstall_cmds
8727 + hpux10*)
8728 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8729 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8730 + else
8731 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8732 + fi
8733 + if test "$with_gnu_ld" = no; then
8734 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8735 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
8736 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8737 + _LT_TAGVAR(hardcode_direct, $1)=yes
8738 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8739 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8740 + # hardcode_minus_L: Not really in the search PATH,
8741 + # but as the default location of the library.
8742 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8743 + fi
8744 + ;;
8745
8746 -# Commands used to build a loadable module (assumed same as above if empty)
8747 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
8748 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
8749 + hpux11*)
8750 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8751 + case $host_cpu in
8752 + hppa*64*)
8753 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8754 + ;;
8755 + ia64*)
8756 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8757 + ;;
8758 + *)
8759 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8760 + ;;
8761 + esac
8762 + else
8763 + case $host_cpu in
8764 + hppa*64*)
8765 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 + ;;
8767 + ia64*)
8768 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8769 + ;;
8770 + *)
8771 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8772 + ;;
8773 + esac
8774 + fi
8775 + if test "$with_gnu_ld" = no; then
8776 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
8777 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8778
8779 -# Commands to strip libraries.
8780 -old_striplib=$lt_old_striplib
8781 -striplib=$lt_striplib
8782 + case $host_cpu in
8783 + hppa*64*|ia64*)
8784 + _LT_TAGVAR(hardcode_direct, $1)=no
8785 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8786 + ;;
8787 + *)
8788 + _LT_TAGVAR(hardcode_direct, $1)=yes
8789 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8790 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8791
8792 -# Dependencies to place before the objects being linked to create a
8793 -# shared library.
8794 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
8795 + # hardcode_minus_L: Not really in the search PATH,
8796 + # but as the default location of the library.
8797 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8798 + ;;
8799 + esac
8800 + fi
8801 + ;;
8802
8803 -# Dependencies to place after the objects being linked to create a
8804 -# shared library.
8805 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
8806 + irix5* | irix6* | nonstopux*)
8807 + if test "$GCC" = yes; then
8808 + _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'
8809 + # Try to use the -exported_symbol ld option, if it does not
8810 + # work, assume that -exports_file does not work either and
8811 + # implicitly export all symbols.
8812 + save_LDFLAGS="$LDFLAGS"
8813 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8814 + AC_LINK_IFELSE(int foo(void) {},
8815 + _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'
8816 + )
8817 + LDFLAGS="$save_LDFLAGS"
8818 + else
8819 + _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'
8820 + _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'
8821 + fi
8822 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8823 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8824 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8825 + _LT_TAGVAR(inherit_rpath, $1)=yes
8826 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8827 + ;;
8828
8829 -# Dependencies to place before the objects being linked to create a
8830 -# shared library.
8831 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
8832 + netbsd*)
8833 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8834 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8835 + else
8836 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8837 + fi
8838 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8839 + _LT_TAGVAR(hardcode_direct, $1)=yes
8840 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8841 + ;;
8842
8843 -# Dependencies to place after the objects being linked to create a
8844 -# shared library.
8845 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
8846 + newsos6)
8847 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848 + _LT_TAGVAR(hardcode_direct, $1)=yes
8849 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8850 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8851 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8852 + ;;
8853
8854 -# The library search path used internally by the compiler when linking
8855 -# a shared library.
8856 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
8857 + *nto* | *qnx*)
8858 + ;;
8859
8860 -# Method to check whether dependent libraries are shared objects.
8861 -deplibs_check_method=$lt_deplibs_check_method
8862 + openbsd*)
8863 + if test -f /usr/libexec/ld.so; then
8864 + _LT_TAGVAR(hardcode_direct, $1)=yes
8865 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8866 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
8867 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8868 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8869 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8870 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8871 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
8872 + else
8873 + case $host_os in
8874 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
8875 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8876 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8877 + ;;
8878 + *)
8879 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8880 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8881 + ;;
8882 + esac
8883 + fi
8884 + else
8885 + _LT_TAGVAR(ld_shlibs, $1)=no
8886 + fi
8887 + ;;
8888
8889 -# Command to use when deplibs_check_method == file_magic.
8890 -file_magic_cmd=$lt_file_magic_cmd
8891 + os2*)
8892 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8893 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8894 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
8895 + _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'
8896 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8897 + ;;
8898
8899 -# Flag that allows shared libraries with undefined symbols to be built.
8900 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
8901 + osf3*)
8902 + if test "$GCC" = yes; then
8903 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8904 + _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'
8905 + else
8906 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8907 + _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'
8908 + fi
8909 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8910 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8911 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8912 + ;;
8913
8914 -# Flag that forces no undefined symbols.
8915 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
8916 + osf4* | osf5*) # as osf3* with the addition of -msym flag
8917 + if test "$GCC" = yes; then
8918 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8919 + _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'
8920 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8921 + else
8922 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8923 + _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'
8924 + _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~
8925 + $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'
8926
8927 -# Commands used to finish a libtool library installation in a directory.
8928 -finish_cmds=$lt_finish_cmds
8929 + # Both c and cxx compiler support -rpath directly
8930 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8931 + fi
8932 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
8933 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
8934 + ;;
8935
8936 -# Same as above, but a single script fragment to be evaled but not shown.
8937 -finish_eval=$lt_finish_eval
8938 + solaris*)
8939 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8940 + if test "$GCC" = yes; then
8941 + wlarc='${wl}'
8942 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8943 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8944 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8945 + else
8946 + case `$CC -V 2>&1` in
8947 + *"Compilers 5.0"*)
8948 + wlarc=''
8949 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8950 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8951 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8952 + ;;
8953 + *)
8954 + wlarc='${wl}'
8955 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8956 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8957 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8958 + ;;
8959 + esac
8960 + fi
8961 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8962 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8963 + case $host_os in
8964 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8965 + *)
8966 + # The compiler driver will combine and reorder linker options,
8967 + # but understands `-z linker_flag'. GCC discards it without `$wl',
8968 + # but is careful enough not to reorder.
8969 + # Supported since Solaris 2.6 (maybe 2.5.1?)
8970 + if test "$GCC" = yes; then
8971 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8972 + else
8973 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8974 + fi
8975 + ;;
8976 + esac
8977 + _LT_TAGVAR(link_all_deplibs, $1)=yes
8978 + ;;
8979
8980 -# Take the output of nm and produce a listing of raw symbols and C names.
8981 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8982 + sunos4*)
8983 + if test "x$host_vendor" = xsequent; then
8984 + # Use $CC to link under sequent, because it throws in some extra .o
8985 + # files that make .init and .fini sections work.
8986 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8987 + else
8988 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8989 + fi
8990 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8991 + _LT_TAGVAR(hardcode_direct, $1)=yes
8992 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
8993 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8994 + ;;
8995
8996 -# Transform the output of nm in a proper C declaration
8997 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8998 + sysv4)
8999 + case $host_vendor in
9000 + sni)
9001 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9002 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
9003 + ;;
9004 + siemens)
9005 + ## LD is ld it makes a PLAMLIB
9006 + ## CC just makes a GrossModule.
9007 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9008 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
9009 + _LT_TAGVAR(hardcode_direct, $1)=no
9010 + ;;
9011 + motorola)
9012 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9013 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
9014 + ;;
9015 + esac
9016 + runpath_var='LD_RUN_PATH'
9017 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9018 + ;;
9019
9020 -# Transform the output of nm in a C name address pair
9021 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9022 + sysv4.3*)
9023 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9025 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
9026 + ;;
9027
9028 -# This is the shared library runtime path variable.
9029 -runpath_var=$runpath_var
9030 + sysv4*MP*)
9031 + if test -d /usr/nec; then
9032 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9034 + runpath_var=LD_RUN_PATH
9035 + hardcode_runpath_var=yes
9036 + _LT_TAGVAR(ld_shlibs, $1)=yes
9037 + fi
9038 + ;;
9039
9040 -# This is the shared library path variable.
9041 -shlibpath_var=$shlibpath_var
9042 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
9043 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9044 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9045 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9046 + runpath_var='LD_RUN_PATH'
9047
9048 -# Is shlibpath searched before the hard-coded library search path?
9049 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9050 + if test "$GCC" = yes; then
9051 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053 + else
9054 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056 + fi
9057 + ;;
9058
9059 -# How to hardcode a shared library path into an executable.
9060 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
9061 + sysv5* | sco3.2v5* | sco5v6*)
9062 + # Note: We can NOT use -z defs as we might desire, because we do not
9063 + # link with -lc, and that would cause any symbols used from libc to
9064 + # always be unresolved, which means just about no library would
9065 + # ever link correctly. If we're not using GNU ld we use -z text
9066 + # though, which does catch some bad symbols but isn't as heavy-handed
9067 + # as -z defs.
9068 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
9069 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
9070 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9071 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9072 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
9073 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9074 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9075 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
9076 + runpath_var='LD_RUN_PATH'
9077
9078 -# Whether we should hardcode library paths into libraries.
9079 -hardcode_into_libs=$hardcode_into_libs
9080 + if test "$GCC" = yes; then
9081 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9082 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083 + else
9084 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9085 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9086 + fi
9087 + ;;
9088
9089 -# Flag to hardcode \$libdir into a binary during linking.
9090 -# This must work even if \$libdir does not exist.
9091 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
9092 + uts4*)
9093 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9094 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9095 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
9096 + ;;
9097
9098 -# If ld is used when linking, flag to hardcode \$libdir into
9099 -# a binary during linking. This must work even if \$libdir does
9100 -# not exist.
9101 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
9102 + *)
9103 + _LT_TAGVAR(ld_shlibs, $1)=no
9104 + ;;
9105 + esac
9106
9107 -# Whether we need a single -rpath flag with a separated argument.
9108 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
9109 + if test x$host_vendor = xsni; then
9110 + case $host in
9111 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9112 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
9113 + ;;
9114 + esac
9115 + fi
9116 + fi
9117 +])
9118 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
9119 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
9120
9121 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9122 -# resulting binary.
9123 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
9124 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
9125
9126 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9127 -# resulting binary.
9128 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
9129 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
9130 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
9131 +_LT_DECL([], [extract_expsyms_cmds], [2],
9132 + [The commands to extract the exported symbol list from a shared archive])
9133
9134 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9135 -# the resulting binary.
9136 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
9137 +#
9138 +# Do we need to explicitly link libc?
9139 +#
9140 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
9141 +x|xyes)
9142 + # Assume -lc should be added
9143 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9144
9145 -# Set to yes if building a shared library automatically hardcodes DIR into the library
9146 -# and all subsequent libraries and executables linked against it.
9147 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
9148 + if test "$enable_shared" = yes && test "$GCC" = yes; then
9149 + case $_LT_TAGVAR(archive_cmds, $1) in
9150 + *'~'*)
9151 + # FIXME: we may have to deal with multi-command sequences.
9152 + ;;
9153 + '$CC '*)
9154 + # Test whether the compiler implicitly links with -lc since on some
9155 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
9156 + # to ld, don't add -lc before -lgcc.
9157 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
9158 + $RM conftest*
9159 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9160
9161 -# Variables whose values should be saved in libtool wrapper scripts and
9162 -# restored at relink time.
9163 -variables_saved_for_relink="$variables_saved_for_relink"
9164 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
9165 + soname=conftest
9166 + lib=conftest
9167 + libobjs=conftest.$ac_objext
9168 + deplibs=
9169 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
9170 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
9171 + compiler_flags=-v
9172 + linker_flags=-v
9173 + verstring=
9174 + output_objdir=.
9175 + libname=conftest
9176 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
9177 + _LT_TAGVAR(allow_undefined_flag, $1)=
9178 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
9179 + then
9180 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
9181 + else
9182 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9183 + fi
9184 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
9185 + else
9186 + cat conftest.err 1>&5
9187 + fi
9188 + $RM conftest*
9189 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
9190 + ;;
9191 + esac
9192 + fi
9193 + ;;
9194 +esac
9195
9196 -# Whether libtool must link a program against all its dependency libraries.
9197 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
9198 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
9199 + [Whether or not to add -lc for building shared libraries])
9200 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
9201 + [enable_shared_with_static_runtimes], [0],
9202 + [Whether or not to disallow shared libs when runtime libs are static])
9203 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
9204 + [Compiler flag to allow reflexive dlopens])
9205 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
9206 + [Compiler flag to generate shared objects directly from archives])
9207 +_LT_TAGDECL([], [compiler_needs_object], [1],
9208 + [Whether the compiler copes with passing no objects directly])
9209 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
9210 + [Create an old-style archive from a shared archive])
9211 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
9212 + [Create a temporary old-style archive to link instead of a shared archive])
9213 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
9214 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
9215 +_LT_TAGDECL([], [module_cmds], [2],
9216 + [Commands used to build a loadable module if different from building
9217 + a shared archive.])
9218 +_LT_TAGDECL([], [module_expsym_cmds], [2])
9219 +_LT_TAGDECL([], [with_gnu_ld], [1],
9220 + [Whether we are building with GNU ld or not])
9221 +_LT_TAGDECL([], [allow_undefined_flag], [1],
9222 + [Flag that allows shared libraries with undefined symbols to be built])
9223 +_LT_TAGDECL([], [no_undefined_flag], [1],
9224 + [Flag that enforces no undefined symbols])
9225 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
9226 + [Flag to hardcode $libdir into a binary during linking.
9227 + This must work even if $libdir does not exist])
9228 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
9229 + [[If ld is used when linking, flag to hardcode $libdir into a binary
9230 + during linking. This must work even if $libdir does not exist]])
9231 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
9232 + [Whether we need a single "-rpath" flag with a separated argument])
9233 +_LT_TAGDECL([], [hardcode_direct], [0],
9234 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
9235 + DIR into the resulting binary])
9236 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
9237 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
9238 + DIR into the resulting binary and the resulting library dependency is
9239 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
9240 + library is relocated])
9241 +_LT_TAGDECL([], [hardcode_minus_L], [0],
9242 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
9243 + into the resulting binary])
9244 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
9245 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
9246 + into the resulting binary])
9247 +_LT_TAGDECL([], [hardcode_automatic], [0],
9248 + [Set to "yes" if building a shared library automatically hardcodes DIR
9249 + into the library and all subsequent libraries and executables linked
9250 + against it])
9251 +_LT_TAGDECL([], [inherit_rpath], [0],
9252 + [Set to yes if linker adds runtime paths of dependent libraries
9253 + to runtime path list])
9254 +_LT_TAGDECL([], [link_all_deplibs], [0],
9255 + [Whether libtool must link a program against all its dependency libraries])
9256 +_LT_TAGDECL([], [fix_srcfile_path], [1],
9257 + [Fix the shell variable $srcfile for the compiler])
9258 +_LT_TAGDECL([], [always_export_symbols], [0],
9259 + [Set to "yes" if exported symbols are required])
9260 +_LT_TAGDECL([], [export_symbols_cmds], [2],
9261 + [The commands to list exported symbols])
9262 +_LT_TAGDECL([], [exclude_expsyms], [1],
9263 + [Symbols that should not be listed in the preloaded symbols])
9264 +_LT_TAGDECL([], [include_expsyms], [1],
9265 + [Symbols that must always be exported])
9266 +_LT_TAGDECL([], [prelink_cmds], [2],
9267 + [Commands necessary for linking programs (against libraries) with templates])
9268 +_LT_TAGDECL([], [file_list_spec], [1],
9269 + [Specify filename containing input files])
9270 +dnl FIXME: Not yet implemented
9271 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
9272 +dnl [Compiler flag to generate thread safe objects])
9273 +])# _LT_LINKER_SHLIBS
9274
9275 -# Compile-time system search path for libraries
9276 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9277
9278 -# Run-time system search path for libraries
9279 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9280 +# _LT_LANG_C_CONFIG([TAG])
9281 +# ------------------------
9282 +# Ensure that the configuration variables for a C compiler are suitably
9283 +# defined. These variables are subsequently used by _LT_CONFIG to write
9284 +# the compiler configuration to `libtool'.
9285 +m4_defun([_LT_LANG_C_CONFIG],
9286 +[m4_require([_LT_DECL_EGREP])dnl
9287 +lt_save_CC="$CC"
9288 +AC_LANG_PUSH(C)
9289
9290 -# Fix the shell variable \$srcfile for the compiler.
9291 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
9292 +# Source file extension for C test sources.
9293 +ac_ext=c
9294
9295 -# Set to yes if exported symbols are required.
9296 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
9297 +# Object file extension for compiled C test sources.
9298 +objext=o
9299 +_LT_TAGVAR(objext, $1)=$objext
9300
9301 -# The commands to list exported symbols.
9302 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
9303 +# Code to be used in simple compile tests
9304 +lt_simple_compile_test_code="int some_variable = 0;"
9305
9306 -# The commands to extract the exported symbol list from a shared archive.
9307 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
9308 +# Code to be used in simple link tests
9309 +lt_simple_link_test_code='int main(){return(0);}'
9310
9311 -# Symbols that should not be listed in the preloaded symbols.
9312 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
9313 +_LT_TAG_COMPILER
9314 +# Save the default compiler, since it gets overwritten when the other
9315 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9316 +compiler_DEFAULT=$CC
9317
9318 -# Symbols that must always be exported.
9319 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
9320 +# save warnings/boilerplate of simple test code
9321 +_LT_COMPILER_BOILERPLATE
9322 +_LT_LINKER_BOILERPLATE
9323
9324 -ifelse([$1],[],
9325 -[# ### END LIBTOOL CONFIG],
9326 -[# ### END LIBTOOL TAG CONFIG: $tagname])
9327 +## CAVEAT EMPTOR:
9328 +## There is no encapsulation within the following macros, do not change
9329 +## the running order or otherwise move them around unless you know exactly
9330 +## what you are doing...
9331 +if test -n "$compiler"; then
9332 + _LT_COMPILER_NO_RTTI($1)
9333 + _LT_COMPILER_PIC($1)
9334 + _LT_COMPILER_C_O($1)
9335 + _LT_COMPILER_FILE_LOCKS($1)
9336 + _LT_LINKER_SHLIBS($1)
9337 + _LT_SYS_DYNAMIC_LINKER($1)
9338 + _LT_LINKER_HARDCODE_LIBPATH($1)
9339 + LT_SYS_DLOPEN_SELF
9340 + _LT_CMD_STRIPLIB
9341 +
9342 + # Report which library types will actually be built
9343 + AC_MSG_CHECKING([if libtool supports shared libraries])
9344 + AC_MSG_RESULT([$can_build_shared])
9345
9346 -__EOF__
9347 + AC_MSG_CHECKING([whether to build shared libraries])
9348 + test "$can_build_shared" = "no" && enable_shared=no
9349
9350 -ifelse([$1],[], [
9351 + # On AIX, shared libraries and static libraries use the same namespace, and
9352 + # are all built from PIC.
9353 case $host_os in
9354 aix3*)
9355 - cat <<\EOF >> "$cfgfile"
9356 + test "$enable_shared" = yes && enable_static=no
9357 + if test -n "$RANLIB"; then
9358 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
9359 + postinstall_cmds='$RANLIB $lib'
9360 + fi
9361 + ;;
9362
9363 -# AIX sometimes has problems with the GCC collect2 program. For some
9364 -# reason, if we set the COLLECT_NAMES environment variable, the problems
9365 -# vanish in a puff of smoke.
9366 -if test "X${COLLECT_NAMES+set}" != Xset; then
9367 - COLLECT_NAMES=
9368 - export COLLECT_NAMES
9369 -fi
9370 -EOF
9371 + aix[[4-9]]*)
9372 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9373 + test "$enable_shared" = yes && enable_static=no
9374 + fi
9375 ;;
9376 esac
9377 + AC_MSG_RESULT([$enable_shared])
9378
9379 - # We use sed instead of cat because bash on DJGPP gets confused if
9380 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
9381 - # text mode, it properly converts lines to CR/LF. This bash problem
9382 - # is reportedly fixed, but why not run on old versions too?
9383 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9384 + AC_MSG_CHECKING([whether to build static libraries])
9385 + # Make sure either enable_shared or enable_static is yes.
9386 + test "$enable_shared" = yes || enable_static=yes
9387 + AC_MSG_RESULT([$enable_static])
9388
9389 - mv -f "$cfgfile" "$ofile" || \
9390 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9391 - chmod +x "$ofile"
9392 -])
9393 -else
9394 - # If there is no Makefile yet, we rely on a make rule to execute
9395 - # `config.status --recheck' to rerun these tests and create the
9396 - # libtool script then.
9397 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9398 - if test -f "$ltmain_in"; then
9399 - test -f Makefile && make "$ltmain"
9400 - fi
9401 + _LT_CONFIG($1)
9402 fi
9403 -])# AC_LIBTOOL_CONFIG
9404 -
9405 -
9406 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
9407 -# -------------------------------------------
9408 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
9409 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
9410 -
9411 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9412 +AC_LANG_POP
9413 +CC="$lt_save_CC"
9414 +])# _LT_LANG_C_CONFIG
9415
9416 -if test "$GCC" = yes; then
9417 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9418
9419 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
9420 - lt_cv_prog_compiler_rtti_exceptions,
9421 - [-fno-rtti -fno-exceptions], [],
9422 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
9423 +# _LT_PROG_CXX
9424 +# ------------
9425 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
9426 +# compiler, we have our own version here.
9427 +m4_defun([_LT_PROG_CXX],
9428 +[
9429 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
9430 +AC_PROG_CXX
9431 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9432 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9433 + (test "X$CXX" != "Xg++"))) ; then
9434 + AC_PROG_CXXCPP
9435 +else
9436 + _lt_caught_CXX_error=yes
9437 fi
9438 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
9439 +popdef([AC_MSG_ERROR])
9440 +])# _LT_PROG_CXX
9441
9442 +dnl aclocal-1.4 backwards compatibility:
9443 +dnl AC_DEFUN([_LT_PROG_CXX], [])
9444
9445 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9446 -# ---------------------------------
9447 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
9448 -[AC_REQUIRE([AC_CANONICAL_HOST])
9449 -AC_REQUIRE([AC_PROG_NM])
9450 -AC_REQUIRE([AC_OBJEXT])
9451 -# Check for command to grab the raw symbol name followed by C symbol from nm.
9452 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
9453 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
9454 -[
9455 -# These are sane defaults that work on at least a few old systems.
9456 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9457 -
9458 -# Character class describing NM global symbol codes.
9459 -symcode='[[BCDEGRST]]'
9460
9461 -# Regexp to match symbols that can be accessed directly from C.
9462 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
9463 +# _LT_LANG_CXX_CONFIG([TAG])
9464 +# --------------------------
9465 +# Ensure that the configuration variables for a C++ compiler are suitably
9466 +# defined. These variables are subsequently used by _LT_CONFIG to write
9467 +# the compiler configuration to `libtool'.
9468 +m4_defun([_LT_LANG_CXX_CONFIG],
9469 +[AC_REQUIRE([_LT_PROG_CXX])dnl
9470 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
9471 +m4_require([_LT_DECL_EGREP])dnl
9472 +
9473 +AC_LANG_PUSH(C++)
9474 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
9475 +_LT_TAGVAR(allow_undefined_flag, $1)=
9476 +_LT_TAGVAR(always_export_symbols, $1)=no
9477 +_LT_TAGVAR(archive_expsym_cmds, $1)=
9478 +_LT_TAGVAR(compiler_needs_object, $1)=no
9479 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
9480 +_LT_TAGVAR(hardcode_direct, $1)=no
9481 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
9482 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
9483 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
9484 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
9485 +_LT_TAGVAR(hardcode_minus_L, $1)=no
9486 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9487 +_LT_TAGVAR(hardcode_automatic, $1)=no
9488 +_LT_TAGVAR(inherit_rpath, $1)=no
9489 +_LT_TAGVAR(module_cmds, $1)=
9490 +_LT_TAGVAR(module_expsym_cmds, $1)=
9491 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
9492 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
9493 +_LT_TAGVAR(no_undefined_flag, $1)=
9494 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
9495 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
9496
9497 -# Transform an extracted symbol line into a proper C declaration
9498 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9499 +# Source file extension for C++ test sources.
9500 +ac_ext=cpp
9501
9502 -# Transform an extracted symbol line into symbol name and symbol address
9503 -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'"
9504 +# Object file extension for compiled C++ test sources.
9505 +objext=o
9506 +_LT_TAGVAR(objext, $1)=$objext
9507
9508 -# Define system-specific variables.
9509 -case $host_os in
9510 -aix*)
9511 - symcode='[[BCDT]]'
9512 - ;;
9513 -cygwin* | mingw* | pw32*)
9514 - symcode='[[ABCDGISTW]]'
9515 - ;;
9516 -hpux*) # Its linker distinguishes data from code symbols
9517 - if test "$host_cpu" = ia64; then
9518 - symcode='[[ABCDEGRST]]'
9519 +# No sense in running all these tests if we already determined that
9520 +# the CXX compiler isn't working. Some variables (like enable_shared)
9521 +# are currently assumed to apply to all compilers on this platform,
9522 +# and will be corrupted by setting them based on a non-working compiler.
9523 +if test "$_lt_caught_CXX_error" != yes; then
9524 + # Code to be used in simple compile tests
9525 + lt_simple_compile_test_code="int some_variable = 0;"
9526 +
9527 + # Code to be used in simple link tests
9528 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
9529 +
9530 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9531 + _LT_TAG_COMPILER
9532 +
9533 + # save warnings/boilerplate of simple test code
9534 + _LT_COMPILER_BOILERPLATE
9535 + _LT_LINKER_BOILERPLATE
9536 +
9537 + # Allow CC to be a program name with arguments.
9538 + lt_save_CC=$CC
9539 + lt_save_LD=$LD
9540 + lt_save_GCC=$GCC
9541 + GCC=$GXX
9542 + lt_save_with_gnu_ld=$with_gnu_ld
9543 + lt_save_path_LD=$lt_cv_path_LD
9544 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9545 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9546 + else
9547 + $as_unset lt_cv_prog_gnu_ld
9548 fi
9549 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9550 - 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'"
9551 - ;;
9552 -linux*)
9553 - if test "$host_cpu" = ia64; then
9554 - symcode='[[ABCDGIRSTW]]'
9555 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9556 - 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'"
9557 + if test -n "${lt_cv_path_LDCXX+set}"; then
9558 + lt_cv_path_LD=$lt_cv_path_LDCXX
9559 + else
9560 + $as_unset lt_cv_path_LD
9561 fi
9562 - ;;
9563 -irix* | nonstopux*)
9564 - symcode='[[BCDEGRST]]'
9565 - ;;
9566 -osf*)
9567 - symcode='[[BCDEGQRST]]'
9568 - ;;
9569 -solaris*)
9570 - symcode='[[BDRT]]'
9571 - ;;
9572 -sco3.2v5*)
9573 - symcode='[[DT]]'
9574 - ;;
9575 -sysv4.2uw2*)
9576 - symcode='[[DT]]'
9577 - ;;
9578 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
9579 - symcode='[[ABDT]]'
9580 - ;;
9581 -sysv4)
9582 - symcode='[[DFNSTU]]'
9583 - ;;
9584 -esac
9585 -
9586 -# Handle CRLF in mingw tool chain
9587 -opt_cr=
9588 -case $build_os in
9589 -mingw*)
9590 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9591 - ;;
9592 -esac
9593 -
9594 -# If we're using GNU nm, then use its standard symbol codes.
9595 -case `$NM -V 2>&1` in
9596 -*GNU* | *'with BFD'*)
9597 - symcode='[[ABCDGIRSTW]]' ;;
9598 -esac
9599 -
9600 -# Try without a prefix undercore, then with it.
9601 -for ac_symprfx in "" "_"; do
9602 -
9603 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9604 - symxfrm="\\1 $ac_symprfx\\2 \\2"
9605 -
9606 - # Write the raw and C identifiers.
9607 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9608 -
9609 - # Check to see that the pipe works correctly.
9610 - pipe_works=no
9611 -
9612 - rm -f conftest*
9613 - cat > conftest.$ac_ext <<EOF
9614 -#ifdef __cplusplus
9615 -extern "C" {
9616 -#endif
9617 -char nm_test_var;
9618 -void nm_test_func(){}
9619 -#ifdef __cplusplus
9620 -}
9621 -#endif
9622 -int main(){nm_test_var='a';nm_test_func();return(0);}
9623 -EOF
9624 -
9625 - if AC_TRY_EVAL(ac_compile); then
9626 - # Now try to grab the symbols.
9627 - nlist=conftest.nm
9628 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
9629 - # Try sorting and uniquifying the output.
9630 - if sort "$nlist" | uniq > "$nlist"T; then
9631 - mv -f "$nlist"T "$nlist"
9632 - else
9633 - rm -f "$nlist"T
9634 - fi
9635 -
9636 - # Make sure that we snagged all the symbols we need.
9637 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
9638 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
9639 - cat <<EOF > conftest.$ac_ext
9640 -#ifdef __cplusplus
9641 -extern "C" {
9642 -#endif
9643 -
9644 -EOF
9645 - # Now generate the symbol file.
9646 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9647 -
9648 - cat <<EOF >> conftest.$ac_ext
9649 -#if defined (__STDC__) && __STDC__
9650 -# define lt_ptr_t void *
9651 -#else
9652 -# define lt_ptr_t char *
9653 -# define const
9654 -#endif
9655 -
9656 -/* The mapping between symbol names and symbols. */
9657 -const struct {
9658 - const char *name;
9659 - lt_ptr_t address;
9660 -}
9661 -lt_preloaded_symbols[[]] =
9662 -{
9663 -EOF
9664 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9665 - cat <<\EOF >> conftest.$ac_ext
9666 - {0, (lt_ptr_t) 0}
9667 -};
9668 + test -z "${LDCXX+set}" || LD=$LDCXX
9669 + CC=${CXX-"c++"}
9670 + compiler=$CC
9671 + _LT_TAGVAR(compiler, $1)=$CC
9672 + _LT_CC_BASENAME([$compiler])
9673
9674 -#ifdef __cplusplus
9675 -}
9676 -#endif
9677 -EOF
9678 - # Now try linking the two files.
9679 - mv conftest.$ac_objext conftstm.$ac_objext
9680 - lt_save_LIBS="$LIBS"
9681 - lt_save_CFLAGS="$CFLAGS"
9682 - LIBS="conftstm.$ac_objext"
9683 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
9684 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
9685 - pipe_works=yes
9686 - fi
9687 - LIBS="$lt_save_LIBS"
9688 - CFLAGS="$lt_save_CFLAGS"
9689 - else
9690 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9691 - fi
9692 - else
9693 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9694 - fi
9695 + if test -n "$compiler"; then
9696 + # We don't want -fno-exception when compiling C++ code, so set the
9697 + # no_builtin_flag separately
9698 + if test "$GXX" = yes; then
9699 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9700 else
9701 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9702 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9703 fi
9704 - else
9705 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
9706 - cat conftest.$ac_ext >&5
9707 - fi
9708 - rm -f conftest* conftst*
9709 -
9710 - # Do not use the global_symbol_pipe unless it works.
9711 - if test "$pipe_works" = yes; then
9712 - break
9713 - else
9714 - lt_cv_sys_global_symbol_pipe=
9715 - fi
9716 -done
9717 -])
9718 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
9719 - lt_cv_sys_global_symbol_to_cdecl=
9720 -fi
9721 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9722 - AC_MSG_RESULT(failed)
9723 -else
9724 - AC_MSG_RESULT(ok)
9725 -fi
9726 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9727
9728 + if test "$GXX" = yes; then
9729 + # Set up default GNU C++ configuration
9730
9731 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
9732 -# ---------------------------------------
9733 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
9734 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
9735 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9736 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
9737 + LT_PATH_LD
9738
9739 -AC_MSG_CHECKING([for $compiler option to produce PIC])
9740 - ifelse([$1],[CXX],[
9741 - # C++ specific cases for pic, static, wl, etc.
9742 - if test "$GXX" = yes; then
9743 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9744 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9745 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
9746 + # archiving commands below assume that GNU ld is being used.
9747 + if test "$with_gnu_ld" = yes; then
9748 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 + _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'
9750 +
9751 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
9752 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
9753 +
9754 + # If archive_cmds runs LD, not CC, wlarc should be empty
9755 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9756 + # investigate it a little bit more. (MM)
9757 + wlarc='${wl}'
9758 +
9759 + # ancient GNU ld didn't support --whole-archive et. al.
9760 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
9761 + $GREP 'no-whole-archive' > /dev/null; then
9762 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9763 + else
9764 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
9765 + fi
9766 + else
9767 + with_gnu_ld=no
9768 + wlarc=
9769
9770 - case $host_os in
9771 - aix*)
9772 - # All AIX code is PIC.
9773 - if test "$host_cpu" = ia64; then
9774 - # AIX 5 now supports IA64 processor
9775 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9776 - fi
9777 - ;;
9778 - amigaos*)
9779 - # FIXME: we need at least 68020 code to build shared libraries, but
9780 - # adding the `-m68020' flag to GCC prevents building anything better,
9781 - # like `-m68040'.
9782 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9783 - ;;
9784 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9785 - # PIC is the default for these OSes.
9786 - ;;
9787 - mingw* | cygwin* | os2* | pw32*)
9788 - # This hack is so that the source file can tell whether it is being
9789 - # built for inclusion in a dll (and should export symbols for example).
9790 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
9791 - # (--disable-auto-import) libraries
9792 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9793 - ;;
9794 - darwin* | rhapsody*)
9795 - # PIC is the default on this platform
9796 - # Common symbols not allowed in MH_DYLIB files
9797 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9798 - ;;
9799 - *djgpp*)
9800 - # DJGPP does not support shared libraries at all
9801 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9802 - ;;
9803 - interix3*)
9804 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9805 - # Instead, we relocate shared libraries at runtime.
9806 - ;;
9807 - sysv4*MP*)
9808 - if test -d /usr/nec; then
9809 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9810 + # A generic and very simple default shared library creation
9811 + # command for GNU C++ for the case where it uses the native
9812 + # linker, instead of GNU ld. If possible, this setting should
9813 + # overridden to take advantage of the native linker features on
9814 + # the platform it is being used on.
9815 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9816 fi
9817 - ;;
9818 - hpux*)
9819 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9820 - # not for PA HP-UX.
9821 - case $host_cpu in
9822 - hppa*64*|ia64*)
9823 - ;;
9824 - *)
9825 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9826 - ;;
9827 - esac
9828 - ;;
9829 - *)
9830 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9831 - ;;
9832 - esac
9833 - else
9834 +
9835 + # Commands to make compiler produce verbose output that lists
9836 + # what "hidden" libraries, object files and flags are used when
9837 + # linking a shared library.
9838 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
9839 +
9840 + else
9841 + GXX=no
9842 + with_gnu_ld=no
9843 + wlarc=
9844 + fi
9845 +
9846 + # PORTME: fill in a description of your system's C++ link characteristics
9847 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
9848 + _LT_TAGVAR(ld_shlibs, $1)=yes
9849 case $host_os in
9850 - aix4* | aix5*)
9851 - # All AIX code is PIC.
9852 - if test "$host_cpu" = ia64; then
9853 - # AIX 5 now supports IA64 processor
9854 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9855 + aix3*)
9856 + # FIXME: insert proper C++ library support
9857 + _LT_TAGVAR(ld_shlibs, $1)=no
9858 + ;;
9859 + aix[[4-9]]*)
9860 + if test "$host_cpu" = ia64; then
9861 + # On IA64, the linker does run time linking by default, so we don't
9862 + # have to do anything special.
9863 + aix_use_runtimelinking=no
9864 + exp_sym_flag='-Bexport'
9865 + no_entry_flag=""
9866 + else
9867 + aix_use_runtimelinking=no
9868 +
9869 + # Test if we are trying to use run time linking or normal
9870 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9871 + # need to do runtime linking.
9872 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
9873 + for ld_flag in $LDFLAGS; do
9874 + case $ld_flag in
9875 + *-brtl*)
9876 + aix_use_runtimelinking=yes
9877 + break
9878 + ;;
9879 + esac
9880 + done
9881 + ;;
9882 + esac
9883 +
9884 + exp_sym_flag='-bexport'
9885 + no_entry_flag='-bnoentry'
9886 + fi
9887 +
9888 + # When large executables or shared objects are built, AIX ld can
9889 + # have problems creating the table of contents. If linking a library
9890 + # or program results in "error TOC overflow" add -mminimal-toc to
9891 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9892 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9893 +
9894 + _LT_TAGVAR(archive_cmds, $1)=''
9895 + _LT_TAGVAR(hardcode_direct, $1)=yes
9896 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
9897 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
9898 + _LT_TAGVAR(link_all_deplibs, $1)=yes
9899 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
9900 +
9901 + if test "$GXX" = yes; then
9902 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
9903 + # We only want to do this on AIX 4.2 and lower, the check
9904 + # below for broken collect2 doesn't work under 4.3+
9905 + collect2name=`${CC} -print-prog-name=collect2`
9906 + if test -f "$collect2name" &&
9907 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9908 + then
9909 + # We have reworked collect2
9910 + :
9911 + else
9912 + # We have old collect2
9913 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
9914 + # It fails to find uninstalled libraries when the uninstalled
9915 + # path is not listed in the libpath. Setting hardcode_minus_L
9916 + # to unsupported forces relinking
9917 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
9918 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
9919 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
9920 + fi
9921 + esac
9922 + shared_flag='-shared'
9923 + if test "$aix_use_runtimelinking" = yes; then
9924 + shared_flag="$shared_flag "'${wl}-G'
9925 + fi
9926 + else
9927 + # not using gcc
9928 + if test "$host_cpu" = ia64; then
9929 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9930 + # chokes on -Wl,-G. The following line is correct:
9931 + shared_flag='-G'
9932 + else
9933 + if test "$aix_use_runtimelinking" = yes; then
9934 + shared_flag='${wl}-G'
9935 + else
9936 + shared_flag='${wl}-bM:SRE'
9937 + fi
9938 + fi
9939 + fi
9940 +
9941 + # It seems that -bexpall does not export symbols beginning with
9942 + # underscore (_), so it is better to generate a list of symbols to
9943 + # export.
9944 + _LT_TAGVAR(always_export_symbols, $1)=yes
9945 + if test "$aix_use_runtimelinking" = yes; then
9946 + # Warning - without using the other runtime loading flags (-brtl),
9947 + # -berok will link without error, but may produce a broken library.
9948 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
9949 + # Determine the default libpath from the value encoded in an empty
9950 + # executable.
9951 + _LT_SYS_MODULE_PATH_AIX
9952 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9953 +
9954 + _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"
9955 + else
9956 + if test "$host_cpu" = ia64; then
9957 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
9958 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
9959 + _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"
9960 + else
9961 + # Determine the default libpath from the value encoded in an
9962 + # empty executable.
9963 + _LT_SYS_MODULE_PATH_AIX
9964 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
9965 + # Warning - without using the other run time loading flags,
9966 + # -berok will link without error, but may produce a broken library.
9967 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
9968 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
9969 + # Exported symbols can be pulled into shared objects from archives
9970 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
9971 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
9972 + # This is similar to how AIX traditionally builds its shared
9973 + # libraries.
9974 + _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'
9975 + fi
9976 + fi
9977 + ;;
9978 +
9979 + beos*)
9980 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9981 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
9982 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9983 + # support --undefined. This deserves some investigation. FIXME
9984 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9985 else
9986 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9987 + _LT_TAGVAR(ld_shlibs, $1)=no
9988 fi
9989 ;;
9990 +
9991 chorus*)
9992 - case $cc_basename in
9993 - cxch68*)
9994 - # Green Hills C++ Compiler
9995 - # _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"
9996 + case $cc_basename in
9997 + *)
9998 + # FIXME: insert proper C++ library support
9999 + _LT_TAGVAR(ld_shlibs, $1)=no
10000 ;;
10001 - esac
10002 + esac
10003 + ;;
10004 +
10005 + cygwin* | mingw* | pw32*)
10006 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10007 + # as there is no search path for DLLs.
10008 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10009 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
10010 + _LT_TAGVAR(always_export_symbols, $1)=no
10011 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10012 +
10013 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10014 + _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'
10015 + # If the export-symbols file already is a .def file (1st line
10016 + # is EXPORTS), use it as is; otherwise, prepend...
10017 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10018 + cp $export_symbols $output_objdir/$soname.def;
10019 + else
10020 + echo EXPORTS > $output_objdir/$soname.def;
10021 + cat $export_symbols >> $output_objdir/$soname.def;
10022 + fi~
10023 + $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'
10024 + else
10025 + _LT_TAGVAR(ld_shlibs, $1)=no
10026 + fi
10027 + ;;
10028 + darwin* | rhapsody*)
10029 + _LT_DARWIN_LINKER_FEATURES($1)
10030 ;;
10031 - darwin*)
10032 - # PIC is the default on this platform
10033 - # Common symbols not allowed in MH_DYLIB files
10034 - case $cc_basename in
10035 - xlc*)
10036 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10037 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10038 - ;;
10039 - esac
10040 - ;;
10041 +
10042 dgux*)
10043 - case $cc_basename in
10044 - ec++*)
10045 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10046 + case $cc_basename in
10047 + ec++*)
10048 + # FIXME: insert proper C++ library support
10049 + _LT_TAGVAR(ld_shlibs, $1)=no
10050 ;;
10051 - ghcx*)
10052 + ghcx*)
10053 # Green Hills C++ Compiler
10054 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10055 + # FIXME: insert proper C++ library support
10056 + _LT_TAGVAR(ld_shlibs, $1)=no
10057 ;;
10058 - *)
10059 + *)
10060 + # FIXME: insert proper C++ library support
10061 + _LT_TAGVAR(ld_shlibs, $1)=no
10062 ;;
10063 - esac
10064 - ;;
10065 - freebsd* | kfreebsd*-gnu | dragonfly*)
10066 - # FreeBSD uses GNU C++
10067 - ;;
10068 - hpux9* | hpux10* | hpux11*)
10069 - case $cc_basename in
10070 - CC*)
10071 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10072 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10073 - if test "$host_cpu" != ia64; then
10074 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10075 - fi
10076 + esac
10077 + ;;
10078 +
10079 + freebsd[[12]]*)
10080 + # C++ shared libraries reported to be fairly broken before
10081 + # switch to ELF
10082 + _LT_TAGVAR(ld_shlibs, $1)=no
10083 + ;;
10084 +
10085 + freebsd-elf*)
10086 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10087 + ;;
10088 +
10089 + freebsd* | dragonfly*)
10090 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10091 + # conventions
10092 + _LT_TAGVAR(ld_shlibs, $1)=yes
10093 + ;;
10094 +
10095 + gnu*)
10096 + ;;
10097 +
10098 + hpux9*)
10099 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10100 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10101 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10102 + _LT_TAGVAR(hardcode_direct, $1)=yes
10103 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
10104 + # but as the default
10105 + # location of the library.
10106 +
10107 + case $cc_basename in
10108 + CC*)
10109 + # FIXME: insert proper C++ library support
10110 + _LT_TAGVAR(ld_shlibs, $1)=no
10111 + ;;
10112 + aCC*)
10113 + _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'
10114 + # Commands to make compiler produce verbose output that lists
10115 + # what "hidden" libraries, object files and flags are used when
10116 + # linking a shared library.
10117 + #
10118 + # There doesn't appear to be a way to prevent this compiler from
10119 + # explicitly linking system object files so we need to strip them
10120 + # from the output so that they don't get included in the library
10121 + # dependencies.
10122 + 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'
10123 + ;;
10124 + *)
10125 + if test "$GXX" = yes; then
10126 + _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'
10127 + else
10128 + # FIXME: insert proper C++ library support
10129 + _LT_TAGVAR(ld_shlibs, $1)=no
10130 + fi
10131 + ;;
10132 + esac
10133 + ;;
10134 +
10135 + hpux10*|hpux11*)
10136 + if test $with_gnu_ld = no; then
10137 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10138 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10139 +
10140 + case $host_cpu in
10141 + hppa*64*|ia64*)
10142 + ;;
10143 + *)
10144 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10145 + ;;
10146 + esac
10147 + fi
10148 + case $host_cpu in
10149 + hppa*64*|ia64*)
10150 + _LT_TAGVAR(hardcode_direct, $1)=no
10151 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10152 + ;;
10153 + *)
10154 + _LT_TAGVAR(hardcode_direct, $1)=yes
10155 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
10156 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
10157 + # but as the default
10158 + # location of the library.
10159 + ;;
10160 + esac
10161 +
10162 + case $cc_basename in
10163 + CC*)
10164 + # FIXME: insert proper C++ library support
10165 + _LT_TAGVAR(ld_shlibs, $1)=no
10166 ;;
10167 - aCC*)
10168 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10169 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10170 + aCC*)
10171 case $host_cpu in
10172 - hppa*64*|ia64*)
10173 - # +Z the default
10174 - ;;
10175 - *)
10176 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10177 - ;;
10178 + hppa*64*)
10179 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10180 + ;;
10181 + ia64*)
10182 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10183 + ;;
10184 + *)
10185 + _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'
10186 + ;;
10187 esac
10188 + # Commands to make compiler produce verbose output that lists
10189 + # what "hidden" libraries, object files and flags are used when
10190 + # linking a shared library.
10191 + #
10192 + # There doesn't appear to be a way to prevent this compiler from
10193 + # explicitly linking system object files so we need to strip them
10194 + # from the output so that they don't get included in the library
10195 + # dependencies.
10196 + 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'
10197 ;;
10198 - *)
10199 + *)
10200 + if test "$GXX" = yes; then
10201 + if test $with_gnu_ld = no; then
10202 + case $host_cpu in
10203 + hppa*64*)
10204 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10205 + ;;
10206 + ia64*)
10207 + _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'
10208 + ;;
10209 + *)
10210 + _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'
10211 + ;;
10212 + esac
10213 + fi
10214 + else
10215 + # FIXME: insert proper C++ library support
10216 + _LT_TAGVAR(ld_shlibs, $1)=no
10217 + fi
10218 ;;
10219 - esac
10220 - ;;
10221 - interix*)
10222 - # This is c89, which is MS Visual C++ (no shared libs)
10223 - # Anyone wants to do a port?
10224 - ;;
10225 - irix5* | irix6* | nonstopux*)
10226 - case $cc_basename in
10227 - CC*)
10228 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10229 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10230 - # CC pic flag -KPIC is the default.
10231 + esac
10232 + ;;
10233 +
10234 + interix[[3-9]]*)
10235 + _LT_TAGVAR(hardcode_direct, $1)=no
10236 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10237 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10238 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10239 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10240 + # Instead, shared libraries are loaded at an image base (0x10000000 by
10241 + # default) and relocated if they conflict, which is a slow very memory
10242 + # consuming and fragmenting process. To avoid this, we pick a random,
10243 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10244 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10245 + _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'
10246 + _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'
10247 + ;;
10248 + irix5* | irix6*)
10249 + case $cc_basename in
10250 + CC*)
10251 + # SGI C++
10252 + _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'
10253 +
10254 + # Archives containing C++ object files must be created using
10255 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10256 + # necessary to make sure instantiated templates are included
10257 + # in the archive.
10258 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
10259 ;;
10260 - *)
10261 + *)
10262 + if test "$GXX" = yes; then
10263 + if test "$with_gnu_ld" = no; then
10264 + _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'
10265 + else
10266 + _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'
10267 + fi
10268 + fi
10269 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10270 ;;
10271 - esac
10272 - ;;
10273 - linux*)
10274 - case $cc_basename in
10275 - KCC*)
10276 - # KAI C++ Compiler
10277 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10278 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10279 + esac
10280 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10281 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10282 + _LT_TAGVAR(inherit_rpath, $1)=yes
10283 + ;;
10284 +
10285 + linux* | k*bsd*-gnu)
10286 + case $cc_basename in
10287 + KCC*)
10288 + # Kuck and Associates, Inc. (KAI) C++ Compiler
10289 +
10290 + # KCC will only create a shared library if the output file
10291 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
10292 + # to its proper name (with version) after linking.
10293 + _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'
10294 + _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'
10295 + # Commands to make compiler produce verbose output that lists
10296 + # what "hidden" libraries, object files and flags are used when
10297 + # linking a shared library.
10298 + #
10299 + # There doesn't appear to be a way to prevent this compiler from
10300 + # explicitly linking system object files so we need to strip them
10301 + # from the output so that they don't get included in the library
10302 + # dependencies.
10303 + 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'
10304 +
10305 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10306 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10307 +
10308 + # Archives containing C++ object files must be created using
10309 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10310 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
10311 ;;
10312 - icpc* | ecpc*)
10313 + icpc* | ecpc* )
10314 # Intel C++
10315 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10316 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10317 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10318 - ;;
10319 - pgCC*)
10320 - # Portland Group C++ compiler.
10321 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10322 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
10323 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10324 - ;;
10325 - cxx*)
10326 - # Compaq C++
10327 - # Make sure the PIC flag is empty. It appears that all Alpha
10328 - # Linux and Compaq Tru64 Unix objects are PIC.
10329 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10330 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10331 + with_gnu_ld=yes
10332 + # version 8.0 and above of icpc choke on multiply defined symbols
10333 + # if we add $predep_objects and $postdep_objects, however 7.1 and
10334 + # earlier do not add the objects themselves.
10335 + case `$CC -V 2>&1` in
10336 + *"Version 7."*)
10337 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10338 + _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'
10339 + ;;
10340 + *) # Version 8.0 or newer
10341 + tmp_idyn=
10342 + case $host_cpu in
10343 + ia64*) tmp_idyn=' -i_dynamic';;
10344 + esac
10345 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10346 + _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'
10347 + ;;
10348 + esac
10349 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10350 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10351 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10352 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10353 ;;
10354 - *)
10355 - case `$CC -V 2>&1 | sed 5q` in
10356 - *Sun\ C*)
10357 - # Sun C++ 5.9
10358 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10359 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10360 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10361 + pgCC* | pgcpp*)
10362 + # Portland Group C++ compiler
10363 + case `$CC -V` in
10364 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
10365 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
10366 + rm -rf $tpldir~
10367 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
10368 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
10369 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
10370 + rm -rf $tpldir~
10371 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
10372 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
10373 + $RANLIB $oldlib'
10374 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
10375 + rm -rf $tpldir~
10376 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
10377 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10378 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
10379 + rm -rf $tpldir~
10380 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
10381 + $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'
10382 + ;;
10383 + *) # Version 6 will use weak symbols
10384 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10385 + _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'
10386 ;;
10387 esac
10388 - ;;
10389 - esac
10390 - ;;
10391 - lynxos*)
10392 - ;;
10393 - m88k*)
10394 - ;;
10395 - mvs*)
10396 - case $cc_basename in
10397 - cxx*)
10398 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
10399 - ;;
10400 - *)
10401 - ;;
10402 - esac
10403 - ;;
10404 - netbsd*)
10405 - ;;
10406 - osf3* | osf4* | osf5*)
10407 - case $cc_basename in
10408 - KCC*)
10409 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
10410 - ;;
10411 - RCC*)
10412 - # Rational C++ 2.4.1
10413 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10414 - ;;
10415 +
10416 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10417 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10418 + _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'
10419 + ;;
10420 cxx*)
10421 - # Digital/Compaq C++
10422 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10423 - # Make sure the PIC flag is empty. It appears that all Alpha
10424 - # Linux and Compaq Tru64 Unix objects are PIC.
10425 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10426 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10427 - ;;
10428 - *)
10429 - ;;
10430 - esac
10431 - ;;
10432 - psos*)
10433 - ;;
10434 - solaris*)
10435 - case $cc_basename in
10436 - CC*)
10437 - # Sun C++ 4.2, 5.x and Centerline C++
10438 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10439 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10440 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10441 - ;;
10442 - gcx*)
10443 - # Green Hills C++ Compiler
10444 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10445 - ;;
10446 - *)
10447 - ;;
10448 - esac
10449 - ;;
10450 - sunos4*)
10451 - case $cc_basename in
10452 - CC*)
10453 - # Sun C++ 4.x
10454 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10455 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10456 - ;;
10457 - lcc*)
10458 - # Lucid
10459 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10460 - ;;
10461 - *)
10462 + # Compaq C++
10463 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464 + _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'
10465 +
10466 + runpath_var=LD_RUN_PATH
10467 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10468 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10469 +
10470 + # Commands to make compiler produce verbose output that lists
10471 + # what "hidden" libraries, object files and flags are used when
10472 + # linking a shared library.
10473 + #
10474 + # There doesn't appear to be a way to prevent this compiler from
10475 + # explicitly linking system object files so we need to strip them
10476 + # from the output so that they don't get included in the library
10477 + # dependencies.
10478 + 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'
10479 ;;
10480 - esac
10481 - ;;
10482 - tandem*)
10483 - case $cc_basename in
10484 - NCC*)
10485 - # NonStop-UX NCC 3.20
10486 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10487 + xl*)
10488 + # IBM XL 8.0 on PPC, with GNU ld
10489 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10490 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10491 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492 + if test "x$supports_anon_versioning" = xyes; then
10493 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
10494 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10495 + echo "local: *; };" >> $output_objdir/$libname.ver~
10496 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10497 + fi
10498 ;;
10499 *)
10500 + case `$CC -V 2>&1 | sed 5q` in
10501 + *Sun\ C*)
10502 + # Sun C++ 5.9
10503 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10504 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10505 + _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'
10506 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10507 + _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'
10508 + _LT_TAGVAR(compiler_needs_object, $1)=yes
10509 +
10510 + # Not sure whether something based on
10511 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
10512 + # would be better.
10513 + output_verbose_link_cmd='echo'
10514 +
10515 + # Archives containing C++ object files must be created using
10516 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
10517 + # necessary to make sure instantiated templates are included
10518 + # in the archive.
10519 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10520 + ;;
10521 + esac
10522 ;;
10523 esac
10524 ;;
10525 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10526 - case $cc_basename in
10527 - CC*)
10528 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10529 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10530 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10531 +
10532 + lynxos*)
10533 + # FIXME: insert proper C++ library support
10534 + _LT_TAGVAR(ld_shlibs, $1)=no
10535 + ;;
10536 +
10537 + m88k*)
10538 + # FIXME: insert proper C++ library support
10539 + _LT_TAGVAR(ld_shlibs, $1)=no
10540 + ;;
10541 +
10542 + mvs*)
10543 + case $cc_basename in
10544 + cxx*)
10545 + # FIXME: insert proper C++ library support
10546 + _LT_TAGVAR(ld_shlibs, $1)=no
10547 + ;;
10548 + *)
10549 + # FIXME: insert proper C++ library support
10550 + _LT_TAGVAR(ld_shlibs, $1)=no
10551 ;;
10552 esac
10553 ;;
10554 - vxworks*)
10555 +
10556 + netbsd*)
10557 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10558 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10559 + wlarc=
10560 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10561 + _LT_TAGVAR(hardcode_direct, $1)=yes
10562 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10563 + fi
10564 + # Workaround some broken pre-1.5 toolchains
10565 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10566 ;;
10567 - *)
10568 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10569 +
10570 + *nto* | *qnx*)
10571 + _LT_TAGVAR(ld_shlibs, $1)=yes
10572 ;;
10573 - esac
10574 - fi
10575 -],
10576 -[
10577 - if test "$GCC" = yes; then
10578 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10579 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10580
10581 - case $host_os in
10582 - aix*)
10583 - # All AIX code is PIC.
10584 - if test "$host_cpu" = ia64; then
10585 - # AIX 5 now supports IA64 processor
10586 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10587 - fi
10588 - ;;
10589 + openbsd2*)
10590 + # C++ shared libraries are fairly broken
10591 + _LT_TAGVAR(ld_shlibs, $1)=no
10592 + ;;
10593 +
10594 + openbsd*)
10595 + if test -f /usr/libexec/ld.so; then
10596 + _LT_TAGVAR(hardcode_direct, $1)=yes
10597 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10598 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
10599 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10600 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10601 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10602 + _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'
10603 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10604 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10605 + fi
10606 + output_verbose_link_cmd=echo
10607 + else
10608 + _LT_TAGVAR(ld_shlibs, $1)=no
10609 + fi
10610 + ;;
10611
10612 - amigaos*)
10613 - # FIXME: we need at least 68020 code to build shared libraries, but
10614 - # adding the `-m68020' flag to GCC prevents building anything better,
10615 - # like `-m68040'.
10616 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
10617 - ;;
10618 + osf3* | osf4* | osf5*)
10619 + case $cc_basename in
10620 + KCC*)
10621 + # Kuck and Associates, Inc. (KAI) C++ Compiler
10622 +
10623 + # KCC will only create a shared library if the output file
10624 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
10625 + # to its proper name (with version) after linking.
10626 + _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'
10627 +
10628 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10629 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10630 +
10631 + # Archives containing C++ object files must be created using
10632 + # the KAI C++ compiler.
10633 + case $host in
10634 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
10635 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
10636 + esac
10637 + ;;
10638 + RCC*)
10639 + # Rational C++ 2.4.1
10640 + # FIXME: insert proper C++ library support
10641 + _LT_TAGVAR(ld_shlibs, $1)=no
10642 + ;;
10643 + cxx*)
10644 + case $host in
10645 + osf3*)
10646 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10647 + _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'
10648 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10649 + ;;
10650 + *)
10651 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
10652 + _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'
10653 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10654 + echo "-hidden">> $lib.exp~
10655 + $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~
10656 + $RM $lib.exp'
10657 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
10658 + ;;
10659 + esac
10660
10661 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10662 - # PIC is the default for these OSes.
10663 - ;;
10664 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10665
10666 - mingw* | cygwin* | pw32* | os2*)
10667 - # This hack is so that the source file can tell whether it is being
10668 - # built for inclusion in a dll (and should export symbols for example).
10669 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
10670 - # (--disable-auto-import) libraries
10671 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10672 - ;;
10673 + # Commands to make compiler produce verbose output that lists
10674 + # what "hidden" libraries, object files and flags are used when
10675 + # linking a shared library.
10676 + #
10677 + # There doesn't appear to be a way to prevent this compiler from
10678 + # explicitly linking system object files so we need to strip them
10679 + # from the output so that they don't get included in the library
10680 + # dependencies.
10681 + 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'
10682 + ;;
10683 + *)
10684 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10685 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
10686 + case $host in
10687 + osf3*)
10688 + _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'
10689 + ;;
10690 + *)
10691 + _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'
10692 + ;;
10693 + esac
10694 +
10695 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
10696 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
10697 +
10698 + # Commands to make compiler produce verbose output that lists
10699 + # what "hidden" libraries, object files and flags are used when
10700 + # linking a shared library.
10701 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10702 +
10703 + else
10704 + # FIXME: insert proper C++ library support
10705 + _LT_TAGVAR(ld_shlibs, $1)=no
10706 + fi
10707 + ;;
10708 + esac
10709 + ;;
10710
10711 - darwin* | rhapsody*)
10712 - # PIC is the default on this platform
10713 - # Common symbols not allowed in MH_DYLIB files
10714 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
10715 - ;;
10716 + psos*)
10717 + # FIXME: insert proper C++ library support
10718 + _LT_TAGVAR(ld_shlibs, $1)=no
10719 + ;;
10720
10721 - interix3*)
10722 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10723 - # Instead, we relocate shared libraries at runtime.
10724 - ;;
10725 + sunos4*)
10726 + case $cc_basename in
10727 + CC*)
10728 + # Sun C++ 4.x
10729 + # FIXME: insert proper C++ library support
10730 + _LT_TAGVAR(ld_shlibs, $1)=no
10731 + ;;
10732 + lcc*)
10733 + # Lucid
10734 + # FIXME: insert proper C++ library support
10735 + _LT_TAGVAR(ld_shlibs, $1)=no
10736 + ;;
10737 + *)
10738 + # FIXME: insert proper C++ library support
10739 + _LT_TAGVAR(ld_shlibs, $1)=no
10740 + ;;
10741 + esac
10742 + ;;
10743
10744 - msdosdjgpp*)
10745 - # Just because we use GCC doesn't mean we suddenly get shared libraries
10746 - # on systems that don't support them.
10747 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10748 - enable_shared=no
10749 - ;;
10750 + solaris*)
10751 + case $cc_basename in
10752 + CC*)
10753 + # Sun C++ 4.2, 5.x and Centerline C++
10754 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
10755 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10756 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10757 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10758 + $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'
10759 +
10760 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10761 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10762 + case $host_os in
10763 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10764 + *)
10765 + # The compiler driver will combine and reorder linker options,
10766 + # but understands `-z linker_flag'.
10767 + # Supported since Solaris 2.6 (maybe 2.5.1?)
10768 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
10769 + ;;
10770 + esac
10771 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10772
10773 - sysv4*MP*)
10774 - if test -d /usr/nec; then
10775 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
10776 - fi
10777 - ;;
10778 + output_verbose_link_cmd='echo'
10779
10780 - hpux*)
10781 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10782 - # not for PA HP-UX.
10783 - case $host_cpu in
10784 - hppa*64*|ia64*)
10785 - # +Z the default
10786 - ;;
10787 - *)
10788 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10789 - ;;
10790 - esac
10791 - ;;
10792 + # Archives containing C++ object files must be created using
10793 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
10794 + # necessary to make sure instantiated templates are included
10795 + # in the archive.
10796 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
10797 + ;;
10798 + gcx*)
10799 + # Green Hills C++ Compiler
10800 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10801
10802 - *)
10803 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
10804 - ;;
10805 - esac
10806 - else
10807 - # PORTME Check for flag to pass linker flags through the system compiler.
10808 - case $host_os in
10809 - aix*)
10810 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10811 - if test "$host_cpu" = ia64; then
10812 - # AIX 5 now supports IA64 processor
10813 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10814 - else
10815 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
10816 - fi
10817 - ;;
10818 - darwin*)
10819 - # PIC is the default on this platform
10820 - # Common symbols not allowed in MH_DYLIB files
10821 - case $cc_basename in
10822 - xlc*)
10823 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
10824 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10825 - ;;
10826 - esac
10827 - ;;
10828 + # The C++ compiler must be used to create the archive.
10829 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10830 + ;;
10831 + *)
10832 + # GNU C++ compiler with Solaris linker
10833 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10834 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
10835 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
10836 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10837 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10838 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10839 +
10840 + # Commands to make compiler produce verbose output that lists
10841 + # what "hidden" libraries, object files and flags are used when
10842 + # linking a shared library.
10843 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10844 + else
10845 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
10846 + # platform.
10847 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10848 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
10850 +
10851 + # Commands to make compiler produce verbose output that lists
10852 + # what "hidden" libraries, object files and flags are used when
10853 + # linking a shared library.
10854 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
10855 + fi
10856 +
10857 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
10858 + case $host_os in
10859 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10860 + *)
10861 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10862 + ;;
10863 + esac
10864 + fi
10865 + ;;
10866 + esac
10867 + ;;
10868
10869 - mingw* | cygwin* | pw32* | os2*)
10870 - # This hack is so that the source file can tell whether it is being
10871 - # built for inclusion in a dll (and should export symbols for example).
10872 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
10873 - # (--disable-auto-import) libraries
10874 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10875 - ;;
10876 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
10877 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10878 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10879 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10880 + runpath_var='LD_RUN_PATH'
10881
10882 - hpux9* | hpux10* | hpux11*)
10883 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10884 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10885 - # not for PA HP-UX.
10886 - case $host_cpu in
10887 - hppa*64*|ia64*)
10888 - # +Z the default
10889 - ;;
10890 - *)
10891 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
10892 - ;;
10893 + case $cc_basename in
10894 + CC*)
10895 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10897 + ;;
10898 + *)
10899 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10900 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 + ;;
10902 esac
10903 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
10904 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
10905 ;;
10906
10907 - irix5* | irix6* | nonstopux*)
10908 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10909 - # PIC (with -KPIC) is the default.
10910 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10911 - ;;
10912 + sysv5* | sco3.2v5* | sco5v6*)
10913 + # Note: We can NOT use -z defs as we might desire, because we do not
10914 + # link with -lc, and that would cause any symbols used from libc to
10915 + # always be unresolved, which means just about no library would
10916 + # ever link correctly. If we're not using GNU ld we use -z text
10917 + # though, which does catch some bad symbols but isn't as heavy-handed
10918 + # as -z defs.
10919 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
10920 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
10921 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10922 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
10923 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
10924 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
10925 + _LT_TAGVAR(link_all_deplibs, $1)=yes
10926 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
10927 + runpath_var='LD_RUN_PATH'
10928
10929 - newsos6)
10930 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10931 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10932 + case $cc_basename in
10933 + CC*)
10934 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10936 + ;;
10937 + *)
10938 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10940 + ;;
10941 + esac
10942 ;;
10943
10944 - linux*)
10945 - case $cc_basename in
10946 - icc* | ecc*)
10947 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10948 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10949 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10950 - ;;
10951 - pgcc* | pgf77* | pgf90* | pgf95*)
10952 - # Portland Group compilers (*not* the Pentium gcc compiler,
10953 - # which looks to be a dead project)
10954 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10955 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
10956 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10957 - ;;
10958 - ccc*)
10959 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10960 - # All Alpha code is PIC.
10961 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
10962 + tandem*)
10963 + case $cc_basename in
10964 + NCC*)
10965 + # NonStop-UX NCC 3.20
10966 + # FIXME: insert proper C++ library support
10967 + _LT_TAGVAR(ld_shlibs, $1)=no
10968 + ;;
10969 + *)
10970 + # FIXME: insert proper C++ library support
10971 + _LT_TAGVAR(ld_shlibs, $1)=no
10972 + ;;
10973 + esac
10974 ;;
10975 - como)
10976 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
10977 +
10978 + vxworks*)
10979 + # FIXME: insert proper C++ library support
10980 + _LT_TAGVAR(ld_shlibs, $1)=no
10981 ;;
10982 +
10983 *)
10984 - case `$CC -V 2>&1 | sed 5q` in
10985 - *Sun\ C*)
10986 - # Sun C 5.9
10987 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10988 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10989 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10990 - ;;
10991 - *Sun\ F*)
10992 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
10993 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10994 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10995 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
10996 - ;;
10997 - esac
10998 - ;;
10999 - esac
11000 - ;;
11001 + # FIXME: insert proper C++ library support
11002 + _LT_TAGVAR(ld_shlibs, $1)=no
11003 + ;;
11004 + esac
11005
11006 - osf3* | osf4* | osf5*)
11007 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11008 - # All OSF/1 code is PIC.
11009 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11010 - ;;
11011 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
11012 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
11013
11014 - solaris*)
11015 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11016 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11017 - case $cc_basename in
11018 - f77* | f90* | f95*)
11019 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
11020 - *)
11021 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
11022 - esac
11023 - ;;
11024 + _LT_TAGVAR(GCC, $1)="$GXX"
11025 + _LT_TAGVAR(LD, $1)="$LD"
11026 +
11027 + ## CAVEAT EMPTOR:
11028 + ## There is no encapsulation within the following macros, do not change
11029 + ## the running order or otherwise move them around unless you know exactly
11030 + ## what you are doing...
11031 + _LT_SYS_HIDDEN_LIBDEPS($1)
11032 + _LT_COMPILER_PIC($1)
11033 + _LT_COMPILER_C_O($1)
11034 + _LT_COMPILER_FILE_LOCKS($1)
11035 + _LT_LINKER_SHLIBS($1)
11036 + _LT_SYS_DYNAMIC_LINKER($1)
11037 + _LT_LINKER_HARDCODE_LIBPATH($1)
11038 +
11039 + _LT_CONFIG($1)
11040 + fi # test -n "$compiler"
11041 +
11042 + CC=$lt_save_CC
11043 + LDCXX=$LD
11044 + LD=$lt_save_LD
11045 + GCC=$lt_save_GCC
11046 + with_gnu_ld=$lt_save_with_gnu_ld
11047 + lt_cv_path_LDCXX=$lt_cv_path_LD
11048 + lt_cv_path_LD=$lt_save_path_LD
11049 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
11050 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
11051 +fi # test "$_lt_caught_CXX_error" != yes
11052 +
11053 +AC_LANG_POP
11054 +])# _LT_LANG_CXX_CONFIG
11055 +
11056 +
11057 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
11058 +# ---------------------------------
11059 +# Figure out "hidden" library dependencies from verbose
11060 +# compiler output when linking a shared library.
11061 +# Parse the compiler output and extract the necessary
11062 +# objects, libraries and library flags.
11063 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
11064 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
11065 +# Dependencies to place before and after the object being linked:
11066 +_LT_TAGVAR(predep_objects, $1)=
11067 +_LT_TAGVAR(postdep_objects, $1)=
11068 +_LT_TAGVAR(predeps, $1)=
11069 +_LT_TAGVAR(postdeps, $1)=
11070 +_LT_TAGVAR(compiler_lib_search_path, $1)=
11071 +
11072 +dnl we can't use the lt_simple_compile_test_code here,
11073 +dnl because it contains code intended for an executable,
11074 +dnl not a library. It's possible we should let each
11075 +dnl tag define a new lt_????_link_test_code variable,
11076 +dnl but it's only used here...
11077 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
11078 +int a;
11079 +void foo (void) { a = 0; }
11080 +_LT_EOF
11081 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
11082 +class Foo
11083 +{
11084 +public:
11085 + Foo (void) { a = 0; }
11086 +private:
11087 + int a;
11088 +};
11089 +_LT_EOF
11090 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
11091 + subroutine foo
11092 + implicit none
11093 + integer*4 a
11094 + a=0
11095 + return
11096 + end
11097 +_LT_EOF
11098 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
11099 + subroutine foo
11100 + implicit none
11101 + integer a
11102 + a=0
11103 + return
11104 + end
11105 +_LT_EOF
11106 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
11107 +public class foo {
11108 + private int a;
11109 + public void bar (void) {
11110 + a = 0;
11111 + }
11112 +};
11113 +_LT_EOF
11114 +])
11115 +dnl Parse the compiler output and extract the necessary
11116 +dnl objects, libraries and library flags.
11117 +if AC_TRY_EVAL(ac_compile); then
11118 + # Parse the compiler output and extract the necessary
11119 + # objects, libraries and library flags.
11120 +
11121 + # Sentinel used to keep track of whether or not we are before
11122 + # the conftest object file.
11123 + pre_test_object_deps_done=no
11124
11125 - sunos4*)
11126 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11127 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11128 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11129 - ;;
11130 + for p in `eval "$output_verbose_link_cmd"`; do
11131 + case $p in
11132
11133 - sysv4 | sysv4.2uw2* | sysv4.3*)
11134 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11135 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11136 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11137 - ;;
11138 + -L* | -R* | -l*)
11139 + # Some compilers place space between "-{L,R}" and the path.
11140 + # Remove the space.
11141 + if test $p = "-L" ||
11142 + test $p = "-R"; then
11143 + prev=$p
11144 + continue
11145 + else
11146 + prev=
11147 + fi
11148
11149 - sysv4*MP*)
11150 - if test -d /usr/nec ;then
11151 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
11152 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11153 - fi
11154 - ;;
11155 + if test "$pre_test_object_deps_done" = no; then
11156 + case $p in
11157 + -L* | -R*)
11158 + # Internal compiler library paths should come after those
11159 + # provided the user. The postdeps already come after the
11160 + # user supplied libs so there is no need to process them.
11161 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
11162 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
11163 + else
11164 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
11165 + fi
11166 + ;;
11167 + # The "-l" case would never come before the object being
11168 + # linked, so don't bother handling this case.
11169 + esac
11170 + else
11171 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
11172 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
11173 + else
11174 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
11175 + fi
11176 + fi
11177 + ;;
11178
11179 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11180 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11181 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11182 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11183 - ;;
11184 + *.$objext)
11185 + # This assumes that the test object file only shows up
11186 + # once in the compiler output.
11187 + if test "$p" = "conftest.$objext"; then
11188 + pre_test_object_deps_done=yes
11189 + continue
11190 + fi
11191
11192 - unicos*)
11193 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11194 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11195 - ;;
11196 + if test "$pre_test_object_deps_done" = no; then
11197 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
11198 + _LT_TAGVAR(predep_objects, $1)="$p"
11199 + else
11200 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
11201 + fi
11202 + else
11203 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
11204 + _LT_TAGVAR(postdep_objects, $1)="$p"
11205 + else
11206 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
11207 + fi
11208 + fi
11209 + ;;
11210
11211 - uts4*)
11212 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11213 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11214 - ;;
11215 + *) ;; # Ignore the rest.
11216
11217 - *)
11218 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11219 - ;;
11220 esac
11221 - fi
11222 -])
11223 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
11224 + done
11225
11226 -#
11227 -# Check to make sure the PIC flag actually works.
11228 -#
11229 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
11230 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
11231 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
11232 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
11233 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
11234 - "" | " "*) ;;
11235 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
11236 - esac],
11237 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11238 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
11239 + # Clean up.
11240 + rm -f a.out a.exe
11241 +else
11242 + echo "libtool.m4: error: problem compiling $1 test program"
11243 fi
11244 -case $host_os in
11245 - # For platforms which do not support PIC, -DPIC is meaningless:
11246 - *djgpp*)
11247 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11248 - ;;
11249 - *)
11250 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
11251 - ;;
11252 -esac
11253 -
11254 -#
11255 -# Check to make sure the static flag actually works.
11256 -#
11257 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
11258 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
11259 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
11260 - $lt_tmp_static_flag,
11261 - [],
11262 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
11263 -])
11264
11265 +$RM -f confest.$objext
11266
11267 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
11268 -# ------------------------------------
11269 -# See if the linker supports building shared libraries.
11270 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
11271 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11272 -ifelse([$1],[CXX],[
11273 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11274 - case $host_os in
11275 - aix4* | aix5*)
11276 - # If we're using GNU nm, then we don't want the "-C" option.
11277 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11278 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11279 - _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'
11280 - else
11281 - _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'
11282 - fi
11283 - ;;
11284 - pw32*)
11285 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11286 - ;;
11287 - cygwin* | mingw*)
11288 - _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'
11289 - ;;
11290 - *)
11291 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11292 +# PORTME: override above test on systems where it is broken
11293 +m4_if([$1], [CXX],
11294 +[case $host_os in
11295 +interix[[3-9]]*)
11296 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
11297 + # hack all around it, let's just trust "g++" to DTRT.
11298 + _LT_TAGVAR(predep_objects,$1)=
11299 + _LT_TAGVAR(postdep_objects,$1)=
11300 + _LT_TAGVAR(postdeps,$1)=
11301 ;;
11302 - esac
11303 -],[
11304 - runpath_var=
11305 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
11306 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11307 - _LT_AC_TAGVAR(archive_cmds, $1)=
11308 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
11309 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
11310 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
11311 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11312 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11313 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
11314 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11315 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11316 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11317 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11318 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
11319 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11320 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
11321 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
11322 - _LT_AC_TAGVAR(module_cmds, $1)=
11323 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
11324 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
11325 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11326 - # include_expsyms should be a list of space-separated symbols to be *always*
11327 - # included in the symbol list
11328 - _LT_AC_TAGVAR(include_expsyms, $1)=
11329 - # exclude_expsyms can be an extended regexp of symbols to exclude
11330 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
11331 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11332 - # as well as any symbol that contains `d'.
11333 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
11334 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11335 - # platforms (ab)use it in PIC code, but their linkers get confused if
11336 - # the symbol is explicitly referenced. Since portable code cannot
11337 - # rely on this symbol name, it's probably fine to never include it in
11338 - # preloaded symbol tables.
11339 - extract_expsyms_cmds=
11340 - # Just being paranoid about ensuring that cc_basename is set.
11341 - _LT_CC_BASENAME([$compiler])
11342 - case $host_os in
11343 - cygwin* | mingw* | pw32*)
11344 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
11345 - # When not using gcc, we currently assume that we are using
11346 - # Microsoft Visual C++.
11347 - if test "$GCC" != yes; then
11348 - with_gnu_ld=no
11349 - fi
11350 - ;;
11351 - interix*)
11352 - # we just hope/assume this is gcc and not c89 (= MSVC++)
11353 - with_gnu_ld=yes
11354 - ;;
11355 - openbsd*)
11356 - with_gnu_ld=no
11357 - ;;
11358 - esac
11359 -
11360 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11361 - if test "$with_gnu_ld" = yes; then
11362 - # If archive_cmds runs LD, not CC, wlarc should be empty
11363 - wlarc='${wl}'
11364 -
11365 - # Set some defaults for GNU ld with shared library support. These
11366 - # are reset later if shared libraries are not supported. Putting them
11367 - # here allows them to be overridden if necessary.
11368 - runpath_var=LD_RUN_PATH
11369 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
11370 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
11371 - # ancient GNU ld didn't support --whole-archive et. al.
11372 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
11373 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11374 - else
11375 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11376 - fi
11377 - supports_anon_versioning=no
11378 - case `$LD -v 2>/dev/null` in
11379 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
11380 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11381 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11382 - *\ 2.11.*) ;; # other 2.11 versions
11383 - *) supports_anon_versioning=yes ;;
11384 - esac
11385 -
11386 - # See if GNU ld supports shared libraries.
11387 - case $host_os in
11388 - aix3* | aix4* | aix5*)
11389 - # On AIX/PPC, the GNU linker is very broken
11390 - if test "$host_cpu" != ia64; then
11391 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11392 - cat <<EOF 1>&2
11393 -
11394 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11395 -*** to be unable to reliably create shared libraries on AIX.
11396 -*** Therefore, libtool is disabling shared libraries support. If you
11397 -*** really care for shared libraries, you may want to modify your PATH
11398 -*** so that a non-GNU linker is found, and then restart.
11399 -
11400 -EOF
11401 - fi
11402 - ;;
11403
11404 - amigaos*)
11405 - _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)'
11406 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11407 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11408 -
11409 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
11410 - # that the semantics of dynamic libraries on AmigaOS, at least up
11411 - # to version 4, is to share data among multiple programs linked
11412 - # with the same dynamic library. Since this doesn't match the
11413 - # behavior of shared libraries on other platforms, we can't use
11414 - # them.
11415 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11416 - ;;
11417 +linux*)
11418 + case `$CC -V 2>&1 | sed 5q` in
11419 + *Sun\ C*)
11420 + # Sun C++ 5.9
11421
11422 - beos*)
11423 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11424 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11425 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11426 - # support --undefined. This deserves some investigation. FIXME
11427 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11428 - else
11429 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11430 - fi
11431 + # The more standards-conforming stlport4 library is
11432 + # incompatible with the Cstd library. Avoid specifying
11433 + # it if it's in CXXFLAGS. Ignore libCrun as
11434 + # -library=stlport4 depends on it.
11435 + case " $CXX $CXXFLAGS " in
11436 + *" -library=stlport4 "*)
11437 + solaris_use_stlport4=yes
11438 ;;
11439 + esac
11440
11441 - cygwin* | mingw* | pw32*)
11442 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
11443 - # as there is no search path for DLLs.
11444 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11445 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11446 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
11447 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11448 - _LT_AC_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'
11449 -
11450 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11451 - _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'
11452 - # If the export-symbols file already is a .def file (1st line
11453 - # is EXPORTS), use it as is; otherwise, prepend...
11454 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11455 - cp $export_symbols $output_objdir/$soname.def;
11456 - else
11457 - echo EXPORTS > $output_objdir/$soname.def;
11458 - cat $export_symbols >> $output_objdir/$soname.def;
11459 - fi~
11460 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11461 - else
11462 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11463 - fi
11464 - ;;
11465 + if test "$solaris_use_stlport4" != yes; then
11466 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
11467 + fi
11468 + ;;
11469 + esac
11470 + ;;
11471
11472 - interix3*)
11473 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11474 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11475 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11476 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11477 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11478 - # Instead, shared libraries are loaded at an image base (0x10000000 by
11479 - # default) and relocated if they conflict, which is a slow very memory
11480 - # consuming and fragmenting process. To avoid this, we pick a random,
11481 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11482 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11483 - _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'
11484 - _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'
11485 +solaris*)
11486 + case $cc_basename in
11487 + CC*)
11488 + # The more standards-conforming stlport4 library is
11489 + # incompatible with the Cstd library. Avoid specifying
11490 + # it if it's in CXXFLAGS. Ignore libCrun as
11491 + # -library=stlport4 depends on it.
11492 + case " $CXX $CXXFLAGS " in
11493 + *" -library=stlport4 "*)
11494 + solaris_use_stlport4=yes
11495 ;;
11496 + esac
11497
11498 - linux*)
11499 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11500 - tmp_addflag=
11501 - case $cc_basename,$host_cpu in
11502 - pgcc*) # Portland Group C compiler
11503 - _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'
11504 - tmp_addflag=' $pic_flag'
11505 - ;;
11506 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11507 - _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'
11508 - tmp_addflag=' $pic_flag -Mnomain' ;;
11509 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11510 - tmp_addflag=' -i_dynamic' ;;
11511 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11512 - tmp_addflag=' -i_dynamic -nofor_main' ;;
11513 - ifc* | ifort*) # Intel Fortran compiler
11514 - tmp_addflag=' -nofor_main' ;;
11515 - esac
11516 - case `$CC -V 2>&1 | sed 5q` in
11517 - *Sun\ C*) # Sun C 5.9
11518 - _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 /dev/null'
11519 - tmp_sharedflag='-G' ;;
11520 - *Sun\ F*) # Sun Fortran 8.3
11521 - tmp_sharedflag='-G' ;;
11522 - *)
11523 - tmp_sharedflag='-shared' ;;
11524 - esac
11525 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11526 + # Adding this requires a known-good setup of shared libraries for
11527 + # Sun compiler versions before 5.6, else PIC objects from an old
11528 + # archive will be linked into the output, leading to subtle bugs.
11529 + if test "$solaris_use_stlport4" != yes; then
11530 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
11531 + fi
11532 + ;;
11533 + esac
11534 + ;;
11535 +esac
11536 +])
11537
11538 - if test $supports_anon_versioning = yes; then
11539 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11540 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11541 - $echo "local: *; };" >> $output_objdir/$libname.ver~
11542 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11543 - fi
11544 - else
11545 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11546 - fi
11547 - ;;
11548 +case " $_LT_TAGVAR(postdeps, $1) " in
11549 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
11550 +esac
11551 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
11552 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
11553 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11554 +fi
11555 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
11556 + [The directories searched by this compiler when creating a shared library])
11557 +_LT_TAGDECL([], [predep_objects], [1],
11558 + [Dependencies to place before and after the objects being linked to
11559 + create a shared library])
11560 +_LT_TAGDECL([], [postdep_objects], [1])
11561 +_LT_TAGDECL([], [predeps], [1])
11562 +_LT_TAGDECL([], [postdeps], [1])
11563 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
11564 + [The library search path used internally by the compiler when linking
11565 + a shared library])
11566 +])# _LT_SYS_HIDDEN_LIBDEPS
11567 +
11568 +
11569 +# _LT_PROG_F77
11570 +# ------------
11571 +# Since AC_PROG_F77 is broken, in that it returns the empty string
11572 +# if there is no fortran compiler, we have our own version here.
11573 +m4_defun([_LT_PROG_F77],
11574 +[
11575 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
11576 +AC_PROG_F77
11577 +if test -z "$F77" || test "X$F77" = "Xno"; then
11578 + _lt_disable_F77=yes
11579 +fi
11580 +popdef([AC_MSG_ERROR])
11581 +])# _LT_PROG_F77
11582
11583 - netbsd*)
11584 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11585 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11586 - wlarc=
11587 - else
11588 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11589 - _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'
11590 - fi
11591 - ;;
11592 +dnl aclocal-1.4 backwards compatibility:
11593 +dnl AC_DEFUN([_LT_PROG_F77], [])
11594
11595 - solaris*)
11596 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11597 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11598 - cat <<EOF 1>&2
11599
11600 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11601 -*** create shared libraries on Solaris systems. Therefore, libtool
11602 -*** is disabling shared libraries support. We urge you to upgrade GNU
11603 -*** binutils to release 2.9.1 or newer. Another option is to modify
11604 -*** your PATH or compiler configuration so that the native linker is
11605 -*** used, and then restart.
11606 +# _LT_LANG_F77_CONFIG([TAG])
11607 +# --------------------------
11608 +# Ensure that the configuration variables for a Fortran 77 compiler are
11609 +# suitably defined. These variables are subsequently used by _LT_CONFIG
11610 +# to write the compiler configuration to `libtool'.
11611 +m4_defun([_LT_LANG_F77_CONFIG],
11612 +[AC_REQUIRE([_LT_PROG_F77])dnl
11613 +AC_LANG_PUSH(Fortran 77)
11614
11615 -EOF
11616 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11617 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11618 - _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'
11619 - else
11620 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11621 - fi
11622 - ;;
11623 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11624 +_LT_TAGVAR(allow_undefined_flag, $1)=
11625 +_LT_TAGVAR(always_export_symbols, $1)=no
11626 +_LT_TAGVAR(archive_expsym_cmds, $1)=
11627 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
11628 +_LT_TAGVAR(hardcode_direct, $1)=no
11629 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
11630 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
11631 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11632 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
11633 +_LT_TAGVAR(hardcode_minus_L, $1)=no
11634 +_LT_TAGVAR(hardcode_automatic, $1)=no
11635 +_LT_TAGVAR(inherit_rpath, $1)=no
11636 +_LT_TAGVAR(module_cmds, $1)=
11637 +_LT_TAGVAR(module_expsym_cmds, $1)=
11638 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
11639 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11640 +_LT_TAGVAR(no_undefined_flag, $1)=
11641 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
11642 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11643
11644 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11645 - case `$LD -v 2>&1` in
11646 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
11647 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11648 - cat <<_LT_EOF 1>&2
11649 +# Source file extension for f77 test sources.
11650 +ac_ext=f
11651
11652 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11653 -*** reliably create shared libraries on SCO systems. Therefore, libtool
11654 -*** is disabling shared libraries support. We urge you to upgrade GNU
11655 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11656 -*** your PATH or compiler configuration so that the native linker is
11657 -*** used, and then restart.
11658 +# Object file extension for compiled f77 test sources.
11659 +objext=o
11660 +_LT_TAGVAR(objext, $1)=$objext
11661
11662 -_LT_EOF
11663 - ;;
11664 - *)
11665 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11666 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11667 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11668 - _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'
11669 - else
11670 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11671 - fi
11672 - ;;
11673 - esac
11674 - ;;
11675 +# No sense in running all these tests if we already determined that
11676 +# the F77 compiler isn't working. Some variables (like enable_shared)
11677 +# are currently assumed to apply to all compilers on this platform,
11678 +# and will be corrupted by setting them based on a non-working compiler.
11679 +if test "$_lt_disable_F77" != yes; then
11680 + # Code to be used in simple compile tests
11681 + lt_simple_compile_test_code="\
11682 + subroutine t
11683 + return
11684 + end
11685 +"
11686
11687 - sunos4*)
11688 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11689 - wlarc=
11690 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11691 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11692 - ;;
11693 + # Code to be used in simple link tests
11694 + lt_simple_link_test_code="\
11695 + program t
11696 + end
11697 +"
11698
11699 - *)
11700 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11701 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11702 - _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'
11703 - else
11704 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11705 - fi
11706 - ;;
11707 - esac
11708 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11709 + _LT_TAG_COMPILER
11710
11711 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
11712 - runpath_var=
11713 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11714 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11715 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11716 - fi
11717 - else
11718 - # PORTME fill in a description of your system's linker (not GNU ld)
11719 - case $host_os in
11720 - aix3*)
11721 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11722 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11723 - _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'
11724 - # Note: this linker hardcodes the directories in LIBPATH if there
11725 - # are no directories specified by -L.
11726 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11727 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11728 - # Neither direct hardcoding nor static linking is supported with a
11729 - # broken collect2.
11730 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11731 - fi
11732 - ;;
11733 + # save warnings/boilerplate of simple test code
11734 + _LT_COMPILER_BOILERPLATE
11735 + _LT_LINKER_BOILERPLATE
11736 +
11737 + # Allow CC to be a program name with arguments.
11738 + lt_save_CC="$CC"
11739 + lt_save_GCC=$GCC
11740 + CC=${F77-"f77"}
11741 + compiler=$CC
11742 + _LT_TAGVAR(compiler, $1)=$CC
11743 + _LT_CC_BASENAME([$compiler])
11744 + GCC=$G77
11745 + if test -n "$compiler"; then
11746 + AC_MSG_CHECKING([if libtool supports shared libraries])
11747 + AC_MSG_RESULT([$can_build_shared])
11748
11749 - aix4* | aix5*)
11750 - if test "$host_cpu" = ia64; then
11751 - # On IA64, the linker does run time linking by default, so we don't
11752 - # have to do anything special.
11753 - aix_use_runtimelinking=no
11754 - exp_sym_flag='-Bexport'
11755 - no_entry_flag=""
11756 - else
11757 - # If we're using GNU nm, then we don't want the "-C" option.
11758 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11759 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11760 - _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'
11761 - else
11762 - _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'
11763 + AC_MSG_CHECKING([whether to build shared libraries])
11764 + test "$can_build_shared" = "no" && enable_shared=no
11765 +
11766 + # On AIX, shared libraries and static libraries use the same namespace, and
11767 + # are all built from PIC.
11768 + case $host_os in
11769 + aix3*)
11770 + test "$enable_shared" = yes && enable_static=no
11771 + if test -n "$RANLIB"; then
11772 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
11773 + postinstall_cmds='$RANLIB $lib'
11774 + fi
11775 + ;;
11776 + aix[[4-9]]*)
11777 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11778 + test "$enable_shared" = yes && enable_static=no
11779 fi
11780 - aix_use_runtimelinking=no
11781 + ;;
11782 + esac
11783 + AC_MSG_RESULT([$enable_shared])
11784
11785 - # Test if we are trying to use run time linking or normal
11786 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11787 - # need to do runtime linking.
11788 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
11789 - for ld_flag in $LDFLAGS; do
11790 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11791 - aix_use_runtimelinking=yes
11792 - break
11793 - fi
11794 - done
11795 - ;;
11796 - esac
11797 + AC_MSG_CHECKING([whether to build static libraries])
11798 + # Make sure either enable_shared or enable_static is yes.
11799 + test "$enable_shared" = yes || enable_static=yes
11800 + AC_MSG_RESULT([$enable_static])
11801 +
11802 + _LT_TAGVAR(GCC, $1)="$G77"
11803 + _LT_TAGVAR(LD, $1)="$LD"
11804 +
11805 + ## CAVEAT EMPTOR:
11806 + ## There is no encapsulation within the following macros, do not change
11807 + ## the running order or otherwise move them around unless you know exactly
11808 + ## what you are doing...
11809 + _LT_COMPILER_PIC($1)
11810 + _LT_COMPILER_C_O($1)
11811 + _LT_COMPILER_FILE_LOCKS($1)
11812 + _LT_LINKER_SHLIBS($1)
11813 + _LT_SYS_DYNAMIC_LINKER($1)
11814 + _LT_LINKER_HARDCODE_LIBPATH($1)
11815 +
11816 + _LT_CONFIG($1)
11817 + fi # test -n "$compiler"
11818 +
11819 + GCC=$lt_save_GCC
11820 + CC="$lt_save_CC"
11821 +fi # test "$_lt_disable_F77" != yes
11822
11823 - exp_sym_flag='-bexport'
11824 - no_entry_flag='-bnoentry'
11825 - fi
11826 +AC_LANG_POP
11827 +])# _LT_LANG_F77_CONFIG
11828
11829 - # When large executables or shared objects are built, AIX ld can
11830 - # have problems creating the table of contents. If linking a library
11831 - # or program results in "error TOC overflow" add -mminimal-toc to
11832 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11833 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11834
11835 - _LT_AC_TAGVAR(archive_cmds, $1)=''
11836 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11837 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
11838 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11839 +# _LT_PROG_FC
11840 +# -----------
11841 +# Since AC_PROG_FC is broken, in that it returns the empty string
11842 +# if there is no fortran compiler, we have our own version here.
11843 +m4_defun([_LT_PROG_FC],
11844 +[
11845 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
11846 +AC_PROG_FC
11847 +if test -z "$FC" || test "X$FC" = "Xno"; then
11848 + _lt_disable_FC=yes
11849 +fi
11850 +popdef([AC_MSG_ERROR])
11851 +])# _LT_PROG_FC
11852
11853 - if test "$GCC" = yes; then
11854 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
11855 - # We only want to do this on AIX 4.2 and lower, the check
11856 - # below for broken collect2 doesn't work under 4.3+
11857 - collect2name=`${CC} -print-prog-name=collect2`
11858 - if test -f "$collect2name" && \
11859 - strings "$collect2name" | grep resolve_lib_name >/dev/null
11860 - then
11861 - # We have reworked collect2
11862 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11863 - else
11864 - # We have old collect2
11865 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11866 - # It fails to find uninstalled libraries when the uninstalled
11867 - # path is not listed in the libpath. Setting hardcode_minus_L
11868 - # to unsupported forces relinking
11869 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11870 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11871 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11872 - fi
11873 - ;;
11874 - esac
11875 - shared_flag='-shared'
11876 - if test "$aix_use_runtimelinking" = yes; then
11877 - shared_flag="$shared_flag "'${wl}-G'
11878 - fi
11879 - else
11880 - # not using gcc
11881 - if test "$host_cpu" = ia64; then
11882 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11883 - # chokes on -Wl,-G. The following line is correct:
11884 - shared_flag='-G'
11885 - else
11886 - if test "$aix_use_runtimelinking" = yes; then
11887 - shared_flag='${wl}-G'
11888 - else
11889 - shared_flag='${wl}-bM:SRE'
11890 - fi
11891 - fi
11892 - fi
11893 +dnl aclocal-1.4 backwards compatibility:
11894 +dnl AC_DEFUN([_LT_PROG_FC], [])
11895
11896 - # It seems that -bexpall does not export symbols beginning with
11897 - # underscore (_), so it is better to generate a list of symbols to export.
11898 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
11899 - if test "$aix_use_runtimelinking" = yes; then
11900 - # Warning - without using the other runtime loading flags (-brtl),
11901 - # -berok will link without error, but may produce a broken library.
11902 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
11903 - # Determine the default libpath from the value encoded in an empty executable.
11904 - _LT_AC_SYS_LIBPATH_AIX
11905 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11906 - _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"
11907 - else
11908 - if test "$host_cpu" = ia64; then
11909 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
11910 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
11911 - _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"
11912 - else
11913 - # Determine the default libpath from the value encoded in an empty executable.
11914 - _LT_AC_SYS_LIBPATH_AIX
11915 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
11916 - # Warning - without using the other run time loading flags,
11917 - # -berok will link without error, but may produce a broken library.
11918 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
11919 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
11920 - # Exported symbols can be pulled into shared objects from archives
11921 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
11922 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11923 - # This is similar to how AIX traditionally builds its shared libraries.
11924 - _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'
11925 - fi
11926 - fi
11927 - ;;
11928
11929 - amigaos*)
11930 - _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)'
11931 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11932 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11933 - # see comment about different semantics on the GNU ld section
11934 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11935 - ;;
11936 +# _LT_LANG_FC_CONFIG([TAG])
11937 +# -------------------------
11938 +# Ensure that the configuration variables for a Fortran compiler are
11939 +# suitably defined. These variables are subsequently used by _LT_CONFIG
11940 +# to write the compiler configuration to `libtool'.
11941 +m4_defun([_LT_LANG_FC_CONFIG],
11942 +[AC_REQUIRE([_LT_PROG_FC])dnl
11943 +AC_LANG_PUSH(Fortran)
11944 +
11945 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
11946 +_LT_TAGVAR(allow_undefined_flag, $1)=
11947 +_LT_TAGVAR(always_export_symbols, $1)=no
11948 +_LT_TAGVAR(archive_expsym_cmds, $1)=
11949 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
11950 +_LT_TAGVAR(hardcode_direct, $1)=no
11951 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
11952 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
11953 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11954 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
11955 +_LT_TAGVAR(hardcode_minus_L, $1)=no
11956 +_LT_TAGVAR(hardcode_automatic, $1)=no
11957 +_LT_TAGVAR(inherit_rpath, $1)=no
11958 +_LT_TAGVAR(module_cmds, $1)=
11959 +_LT_TAGVAR(module_expsym_cmds, $1)=
11960 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
11961 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
11962 +_LT_TAGVAR(no_undefined_flag, $1)=
11963 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
11964 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11965
11966 - bsdi[[45]]*)
11967 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
11968 - ;;
11969 +# Source file extension for fc test sources.
11970 +ac_ext=${ac_fc_srcext-f}
11971
11972 - cygwin* | mingw* | pw32*)
11973 - # When not using gcc, we currently assume that we are using
11974 - # Microsoft Visual C++.
11975 - # hardcode_libdir_flag_spec is actually meaningless, as there is
11976 - # no search path for DLLs.
11977 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
11978 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11979 - # Tell ltmain to make .lib files, not .a files.
11980 - libext=lib
11981 - # Tell ltmain to make .dll files, not .so files.
11982 - shrext_cmds=".dll"
11983 - # FIXME: Setting linknames here is a bad hack.
11984 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11985 - # The linker will automatically build a .lib file if we build a DLL.
11986 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11987 - # FIXME: Should let the user specify the lib program.
11988 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
11989 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
11990 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11991 - ;;
11992 +# Object file extension for compiled fc test sources.
11993 +objext=o
11994 +_LT_TAGVAR(objext, $1)=$objext
11995
11996 - darwin* | rhapsody*)
11997 - case $host_os in
11998 - rhapsody* | darwin1.[[012]])
11999 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
12000 - ;;
12001 - *) # Darwin 1.3 on
12002 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12003 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12004 - else
12005 - case ${MACOSX_DEPLOYMENT_TARGET} in
12006 - 10.[[012]])
12007 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12008 - ;;
12009 - 10.*)
12010 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
12011 - ;;
12012 - esac
12013 - fi
12014 - ;;
12015 - esac
12016 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12017 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12018 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
12019 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
12020 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
12021 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12022 - if test "$GCC" = yes ; then
12023 - output_verbose_link_cmd='echo'
12024 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12025 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12026 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12027 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12028 - _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}'
12029 - else
12030 - case $cc_basename in
12031 - xlc*)
12032 - output_verbose_link_cmd='echo'
12033 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12034 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12035 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12036 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12037 - _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}'
12038 - ;;
12039 - *)
12040 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12041 - ;;
12042 - esac
12043 - fi
12044 - ;;
12045 +# No sense in running all these tests if we already determined that
12046 +# the FC compiler isn't working. Some variables (like enable_shared)
12047 +# are currently assumed to apply to all compilers on this platform,
12048 +# and will be corrupted by setting them based on a non-working compiler.
12049 +if test "$_lt_disable_FC" != yes; then
12050 + # Code to be used in simple compile tests
12051 + lt_simple_compile_test_code="\
12052 + subroutine t
12053 + return
12054 + end
12055 +"
12056
12057 - dgux*)
12058 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12059 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12060 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12061 - ;;
12062 + # Code to be used in simple link tests
12063 + lt_simple_link_test_code="\
12064 + program t
12065 + end
12066 +"
12067
12068 - freebsd1*)
12069 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12070 - ;;
12071 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12072 + _LT_TAG_COMPILER
12073
12074 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12075 - # support. Future versions do this automatically, but an explicit c++rt0.o
12076 - # does not break anything, and helps significantly (at the cost of a little
12077 - # extra space).
12078 - freebsd2.2*)
12079 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12080 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12081 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12082 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12083 - ;;
12084 + # save warnings/boilerplate of simple test code
12085 + _LT_COMPILER_BOILERPLATE
12086 + _LT_LINKER_BOILERPLATE
12087 +
12088 + # Allow CC to be a program name with arguments.
12089 + lt_save_CC="$CC"
12090 + lt_save_GCC=$GCC
12091 + CC=${FC-"f95"}
12092 + compiler=$CC
12093 + GCC=$ac_cv_fc_compiler_gnu
12094
12095 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12096 - freebsd2*)
12097 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12098 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12099 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12100 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12101 - ;;
12102 + _LT_TAGVAR(compiler, $1)=$CC
12103 + _LT_CC_BASENAME([$compiler])
12104
12105 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12106 - freebsd* | kfreebsd*-gnu | dragonfly*)
12107 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12108 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12109 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12110 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12111 - ;;
12112 + if test -n "$compiler"; then
12113 + AC_MSG_CHECKING([if libtool supports shared libraries])
12114 + AC_MSG_RESULT([$can_build_shared])
12115
12116 - hpux9*)
12117 - if test "$GCC" = yes; then
12118 - _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'
12119 - else
12120 - _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'
12121 - fi
12122 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12123 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12124 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12125 + AC_MSG_CHECKING([whether to build shared libraries])
12126 + test "$can_build_shared" = "no" && enable_shared=no
12127
12128 - # hardcode_minus_L: Not really in the search PATH,
12129 - # but as the default location of the library.
12130 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12131 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12132 - ;;
12133 + # On AIX, shared libraries and static libraries use the same namespace, and
12134 + # are all built from PIC.
12135 + case $host_os in
12136 + aix3*)
12137 + test "$enable_shared" = yes && enable_static=no
12138 + if test -n "$RANLIB"; then
12139 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
12140 + postinstall_cmds='$RANLIB $lib'
12141 + fi
12142 + ;;
12143 + aix[[4-9]]*)
12144 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12145 + test "$enable_shared" = yes && enable_static=no
12146 + fi
12147 + ;;
12148 + esac
12149 + AC_MSG_RESULT([$enable_shared])
12150
12151 - hpux10*)
12152 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12153 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12154 - else
12155 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12156 - fi
12157 - if test "$with_gnu_ld" = no; then
12158 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12159 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12160 + AC_MSG_CHECKING([whether to build static libraries])
12161 + # Make sure either enable_shared or enable_static is yes.
12162 + test "$enable_shared" = yes || enable_static=yes
12163 + AC_MSG_RESULT([$enable_static])
12164 +
12165 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
12166 + _LT_TAGVAR(LD, $1)="$LD"
12167 +
12168 + ## CAVEAT EMPTOR:
12169 + ## There is no encapsulation within the following macros, do not change
12170 + ## the running order or otherwise move them around unless you know exactly
12171 + ## what you are doing...
12172 + _LT_SYS_HIDDEN_LIBDEPS($1)
12173 + _LT_COMPILER_PIC($1)
12174 + _LT_COMPILER_C_O($1)
12175 + _LT_COMPILER_FILE_LOCKS($1)
12176 + _LT_LINKER_SHLIBS($1)
12177 + _LT_SYS_DYNAMIC_LINKER($1)
12178 + _LT_LINKER_HARDCODE_LIBPATH($1)
12179 +
12180 + _LT_CONFIG($1)
12181 + fi # test -n "$compiler"
12182 +
12183 + GCC=$lt_save_GCC
12184 + CC="$lt_save_CC"
12185 +fi # test "$_lt_disable_FC" != yes
12186
12187 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12188 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12189 +AC_LANG_POP
12190 +])# _LT_LANG_FC_CONFIG
12191
12192 - # hardcode_minus_L: Not really in the search PATH,
12193 - # but as the default location of the library.
12194 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12195 - fi
12196 - ;;
12197
12198 - hpux11*)
12199 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12200 - case $host_cpu in
12201 - hppa*64*)
12202 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12203 - ;;
12204 - ia64*)
12205 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12206 - ;;
12207 - *)
12208 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12209 - ;;
12210 - esac
12211 - else
12212 - case $host_cpu in
12213 - hppa*64*)
12214 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12215 - ;;
12216 - ia64*)
12217 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12218 - ;;
12219 - *)
12220 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12221 - ;;
12222 - esac
12223 - fi
12224 - if test "$with_gnu_ld" = no; then
12225 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12226 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12227 +# _LT_LANG_GCJ_CONFIG([TAG])
12228 +# --------------------------
12229 +# Ensure that the configuration variables for the GNU Java Compiler compiler
12230 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
12231 +# to write the compiler configuration to `libtool'.
12232 +m4_defun([_LT_LANG_GCJ_CONFIG],
12233 +[AC_REQUIRE([LT_PROG_GCJ])dnl
12234 +AC_LANG_SAVE
12235
12236 - case $host_cpu in
12237 - hppa*64*|ia64*)
12238 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
12239 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12240 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12241 - ;;
12242 - *)
12243 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12244 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12245 +# Source file extension for Java test sources.
12246 +ac_ext=java
12247
12248 - # hardcode_minus_L: Not really in the search PATH,
12249 - # but as the default location of the library.
12250 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12251 - ;;
12252 - esac
12253 - fi
12254 - ;;
12255 +# Object file extension for compiled Java test sources.
12256 +objext=o
12257 +_LT_TAGVAR(objext, $1)=$objext
12258
12259 - irix5* | irix6* | nonstopux*)
12260 - if test "$GCC" = yes; then
12261 - _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'
12262 - else
12263 - _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'
12264 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
12265 - fi
12266 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12267 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12268 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12269 - ;;
12270 +# Code to be used in simple compile tests
12271 +lt_simple_compile_test_code="class foo {}"
12272
12273 - netbsd*)
12274 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12275 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12276 - else
12277 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12278 - fi
12279 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12280 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12281 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12282 - ;;
12283 +# Code to be used in simple link tests
12284 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
12285
12286 - newsos6)
12287 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12288 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12289 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12290 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12291 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12292 - ;;
12293 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12294 +_LT_TAG_COMPILER
12295 +
12296 +# save warnings/boilerplate of simple test code
12297 +_LT_COMPILER_BOILERPLATE
12298 +_LT_LINKER_BOILERPLATE
12299 +
12300 +# Allow CC to be a program name with arguments.
12301 +lt_save_CC="$CC"
12302 +lt_save_GCC=$GCC
12303 +GCC=yes
12304 +CC=${GCJ-"gcj"}
12305 +compiler=$CC
12306 +_LT_TAGVAR(compiler, $1)=$CC
12307 +_LT_TAGVAR(LD, $1)="$LD"
12308 +_LT_CC_BASENAME([$compiler])
12309
12310 - openbsd*)
12311 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12312 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12313 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12314 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12315 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12316 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12317 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12318 - else
12319 - case $host_os in
12320 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
12321 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12322 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12323 - ;;
12324 - *)
12325 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12326 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12327 - ;;
12328 - esac
12329 - fi
12330 - ;;
12331 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
12332 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
12333
12334 - os2*)
12335 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12336 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12337 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12338 - _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'
12339 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12340 - ;;
12341 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
12342
12343 - osf3*)
12344 - if test "$GCC" = yes; then
12345 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12346 - _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'
12347 - else
12348 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12349 - _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'
12350 - fi
12351 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12352 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12353 - ;;
12354 +## CAVEAT EMPTOR:
12355 +## There is no encapsulation within the following macros, do not change
12356 +## the running order or otherwise move them around unless you know exactly
12357 +## what you are doing...
12358 +if test -n "$compiler"; then
12359 + _LT_COMPILER_NO_RTTI($1)
12360 + _LT_COMPILER_PIC($1)
12361 + _LT_COMPILER_C_O($1)
12362 + _LT_COMPILER_FILE_LOCKS($1)
12363 + _LT_LINKER_SHLIBS($1)
12364 + _LT_LINKER_HARDCODE_LIBPATH($1)
12365
12366 - osf4* | osf5*) # as osf3* with the addition of -msym flag
12367 - if test "$GCC" = yes; then
12368 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12369 - _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'
12370 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12371 - else
12372 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12373 - _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'
12374 - _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~
12375 - $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'
12376 + _LT_CONFIG($1)
12377 +fi
12378
12379 - # Both c and cxx compiler support -rpath directly
12380 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
12381 - fi
12382 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12383 - ;;
12384 +AC_LANG_RESTORE
12385
12386 - solaris*)
12387 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
12388 - if test "$GCC" = yes; then
12389 - wlarc='${wl}'
12390 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12391 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12392 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12393 - else
12394 - wlarc=''
12395 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12396 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12397 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12398 - fi
12399 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12400 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12401 - case $host_os in
12402 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
12403 - *)
12404 - # The compiler driver will combine linker options so we
12405 - # cannot just pass the convience library names through
12406 - # without $wl, iff we do not link with $LD.
12407 - # Luckily, gcc supports the same syntax we need for Sun Studio.
12408 - # Supported since Solaris 2.6 (maybe 2.5.1?)
12409 - case $wlarc in
12410 - '')
12411 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
12412 - *)
12413 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
12414 - esac ;;
12415 - esac
12416 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12417 - ;;
12418 +GCC=$lt_save_GCC
12419 +CC="$lt_save_CC"
12420 +])# _LT_LANG_GCJ_CONFIG
12421
12422 - sunos4*)
12423 - if test "x$host_vendor" = xsequent; then
12424 - # Use $CC to link under sequent, because it throws in some extra .o
12425 - # files that make .init and .fini sections work.
12426 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12427 - else
12428 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12429 - fi
12430 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12431 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12432 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12433 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12434 - ;;
12435
12436 - sysv4)
12437 - case $host_vendor in
12438 - sni)
12439 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12440 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
12441 - ;;
12442 - siemens)
12443 - ## LD is ld it makes a PLAMLIB
12444 - ## CC just makes a GrossModule.
12445 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12446 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
12447 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12448 - ;;
12449 - motorola)
12450 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12451 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
12452 - ;;
12453 - esac
12454 - runpath_var='LD_RUN_PATH'
12455 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12456 - ;;
12457 +# _LT_LANG_RC_CONFIG([TAG])
12458 +# -------------------------
12459 +# Ensure that the configuration variables for the Windows resource compiler
12460 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
12461 +# to write the compiler configuration to `libtool'.
12462 +m4_defun([_LT_LANG_RC_CONFIG],
12463 +[AC_REQUIRE([LT_PROG_RC])dnl
12464 +AC_LANG_SAVE
12465
12466 - sysv4.3*)
12467 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12468 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12469 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
12470 - ;;
12471 +# Source file extension for RC test sources.
12472 +ac_ext=rc
12473
12474 - sysv4*MP*)
12475 - if test -d /usr/nec; then
12476 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12477 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12478 - runpath_var=LD_RUN_PATH
12479 - hardcode_runpath_var=yes
12480 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
12481 - fi
12482 - ;;
12483 +# Object file extension for compiled RC test sources.
12484 +objext=o
12485 +_LT_TAGVAR(objext, $1)=$objext
12486
12487 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
12488 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12489 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12490 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12491 - runpath_var='LD_RUN_PATH'
12492 +# Code to be used in simple compile tests
12493 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
12494
12495 - if test "$GCC" = yes; then
12496 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12497 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12498 - else
12499 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12500 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12501 - fi
12502 - ;;
12503 +# Code to be used in simple link tests
12504 +lt_simple_link_test_code="$lt_simple_compile_test_code"
12505
12506 - sysv5* | sco3.2v5* | sco5v6*)
12507 - # Note: We can NOT use -z defs as we might desire, because we do not
12508 - # link with -lc, and that would cause any symbols used from libc to
12509 - # always be unresolved, which means just about no library would
12510 - # ever link correctly. If we're not using GNU ld we use -z text
12511 - # though, which does catch some bad symbols but isn't as heavy-handed
12512 - # as -z defs.
12513 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12514 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
12515 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12516 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12517 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12518 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
12519 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12520 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
12521 - runpath_var='LD_RUN_PATH'
12522 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12523 +_LT_TAG_COMPILER
12524
12525 - if test "$GCC" = yes; then
12526 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12527 - _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'
12528 - else
12529 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12530 - _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'
12531 - fi
12532 - ;;
12533 +# save warnings/boilerplate of simple test code
12534 +_LT_COMPILER_BOILERPLATE
12535 +_LT_LINKER_BOILERPLATE
12536
12537 - uts4*)
12538 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12539 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12540 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12541 - ;;
12542 +# Allow CC to be a program name with arguments.
12543 +lt_save_CC="$CC"
12544 +lt_save_GCC=$GCC
12545 +GCC=
12546 +CC=${RC-"windres"}
12547 +compiler=$CC
12548 +_LT_TAGVAR(compiler, $1)=$CC
12549 +_LT_CC_BASENAME([$compiler])
12550 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
12551
12552 - *)
12553 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12554 - ;;
12555 - esac
12556 - fi
12557 -])
12558 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
12559 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
12560 +if test -n "$compiler"; then
12561 + :
12562 + _LT_CONFIG($1)
12563 +fi
12564
12565 -#
12566 -# Do we need to explicitly link libc?
12567 -#
12568 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
12569 -x|xyes)
12570 - # Assume -lc should be added
12571 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12572 +GCC=$lt_save_GCC
12573 +AC_LANG_RESTORE
12574 +CC="$lt_save_CC"
12575 +])# _LT_LANG_RC_CONFIG
12576
12577 - if test "$enable_shared" = yes && test "$GCC" = yes; then
12578 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
12579 - *'~'*)
12580 - # FIXME: we may have to deal with multi-command sequences.
12581 - ;;
12582 - '$CC '*)
12583 - # Test whether the compiler implicitly links with -lc since on some
12584 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
12585 - # to ld, don't add -lc before -lgcc.
12586 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
12587 - $rm conftest*
12588 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12589
12590 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
12591 - soname=conftest
12592 - lib=conftest
12593 - libobjs=conftest.$ac_objext
12594 - deplibs=
12595 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
12596 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
12597 - compiler_flags=-v
12598 - linker_flags=-v
12599 - verstring=
12600 - output_objdir=.
12601 - libname=conftest
12602 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
12603 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
12604 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
12605 - then
12606 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12607 - else
12608 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12609 - fi
12610 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
12611 - else
12612 - cat conftest.err 1>&5
12613 - fi
12614 - $rm conftest*
12615 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
12616 - ;;
12617 - esac
12618 - fi
12619 - ;;
12620 -esac
12621 -])# AC_LIBTOOL_PROG_LD_SHLIBS
12622 +# LT_PROG_GCJ
12623 +# -----------
12624 +AC_DEFUN([LT_PROG_GCJ],
12625 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
12626 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
12627 + [AC_CHECK_TOOL(GCJ, gcj,)
12628 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12629 + AC_SUBST(GCJFLAGS)])])[]dnl
12630 +])
12631
12632 +# Old name:
12633 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
12634 +dnl aclocal-1.4 backwards compatibility:
12635 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
12636
12637 -# _LT_AC_FILE_LTDLL_C
12638 -# -------------------
12639 -# Be careful that the start marker always follows a newline.
12640 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
12641 -# /* ltdll.c starts here */
12642 -# #define WIN32_LEAN_AND_MEAN
12643 -# #include <windows.h>
12644 -# #undef WIN32_LEAN_AND_MEAN
12645 -# #include <stdio.h>
12646 -#
12647 -# #ifndef __CYGWIN__
12648 -# # ifdef __CYGWIN32__
12649 -# # define __CYGWIN__ __CYGWIN32__
12650 -# # endif
12651 -# #endif
12652 -#
12653 -# #ifdef __cplusplus
12654 -# extern "C" {
12655 -# #endif
12656 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
12657 -# #ifdef __cplusplus
12658 -# }
12659 -# #endif
12660 -#
12661 -# #ifdef __CYGWIN__
12662 -# #include <cygwin/cygwin_dll.h>
12663 -# DECLARE_CYGWIN_DLL( DllMain );
12664 -# #endif
12665 -# HINSTANCE __hDllInstance_base;
12666 -#
12667 -# BOOL APIENTRY
12668 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
12669 -# {
12670 -# __hDllInstance_base = hInst;
12671 -# return TRUE;
12672 -# }
12673 -# /* ltdll.c ends here */
12674 -])# _LT_AC_FILE_LTDLL_C
12675
12676 +# LT_PROG_RC
12677 +# ----------
12678 +AC_DEFUN([LT_PROG_RC],
12679 +[AC_CHECK_TOOL(RC, windres,)
12680 +])
12681
12682 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
12683 -# ---------------------------------
12684 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
12685 +# Old name:
12686 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
12687 +dnl aclocal-1.4 backwards compatibility:
12688 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
12689
12690
12691 -# old names
12692 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
12693 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
12694 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
12695 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
12696 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
12697 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
12698 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
12699 -
12700 -# This is just to silence aclocal about the macro not being used
12701 -ifelse([AC_DISABLE_FAST_INSTALL])
12702 -
12703 -AC_DEFUN([LT_AC_PROG_GCJ],
12704 -[AC_CHECK_TOOL(GCJ, gcj, no)
12705 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12706 - AC_SUBST(GCJFLAGS)
12707 +# _LT_DECL_EGREP
12708 +# --------------
12709 +# If we don't have a new enough Autoconf to choose the best grep
12710 +# available, choose the one first in the user's PATH.
12711 +m4_defun([_LT_DECL_EGREP],
12712 +[AC_REQUIRE([AC_PROG_EGREP])dnl
12713 +AC_REQUIRE([AC_PROG_FGREP])dnl
12714 +test -z "$GREP" && GREP=grep
12715 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
12716 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
12717 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
12718 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
12719 +AC_SUBST([GREP])
12720 ])
12721
12722 -AC_DEFUN([LT_AC_PROG_RC],
12723 -[AC_CHECK_TOOL(RC, windres, no)
12724 -])
12725
12726 +# _LT_DECL_SED
12727 +# ------------
12728 +# Check for a fully-functional sed program, that truncates
12729 +# as few characters as possible. Prefer GNU sed if found.
12730 +m4_defun([_LT_DECL_SED],
12731 +[AC_PROG_SED
12732 +test -z "$SED" && SED=sed
12733 +Xsed="$SED -e 1s/^X//"
12734 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
12735 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
12736 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
12737 +])# _LT_DECL_SED
12738 +
12739 +m4_ifndef([AC_PROG_SED], [
12740 ############################################################
12741 # NOTE: This macro has been submitted for inclusion into #
12742 # GNU Autoconf as AC_PROG_SED. When it is available in #
12743 # a released version of Autoconf we should remove this #
12744 # macro and use it instead. #
12745 ############################################################
12746 -# LT_AC_PROG_SED
12747 -# --------------
12748 -# Check for a fully-functional sed program, that truncates
12749 -# as few characters as possible. Prefer GNU sed if found.
12750 -AC_DEFUN([LT_AC_PROG_SED],
12751 +
12752 +m4_defun([AC_PROG_SED],
12753 [AC_MSG_CHECKING([for a sed that does not truncate output])
12754 AC_CACHE_VAL(lt_cv_path_SED,
12755 [# Loop through the user's path and test for sed and gsed.
12756 @@ -6435,6 +7010,7 @@ do
12757 done
12758 done
12759 done
12760 +IFS=$as_save_IFS
12761 lt_ac_max=0
12762 lt_ac_count=0
12763 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12764 @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp
12765 done
12766 ])
12767 SED=$lt_cv_path_SED
12768 +AC_SUBST([SED])
12769 AC_MSG_RESULT([$SED])
12770 +])#AC_PROG_SED
12771 +])#m4_ifndef
12772 +
12773 +# Old name:
12774 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
12775 +dnl aclocal-1.4 backwards compatibility:
12776 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
12777 +
12778 +
12779 +# _LT_CHECK_SHELL_FEATURES
12780 +# ------------------------
12781 +# Find out whether the shell is Bourne or XSI compatible,
12782 +# or has some other useful features.
12783 +m4_defun([_LT_CHECK_SHELL_FEATURES],
12784 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
12785 +# Try some XSI features
12786 +xsi_shell=no
12787 +( _lt_dummy="a/b/c"
12788 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12789 + = c,a/b,, \
12790 + && eval 'test $(( 1 + 1 )) -eq 2 \
12791 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12792 + && xsi_shell=yes
12793 +AC_MSG_RESULT([$xsi_shell])
12794 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
12795 +
12796 +AC_MSG_CHECKING([whether the shell understands "+="])
12797 +lt_shell_append=no
12798 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
12799 + >/dev/null 2>&1 \
12800 + && lt_shell_append=yes
12801 +AC_MSG_RESULT([$lt_shell_append])
12802 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
12803 +
12804 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12805 + lt_unset=unset
12806 +else
12807 + lt_unset=false
12808 +fi
12809 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
12810 +
12811 +# test EBCDIC or ASCII
12812 +case `echo X|tr X '\101'` in
12813 + A) # ASCII based system
12814 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12815 + lt_SP2NL='tr \040 \012'
12816 + lt_NL2SP='tr \015\012 \040\040'
12817 + ;;
12818 + *) # EBCDIC based system
12819 + lt_SP2NL='tr \100 \n'
12820 + lt_NL2SP='tr \r\n \100\100'
12821 + ;;
12822 +esac
12823 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
12824 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
12825 +])# _LT_CHECK_SHELL_FEATURES
12826 +
12827 +
12828 +# _LT_PROG_XSI_SHELLFNS
12829 +# ---------------------
12830 +# Bourne and XSI compatible variants of some useful shell functions.
12831 +m4_defun([_LT_PROG_XSI_SHELLFNS],
12832 +[case $xsi_shell in
12833 + yes)
12834 + cat << \_LT_EOF >> "$cfgfile"
12835 +
12836 +# func_dirname file append nondir_replacement
12837 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12838 +# otherwise set result to NONDIR_REPLACEMENT.
12839 +func_dirname ()
12840 +{
12841 + case ${1} in
12842 + */*) func_dirname_result="${1%/*}${2}" ;;
12843 + * ) func_dirname_result="${3}" ;;
12844 + esac
12845 +}
12846 +
12847 +# func_basename file
12848 +func_basename ()
12849 +{
12850 + func_basename_result="${1##*/}"
12851 +}
12852 +
12853 +# func_dirname_and_basename file append nondir_replacement
12854 +# perform func_basename and func_dirname in a single function
12855 +# call:
12856 +# dirname: Compute the dirname of FILE. If nonempty,
12857 +# add APPEND to the result, otherwise set result
12858 +# to NONDIR_REPLACEMENT.
12859 +# value returned in "$func_dirname_result"
12860 +# basename: Compute filename of FILE.
12861 +# value retuned in "$func_basename_result"
12862 +# Implementation must be kept synchronized with func_dirname
12863 +# and func_basename. For efficiency, we do not delegate to
12864 +# those functions but instead duplicate the functionality here.
12865 +func_dirname_and_basename ()
12866 +{
12867 + case ${1} in
12868 + */*) func_dirname_result="${1%/*}${2}" ;;
12869 + * ) func_dirname_result="${3}" ;;
12870 + esac
12871 + func_basename_result="${1##*/}"
12872 +}
12873 +
12874 +# func_stripname prefix suffix name
12875 +# strip PREFIX and SUFFIX off of NAME.
12876 +# PREFIX and SUFFIX must not contain globbing or regex special
12877 +# characters, hashes, percent signs, but SUFFIX may contain a leading
12878 +# dot (in which case that matches only a dot).
12879 +func_stripname ()
12880 +{
12881 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12882 + # positional parameters, so assign one to ordinary parameter first.
12883 + func_stripname_result=${3}
12884 + func_stripname_result=${func_stripname_result#"${1}"}
12885 + func_stripname_result=${func_stripname_result%"${2}"}
12886 +}
12887 +
12888 +# func_opt_split
12889 +func_opt_split ()
12890 +{
12891 + func_opt_split_opt=${1%%=*}
12892 + func_opt_split_arg=${1#*=}
12893 +}
12894 +
12895 +# func_lo2o object
12896 +func_lo2o ()
12897 +{
12898 + case ${1} in
12899 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12900 + *) func_lo2o_result=${1} ;;
12901 + esac
12902 +}
12903 +
12904 +# func_xform libobj-or-source
12905 +func_xform ()
12906 +{
12907 + func_xform_result=${1%.*}.lo
12908 +}
12909 +
12910 +# func_arith arithmetic-term...
12911 +func_arith ()
12912 +{
12913 + func_arith_result=$(( $[*] ))
12914 +}
12915 +
12916 +# func_len string
12917 +# STRING may not start with a hyphen.
12918 +func_len ()
12919 +{
12920 + func_len_result=${#1}
12921 +}
12922 +
12923 +_LT_EOF
12924 + ;;
12925 + *) # Bourne compatible functions.
12926 + cat << \_LT_EOF >> "$cfgfile"
12927 +
12928 +# func_dirname file append nondir_replacement
12929 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12930 +# otherwise set result to NONDIR_REPLACEMENT.
12931 +func_dirname ()
12932 +{
12933 + # Extract subdirectory from the argument.
12934 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
12935 + if test "X$func_dirname_result" = "X${1}"; then
12936 + func_dirname_result="${3}"
12937 + else
12938 + func_dirname_result="$func_dirname_result${2}"
12939 + fi
12940 +}
12941 +
12942 +# func_basename file
12943 +func_basename ()
12944 +{
12945 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
12946 +}
12947 +
12948 +dnl func_dirname_and_basename
12949 +dnl A portable version of this function is already defined in general.m4sh
12950 +dnl so there is no need for it here.
12951 +
12952 +# func_stripname prefix suffix name
12953 +# strip PREFIX and SUFFIX off of NAME.
12954 +# PREFIX and SUFFIX must not contain globbing or regex special
12955 +# characters, hashes, percent signs, but SUFFIX may contain a leading
12956 +# dot (in which case that matches only a dot).
12957 +# func_strip_suffix prefix name
12958 +func_stripname ()
12959 +{
12960 + case ${2} in
12961 + .*) func_stripname_result=`$ECHO "X${3}" \
12962 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
12963 + *) func_stripname_result=`$ECHO "X${3}" \
12964 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
12965 + esac
12966 +}
12967 +
12968 +# sed scripts:
12969 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
12970 +my_sed_long_arg='1s/^-[[^=]]*=//'
12971 +
12972 +# func_opt_split
12973 +func_opt_split ()
12974 +{
12975 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
12976 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
12977 +}
12978 +
12979 +# func_lo2o object
12980 +func_lo2o ()
12981 +{
12982 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
12983 +}
12984 +
12985 +# func_xform libobj-or-source
12986 +func_xform ()
12987 +{
12988 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
12989 +}
12990 +
12991 +# func_arith arithmetic-term...
12992 +func_arith ()
12993 +{
12994 + func_arith_result=`expr "$[@]"`
12995 +}
12996 +
12997 +# func_len string
12998 +# STRING may not start with a hyphen.
12999 +func_len ()
13000 +{
13001 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
13002 +}
13003 +
13004 +_LT_EOF
13005 +esac
13006 +
13007 +case $lt_shell_append in
13008 + yes)
13009 + cat << \_LT_EOF >> "$cfgfile"
13010 +
13011 +# func_append var value
13012 +# Append VALUE to the end of shell variable VAR.
13013 +func_append ()
13014 +{
13015 + eval "$[1]+=\$[2]"
13016 +}
13017 +_LT_EOF
13018 + ;;
13019 + *)
13020 + cat << \_LT_EOF >> "$cfgfile"
13021 +
13022 +# func_append var value
13023 +# Append VALUE to the end of shell variable VAR.
13024 +func_append ()
13025 +{
13026 + eval "$[1]=\$$[1]\$[2]"
13027 +}
13028 +
13029 +_LT_EOF
13030 + ;;
13031 + esac
13032 ])
13033 Index: libiconv-1.12/m4/libtool.m4
13034 ===================================================================
13035 --- libiconv-1.12.orig/m4/libtool.m4 2007-10-27 02:46:10.000000000 +0200
13036 +++ libiconv-1.12/m4/libtool.m4 2008-06-06 23:00:22.883921710 +0200
13037 @@ -1,107 +1,186 @@
13038 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
13039 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
13040 -## Free Software Foundation, Inc.
13041 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13042 -##
13043 -## This file is free software; the Free Software Foundation gives
13044 -## unlimited permission to copy and/or distribute it, with or without
13045 -## modifications, as long as this notice is preserved.
13046 -
13047 -# serial 48 AC_PROG_LIBTOOL
13048 -
13049 -
13050 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
13051 -# -----------------------------------------------------------
13052 -# If this macro is not defined by Autoconf, define it here.
13053 -m4_ifdef([AC_PROVIDE_IFELSE],
13054 - [],
13055 - [m4_define([AC_PROVIDE_IFELSE],
13056 - [m4_ifdef([AC_PROVIDE_$1],
13057 - [$2], [$3])])])
13058 +#
13059 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13060 +# 2006, 2007, 2008 Free Software Foundation, Inc.
13061 +# Written by Gordon Matzigkeit, 1996
13062 +#
13063 +# This file is free software; the Free Software Foundation gives
13064 +# unlimited permission to copy and/or distribute it, with or without
13065 +# modifications, as long as this notice is preserved.
13066 +
13067 +m4_define([_LT_COPYING], [dnl
13068 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13069 +# 2006, 2007, 2008 Free Software Foundation, Inc.
13070 +# Written by Gordon Matzigkeit, 1996
13071 +#
13072 +# This file is part of GNU Libtool.
13073 +#
13074 +# GNU Libtool is free software; you can redistribute it and/or
13075 +# modify it under the terms of the GNU General Public License as
13076 +# published by the Free Software Foundation; either version 2 of
13077 +# the License, or (at your option) any later version.
13078 +#
13079 +# As a special exception to the GNU General Public License,
13080 +# if you distribute this file as part of a program or library that
13081 +# is built using GNU Libtool, you may include this file under the
13082 +# same distribution terms that you use for the rest of that program.
13083 +#
13084 +# GNU Libtool is distributed in the hope that it will be useful,
13085 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
13086 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13087 +# GNU General Public License for more details.
13088 +#
13089 +# You should have received a copy of the GNU General Public License
13090 +# along with GNU Libtool; see the file COPYING. If not, a copy
13091 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13092 +# obtained by writing to the Free Software Foundation, Inc.,
13093 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13094 +])
13095
13096 +# serial 56 LT_INIT
13097
13098 -# AC_PROG_LIBTOOL
13099 -# ---------------
13100 -AC_DEFUN([AC_PROG_LIBTOOL],
13101 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
13102 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
13103 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
13104 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
13105 - [AC_LIBTOOL_CXX],
13106 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
13107 - ])])
13108 -dnl And a similar setup for Fortran 77 support
13109 - AC_PROVIDE_IFELSE([AC_PROG_F77],
13110 - [AC_LIBTOOL_F77],
13111 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
13112 -])])
13113 -
13114 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
13115 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
13116 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
13117 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
13118 - [AC_LIBTOOL_GCJ],
13119 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
13120 - [AC_LIBTOOL_GCJ],
13121 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
13122 - [AC_LIBTOOL_GCJ],
13123 - [ifdef([AC_PROG_GCJ],
13124 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
13125 - ifdef([A][M_PROG_GCJ],
13126 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
13127 - ifdef([LT_AC_PROG_GCJ],
13128 - [define([LT_AC_PROG_GCJ],
13129 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
13130 -])])# AC_PROG_LIBTOOL
13131
13132 +# LT_PREREQ(VERSION)
13133 +# ------------------
13134 +# Complain and exit if this libtool version is less that VERSION.
13135 +m4_defun([LT_PREREQ],
13136 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
13137 + [m4_default([$3],
13138 + [m4_fatal([Libtool version $1 or higher is required],
13139 + 63)])],
13140 + [$2])])
13141
13142 -# _AC_PROG_LIBTOOL
13143 -# ----------------
13144 -AC_DEFUN([_AC_PROG_LIBTOOL],
13145 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
13146 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
13147 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
13148 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
13149 +
13150 +# _LT_CHECK_BUILDDIR
13151 +# ------------------
13152 +# Complain if the absolute build directory name contains unusual characters
13153 +m4_defun([_LT_CHECK_BUILDDIR],
13154 +[case `pwd` in
13155 + *\ * | *\ *)
13156 + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
13157 +esac
13158 +])
13159 +
13160 +
13161 +# LT_INIT([OPTIONS])
13162 +# ------------------
13163 +AC_DEFUN([LT_INIT],
13164 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
13165 +AC_BEFORE([$0], [LT_LANG])dnl
13166 +AC_BEFORE([$0], [LT_OUTPUT])dnl
13167 +AC_BEFORE([$0], [LTDL_INIT])dnl
13168 +m4_require([_LT_CHECK_BUILDDIR])dnl
13169 +
13170 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
13171 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
13172 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
13173 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
13174 +dnl unless we require an AC_DEFUNed macro:
13175 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
13176 +AC_REQUIRE([LTSUGAR_VERSION])dnl
13177 +AC_REQUIRE([LTVERSION_VERSION])dnl
13178 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
13179 +m4_require([_LT_PROG_LTMAIN])dnl
13180 +
13181 +dnl Parse OPTIONS
13182 +_LT_SET_OPTIONS([$0], [$1])
13183
13184 # This can be used to rebuild libtool when needed
13185 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13186 +LIBTOOL_DEPS="$ltmain"
13187
13188 # Always use our own libtool.
13189 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13190 +LIBTOOL='$(SHELL) $(top_builddir)'
13191 +LIBTOOL="$LIBTOOL/$host_alias-libtool"
13192 AC_SUBST(LIBTOOL)dnl
13193
13194 -# Prevent multiple expansion
13195 -define([AC_PROG_LIBTOOL], [])
13196 -])# _AC_PROG_LIBTOOL
13197 +_LT_SETUP
13198
13199 +# Only expand once:
13200 +m4_define([LT_INIT])
13201 +])# LT_INIT
13202 +
13203 +# Old names:
13204 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
13205 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
13206 +dnl aclocal-1.4 backwards compatibility:
13207 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
13208 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
13209
13210 -# AC_LIBTOOL_SETUP
13211 -# ----------------
13212 -AC_DEFUN([AC_LIBTOOL_SETUP],
13213 -[AC_PREREQ(2.50)dnl
13214 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
13215 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
13216 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
13217 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
13218 +
13219 +# _LT_CC_BASENAME(CC)
13220 +# -------------------
13221 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13222 +m4_defun([_LT_CC_BASENAME],
13223 +[for cc_temp in $1""; do
13224 + case $cc_temp in
13225 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
13226 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
13227 + \-*) ;;
13228 + *) break;;
13229 + esac
13230 +done
13231 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13232 +])
13233 +
13234 +
13235 +# _LT_FILEUTILS_DEFAULTS
13236 +# ----------------------
13237 +# It is okay to use these file commands and assume they have been set
13238 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
13239 +m4_defun([_LT_FILEUTILS_DEFAULTS],
13240 +[: ${CP="cp -f"}
13241 +: ${MV="mv -f"}
13242 +: ${RM="rm -f"}
13243 +])# _LT_FILEUTILS_DEFAULTS
13244 +
13245 +
13246 +# _LT_SETUP
13247 +# ---------
13248 +m4_defun([_LT_SETUP],
13249 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
13250 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
13251 +_LT_DECL([], [host_alias], [0], [The host system])dnl
13252 +_LT_DECL([], [host], [0])dnl
13253 +_LT_DECL([], [host_os], [0])dnl
13254 +dnl
13255 +_LT_DECL([], [build_alias], [0], [The build system])dnl
13256 +_LT_DECL([], [build], [0])dnl
13257 +_LT_DECL([], [build_os], [0])dnl
13258 +dnl
13259 AC_REQUIRE([AC_PROG_CC])dnl
13260 -AC_REQUIRE([AC_PROG_LD])dnl
13261 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
13262 -AC_REQUIRE([AC_PROG_NM])dnl
13263 -
13264 +AC_REQUIRE([LT_PATH_LD])dnl
13265 +AC_REQUIRE([LT_PATH_NM])dnl
13266 +dnl
13267 AC_REQUIRE([AC_PROG_LN_S])dnl
13268 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
13269 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13270 -AC_REQUIRE([AC_OBJEXT])dnl
13271 -AC_REQUIRE([AC_EXEEXT])dnl
13272 +test -z "$LN_S" && LN_S="ln -s"
13273 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
13274 dnl
13275 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
13276 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
13277 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
13278 +dnl
13279 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13280 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
13281 +m4_require([_LT_CMD_RELOAD])dnl
13282 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
13283 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
13284 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
13285 +
13286 +_LT_CONFIG_LIBTOOL_INIT([
13287 +# See if we are running on zsh, and set the options which allow our
13288 +# commands through without removal of \ escapes INIT.
13289 +if test -n "\${ZSH_VERSION+set}" ; then
13290 + setopt NO_GLOB_SUBST
13291 +fi
13292 +])
13293 +if test -n "${ZSH_VERSION+set}" ; then
13294 + setopt NO_GLOB_SUBST
13295 +fi
13296
13297 -AC_LIBTOOL_SYS_MAX_CMD_LEN
13298 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
13299 -AC_LIBTOOL_OBJDIR
13300 +_LT_CHECK_OBJDIR
13301
13302 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
13303 -_LT_AC_PROG_ECHO_BACKSLASH
13304 +m4_require([_LT_TAG_COMPILER])dnl
13305 +_LT_PROG_ECHO_BACKSLASH
13306
13307 case $host_os in
13308 aix3*)
13309 @@ -117,6307 +196,6803 @@ esac
13310
13311 # Sed substitution that helps us do robust quoting. It backslashifies
13312 # metacharacters that are still active within double-quoted strings.
13313 -Xsed='sed -e 1s/^X//'
13314 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
13315 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
13316
13317 # Same as above, but do not quote variable references.
13318 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
13319 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
13320
13321 # Sed substitution to delay expansion of an escaped shell variable in a
13322 # double_quote_subst'ed string.
13323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13324
13325 +# Sed substitution to delay expansion of an escaped single quote.
13326 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13327 +
13328 # Sed substitution to avoid accidental globbing in evaled expressions
13329 no_glob_subst='s/\*/\\\*/g'
13330
13331 -# Constants:
13332 -rm="rm -f"
13333 -
13334 # Global variables:
13335 -default_ofile=libtool
13336 +ofile=${host_alias}-libtool
13337 can_build_shared=yes
13338
13339 # All known linkers require a `.a' archive for static linking (except MSVC,
13340 # which needs '.lib').
13341 libext=a
13342 -ltmain="$ac_aux_dir/ltmain.sh"
13343 -ofile="$default_ofile"
13344 -with_gnu_ld="$lt_cv_prog_gnu_ld"
13345
13346 -AC_CHECK_TOOL(AR, ar, false)
13347 -AC_CHECK_TOOL(RANLIB, ranlib, :)
13348 -AC_CHECK_TOOL(STRIP, strip, :)
13349 +with_gnu_ld="$lt_cv_prog_gnu_ld"
13350
13351 old_CC="$CC"
13352 old_CFLAGS="$CFLAGS"
13353
13354 # Set sane defaults for various variables
13355 -test -z "$AR" && AR=ar
13356 -test -z "$AR_FLAGS" && AR_FLAGS=cru
13357 -test -z "$AS" && AS=as
13358 test -z "$CC" && CC=cc
13359 test -z "$LTCC" && LTCC=$CC
13360 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13361 -test -z "$DLLTOOL" && DLLTOOL=dlltool
13362 test -z "$LD" && LD=ld
13363 -test -z "$LN_S" && LN_S="ln -s"
13364 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
13365 -test -z "$NM" && NM=nm
13366 -test -z "$SED" && SED=sed
13367 -test -z "$OBJDUMP" && OBJDUMP=objdump
13368 -test -z "$RANLIB" && RANLIB=:
13369 -test -z "$STRIP" && STRIP=:
13370 test -z "$ac_objext" && ac_objext=o
13371
13372 -# Determine commands to create old-style static archives.
13373 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13374 -old_postinstall_cmds='chmod 644 $oldlib'
13375 -old_postuninstall_cmds=
13376 -
13377 -if test -n "$RANLIB"; then
13378 - case $host_os in
13379 - openbsd*)
13380 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13381 - ;;
13382 - *)
13383 - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13384 - ;;
13385 - esac
13386 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13387 -fi
13388 -
13389 _LT_CC_BASENAME([$compiler])
13390
13391 # Only perform the check for file, if the check method requires it
13392 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
13393 case $deplibs_check_method in
13394 file_magic*)
13395 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13396 - AC_PATH_MAGIC
13397 + _LT_PATH_MAGIC
13398 fi
13399 ;;
13400 esac
13401
13402 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
13403 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
13404 -enable_win32_dll=yes, enable_win32_dll=no)
13405 -
13406 -AC_ARG_ENABLE([libtool-lock],
13407 - [AC_HELP_STRING([--disable-libtool-lock],
13408 - [avoid locking (might break parallel builds)])])
13409 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13410 +# Use C for the default configuration in the libtool script
13411 +LT_SUPPORTED_TAG([CC])
13412 +_LT_LANG_C_CONFIG
13413 +_LT_LANG_DEFAULT_CONFIG
13414 +_LT_CONFIG_COMMANDS
13415 +])# _LT_SETUP
13416
13417 -AC_ARG_WITH([pic],
13418 - [AC_HELP_STRING([--with-pic],
13419 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
13420 - [pic_mode="$withval"],
13421 - [pic_mode=default])
13422 -test -z "$pic_mode" && pic_mode=default
13423
13424 -# Use C for the default configuration in the libtool script
13425 -tagname=
13426 -AC_LIBTOOL_LANG_C_CONFIG
13427 -_LT_AC_TAGCONFIG
13428 -])# AC_LIBTOOL_SETUP
13429 +# _LT_PROG_LTMAIN
13430 +# ---------------
13431 +# Note that this code is called both from `configure', and `config.status'
13432 +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
13433 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
13434 +# so we pass a copy along to make sure it has a sensible value anyway.
13435 +m4_defun([_LT_PROG_LTMAIN],
13436 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
13437 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
13438 +ltmain="$ac_aux_dir/ltmain.sh"
13439 +])# _LT_PROG_LTMAIN
13440
13441
13442 -# _LT_AC_SYS_COMPILER
13443 -# -------------------
13444 -AC_DEFUN([_LT_AC_SYS_COMPILER],
13445 -[AC_REQUIRE([AC_PROG_CC])dnl
13446 +## ------------------------------------- ##
13447 +## Accumulate code for creating libtool. ##
13448 +## ------------------------------------- ##
13449 +
13450 +# So that we can recreate a full libtool script including additional
13451 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
13452 +# in macros and then make a single call at the end using the `libtool'
13453 +# label.
13454 +
13455 +
13456 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
13457 +# ----------------------------------------
13458 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
13459 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
13460 +[m4_ifval([$1],
13461 + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
13462 + [$1
13463 +])])])
13464 +
13465 +# Initialize.
13466 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
13467 +
13468 +
13469 +# _LT_CONFIG_LIBTOOL([COMMANDS])
13470 +# ------------------------------
13471 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
13472 +m4_define([_LT_CONFIG_LIBTOOL],
13473 +[m4_ifval([$1],
13474 + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
13475 + [$1
13476 +])])])
13477 +
13478 +# Initialize.
13479 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
13480 +
13481 +
13482 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
13483 +# -----------------------------------------------------
13484 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
13485 +[_LT_CONFIG_LIBTOOL([$1])
13486 +_LT_CONFIG_LIBTOOL_INIT([$2])
13487 +])
13488
13489 -# If no C compiler was specified, use CC.
13490 -LTCC=${LTCC-"$CC"}
13491
13492 -# If no C compiler flags were specified, use CFLAGS.
13493 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13494 +# _LT_FORMAT_COMMENT([COMMENT])
13495 +# -----------------------------
13496 +# Add leading comment marks to the start of each line, and a trailing
13497 +# full-stop to the whole comment if one is not present already.
13498 +m4_define([_LT_FORMAT_COMMENT],
13499 +[m4_ifval([$1], [
13500 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
13501 + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
13502 +)])
13503
13504 -# Allow CC to be a program name with arguments.
13505 -compiler=$CC
13506 -])# _LT_AC_SYS_COMPILER
13507
13508
13509 -# _LT_CC_BASENAME(CC)
13510 -# -------------------
13511 -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13512 -AC_DEFUN([_LT_CC_BASENAME],
13513 -[for cc_temp in $1""; do
13514 - case $cc_temp in
13515 - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
13516 - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
13517 - \-*) ;;
13518 - *) break;;
13519 - esac
13520 -done
13521 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13522 +## ------------------------ ##
13523 +## FIXME: Eliminate VARNAME ##
13524 +## ------------------------ ##
13525 +
13526 +
13527 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
13528 +# -------------------------------------------------------------------
13529 +# CONFIGNAME is the name given to the value in the libtool script.
13530 +# VARNAME is the (base) name used in the configure script.
13531 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
13532 +# VARNAME. Any other value will be used directly.
13533 +m4_define([_LT_DECL],
13534 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
13535 + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
13536 + [m4_ifval([$1], [$1], [$2])])
13537 + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
13538 + m4_ifval([$4],
13539 + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
13540 + lt_dict_add_subkey([lt_decl_dict], [$2],
13541 + [tagged?], [m4_ifval([$5], [yes], [no])])])
13542 ])
13543
13544
13545 -# _LT_COMPILER_BOILERPLATE
13546 -# ------------------------
13547 -# Check for compiler boilerplate output or warnings with
13548 -# the simple compiler test code.
13549 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
13550 -[ac_outfile=conftest.$ac_objext
13551 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13552 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13553 -_lt_compiler_boilerplate=`cat conftest.err`
13554 -$rm conftest*
13555 -])# _LT_COMPILER_BOILERPLATE
13556 -
13557 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
13558 +# --------------------------------------------------------
13559 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
13560 +
13561 +
13562 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
13563 +# ------------------------------------------------
13564 +m4_define([lt_decl_tag_varnames],
13565 +[_lt_decl_filter([tagged?], [yes], $@)])
13566 +
13567 +
13568 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
13569 +# ---------------------------------------------------------
13570 +m4_define([_lt_decl_filter],
13571 +[m4_case([$#],
13572 + [0], [m4_fatal([$0: too few arguments: $#])],
13573 + [1], [m4_fatal([$0: too few arguments: $#: $1])],
13574 + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
13575 + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
13576 + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
13577 +])
13578
13579 -# _LT_LINKER_BOILERPLATE
13580 -# ----------------------
13581 -# Check for linker boilerplate output or warnings with
13582 -# the simple link test code.
13583 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
13584 -[ac_outfile=conftest.$ac_objext
13585 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
13586 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13587 -_lt_linker_boilerplate=`cat conftest.err`
13588 -$rm conftest*
13589 -])# _LT_LINKER_BOILERPLATE
13590
13591 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
13592 +# --------------------------------------------------
13593 +m4_define([lt_decl_quote_varnames],
13594 +[_lt_decl_filter([value], [1], $@)])
13595 +
13596 +
13597 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
13598 +# ---------------------------------------------------
13599 +m4_define([lt_decl_dquote_varnames],
13600 +[_lt_decl_filter([value], [2], $@)])
13601 +
13602 +
13603 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
13604 +# ---------------------------------------------------
13605 +m4_define([lt_decl_varnames_tagged],
13606 +[_$0(m4_quote(m4_default([$1], [[, ]])),
13607 + m4_quote(m4_if([$2], [],
13608 + m4_quote(lt_decl_tag_varnames),
13609 + m4_quote(m4_shift($@)))),
13610 + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
13611 +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
13612 +
13613 +
13614 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
13615 +# ------------------------------------------------
13616 +m4_define([lt_decl_all_varnames],
13617 +[_$0(m4_quote(m4_default([$1], [[, ]])),
13618 + m4_if([$2], [],
13619 + m4_quote(lt_decl_varnames),
13620 + m4_quote(m4_shift($@))))[]dnl
13621 +])
13622 +m4_define([_lt_decl_all_varnames],
13623 +[lt_join($@, lt_decl_varnames_tagged([$1],
13624 + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
13625 +])
13626
13627 -# _LT_AC_SYS_LIBPATH_AIX
13628 -# ----------------------
13629 -# Links a minimal program and checks the executable
13630 -# for the system default hardcoded library path. In most cases,
13631 -# this is /usr/lib:/lib, but when the MPI compilers are used
13632 -# the location of the communication and MPI libs are included too.
13633 -# If we don't find anything, use the default library path according
13634 -# to the aix ld manual.
13635 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
13636 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
13637 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13638 -}'`
13639 -# Check for a 64-bit object if we didn't find anything.
13640 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13641 -}'`; fi],[])
13642 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13643 -])# _LT_AC_SYS_LIBPATH_AIX
13644
13645 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
13646 +# ------------------------------------
13647 +# Quote a variable value, and forward it to `config.status' so that its
13648 +# declaration there will have the same value as in `configure'. VARNAME
13649 +# must have a single quote delimited value for this to work.
13650 +m4_define([_LT_CONFIG_STATUS_DECLARE],
13651 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
13652
13653 -# _LT_AC_SHELL_INIT(ARG)
13654 -# ----------------------
13655 -AC_DEFUN([_LT_AC_SHELL_INIT],
13656 -[ifdef([AC_DIVERSION_NOTICE],
13657 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
13658 - [AC_DIVERT_PUSH(NOTICE)])
13659 -$1
13660 -AC_DIVERT_POP
13661 -])# _LT_AC_SHELL_INIT
13662
13663 +# _LT_CONFIG_STATUS_DECLARATIONS
13664 +# ------------------------------
13665 +# We delimit libtool config variables with single quotes, so when
13666 +# we write them to config.status, we have to be sure to quote all
13667 +# embedded single quotes properly. In configure, this macro expands
13668 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
13669 +#
13670 +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
13671 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
13672 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
13673 + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
13674
13675 -# _LT_AC_PROG_ECHO_BACKSLASH
13676 -# --------------------------
13677 -# Add some code to the start of the generated configure script which
13678 -# will find an echo command which doesn't interpret backslashes.
13679 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
13680 -[_LT_AC_SHELL_INIT([
13681 -# Check that we are running under the correct shell.
13682 -SHELL=${CONFIG_SHELL-/bin/sh}
13683
13684 -case X$ECHO in
13685 -X*--fallback-echo)
13686 - # Remove one level of quotation (which was required for Make).
13687 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
13688 - ;;
13689 -esac
13690 +# _LT_LIBTOOL_TAGS
13691 +# ----------------
13692 +# Output comment and list of tags supported by the script
13693 +m4_defun([_LT_LIBTOOL_TAGS],
13694 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
13695 +available_tags="_LT_TAGS"dnl
13696 +])
13697
13698 -echo=${ECHO-echo}
13699 -if test "X[$]1" = X--no-reexec; then
13700 - # Discard the --no-reexec flag, and continue.
13701 - shift
13702 -elif test "X[$]1" = X--fallback-echo; then
13703 - # Avoid inline document here, it may be left over
13704 - :
13705 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
13706 - # Yippee, $echo works!
13707 - :
13708 -else
13709 - # Restart under the correct shell.
13710 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
13711 -fi
13712
13713 -if test "X[$]1" = X--fallback-echo; then
13714 - # used as fallback echo
13715 - shift
13716 - cat <<EOF
13717 -[$]*
13718 -EOF
13719 - exit 0
13720 -fi
13721 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
13722 +# -----------------------------------
13723 +# Extract the dictionary values for VARNAME (optionally with TAG) and
13724 +# expand to a commented shell variable setting:
13725 +#
13726 +# # Some comment about what VAR is for.
13727 +# visible_name=$lt_internal_name
13728 +m4_define([_LT_LIBTOOL_DECLARE],
13729 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
13730 + [description])))[]dnl
13731 +m4_pushdef([_libtool_name],
13732 + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
13733 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
13734 + [0], [_libtool_name=[$]$1],
13735 + [1], [_libtool_name=$lt_[]$1],
13736 + [2], [_libtool_name=$lt_[]$1],
13737 + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
13738 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
13739 +])
13740
13741 -# The HP-UX ksh and POSIX shell print the target directory to stdout
13742 -# if CDPATH is set.
13743 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13744
13745 -if test -z "$ECHO"; then
13746 -if test "X${echo_test_string+set}" != Xset; then
13747 -# find a string as large as possible, as long as the shell can cope with it
13748 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
13749 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
13750 - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
13751 - echo_test_string=`eval $cmd` &&
13752 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
13753 - then
13754 - break
13755 - fi
13756 - done
13757 -fi
13758 +# _LT_LIBTOOL_CONFIG_VARS
13759 +# -----------------------
13760 +# Produce commented declarations of non-tagged libtool config variables
13761 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
13762 +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
13763 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
13764 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
13765 +[m4_foreach([_lt_var],
13766 + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
13767 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
13768
13769 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
13770 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
13771 - test "X$echo_testing_string" = "X$echo_test_string"; then
13772 - :
13773 -else
13774 - # The Solaris, AIX, and Digital Unix default echo programs unquote
13775 - # backslashes. This makes it impossible to quote backslashes using
13776 - # echo "$something" | sed 's/\\/\\\\/g'
13777 - #
13778 - # So, first we look for a working echo in the user's PATH.
13779
13780 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13781 - for dir in $PATH /usr/ucb; do
13782 - IFS="$lt_save_ifs"
13783 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
13784 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
13785 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
13786 - test "X$echo_testing_string" = "X$echo_test_string"; then
13787 - echo="$dir/echo"
13788 - break
13789 - fi
13790 - done
13791 - IFS="$lt_save_ifs"
13792 +# _LT_LIBTOOL_TAG_VARS(TAG)
13793 +# -------------------------
13794 +m4_define([_LT_LIBTOOL_TAG_VARS],
13795 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
13796 + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
13797
13798 - if test "X$echo" = Xecho; then
13799 - # We didn't find a better echo, so look for alternatives.
13800 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
13801 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
13802 - test "X$echo_testing_string" = "X$echo_test_string"; then
13803 - # This shell has a builtin print -r that does the trick.
13804 - echo='print -r'
13805 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
13806 - test "X$CONFIG_SHELL" != X/bin/ksh; then
13807 - # If we have ksh, try running configure again with it.
13808 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13809 - export ORIGINAL_CONFIG_SHELL
13810 - CONFIG_SHELL=/bin/ksh
13811 - export CONFIG_SHELL
13812 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
13813 - else
13814 - # Try using printf.
13815 - echo='printf %s\n'
13816 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
13817 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
13818 - test "X$echo_testing_string" = "X$echo_test_string"; then
13819 - # Cool, printf works
13820 - :
13821 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
13822 - test "X$echo_testing_string" = 'X\t' &&
13823 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
13824 - test "X$echo_testing_string" = "X$echo_test_string"; then
13825 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
13826 - export CONFIG_SHELL
13827 - SHELL="$CONFIG_SHELL"
13828 - export SHELL
13829 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
13830 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
13831 - test "X$echo_testing_string" = 'X\t' &&
13832 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
13833 - test "X$echo_testing_string" = "X$echo_test_string"; then
13834 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
13835 - else
13836 - # maybe with a smaller string...
13837 - prev=:
13838
13839 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
13840 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
13841 - then
13842 - break
13843 - fi
13844 - prev="$cmd"
13845 - done
13846 +# _LT_TAGVAR(VARNAME, [TAGNAME])
13847 +# ------------------------------
13848 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
13849
13850 - if test "$prev" != 'sed 50q "[$]0"'; then
13851 - echo_test_string=`eval $prev`
13852 - export echo_test_string
13853 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
13854 - else
13855 - # Oops. We lost completely, so just stick with echo.
13856 - echo=echo
13857 - fi
13858 - fi
13859 - fi
13860 - fi
13861 -fi
13862 -fi
13863
13864 -# Copy echo and quote the copy suitably for passing to libtool from
13865 -# the Makefile, instead of quoting the original, which is used later.
13866 -ECHO=$echo
13867 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
13868 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
13869 -fi
13870 +# _LT_CONFIG_COMMANDS
13871 +# -------------------
13872 +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
13873 +# variables for single and double quote escaping we saved from calls
13874 +# to _LT_DECL, we can put quote escaped variables declarations
13875 +# into `config.status', and then the shell code to quote escape them in
13876 +# for loops in `config.status'. Finally, any additional code accumulated
13877 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
13878 +m4_defun([_LT_CONFIG_COMMANDS],
13879 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
13880 + dnl If the libtool generation code has been placed in $CONFIG_LT,
13881 + dnl instead of duplicating it all over again into config.status,
13882 + dnl then we will have config.status run $CONFIG_LT later, so it
13883 + dnl needs to know what name is stored there:
13884 + [AC_CONFIG_COMMANDS([libtool],
13885 + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
13886 + dnl If the libtool generation code is destined for config.status,
13887 + dnl expand the accumulated commands and init code now:
13888 + [AC_CONFIG_COMMANDS([libtool],
13889 + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
13890 +])#_LT_CONFIG_COMMANDS
13891
13892 -AC_SUBST(ECHO)
13893 -])])# _LT_AC_PROG_ECHO_BACKSLASH
13894
13895 +# Initialize.
13896 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
13897 +[
13898
13899 -# _LT_AC_LOCK
13900 -# -----------
13901 -AC_DEFUN([_LT_AC_LOCK],
13902 -[AC_ARG_ENABLE([libtool-lock],
13903 - [AC_HELP_STRING([--disable-libtool-lock],
13904 - [avoid locking (might break parallel builds)])])
13905 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13906 +# The HP-UX ksh and POSIX shell print the target directory to stdout
13907 +# if CDPATH is set.
13908 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13909
13910 -# Some flags need to be propagated to the compiler or linker for good
13911 -# libtool support.
13912 -case $host in
13913 -ia64-*-hpux*)
13914 - # Find out which ABI we are using.
13915 - echo 'int i;' > conftest.$ac_ext
13916 - if AC_TRY_EVAL(ac_compile); then
13917 - case `/usr/bin/file conftest.$ac_objext` in
13918 - *ELF-32*)
13919 - HPUX_IA64_MODE="32"
13920 - ;;
13921 - *ELF-64*)
13922 - HPUX_IA64_MODE="64"
13923 - ;;
13924 - esac
13925 - fi
13926 - rm -rf conftest*
13927 - ;;
13928 -*-*-irix6*)
13929 - # Find out which ABI we are using.
13930 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
13931 - if AC_TRY_EVAL(ac_compile); then
13932 - if test "$lt_cv_prog_gnu_ld" = yes; then
13933 - case `/usr/bin/file conftest.$ac_objext` in
13934 - *32-bit*)
13935 - LD="${LD-ld} -melf32bsmip"
13936 - ;;
13937 - *N32*)
13938 - LD="${LD-ld} -melf32bmipn32"
13939 +sed_quote_subst='$sed_quote_subst'
13940 +double_quote_subst='$double_quote_subst'
13941 +delay_variable_subst='$delay_variable_subst'
13942 +_LT_CONFIG_STATUS_DECLARATIONS
13943 +LTCC='$LTCC'
13944 +LTCFLAGS='$LTCFLAGS'
13945 +compiler='$compiler_DEFAULT'
13946 +
13947 +# Quote evaled strings.
13948 +for var in lt_decl_all_varnames([[ \
13949 +]], lt_decl_quote_varnames); do
13950 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13951 + *[[\\\\\\\`\\"\\\$]]*)
13952 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13953 ;;
13954 - *64-bit*)
13955 - LD="${LD-ld} -melf64bmip"
13956 + *)
13957 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13958 ;;
13959 esac
13960 - else
13961 - case `/usr/bin/file conftest.$ac_objext` in
13962 - *32-bit*)
13963 - LD="${LD-ld} -32"
13964 - ;;
13965 - *N32*)
13966 - LD="${LD-ld} -n32"
13967 +done
13968 +
13969 +# Double-quote double-evaled strings.
13970 +for var in lt_decl_all_varnames([[ \
13971 +]], lt_decl_dquote_varnames); do
13972 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13973 + *[[\\\\\\\`\\"\\\$]]*)
13974 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13975 ;;
13976 - *64-bit*)
13977 - LD="${LD-ld} -64"
13978 + *)
13979 + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13980 ;;
13981 esac
13982 - fi
13983 - fi
13984 - rm -rf conftest*
13985 +done
13986 +
13987 +# Fix-up fallback echo if it was mangled by the above quoting rules.
13988 +case \$lt_ECHO in
13989 +*'\\\[$]0 --fallback-echo"')dnl "
13990 + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
13991 ;;
13992 +esac
13993
13994 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13995 - # Find out which ABI we are using.
13996 - echo 'int i;' > conftest.$ac_ext
13997 - if AC_TRY_EVAL(ac_compile); then
13998 - case `/usr/bin/file conftest.o` in
13999 - *32-bit*)
14000 - case $host in
14001 - x86_64-*linux*)
14002 - LD="${LD-ld} -m elf_i386"
14003 - ;;
14004 - ppc64-*linux*|powerpc64-*linux*)
14005 - LD="${LD-ld} -m elf32ppclinux"
14006 - ;;
14007 - s390x-*linux*)
14008 - LD="${LD-ld} -m elf_s390"
14009 - ;;
14010 - sparc64-*linux*)
14011 - LD="${LD-ld} -m elf32_sparc"
14012 - ;;
14013 - esac
14014 - ;;
14015 - *64-bit*)
14016 - case $host in
14017 - x86_64-*linux*)
14018 - LD="${LD-ld} -m elf_x86_64"
14019 - ;;
14020 - ppc*-*linux*|powerpc*-*linux*)
14021 - LD="${LD-ld} -m elf64ppc"
14022 - ;;
14023 - s390*-*linux*)
14024 - LD="${LD-ld} -m elf64_s390"
14025 - ;;
14026 - sparc*-*linux*)
14027 - LD="${LD-ld} -m elf64_sparc"
14028 - ;;
14029 - esac
14030 - ;;
14031 - esac
14032 - fi
14033 - rm -rf conftest*
14034 - ;;
14035 +_LT_OUTPUT_LIBTOOL_INIT
14036 +])
14037
14038 -*-*-sco3.2v5*)
14039 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14040 - SAVE_CFLAGS="$CFLAGS"
14041 - CFLAGS="$CFLAGS -belf"
14042 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
14043 - [AC_LANG_PUSH(C)
14044 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
14045 - AC_LANG_POP])
14046 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
14047 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14048 - CFLAGS="$SAVE_CFLAGS"
14049 - fi
14050 - ;;
14051 -sparc*-*solaris*)
14052 - # Find out which ABI we are using.
14053 - echo 'int i;' > conftest.$ac_ext
14054 - if AC_TRY_EVAL(ac_compile); then
14055 - case `/usr/bin/file conftest.o` in
14056 - *64-bit*)
14057 - case $lt_cv_prog_gnu_ld in
14058 - yes*) LD="${LD-ld} -m elf64_sparc" ;;
14059 - *) LD="${LD-ld} -64" ;;
14060 - esac
14061 - ;;
14062 - esac
14063 - fi
14064 - rm -rf conftest*
14065 - ;;
14066
14067 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
14068 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
14069 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
14070 - AC_CHECK_TOOL(AS, as, false)
14071 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
14072 - ;;
14073 - ])
14074 -esac
14075 +# LT_OUTPUT
14076 +# ---------
14077 +# This macro allows early generation of the libtool script (before
14078 +# AC_OUTPUT is called), incase it is used in configure for compilation
14079 +# tests.
14080 +AC_DEFUN([LT_OUTPUT],
14081 +[: ${CONFIG_LT=./config.lt}
14082 +AC_MSG_NOTICE([creating $CONFIG_LT])
14083 +cat >"$CONFIG_LT" <<_LTEOF
14084 +#! $SHELL
14085 +# Generated by $as_me.
14086 +# Run this file to recreate a libtool stub with the current configuration.
14087 +
14088 +lt_cl_silent=false
14089 +SHELL=\${CONFIG_SHELL-$SHELL}
14090 +_LTEOF
14091 +
14092 +cat >>"$CONFIG_LT" <<\_LTEOF
14093 +AS_SHELL_SANITIZE
14094 +_AS_PREPARE
14095
14096 -need_locks="$enable_libtool_lock"
14097 +exec AS_MESSAGE_FD>&1
14098 +exec AS_MESSAGE_LOG_FD>>config.log
14099 +{
14100 + echo
14101 + AS_BOX([Running $as_me.])
14102 +} >&AS_MESSAGE_LOG_FD
14103 +
14104 +lt_cl_help="\
14105 +\`$as_me' creates a local libtool stub from the current configuration,
14106 +for use in further configure time tests before the real libtool is
14107 +generated.
14108 +
14109 +Usage: $[0] [[OPTIONS]]
14110 +
14111 + -h, --help print this help, then exit
14112 + -V, --version print version number, then exit
14113 + -q, --quiet do not print progress messages
14114 + -d, --debug don't remove temporary files
14115 +
14116 +Report bugs to <bug-libtool@gnu.org>."
14117 +
14118 +lt_cl_version="\
14119 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
14120 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
14121 +configured by $[0], generated by m4_PACKAGE_STRING.
14122 +
14123 +Copyright (C) 2008 Free Software Foundation, Inc.
14124 +This config.lt script is free software; the Free Software Foundation
14125 +gives unlimited permision to copy, distribute and modify it."
14126
14127 -])# _LT_AC_LOCK
14128 +while test $[#] != 0
14129 +do
14130 + case $[1] in
14131 + --version | --v* | -V )
14132 + echo "$lt_cl_version"; exit 0 ;;
14133 + --help | --h* | -h )
14134 + echo "$lt_cl_help"; exit 0 ;;
14135 + --debug | --d* | -d )
14136 + debug=: ;;
14137 + --quiet | --q* | --silent | --s* | -q )
14138 + lt_cl_silent=: ;;
14139
14140 + -*) AC_MSG_ERROR([unrecognized option: $[1]
14141 +Try \`$[0] --help' for more information.]) ;;
14142
14143 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14144 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
14145 -# ----------------------------------------------------------------
14146 -# Check whether the given compiler option works
14147 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
14148 -[AC_REQUIRE([LT_AC_PROG_SED])
14149 -AC_CACHE_CHECK([$1], [$2],
14150 - [$2=no
14151 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
14152 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153 - lt_compiler_flag="$3"
14154 - # Insert the option either (1) after the last *FLAGS variable, or
14155 - # (2) before a word containing "conftest.", or (3) at the end.
14156 - # Note that $ac_compile itself does not contain backslashes and begins
14157 - # with a dollar sign (not a hyphen), so the echo should work correctly.
14158 - # The option is referenced via a variable to avoid confusing sed.
14159 - lt_compile=`echo "$ac_compile" | $SED \
14160 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14161 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14162 - -e 's:$: $lt_compiler_flag:'`
14163 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14164 - (eval "$lt_compile" 2>conftest.err)
14165 - ac_status=$?
14166 - cat conftest.err >&AS_MESSAGE_LOG_FD
14167 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14168 - if (exit $ac_status) && test -s "$ac_outfile"; then
14169 - # The compiler can only warn and ignore the option if not recognized
14170 - # So say no if there are warnings other than the usual output.
14171 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14172 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14174 - $2=yes
14175 - fi
14176 - fi
14177 - $rm conftest*
14178 -])
14179 + *) AC_MSG_ERROR([unrecognized argument: $[1]
14180 +Try \`$[0] --help' for more information.]) ;;
14181 + esac
14182 + shift
14183 +done
14184
14185 -if test x"[$]$2" = xyes; then
14186 - ifelse([$5], , :, [$5])
14187 -else
14188 - ifelse([$6], , :, [$6])
14189 +if $lt_cl_silent; then
14190 + exec AS_MESSAGE_FD>/dev/null
14191 fi
14192 -])# AC_LIBTOOL_COMPILER_OPTION
14193 -
14194 -
14195 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14196 -# [ACTION-SUCCESS], [ACTION-FAILURE])
14197 -# ------------------------------------------------------------
14198 -# Check whether the given compiler option works
14199 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
14200 -[AC_CACHE_CHECK([$1], [$2],
14201 - [$2=no
14202 - save_LDFLAGS="$LDFLAGS"
14203 - LDFLAGS="$LDFLAGS $3"
14204 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
14205 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14206 - # The linker can only warn and ignore the option if not recognized
14207 - # So say no if there are warnings
14208 - if test -s conftest.err; then
14209 - # Append any errors to the config.log.
14210 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
14211 - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14212 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14213 - if diff conftest.exp conftest.er2 >/dev/null; then
14214 - $2=yes
14215 - fi
14216 - else
14217 - $2=yes
14218 - fi
14219 - fi
14220 - $rm conftest*
14221 - LDFLAGS="$save_LDFLAGS"
14222 -])
14223 +_LTEOF
14224
14225 -if test x"[$]$2" = xyes; then
14226 - ifelse([$4], , :, [$4])
14227 -else
14228 - ifelse([$5], , :, [$5])
14229 +cat >>"$CONFIG_LT" <<_LTEOF
14230 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
14231 +_LTEOF
14232 +
14233 +cat >>"$CONFIG_LT" <<\_LTEOF
14234 +AC_MSG_NOTICE([creating $ofile])
14235 +_LT_OUTPUT_LIBTOOL_COMMANDS
14236 +AS_EXIT(0)
14237 +_LTEOF
14238 +chmod +x "$CONFIG_LT"
14239 +
14240 +# configure is writing to config.log, but config.lt does its own redirection,
14241 +# appending to config.log, which fails on DOS, as config.log is still kept
14242 +# open by configure. Here we exec the FD to /dev/null, effectively closing
14243 +# config.log, so it can be properly (re)opened and appended to by config.lt.
14244 +if test "$no_create" != yes; then
14245 + lt_cl_success=:
14246 + test "$silent" = yes &&
14247 + lt_config_lt_args="$lt_config_lt_args --quiet"
14248 + exec AS_MESSAGE_LOG_FD>/dev/null
14249 + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
14250 + exec AS_MESSAGE_LOG_FD>>config.log
14251 + $lt_cl_success || AS_EXIT(1)
14252 fi
14253 -])# AC_LIBTOOL_LINKER_OPTION
14254 -
14255 +])# LT_OUTPUT
14256
14257 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
14258 -# --------------------------
14259 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
14260 -[# find the maximum length of command line arguments
14261 -AC_MSG_CHECKING([the maximum length of command line arguments])
14262 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
14263 - i=0
14264 - teststring="ABCD"
14265
14266 - case $build_os in
14267 - msdosdjgpp*)
14268 - # On DJGPP, this test can blow up pretty badly due to problems in libc
14269 - # (any single argument exceeding 2000 bytes causes a buffer overrun
14270 - # during glob expansion). Even if it were fixed, the result of this
14271 - # check would be larger than it should be.
14272 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
14273 - ;;
14274 +# _LT_CONFIG(TAG)
14275 +# ---------------
14276 +# If TAG is the built-in tag, create an initial libtool script with a
14277 +# default configuration from the untagged config vars. Otherwise add code
14278 +# to config.status for appending the configuration named by TAG from the
14279 +# matching tagged config vars.
14280 +m4_defun([_LT_CONFIG],
14281 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
14282 +_LT_CONFIG_SAVE_COMMANDS([
14283 + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
14284 + m4_if(_LT_TAG, [C], [
14285 + # See if we are running on zsh, and set the options which allow our
14286 + # commands through without removal of \ escapes.
14287 + if test -n "${ZSH_VERSION+set}" ; then
14288 + setopt NO_GLOB_SUBST
14289 + fi
14290
14291 - gnu*)
14292 - # Under GNU Hurd, this test is not required because there is
14293 - # no limit to the length of command line arguments.
14294 - # Libtool will interpret -1 as no limit whatsoever
14295 - lt_cv_sys_max_cmd_len=-1;
14296 - ;;
14297 + cfgfile="${ofile}T"
14298 + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14299 + $RM "$cfgfile"
14300
14301 - cygwin* | mingw*)
14302 - # On Win9x/ME, this test blows up -- it succeeds, but takes
14303 - # about 5 minutes as the teststring grows exponentially.
14304 - # Worse, since 9x/ME are not pre-emptively multitasking,
14305 - # you end up with a "frozen" computer, even though with patience
14306 - # the test eventually succeeds (with a max line length of 256k).
14307 - # Instead, let's just punt: use the minimum linelength reported by
14308 - # all of the supported platforms: 8192 (on NT/2K/XP).
14309 - lt_cv_sys_max_cmd_len=8192;
14310 - ;;
14311 + cat <<_LT_EOF >> "$cfgfile"
14312 +#! $SHELL
14313
14314 - amigaos*)
14315 - # On AmigaOS with pdksh, this test takes hours, literally.
14316 - # So we just punt and use a minimum line length of 8192.
14317 - lt_cv_sys_max_cmd_len=8192;
14318 - ;;
14319 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14320 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14321 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14322 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14323 +#
14324 +_LT_COPYING
14325 +_LT_LIBTOOL_TAGS
14326
14327 - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14328 - # This has been around since 386BSD, at least. Likely further.
14329 - if test -x /sbin/sysctl; then
14330 - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14331 - elif test -x /usr/sbin/sysctl; then
14332 - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14333 - else
14334 - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
14335 - fi
14336 - # And add a safety zone
14337 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14338 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14339 - ;;
14340 +# ### BEGIN LIBTOOL CONFIG
14341 +_LT_LIBTOOL_CONFIG_VARS
14342 +_LT_LIBTOOL_TAG_VARS
14343 +# ### END LIBTOOL CONFIG
14344
14345 - interix*)
14346 - # We know the value 262144 and hardcode it with a safety zone (like BSD)
14347 - lt_cv_sys_max_cmd_len=196608
14348 - ;;
14349 +_LT_EOF
14350
14351 - osf*)
14352 - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14353 - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14354 - # nice to cause kernel panics so lets avoid the loop below.
14355 - # First set a reasonable default.
14356 - lt_cv_sys_max_cmd_len=16384
14357 - #
14358 - if test -x /sbin/sysconfig; then
14359 - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14360 - *1*) lt_cv_sys_max_cmd_len=-1 ;;
14361 - esac
14362 - fi
14363 - ;;
14364 - sco3.2v5*)
14365 - lt_cv_sys_max_cmd_len=102400
14366 - ;;
14367 - sysv5* | sco5v6* | sysv4.2uw2*)
14368 - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
14369 - if test -n "$kargmax"; then
14370 - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
14371 - else
14372 - lt_cv_sys_max_cmd_len=32768
14373 - fi
14374 - ;;
14375 - *)
14376 - # If test is not a shell built-in, we'll probably end up computing a
14377 - # maximum length that is only half of the actual maximum length, but
14378 - # we can't tell.
14379 - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14380 - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
14381 - = "XX$teststring") >/dev/null 2>&1 &&
14382 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
14383 - lt_cv_sys_max_cmd_len=$new_result &&
14384 - test $i != 17 # 1/2 MB should be enough
14385 - do
14386 - i=`expr $i + 1`
14387 - teststring=$teststring$teststring
14388 - done
14389 - teststring=
14390 - # Add a significant safety factor because C++ compilers can tack on massive
14391 - # amounts of additional arguments before passing them to the linker.
14392 - # It appears as though 1/2 is a usable value.
14393 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14394 + case $host_os in
14395 + aix3*)
14396 + cat <<\_LT_EOF >> "$cfgfile"
14397 +# AIX sometimes has problems with the GCC collect2 program. For some
14398 +# reason, if we set the COLLECT_NAMES environment variable, the problems
14399 +# vanish in a puff of smoke.
14400 +if test "X${COLLECT_NAMES+set}" != Xset; then
14401 + COLLECT_NAMES=
14402 + export COLLECT_NAMES
14403 +fi
14404 +_LT_EOF
14405 ;;
14406 esac
14407 -])
14408 -if test -n $lt_cv_sys_max_cmd_len ; then
14409 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
14410 -else
14411 - AC_MSG_RESULT(none)
14412 -fi
14413 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
14414
14415 + _LT_PROG_LTMAIN
14416
14417 -# _LT_AC_CHECK_DLFCN
14418 -# ------------------
14419 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
14420 -[AC_CHECK_HEADERS(dlfcn.h)dnl
14421 -])# _LT_AC_CHECK_DLFCN
14422 + # We use sed instead of cat because bash on DJGPP gets confused if
14423 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
14424 + # text mode, it properly converts lines to CR/LF. This bash problem
14425 + # is reportedly fixed, but why not run on old versions too?
14426 + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14427 + || (rm -f "$cfgfile"; exit 1)
14428
14429 + _LT_PROG_XSI_SHELLFNS
14430
14431 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
14432 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
14433 -# ---------------------------------------------------------------------
14434 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
14435 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
14436 -if test "$cross_compiling" = yes; then :
14437 - [$4]
14438 -else
14439 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14440 - lt_status=$lt_dlunknown
14441 - cat > conftest.$ac_ext <<EOF
14442 -[#line __oline__ "configure"
14443 -#include "confdefs.h"
14444 + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14445 + || (rm -f "$cfgfile"; exit 1)
14446
14447 -#if HAVE_DLFCN_H
14448 -#include <dlfcn.h>
14449 -#endif
14450 + mv -f "$cfgfile" "$ofile" ||
14451 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14452 + chmod +x "$ofile"
14453 +],
14454 +[cat <<_LT_EOF >> "$ofile"
14455
14456 -#include <stdio.h>
14457 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
14458 +dnl in a comment (ie after a #).
14459 +# ### BEGIN LIBTOOL TAG CONFIG: $1
14460 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
14461 +# ### END LIBTOOL TAG CONFIG: $1
14462 +_LT_EOF
14463 +])dnl /m4_if
14464 +],
14465 +[m4_if([$1], [], [
14466 + PACKAGE='$PACKAGE'
14467 + VERSION='$VERSION'
14468 + TIMESTAMP='$TIMESTAMP'
14469 + RM='$RM'
14470 + ofile='$ofile'], [])
14471 +])dnl /_LT_CONFIG_SAVE_COMMANDS
14472 +])# _LT_CONFIG
14473 +
14474 +
14475 +# LT_SUPPORTED_TAG(TAG)
14476 +# ---------------------
14477 +# Trace this macro to discover what tags are supported by the libtool
14478 +# --tag option, using:
14479 +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
14480 +AC_DEFUN([LT_SUPPORTED_TAG], [])
14481 +
14482 +
14483 +# C support is built-in for now
14484 +m4_define([_LT_LANG_C_enabled], [])
14485 +m4_define([_LT_TAGS], [])
14486
14487 -#ifdef RTLD_GLOBAL
14488 -# define LT_DLGLOBAL RTLD_GLOBAL
14489 -#else
14490 -# ifdef DL_GLOBAL
14491 -# define LT_DLGLOBAL DL_GLOBAL
14492 -# else
14493 -# define LT_DLGLOBAL 0
14494 -# endif
14495 -#endif
14496
14497 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14498 - find out it does not work in some platform. */
14499 -#ifndef LT_DLLAZY_OR_NOW
14500 -# ifdef RTLD_LAZY
14501 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
14502 -# else
14503 -# ifdef DL_LAZY
14504 -# define LT_DLLAZY_OR_NOW DL_LAZY
14505 -# else
14506 -# ifdef RTLD_NOW
14507 -# define LT_DLLAZY_OR_NOW RTLD_NOW
14508 -# else
14509 -# ifdef DL_NOW
14510 -# define LT_DLLAZY_OR_NOW DL_NOW
14511 -# else
14512 -# define LT_DLLAZY_OR_NOW 0
14513 -# endif
14514 -# endif
14515 -# endif
14516 -# endif
14517 -#endif
14518 +# LT_LANG(LANG)
14519 +# -------------
14520 +# Enable libtool support for the given language if not already enabled.
14521 +AC_DEFUN([LT_LANG],
14522 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
14523 +m4_case([$1],
14524 + [C], [_LT_LANG(C)],
14525 + [C++], [_LT_LANG(CXX)],
14526 + [Java], [_LT_LANG(GCJ)],
14527 + [Fortran 77], [_LT_LANG(F77)],
14528 + [Fortran], [_LT_LANG(FC)],
14529 + [Windows Resource], [_LT_LANG(RC)],
14530 + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
14531 + [_LT_LANG($1)],
14532 + [m4_fatal([$0: unsupported language: "$1"])])])dnl
14533 +])# LT_LANG
14534
14535 -#ifdef __cplusplus
14536 -extern "C" void exit (int);
14537 -#endif
14538
14539 -void fnord() { int i=42;}
14540 -int main ()
14541 -{
14542 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14543 - int status = $lt_dlunknown;
14544 -
14545 - if (self)
14546 - {
14547 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14548 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14549 - /* dlclose (self); */
14550 - }
14551 - else
14552 - puts (dlerror ());
14553 +# _LT_LANG(LANGNAME)
14554 +# ------------------
14555 +m4_defun([_LT_LANG],
14556 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
14557 + [LT_SUPPORTED_TAG([$1])dnl
14558 + m4_append([_LT_TAGS], [$1 ])dnl
14559 + m4_define([_LT_LANG_]$1[_enabled], [])dnl
14560 + _LT_LANG_$1_CONFIG($1)])dnl
14561 +])# _LT_LANG
14562
14563 - exit (status);
14564 -}]
14565 -EOF
14566 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
14567 - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
14568 - lt_status=$?
14569 - case x$lt_status in
14570 - x$lt_dlno_uscore) $1 ;;
14571 - x$lt_dlneed_uscore) $2 ;;
14572 - x$lt_dlunknown|x*) $3 ;;
14573 - esac
14574 - else :
14575 - # compilation failed
14576 - $3
14577 - fi
14578 -fi
14579 -rm -fr conftest*
14580 -])# _LT_AC_TRY_DLOPEN_SELF
14581
14582 +# _LT_LANG_DEFAULT_CONFIG
14583 +# -----------------------
14584 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
14585 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
14586 + [LT_LANG(CXX)],
14587 + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
14588 +
14589 +AC_PROVIDE_IFELSE([AC_PROG_F77],
14590 + [LT_LANG(F77)],
14591 + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
14592 +
14593 +AC_PROVIDE_IFELSE([AC_PROG_FC],
14594 + [LT_LANG(FC)],
14595 + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
14596 +
14597 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
14598 +dnl pulling things in needlessly.
14599 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
14600 + [LT_LANG(GCJ)],
14601 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
14602 + [LT_LANG(GCJ)],
14603 + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
14604 + [LT_LANG(GCJ)],
14605 + [m4_ifdef([AC_PROG_GCJ],
14606 + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
14607 + m4_ifdef([A][M_PROG_GCJ],
14608 + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
14609 + m4_ifdef([LT_PROG_GCJ],
14610 + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
14611 +
14612 +AC_PROVIDE_IFELSE([LT_PROG_RC],
14613 + [LT_LANG(RC)],
14614 + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
14615 +])# _LT_LANG_DEFAULT_CONFIG
14616 +
14617 +# Obsolete macros:
14618 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
14619 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
14620 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
14621 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
14622 +dnl aclocal-1.4 backwards compatibility:
14623 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
14624 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
14625 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
14626 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
14627
14628 -# AC_LIBTOOL_DLOPEN_SELF
14629 -# ----------------------
14630 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
14631 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
14632 -if test "x$enable_dlopen" != xyes; then
14633 - enable_dlopen=unknown
14634 - enable_dlopen_self=unknown
14635 - enable_dlopen_self_static=unknown
14636 -else
14637 - lt_cv_dlopen=no
14638 - lt_cv_dlopen_libs=
14639
14640 - case $host_os in
14641 - beos*)
14642 - lt_cv_dlopen="load_add_on"
14643 - lt_cv_dlopen_libs=
14644 - lt_cv_dlopen_self=yes
14645 - ;;
14646 +# _LT_TAG_COMPILER
14647 +# ----------------
14648 +m4_defun([_LT_TAG_COMPILER],
14649 +[AC_REQUIRE([AC_PROG_CC])dnl
14650
14651 - mingw* | pw32*)
14652 - lt_cv_dlopen="LoadLibrary"
14653 - lt_cv_dlopen_libs=
14654 - ;;
14655 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
14656 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
14657 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
14658 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
14659
14660 - cygwin*)
14661 - lt_cv_dlopen="dlopen"
14662 - lt_cv_dlopen_libs=
14663 - ;;
14664 +# If no C compiler was specified, use CC.
14665 +LTCC=${LTCC-"$CC"}
14666
14667 - darwin*)
14668 - # if libdl is installed we need to link against it
14669 - AC_CHECK_LIB([dl], [dlopen],
14670 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
14671 - lt_cv_dlopen="dyld"
14672 - lt_cv_dlopen_libs=
14673 - lt_cv_dlopen_self=yes
14674 - ])
14675 - ;;
14676 +# If no C compiler flags were specified, use CFLAGS.
14677 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14678
14679 - *)
14680 - AC_CHECK_FUNC([shl_load],
14681 - [lt_cv_dlopen="shl_load"],
14682 - [AC_CHECK_LIB([dld], [shl_load],
14683 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
14684 - [AC_CHECK_FUNC([dlopen],
14685 - [lt_cv_dlopen="dlopen"],
14686 - [AC_CHECK_LIB([dl], [dlopen],
14687 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
14688 - [AC_CHECK_LIB([svld], [dlopen],
14689 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
14690 - [AC_CHECK_LIB([dld], [dld_link],
14691 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
14692 - ])
14693 - ])
14694 - ])
14695 - ])
14696 - ])
14697 - ;;
14698 - esac
14699 +# Allow CC to be a program name with arguments.
14700 +compiler=$CC
14701 +])# _LT_TAG_COMPILER
14702
14703 - if test "x$lt_cv_dlopen" != xno; then
14704 - enable_dlopen=yes
14705 - else
14706 - enable_dlopen=no
14707 - fi
14708
14709 - case $lt_cv_dlopen in
14710 - dlopen)
14711 - save_CPPFLAGS="$CPPFLAGS"
14712 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14713 +# _LT_COMPILER_BOILERPLATE
14714 +# ------------------------
14715 +# Check for compiler boilerplate output or warnings with
14716 +# the simple compiler test code.
14717 +m4_defun([_LT_COMPILER_BOILERPLATE],
14718 +[m4_require([_LT_DECL_SED])dnl
14719 +ac_outfile=conftest.$ac_objext
14720 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14721 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14722 +_lt_compiler_boilerplate=`cat conftest.err`
14723 +$RM conftest*
14724 +])# _LT_COMPILER_BOILERPLATE
14725
14726 - save_LDFLAGS="$LDFLAGS"
14727 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14728
14729 - save_LIBS="$LIBS"
14730 - LIBS="$lt_cv_dlopen_libs $LIBS"
14731 +# _LT_LINKER_BOILERPLATE
14732 +# ----------------------
14733 +# Check for linker boilerplate output or warnings with
14734 +# the simple link test code.
14735 +m4_defun([_LT_LINKER_BOILERPLATE],
14736 +[m4_require([_LT_DECL_SED])dnl
14737 +ac_outfile=conftest.$ac_objext
14738 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
14739 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14740 +_lt_linker_boilerplate=`cat conftest.err`
14741 +$RM -r conftest*
14742 +])# _LT_LINKER_BOILERPLATE
14743
14744 - AC_CACHE_CHECK([whether a program can dlopen itself],
14745 - lt_cv_dlopen_self, [dnl
14746 - _LT_AC_TRY_DLOPEN_SELF(
14747 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
14748 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
14749 +# _LT_REQUIRED_DARWIN_CHECKS
14750 +# -------------------------
14751 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
14752 + case $host_os in
14753 + rhapsody* | darwin*)
14754 + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
14755 + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
14756 + AC_CHECK_TOOL([LIPO], [lipo], [:])
14757 + AC_CHECK_TOOL([OTOOL], [otool], [:])
14758 + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
14759 + _LT_DECL([], [DSYMUTIL], [1],
14760 + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
14761 + _LT_DECL([], [NMEDIT], [1],
14762 + [Tool to change global to local symbols on Mac OS X])
14763 + _LT_DECL([], [LIPO], [1],
14764 + [Tool to manipulate fat objects and archives on Mac OS X])
14765 + _LT_DECL([], [OTOOL], [1],
14766 + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
14767 + _LT_DECL([], [OTOOL64], [1],
14768 + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
14769 +
14770 + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
14771 + [lt_cv_apple_cc_single_mod=no
14772 + if test -z "${LT_MULTI_MODULE}"; then
14773 + # By default we will add the -single_module flag. You can override
14774 + # by either setting the environment variable LT_MULTI_MODULE
14775 + # non-empty at configure time, or by adding -multi_module to the
14776 + # link flags.
14777 + rm -rf libconftest.dylib*
14778 + echo "int foo(void){return 1;}" > conftest.c
14779 + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14780 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
14781 + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14782 + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14783 + _lt_result=$?
14784 + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14785 + lt_cv_apple_cc_single_mod=yes
14786 + else
14787 + cat conftest.err >&AS_MESSAGE_LOG_FD
14788 + fi
14789 + rm -rf libconftest.dylib*
14790 + rm -f conftest.*
14791 + fi])
14792 + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
14793 + [lt_cv_ld_exported_symbols_list],
14794 + [lt_cv_ld_exported_symbols_list=no
14795 + save_LDFLAGS=$LDFLAGS
14796 + echo "_main" > conftest.sym
14797 + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14798 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
14799 + [lt_cv_ld_exported_symbols_list=yes],
14800 + [lt_cv_ld_exported_symbols_list=no])
14801 + LDFLAGS="$save_LDFLAGS"
14802 ])
14803 -
14804 - if test "x$lt_cv_dlopen_self" = xyes; then
14805 - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14806 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
14807 - lt_cv_dlopen_self_static, [dnl
14808 - _LT_AC_TRY_DLOPEN_SELF(
14809 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
14810 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
14811 - ])
14812 + case $host_os in
14813 + rhapsody* | darwin1.[[012]])
14814 + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14815 + darwin1.*)
14816 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14817 + darwin*) # darwin 5.x on
14818 + # if running on 10.5 or later, the deployment target defaults
14819 + # to the OS version, if on x86, and 10.4, the deployment
14820 + # target defaults to 10.4. Don't you love it?
14821 + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14822 + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
14823 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14824 + 10.[[012]]*)
14825 + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14826 + 10.*)
14827 + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14828 + esac
14829 + ;;
14830 + esac
14831 + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14832 + _lt_dar_single_mod='$single_module'
14833 + fi
14834 + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14835 + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14836 + else
14837 + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14838 + fi
14839 + if test "$DSYMUTIL" != ":"; then
14840 + _lt_dsymutil='~$DSYMUTIL $lib || :'
14841 + else
14842 + _lt_dsymutil=
14843 fi
14844 -
14845 - CPPFLAGS="$save_CPPFLAGS"
14846 - LDFLAGS="$save_LDFLAGS"
14847 - LIBS="$save_LIBS"
14848 ;;
14849 esac
14850 +])
14851
14852 - case $lt_cv_dlopen_self in
14853 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14854 - *) enable_dlopen_self=unknown ;;
14855 - esac
14856
14857 - case $lt_cv_dlopen_self_static in
14858 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14859 - *) enable_dlopen_self_static=unknown ;;
14860 - esac
14861 -fi
14862 -])# AC_LIBTOOL_DLOPEN_SELF
14863 +# _LT_DARWIN_LINKER_FEATURES
14864 +# --------------------------
14865 +# Checks for linker and compiler features on darwin
14866 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
14867 +[
14868 + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
14869 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
14870 + _LT_TAGVAR(hardcode_direct, $1)=no
14871 + _LT_TAGVAR(hardcode_automatic, $1)=yes
14872 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
14873 + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
14874 + _LT_TAGVAR(link_all_deplibs, $1)=yes
14875 + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
14876 + if test "$GCC" = "yes"; then
14877 + output_verbose_link_cmd=echo
14878 + _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}"
14879 + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14880 + _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}"
14881 + _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}"
14882 + m4_if([$1], [CXX],
14883 +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14884 + _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}"
14885 + _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}"
14886 + fi
14887 +],[])
14888 + else
14889 + _LT_TAGVAR(ld_shlibs, $1)=no
14890 + fi
14891 +])
14892
14893 +# _LT_SYS_MODULE_PATH_AIX
14894 +# -----------------------
14895 +# Links a minimal program and checks the executable
14896 +# for the system default hardcoded library path. In most cases,
14897 +# this is /usr/lib:/lib, but when the MPI compilers are used
14898 +# the location of the communication and MPI libs are included too.
14899 +# If we don't find anything, use the default library path according
14900 +# to the aix ld manual.
14901 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
14902 +[m4_require([_LT_DECL_SED])dnl
14903 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
14904 +lt_aix_libpath_sed='
14905 + /Import File Strings/,/^$/ {
14906 + /^0/ {
14907 + s/^0 *\(.*\)$/\1/
14908 + p
14909 + }
14910 + }'
14911 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14912 +# Check for a 64-bit object if we didn't find anything.
14913 +if test -z "$aix_libpath"; then
14914 + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14915 +fi],[])
14916 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14917 +])# _LT_SYS_MODULE_PATH_AIX
14918
14919 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
14920 -# ---------------------------------
14921 -# Check to see if options -c and -o are simultaneously supported by compiler
14922 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
14923 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
14924 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
14925 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
14926 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
14927 - $rm -r conftest 2>/dev/null
14928 - mkdir conftest
14929 - cd conftest
14930 - mkdir out
14931 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14932
14933 - lt_compiler_flag="-o out/conftest2.$ac_objext"
14934 - # Insert the option either (1) after the last *FLAGS variable, or
14935 - # (2) before a word containing "conftest.", or (3) at the end.
14936 - # Note that $ac_compile itself does not contain backslashes and begins
14937 - # with a dollar sign (not a hyphen), so the echo should work correctly.
14938 - lt_compile=`echo "$ac_compile" | $SED \
14939 - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14940 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
14941 - -e 's:$: $lt_compiler_flag:'`
14942 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
14943 - (eval "$lt_compile" 2>out/conftest.err)
14944 - ac_status=$?
14945 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
14946 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14947 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
14948 - then
14949 - # The compiler can only warn and ignore the option if not recognized
14950 - # So say no if there are warnings
14951 - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14952 - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14953 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14954 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
14955 - fi
14956 - fi
14957 - chmod u+w . 2>&AS_MESSAGE_LOG_FD
14958 - $rm conftest*
14959 - # SGI C++ compiler will create directory out/ii_files/ for
14960 - # template instantiation
14961 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14962 - $rm out/* && rmdir out
14963 - cd ..
14964 - rmdir conftest
14965 - $rm conftest*
14966 -])
14967 -])# AC_LIBTOOL_PROG_CC_C_O
14968 +# _LT_SHELL_INIT(ARG)
14969 +# -------------------
14970 +m4_define([_LT_SHELL_INIT],
14971 +[ifdef([AC_DIVERSION_NOTICE],
14972 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
14973 + [AC_DIVERT_PUSH(NOTICE)])
14974 +$1
14975 +AC_DIVERT_POP
14976 +])# _LT_SHELL_INIT
14977
14978
14979 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
14980 -# -----------------------------------------
14981 -# Check to see if we can do hard links to lock some files if needed
14982 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
14983 -[AC_REQUIRE([_LT_AC_LOCK])dnl
14984 +# _LT_PROG_ECHO_BACKSLASH
14985 +# -----------------------
14986 +# Add some code to the start of the generated configure script which
14987 +# will find an echo command which doesn't interpret backslashes.
14988 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
14989 +[_LT_SHELL_INIT([
14990 +# Check that we are running under the correct shell.
14991 +SHELL=${CONFIG_SHELL-/bin/sh}
14992
14993 -hard_links="nottested"
14994 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
14995 - # do not overwrite the value of need_locks provided by the user
14996 - AC_MSG_CHECKING([if we can lock with hard links])
14997 - hard_links=yes
14998 - $rm conftest*
14999 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
15000 - touch conftest.a
15001 - ln conftest.a conftest.b 2>&5 || hard_links=no
15002 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
15003 - AC_MSG_RESULT([$hard_links])
15004 - if test "$hard_links" = no; then
15005 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
15006 - need_locks=warn
15007 - fi
15008 +case X$lt_ECHO in
15009 +X*--fallback-echo)
15010 + # Remove one level of quotation (which was required for Make).
15011 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
15012 + ;;
15013 +esac
15014 +
15015 +ECHO=${lt_ECHO-echo}
15016 +if test "X[$]1" = X--no-reexec; then
15017 + # Discard the --no-reexec flag, and continue.
15018 + shift
15019 +elif test "X[$]1" = X--fallback-echo; then
15020 + # Avoid inline document here, it may be left over
15021 + :
15022 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
15023 + # Yippee, $ECHO works!
15024 + :
15025 else
15026 - need_locks=no
15027 + # Restart under the correct shell.
15028 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
15029 fi
15030 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
15031
15032 -
15033 -# AC_LIBTOOL_OBJDIR
15034 -# -----------------
15035 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
15036 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
15037 -[rm -f .libs 2>/dev/null
15038 -mkdir .libs 2>/dev/null
15039 -if test -d .libs; then
15040 - lt_cv_objdir=.libs
15041 -else
15042 - # MS-DOS does not allow filenames that begin with a dot.
15043 - lt_cv_objdir=_libs
15044 +if test "X[$]1" = X--fallback-echo; then
15045 + # used as fallback echo
15046 + shift
15047 + cat <<_LT_EOF
15048 +[$]*
15049 +_LT_EOF
15050 + exit 0
15051 fi
15052 -rmdir .libs 2>/dev/null])
15053 -objdir=$lt_cv_objdir
15054 -])# AC_LIBTOOL_OBJDIR
15055
15056 +# The HP-UX ksh and POSIX shell print the target directory to stdout
15057 +# if CDPATH is set.
15058 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15059
15060 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
15061 -# ----------------------------------------------
15062 -# Check hardcoding attributes.
15063 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
15064 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
15065 -_LT_AC_TAGVAR(hardcode_action, $1)=
15066 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
15067 - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
15068 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
15069 -
15070 - # We can hardcode non-existant directories.
15071 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
15072 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
15073 - # have to relink, otherwise we might link with an installed library
15074 - # when we should be linking with a yet-to-be-installed one
15075 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
15076 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
15077 - # Linking always hardcodes the temporary library directory.
15078 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
15079 - else
15080 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
15081 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
15082 +if test -z "$lt_ECHO"; then
15083 + if test "X${echo_test_string+set}" != Xset; then
15084 + # find a string as large as possible, as long as the shell can cope with it
15085 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
15086 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
15087 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
15088 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
15089 + then
15090 + break
15091 + fi
15092 + done
15093 fi
15094 -else
15095 - # We cannot hardcode anything, or else we can only hardcode existing
15096 - # directories.
15097 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
15098 -fi
15099 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
15100
15101 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
15102 - # Fast installation is not supported
15103 - enable_fast_install=no
15104 -elif test "$shlibpath_overrides_runpath" = yes ||
15105 - test "$enable_shared" = no; then
15106 - # Fast installation is not necessary
15107 - enable_fast_install=needless
15108 -fi
15109 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
15110 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
15111 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
15112 + test "X$echo_testing_string" = "X$echo_test_string"; then
15113 + :
15114 + else
15115 + # The Solaris, AIX, and Digital Unix default echo programs unquote
15116 + # backslashes. This makes it impossible to quote backslashes using
15117 + # echo "$something" | sed 's/\\/\\\\/g'
15118 + #
15119 + # So, first we look for a working echo in the user's PATH.
15120
15121 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15122 + for dir in $PATH /usr/ucb; do
15123 + IFS="$lt_save_ifs"
15124 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
15125 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
15126 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
15127 + test "X$echo_testing_string" = "X$echo_test_string"; then
15128 + ECHO="$dir/echo"
15129 + break
15130 + fi
15131 + done
15132 + IFS="$lt_save_ifs"
15133
15134 -# AC_LIBTOOL_SYS_LIB_STRIP
15135 -# ------------------------
15136 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
15137 -[striplib=
15138 -old_striplib=
15139 -AC_MSG_CHECKING([whether stripping libraries is possible])
15140 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15141 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15142 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15143 - AC_MSG_RESULT([yes])
15144 -else
15145 -# FIXME - insert some real tests, host_os isn't really good enough
15146 - case $host_os in
15147 - darwin*)
15148 - if test -n "$STRIP" ; then
15149 - striplib="$STRIP -x"
15150 - AC_MSG_RESULT([yes])
15151 - else
15152 - AC_MSG_RESULT([no])
15153 -fi
15154 - ;;
15155 - *)
15156 - AC_MSG_RESULT([no])
15157 - ;;
15158 - esac
15159 -fi
15160 -])# AC_LIBTOOL_SYS_LIB_STRIP
15161 + if test "X$ECHO" = Xecho; then
15162 + # We didn't find a better echo, so look for alternatives.
15163 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
15164 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
15165 + test "X$echo_testing_string" = "X$echo_test_string"; then
15166 + # This shell has a builtin print -r that does the trick.
15167 + ECHO='print -r'
15168 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
15169 + test "X$CONFIG_SHELL" != X/bin/ksh; then
15170 + # If we have ksh, try running configure again with it.
15171 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15172 + export ORIGINAL_CONFIG_SHELL
15173 + CONFIG_SHELL=/bin/ksh
15174 + export CONFIG_SHELL
15175 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
15176 + else
15177 + # Try using printf.
15178 + ECHO='printf %s\n'
15179 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
15180 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
15181 + test "X$echo_testing_string" = "X$echo_test_string"; then
15182 + # Cool, printf works
15183 + :
15184 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
15185 + test "X$echo_testing_string" = 'X\t' &&
15186 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
15187 + test "X$echo_testing_string" = "X$echo_test_string"; then
15188 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
15189 + export CONFIG_SHELL
15190 + SHELL="$CONFIG_SHELL"
15191 + export SHELL
15192 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
15193 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
15194 + test "X$echo_testing_string" = 'X\t' &&
15195 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
15196 + test "X$echo_testing_string" = "X$echo_test_string"; then
15197 + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
15198 + else
15199 + # maybe with a smaller string...
15200 + prev=:
15201
15202 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
15203 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
15204 + then
15205 + break
15206 + fi
15207 + prev="$cmd"
15208 + done
15209
15210 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
15211 -# -----------------------------
15212 -# PORTME Fill in your ld.so characteristics
15213 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
15214 -[AC_MSG_CHECKING([dynamic linker characteristics])
15215 -library_names_spec=
15216 -libname_spec='lib$name'
15217 -soname_spec=
15218 -shrext_cmds=".so"
15219 -postinstall_cmds=
15220 -postuninstall_cmds=
15221 -finish_cmds=
15222 -finish_eval=
15223 -shlibpath_var=
15224 -shlibpath_overrides_runpath=unknown
15225 -version_type=none
15226 -dynamic_linker="$host_os ld.so"
15227 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
15228 -if test "$GCC" = yes; then
15229 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15230 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15231 - # if the path contains ";" then we assume it to be the separator
15232 - # otherwise default to the standard path separator (i.e. ":") - it is
15233 - # assumed that no part of a normal pathname contains ";" but that should
15234 - # okay in the real world where ";" in dirpaths is itself problematic.
15235 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15236 - else
15237 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15238 + if test "$prev" != 'sed 50q "[$]0"'; then
15239 + echo_test_string=`eval $prev`
15240 + export echo_test_string
15241 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
15242 + else
15243 + # Oops. We lost completely, so just stick with echo.
15244 + ECHO=echo
15245 + fi
15246 + fi
15247 + fi
15248 + fi
15249 fi
15250 -else
15251 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15252 fi
15253 -need_lib_prefix=unknown
15254 -hardcode_into_libs=no
15255
15256 -# when you set need_version to no, make sure it does not cause -set_version
15257 -# flags to be left without arguments
15258 -need_version=unknown
15259 +# Copy echo and quote the copy suitably for passing to libtool from
15260 +# the Makefile, instead of quoting the original, which is used later.
15261 +lt_ECHO=$ECHO
15262 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
15263 + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
15264 +fi
15265
15266 -case $host_os in
15267 -aix3*)
15268 - version_type=linux
15269 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15270 - shlibpath_var=LIBPATH
15271 +AC_SUBST(lt_ECHO)
15272 +])
15273 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
15274 +_LT_DECL([], [ECHO], [1],
15275 + [An echo program that does not interpret backslashes])
15276 +])# _LT_PROG_ECHO_BACKSLASH
15277
15278 - # AIX 3 has no versioning support, so we append a major version to the name.
15279 - soname_spec='${libname}${release}${shared_ext}$major'
15280 - ;;
15281
15282 -aix4* | aix5*)
15283 - version_type=linux
15284 - need_lib_prefix=no
15285 - need_version=no
15286 - hardcode_into_libs=yes
15287 - if test "$host_cpu" = ia64; then
15288 - # AIX 5 supports IA64
15289 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15290 - shlibpath_var=LD_LIBRARY_PATH
15291 - else
15292 - # With GCC up to 2.95.x, collect2 would create an import file
15293 - # for dependence libraries. The import file would start with
15294 - # the line `#! .'. This would cause the generated library to
15295 - # depend on `.', always an invalid library. This was fixed in
15296 - # development snapshots of GCC prior to 3.0.
15297 - case $host_os in
15298 - aix4 | aix4.[[01]] | aix4.[[01]].*)
15299 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15300 - echo ' yes '
15301 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15302 - :
15303 - else
15304 - can_build_shared=no
15305 - fi
15306 - ;;
15307 +# _LT_ENABLE_LOCK
15308 +# ---------------
15309 +m4_defun([_LT_ENABLE_LOCK],
15310 +[AC_ARG_ENABLE([libtool-lock],
15311 + [AS_HELP_STRING([--disable-libtool-lock],
15312 + [avoid locking (might break parallel builds)])])
15313 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15314 +
15315 +# Some flags need to be propagated to the compiler or linker for good
15316 +# libtool support.
15317 +case $host in
15318 +ia64-*-hpux*)
15319 + # Find out which ABI we are using.
15320 + echo 'int i;' > conftest.$ac_ext
15321 + if AC_TRY_EVAL(ac_compile); then
15322 + case `/usr/bin/file conftest.$ac_objext` in
15323 + *ELF-32*)
15324 + HPUX_IA64_MODE="32"
15325 + ;;
15326 + *ELF-64*)
15327 + HPUX_IA64_MODE="64"
15328 + ;;
15329 esac
15330 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15331 - # soname into executable. Probably we can add versioning support to
15332 - # collect2, so additional links can be useful in future.
15333 - if test "$aix_use_runtimelinking" = yes; then
15334 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15335 - # instead of lib<name>.a to let people know that these are not
15336 - # typical AIX shared libraries.
15337 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 + fi
15339 + rm -rf conftest*
15340 + ;;
15341 +*-*-irix6*)
15342 + # Find out which ABI we are using.
15343 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
15344 + if AC_TRY_EVAL(ac_compile); then
15345 + if test "$lt_cv_prog_gnu_ld" = yes; then
15346 + case `/usr/bin/file conftest.$ac_objext` in
15347 + *32-bit*)
15348 + LD="${LD-ld} -melf32bsmip"
15349 + ;;
15350 + *N32*)
15351 + LD="${LD-ld} -melf32bmipn32"
15352 + ;;
15353 + *64-bit*)
15354 + LD="${LD-ld} -melf64bmip"
15355 + ;;
15356 + esac
15357 else
15358 - # We preserve .a as extension for shared libraries through AIX4.2
15359 - # and later when we are not doing run time linking.
15360 - library_names_spec='${libname}${release}.a $libname.a'
15361 - soname_spec='${libname}${release}${shared_ext}$major'
15362 + case `/usr/bin/file conftest.$ac_objext` in
15363 + *32-bit*)
15364 + LD="${LD-ld} -32"
15365 + ;;
15366 + *N32*)
15367 + LD="${LD-ld} -n32"
15368 + ;;
15369 + *64-bit*)
15370 + LD="${LD-ld} -64"
15371 + ;;
15372 + esac
15373 fi
15374 - shlibpath_var=LIBPATH
15375 fi
15376 + rm -rf conftest*
15377 ;;
15378
15379 -amigaos*)
15380 - library_names_spec='$libname.ixlibrary $libname.a'
15381 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
15382 - 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'
15383 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
15384 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
15385 + # Find out which ABI we are using.
15386 + echo 'int i;' > conftest.$ac_ext
15387 + if AC_TRY_EVAL(ac_compile); then
15388 + case `/usr/bin/file conftest.o` in
15389 + *32-bit*)
15390 + case $host in
15391 + x86_64-*kfreebsd*-gnu)
15392 + LD="${LD-ld} -m elf_i386_fbsd"
15393 + ;;
15394 + x86_64-*linux*)
15395 + LD="${LD-ld} -m elf_i386"
15396 + ;;
15397 + ppc64-*linux*|powerpc64-*linux*)
15398 + LD="${LD-ld} -m elf32ppclinux"
15399 + ;;
15400 + s390x-*linux*)
15401 + LD="${LD-ld} -m elf_s390"
15402 + ;;
15403 + sparc64-*linux*)
15404 + LD="${LD-ld} -m elf32_sparc"
15405 + ;;
15406 + esac
15407 + ;;
15408 + *64-bit*)
15409 + case $host in
15410 + x86_64-*kfreebsd*-gnu)
15411 + LD="${LD-ld} -m elf_x86_64_fbsd"
15412 + ;;
15413 + x86_64-*linux*)
15414 + LD="${LD-ld} -m elf_x86_64"
15415 + ;;
15416 + ppc*-*linux*|powerpc*-*linux*)
15417 + LD="${LD-ld} -m elf64ppc"
15418 + ;;
15419 + s390*-*linux*|s390*-*tpf*)
15420 + LD="${LD-ld} -m elf64_s390"
15421 + ;;
15422 + sparc*-*linux*)
15423 + LD="${LD-ld} -m elf64_sparc"
15424 + ;;
15425 + esac
15426 + ;;
15427 + esac
15428 + fi
15429 + rm -rf conftest*
15430 ;;
15431
15432 -beos*)
15433 - library_names_spec='${libname}${shared_ext}'
15434 - dynamic_linker="$host_os ld.so"
15435 - shlibpath_var=LIBRARY_PATH
15436 +*-*-sco3.2v5*)
15437 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15438 + SAVE_CFLAGS="$CFLAGS"
15439 + CFLAGS="$CFLAGS -belf"
15440 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
15441 + [AC_LANG_PUSH(C)
15442 + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
15443 + AC_LANG_POP])
15444 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15445 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15446 + CFLAGS="$SAVE_CFLAGS"
15447 + fi
15448 ;;
15449 -
15450 -bsdi[[45]]*)
15451 - version_type=linux
15452 - need_version=no
15453 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15454 - soname_spec='${libname}${release}${shared_ext}$major'
15455 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15456 - shlibpath_var=LD_LIBRARY_PATH
15457 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15458 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15459 - # the default ld.so.conf also contains /usr/contrib/lib and
15460 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15461 - # libtool to hard-code these into programs
15462 +sparc*-*solaris*)
15463 + # Find out which ABI we are using.
15464 + echo 'int i;' > conftest.$ac_ext
15465 + if AC_TRY_EVAL(ac_compile); then
15466 + case `/usr/bin/file conftest.o` in
15467 + *64-bit*)
15468 + case $lt_cv_prog_gnu_ld in
15469 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
15470 + *)
15471 + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
15472 + LD="${LD-ld} -64"
15473 + fi
15474 + ;;
15475 + esac
15476 + ;;
15477 + esac
15478 + fi
15479 + rm -rf conftest*
15480 ;;
15481 +esac
15482
15483 -cygwin* | mingw* | pw32*)
15484 - version_type=windows
15485 - shrext_cmds=".dll"
15486 - need_version=no
15487 - need_lib_prefix=no
15488 +need_locks="$enable_libtool_lock"
15489 +])# _LT_ENABLE_LOCK
15490
15491 - case $GCC,$host_os in
15492 - yes,cygwin* | yes,mingw* | yes,pw32*)
15493 - library_names_spec='$libname.dll.a'
15494 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
15495 - postinstall_cmds='base_file=`basename \${file}`~
15496 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15497 - dldir=$destdir/`dirname \$dlpath`~
15498 - test -d \$dldir || mkdir -p \$dldir~
15499 - $install_prog $dir/$dlname \$dldir/$dlname~
15500 - chmod a+x \$dldir/$dlname'
15501 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15502 - dlpath=$dir/\$dldll~
15503 - $rm \$dlpath'
15504 - shlibpath_overrides_runpath=yes
15505
15506 - case $host_os in
15507 - cygwin*)
15508 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15509 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15510 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15511 - ;;
15512 - mingw*)
15513 - # MinGW DLLs use traditional 'lib' prefix
15514 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15515 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15516 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
15517 - # It is most probably a Windows format PATH printed by
15518 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
15519 - # path with ; separators, and with drive letters. We can handle the
15520 - # drive letters (cygwin fileutils understands them), so leave them,
15521 - # especially as we might pass files found there to a mingw objdump,
15522 - # which wouldn't understand a cygwinified path. Ahh.
15523 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15524 - else
15525 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15526 - fi
15527 - ;;
15528 - pw32*)
15529 - # pw32 DLLs use 'pw' prefix rather than 'lib'
15530 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
15531 - ;;
15532 - esac
15533 - ;;
15534 +# _LT_CMD_OLD_ARCHIVE
15535 +# -------------------
15536 +m4_defun([_LT_CMD_OLD_ARCHIVE],
15537 +[AC_CHECK_TOOL(AR, ar, false)
15538 +test -z "$AR" && AR=ar
15539 +test -z "$AR_FLAGS" && AR_FLAGS=cru
15540 +_LT_DECL([], [AR], [1], [The archiver])
15541 +_LT_DECL([], [AR_FLAGS], [1])
15542 +
15543 +AC_CHECK_TOOL(STRIP, strip, :)
15544 +test -z "$STRIP" && STRIP=:
15545 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
15546 +
15547 +AC_CHECK_TOOL(RANLIB, ranlib, :)
15548 +test -z "$RANLIB" && RANLIB=:
15549 +_LT_DECL([], [RANLIB], [1],
15550 + [Commands used to install an old-style archive])
15551 +
15552 +# Determine commands to create old-style static archives.
15553 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
15554 +old_postinstall_cmds='chmod 644 $oldlib'
15555 +old_postuninstall_cmds=
15556
15557 +if test -n "$RANLIB"; then
15558 + case $host_os in
15559 + openbsd*)
15560 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
15561 + ;;
15562 *)
15563 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
15564 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
15565 ;;
15566 esac
15567 - dynamic_linker='Win32 ld.exe'
15568 - # FIXME: first we should search . and the directory the executable is in
15569 - shlibpath_var=PATH
15570 - ;;
15571 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
15572 +fi
15573 +_LT_DECL([], [old_postinstall_cmds], [2])
15574 +_LT_DECL([], [old_postuninstall_cmds], [2])
15575 +_LT_TAGDECL([], [old_archive_cmds], [2],
15576 + [Commands used to build an old-style archive])
15577 +])# _LT_CMD_OLD_ARCHIVE
15578
15579 -darwin* | rhapsody*)
15580 - dynamic_linker="$host_os dyld"
15581 - version_type=darwin
15582 - need_lib_prefix=no
15583 - need_version=no
15584 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15585 - soname_spec='${libname}${release}${major}$shared_ext'
15586 - shlibpath_overrides_runpath=yes
15587 - shlibpath_var=DYLD_LIBRARY_PATH
15588 - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15589 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15590 - if test "$GCC" = yes; then
15591 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15592 - else
15593 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15594 - fi
15595 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15596 - ;;
15597
15598 -dgux*)
15599 - version_type=linux
15600 - need_lib_prefix=no
15601 - need_version=no
15602 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15603 - soname_spec='${libname}${release}${shared_ext}$major'
15604 - shlibpath_var=LD_LIBRARY_PATH
15605 - ;;
15606 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
15607 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
15608 +# ----------------------------------------------------------------
15609 +# Check whether the given compiler option works
15610 +AC_DEFUN([_LT_COMPILER_OPTION],
15611 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
15612 +m4_require([_LT_DECL_SED])dnl
15613 +AC_CACHE_CHECK([$1], [$2],
15614 + [$2=no
15615 + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15616 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15617 + lt_compiler_flag="$3"
15618 + # Insert the option either (1) after the last *FLAGS variable, or
15619 + # (2) before a word containing "conftest.", or (3) at the end.
15620 + # Note that $ac_compile itself does not contain backslashes and begins
15621 + # with a dollar sign (not a hyphen), so the echo should work correctly.
15622 + # The option is referenced via a variable to avoid confusing sed.
15623 + lt_compile=`echo "$ac_compile" | $SED \
15624 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15625 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
15626 + -e 's:$: $lt_compiler_flag:'`
15627 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
15628 + (eval "$lt_compile" 2>conftest.err)
15629 + ac_status=$?
15630 + cat conftest.err >&AS_MESSAGE_LOG_FD
15631 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
15632 + if (exit $ac_status) && test -s "$ac_outfile"; then
15633 + # The compiler can only warn and ignore the option if not recognized
15634 + # So say no if there are warnings other than the usual output.
15635 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15636 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15637 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15638 + $2=yes
15639 + fi
15640 + fi
15641 + $RM conftest*
15642 +])
15643
15644 -freebsd1*)
15645 - dynamic_linker=no
15646 - ;;
15647 +if test x"[$]$2" = xyes; then
15648 + m4_if([$5], , :, [$5])
15649 +else
15650 + m4_if([$6], , :, [$6])
15651 +fi
15652 +])# _LT_COMPILER_OPTION
15653
15654 -kfreebsd*-gnu)
15655 - version_type=linux
15656 - need_lib_prefix=no
15657 - need_version=no
15658 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15659 - soname_spec='${libname}${release}${shared_ext}$major'
15660 - shlibpath_var=LD_LIBRARY_PATH
15661 - shlibpath_overrides_runpath=no
15662 - hardcode_into_libs=yes
15663 - dynamic_linker='GNU ld.so'
15664 - ;;
15665 +# Old name:
15666 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
15667 +dnl aclocal-1.4 backwards compatibility:
15668 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
15669
15670 -freebsd* | dragonfly*)
15671 - # DragonFly does not have aout. When/if they implement a new
15672 - # versioning mechanism, adjust this.
15673 - if test -x /usr/bin/objformat; then
15674 - objformat=`/usr/bin/objformat`
15675 - else
15676 - case $host_os in
15677 - freebsd[[123]]*) objformat=aout ;;
15678 - *) objformat=elf ;;
15679 - esac
15680 - fi
15681 - version_type=freebsd-$objformat
15682 - case $version_type in
15683 - freebsd-elf*)
15684 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15685 - need_version=no
15686 - need_lib_prefix=no
15687 - ;;
15688 - freebsd-*)
15689 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15690 - need_version=yes
15691 - ;;
15692 - esac
15693 - shlibpath_var=LD_LIBRARY_PATH
15694 - case $host_os in
15695 - freebsd2*)
15696 - shlibpath_overrides_runpath=yes
15697 - ;;
15698 - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
15699 - shlibpath_overrides_runpath=yes
15700 - hardcode_into_libs=yes
15701 +
15702 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
15703 +# [ACTION-SUCCESS], [ACTION-FAILURE])
15704 +# ----------------------------------------------------
15705 +# Check whether the given linker option works
15706 +AC_DEFUN([_LT_LINKER_OPTION],
15707 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
15708 +m4_require([_LT_DECL_SED])dnl
15709 +AC_CACHE_CHECK([$1], [$2],
15710 + [$2=no
15711 + save_LDFLAGS="$LDFLAGS"
15712 + LDFLAGS="$LDFLAGS $3"
15713 + echo "$lt_simple_link_test_code" > conftest.$ac_ext
15714 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15715 + # The linker can only warn and ignore the option if not recognized
15716 + # So say no if there are warnings
15717 + if test -s conftest.err; then
15718 + # Append any errors to the config.log.
15719 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
15720 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15721 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15722 + if diff conftest.exp conftest.er2 >/dev/null; then
15723 + $2=yes
15724 + fi
15725 + else
15726 + $2=yes
15727 + fi
15728 + fi
15729 + $RM -r conftest*
15730 + LDFLAGS="$save_LDFLAGS"
15731 +])
15732 +
15733 +if test x"[$]$2" = xyes; then
15734 + m4_if([$4], , :, [$4])
15735 +else
15736 + m4_if([$5], , :, [$5])
15737 +fi
15738 +])# _LT_LINKER_OPTION
15739 +
15740 +# Old name:
15741 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
15742 +dnl aclocal-1.4 backwards compatibility:
15743 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
15744 +
15745 +
15746 +# LT_CMD_MAX_LEN
15747 +#---------------
15748 +AC_DEFUN([LT_CMD_MAX_LEN],
15749 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
15750 +# find the maximum length of command line arguments
15751 +AC_MSG_CHECKING([the maximum length of command line arguments])
15752 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
15753 + i=0
15754 + teststring="ABCD"
15755 +
15756 + case $build_os in
15757 + msdosdjgpp*)
15758 + # On DJGPP, this test can blow up pretty badly due to problems in libc
15759 + # (any single argument exceeding 2000 bytes causes a buffer overrun
15760 + # during glob expansion). Even if it were fixed, the result of this
15761 + # check would be larger than it should be.
15762 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
15763 ;;
15764 - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
15765 - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
15766 - shlibpath_overrides_runpath=no
15767 - hardcode_into_libs=yes
15768 +
15769 + gnu*)
15770 + # Under GNU Hurd, this test is not required because there is
15771 + # no limit to the length of command line arguments.
15772 + # Libtool will interpret -1 as no limit whatsoever
15773 + lt_cv_sys_max_cmd_len=-1;
15774 ;;
15775 - freebsd*) # from 4.6 on
15776 - shlibpath_overrides_runpath=yes
15777 - hardcode_into_libs=yes
15778 +
15779 + cygwin* | mingw*)
15780 + # On Win9x/ME, this test blows up -- it succeeds, but takes
15781 + # about 5 minutes as the teststring grows exponentially.
15782 + # Worse, since 9x/ME are not pre-emptively multitasking,
15783 + # you end up with a "frozen" computer, even though with patience
15784 + # the test eventually succeeds (with a max line length of 256k).
15785 + # Instead, let's just punt: use the minimum linelength reported by
15786 + # all of the supported platforms: 8192 (on NT/2K/XP).
15787 + lt_cv_sys_max_cmd_len=8192;
15788 ;;
15789 - esac
15790 - ;;
15791
15792 -gnu*)
15793 - version_type=linux
15794 - need_lib_prefix=no
15795 - need_version=no
15796 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15797 - soname_spec='${libname}${release}${shared_ext}$major'
15798 - shlibpath_var=LD_LIBRARY_PATH
15799 - hardcode_into_libs=yes
15800 - ;;
15801 + amigaos*)
15802 + # On AmigaOS with pdksh, this test takes hours, literally.
15803 + # So we just punt and use a minimum line length of 8192.
15804 + lt_cv_sys_max_cmd_len=8192;
15805 + ;;
15806
15807 -hpux9* | hpux10* | hpux11*)
15808 - # Give a soname corresponding to the major version so that dld.sl refuses to
15809 - # link against other versions.
15810 - version_type=sunos
15811 - need_lib_prefix=no
15812 - need_version=no
15813 - case $host_cpu in
15814 - ia64*)
15815 - shrext_cmds='.so'
15816 - hardcode_into_libs=yes
15817 - dynamic_linker="$host_os dld.so"
15818 - shlibpath_var=LD_LIBRARY_PATH
15819 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15820 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 - soname_spec='${libname}${release}${shared_ext}$major'
15822 - if test "X$HPUX_IA64_MODE" = X32; then
15823 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15824 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15825 + # This has been around since 386BSD, at least. Likely further.
15826 + if test -x /sbin/sysctl; then
15827 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15828 + elif test -x /usr/sbin/sysctl; then
15829 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15830 else
15831 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15832 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
15833 fi
15834 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15835 - ;;
15836 - hppa*64*)
15837 - shrext_cmds='.sl'
15838 - hardcode_into_libs=yes
15839 - dynamic_linker="$host_os dld.sl"
15840 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15841 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15842 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15843 - soname_spec='${libname}${release}${shared_ext}$major'
15844 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15845 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15846 - ;;
15847 - *)
15848 - shrext_cmds='.sl'
15849 - dynamic_linker="$host_os dld.sl"
15850 - shlibpath_var=SHLIB_PATH
15851 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15852 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15853 - soname_spec='${libname}${release}${shared_ext}$major'
15854 + # And add a safety zone
15855 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15856 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15857 ;;
15858 - esac
15859 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
15860 - postinstall_cmds='chmod 555 $lib'
15861 - ;;
15862
15863 -interix3*)
15864 - version_type=linux
15865 - need_lib_prefix=no
15866 - need_version=no
15867 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15868 - soname_spec='${libname}${release}${shared_ext}$major'
15869 - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15870 - shlibpath_var=LD_LIBRARY_PATH
15871 - shlibpath_overrides_runpath=no
15872 - hardcode_into_libs=yes
15873 - ;;
15874 + interix*)
15875 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
15876 + lt_cv_sys_max_cmd_len=196608
15877 + ;;
15878
15879 -irix5* | irix6* | nonstopux*)
15880 - case $host_os in
15881 - nonstopux*) version_type=nonstopux ;;
15882 - *)
15883 - if test "$lt_cv_prog_gnu_ld" = yes; then
15884 - version_type=linux
15885 - else
15886 - version_type=irix
15887 - fi ;;
15888 - esac
15889 - need_lib_prefix=no
15890 - need_version=no
15891 - soname_spec='${libname}${release}${shared_ext}$major'
15892 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15893 - case $host_os in
15894 - irix5* | nonstopux*)
15895 - libsuff= shlibsuff=
15896 + osf*)
15897 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15898 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15899 + # nice to cause kernel panics so lets avoid the loop below.
15900 + # First set a reasonable default.
15901 + lt_cv_sys_max_cmd_len=16384
15902 + #
15903 + if test -x /sbin/sysconfig; then
15904 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15905 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
15906 + esac
15907 + fi
15908 + ;;
15909 + sco3.2v5*)
15910 + lt_cv_sys_max_cmd_len=102400
15911 + ;;
15912 + sysv5* | sco5v6* | sysv4.2uw2*)
15913 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15914 + if test -n "$kargmax"; then
15915 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
15916 + else
15917 + lt_cv_sys_max_cmd_len=32768
15918 + fi
15919 ;;
15920 *)
15921 - case $LD in # libtool.m4 will add one of these switches to LD
15922 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15923 - libsuff= shlibsuff= libmagic=32-bit;;
15924 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15925 - libsuff=32 shlibsuff=N32 libmagic=N32;;
15926 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15927 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
15928 - *) libsuff= shlibsuff= libmagic=never-match;;
15929 - esac
15930 + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15931 + if test -n "$lt_cv_sys_max_cmd_len"; then
15932 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15933 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15934 + else
15935 + # Make teststring a little bigger before we do anything with it.
15936 + # a 1K string should be a reasonable start.
15937 + for i in 1 2 3 4 5 6 7 8 ; do
15938 + teststring=$teststring$teststring
15939 + done
15940 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15941 + # If test is not a shell built-in, we'll probably end up computing a
15942 + # maximum length that is only half of the actual maximum length, but
15943 + # we can't tell.
15944 + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
15945 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
15946 + test $i != 17 # 1/2 MB should be enough
15947 + do
15948 + i=`expr $i + 1`
15949 + teststring=$teststring$teststring
15950 + done
15951 + # Only check the string length outside the loop.
15952 + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15953 + teststring=
15954 + # Add a significant safety factor because C++ compilers can tack on
15955 + # massive amounts of additional arguments before passing them to the
15956 + # linker. It appears as though 1/2 is a usable value.
15957 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15958 + fi
15959 ;;
15960 esac
15961 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15962 - shlibpath_overrides_runpath=no
15963 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15964 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15965 - hardcode_into_libs=yes
15966 - ;;
15967 +])
15968 +if test -n $lt_cv_sys_max_cmd_len ; then
15969 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
15970 +else
15971 + AC_MSG_RESULT(none)
15972 +fi
15973 +max_cmd_len=$lt_cv_sys_max_cmd_len
15974 +_LT_DECL([], [max_cmd_len], [0],
15975 + [What is the maximum length of a command?])
15976 +])# LT_CMD_MAX_LEN
15977
15978 -# No shared lib support for Linux oldld, aout, or coff.
15979 -linux*oldld* | linux*aout* | linux*coff*)
15980 - dynamic_linker=no
15981 - ;;
15982 +# Old name:
15983 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
15984 +dnl aclocal-1.4 backwards compatibility:
15985 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
15986
15987 -# This must be Linux ELF.
15988 -linux*)
15989 - version_type=linux
15990 - need_lib_prefix=no
15991 - need_version=no
15992 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15993 - soname_spec='${libname}${release}${shared_ext}$major'
15994 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15995 - shlibpath_var=LD_LIBRARY_PATH
15996 - shlibpath_overrides_runpath=no
15997 - # This implies no fast_install, which is unacceptable.
15998 - # Some rework will be needed to allow for fast_install
15999 - # before this can be enabled.
16000 - hardcode_into_libs=yes
16001
16002 - # Append ld.so.conf contents to the search path
16003 - if test -f /etc/ld.so.conf; then
16004 - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16005 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16006 - fi
16007 +# _LT_HEADER_DLFCN
16008 +# ----------------
16009 +m4_defun([_LT_HEADER_DLFCN],
16010 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
16011 +])# _LT_HEADER_DLFCN
16012
16013 - # We used to test for /lib/ld.so.1 and disable shared libraries on
16014 - # powerpc, because MkLinux only supported shared libraries with the
16015 - # GNU dynamic linker. Since this was broken with cross compilers,
16016 - # most powerpc-linux boxes support dynamic linking these days and
16017 - # people can always --disable-shared, the test was removed, and we
16018 - # assume the GNU/Linux dynamic linker is in use.
16019 - dynamic_linker='GNU/Linux ld.so'
16020 - ;;
16021
16022 -knetbsd*-gnu)
16023 - version_type=linux
16024 - need_lib_prefix=no
16025 - need_version=no
16026 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16027 - soname_spec='${libname}${release}${shared_ext}$major'
16028 - shlibpath_var=LD_LIBRARY_PATH
16029 - shlibpath_overrides_runpath=no
16030 - hardcode_into_libs=yes
16031 - dynamic_linker='GNU ld.so'
16032 - ;;
16033 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
16034 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
16035 +# ----------------------------------------------------------------
16036 +m4_defun([_LT_TRY_DLOPEN_SELF],
16037 +[m4_require([_LT_HEADER_DLFCN])dnl
16038 +if test "$cross_compiling" = yes; then :
16039 + [$4]
16040 +else
16041 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16042 + lt_status=$lt_dlunknown
16043 + cat > conftest.$ac_ext <<_LT_EOF
16044 +[#line __oline__ "configure"
16045 +#include "confdefs.h"
16046
16047 -netbsd*)
16048 - version_type=sunos
16049 - need_lib_prefix=no
16050 - need_version=no
16051 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16052 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16053 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16054 - dynamic_linker='NetBSD (a.out) ld.so'
16055 - else
16056 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16057 - soname_spec='${libname}${release}${shared_ext}$major'
16058 - dynamic_linker='NetBSD ld.elf_so'
16059 - fi
16060 - shlibpath_var=LD_LIBRARY_PATH
16061 - shlibpath_overrides_runpath=yes
16062 - hardcode_into_libs=yes
16063 - ;;
16064 +#if HAVE_DLFCN_H
16065 +#include <dlfcn.h>
16066 +#endif
16067
16068 -newsos6)
16069 - version_type=linux
16070 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16071 - shlibpath_var=LD_LIBRARY_PATH
16072 - shlibpath_overrides_runpath=yes
16073 - ;;
16074 +#include <stdio.h>
16075
16076 -nto-qnx*)
16077 - version_type=linux
16078 - need_lib_prefix=no
16079 - need_version=no
16080 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 - soname_spec='${libname}${release}${shared_ext}$major'
16082 - shlibpath_var=LD_LIBRARY_PATH
16083 - shlibpath_overrides_runpath=yes
16084 - ;;
16085 +#ifdef RTLD_GLOBAL
16086 +# define LT_DLGLOBAL RTLD_GLOBAL
16087 +#else
16088 +# ifdef DL_GLOBAL
16089 +# define LT_DLGLOBAL DL_GLOBAL
16090 +# else
16091 +# define LT_DLGLOBAL 0
16092 +# endif
16093 +#endif
16094
16095 -openbsd*)
16096 - version_type=sunos
16097 - sys_lib_dlsearch_path_spec="/usr/lib"
16098 - need_lib_prefix=no
16099 - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16100 - case $host_os in
16101 - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16102 - *) need_version=no ;;
16103 - esac
16104 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16105 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16106 - shlibpath_var=LD_LIBRARY_PATH
16107 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16108 - case $host_os in
16109 - openbsd2.[[89]] | openbsd2.[[89]].*)
16110 - shlibpath_overrides_runpath=no
16111 - ;;
16112 - *)
16113 - shlibpath_overrides_runpath=yes
16114 - ;;
16115 - esac
16116 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16117 + find out it does not work in some platform. */
16118 +#ifndef LT_DLLAZY_OR_NOW
16119 +# ifdef RTLD_LAZY
16120 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
16121 +# else
16122 +# ifdef DL_LAZY
16123 +# define LT_DLLAZY_OR_NOW DL_LAZY
16124 +# else
16125 +# ifdef RTLD_NOW
16126 +# define LT_DLLAZY_OR_NOW RTLD_NOW
16127 +# else
16128 +# ifdef DL_NOW
16129 +# define LT_DLLAZY_OR_NOW DL_NOW
16130 +# else
16131 +# define LT_DLLAZY_OR_NOW 0
16132 +# endif
16133 +# endif
16134 +# endif
16135 +# endif
16136 +#endif
16137 +
16138 +#ifdef __cplusplus
16139 +extern "C" void exit (int);
16140 +#endif
16141 +
16142 +void fnord() { int i=42;}
16143 +int main ()
16144 +{
16145 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16146 + int status = $lt_dlunknown;
16147 +
16148 + if (self)
16149 + {
16150 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16151 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16152 + /* dlclose (self); */
16153 + }
16154 else
16155 - shlibpath_overrides_runpath=yes
16156 + puts (dlerror ());
16157 +
16158 + exit (status);
16159 +}]
16160 +_LT_EOF
16161 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
16162 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
16163 + lt_status=$?
16164 + case x$lt_status in
16165 + x$lt_dlno_uscore) $1 ;;
16166 + x$lt_dlneed_uscore) $2 ;;
16167 + x$lt_dlunknown|x*) $3 ;;
16168 + esac
16169 + else :
16170 + # compilation failed
16171 + $3
16172 fi
16173 - ;;
16174 +fi
16175 +rm -fr conftest*
16176 +])# _LT_TRY_DLOPEN_SELF
16177
16178 -os2*)
16179 - libname_spec='$name'
16180 - shrext_cmds=".dll"
16181 - need_lib_prefix=no
16182 - library_names_spec='$libname${shared_ext} $libname.a'
16183 - dynamic_linker='OS/2 ld.exe'
16184 - shlibpath_var=LIBPATH
16185 - ;;
16186
16187 -osf3* | osf4* | osf5*)
16188 - version_type=osf
16189 - need_lib_prefix=no
16190 - need_version=no
16191 - soname_spec='${libname}${release}${shared_ext}$major'
16192 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 - shlibpath_var=LD_LIBRARY_PATH
16194 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16195 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16196 - ;;
16197 +# LT_SYS_DLOPEN_SELF
16198 +# ------------------
16199 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
16200 +[m4_require([_LT_HEADER_DLFCN])dnl
16201 +if test "x$enable_dlopen" != xyes; then
16202 + enable_dlopen=unknown
16203 + enable_dlopen_self=unknown
16204 + enable_dlopen_self_static=unknown
16205 +else
16206 + lt_cv_dlopen=no
16207 + lt_cv_dlopen_libs=
16208
16209 -solaris*)
16210 - version_type=linux
16211 - need_lib_prefix=no
16212 - need_version=no
16213 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16214 - soname_spec='${libname}${release}${shared_ext}$major'
16215 - shlibpath_var=LD_LIBRARY_PATH
16216 - shlibpath_overrides_runpath=yes
16217 - hardcode_into_libs=yes
16218 - # ldd complains unless libraries are executable
16219 - postinstall_cmds='chmod +x $lib'
16220 - ;;
16221 + case $host_os in
16222 + beos*)
16223 + lt_cv_dlopen="load_add_on"
16224 + lt_cv_dlopen_libs=
16225 + lt_cv_dlopen_self=yes
16226 + ;;
16227
16228 -sunos4*)
16229 - version_type=sunos
16230 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16231 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16232 - shlibpath_var=LD_LIBRARY_PATH
16233 - shlibpath_overrides_runpath=yes
16234 - if test "$with_gnu_ld" = yes; then
16235 - need_lib_prefix=no
16236 - fi
16237 - need_version=yes
16238 - ;;
16239 + mingw* | pw32*)
16240 + lt_cv_dlopen="LoadLibrary"
16241 + lt_cv_dlopen_libs=
16242 + ;;
16243
16244 -sysv4 | sysv4.3*)
16245 - version_type=linux
16246 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 - soname_spec='${libname}${release}${shared_ext}$major'
16248 - shlibpath_var=LD_LIBRARY_PATH
16249 - case $host_vendor in
16250 - sni)
16251 - shlibpath_overrides_runpath=no
16252 - need_lib_prefix=no
16253 - export_dynamic_flag_spec='${wl}-Blargedynsym'
16254 - runpath_var=LD_RUN_PATH
16255 - ;;
16256 - siemens)
16257 - need_lib_prefix=no
16258 - ;;
16259 - motorola)
16260 - need_lib_prefix=no
16261 - need_version=no
16262 - shlibpath_overrides_runpath=no
16263 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16264 - ;;
16265 - esac
16266 - ;;
16267 + cygwin*)
16268 + lt_cv_dlopen="dlopen"
16269 + lt_cv_dlopen_libs=
16270 + ;;
16271
16272 -sysv4*MP*)
16273 - if test -d /usr/nec ;then
16274 - version_type=linux
16275 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16276 - soname_spec='$libname${shared_ext}.$major'
16277 - shlibpath_var=LD_LIBRARY_PATH
16278 - fi
16279 - ;;
16280 + darwin*)
16281 + # if libdl is installed we need to link against it
16282 + AC_CHECK_LIB([dl], [dlopen],
16283 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
16284 + lt_cv_dlopen="dyld"
16285 + lt_cv_dlopen_libs=
16286 + lt_cv_dlopen_self=yes
16287 + ])
16288 + ;;
16289
16290 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16291 - version_type=freebsd-elf
16292 - need_lib_prefix=no
16293 - need_version=no
16294 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16295 - soname_spec='${libname}${release}${shared_ext}$major'
16296 - shlibpath_var=LD_LIBRARY_PATH
16297 - hardcode_into_libs=yes
16298 - if test "$with_gnu_ld" = yes; then
16299 - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16300 - shlibpath_overrides_runpath=no
16301 + *)
16302 + AC_CHECK_FUNC([shl_load],
16303 + [lt_cv_dlopen="shl_load"],
16304 + [AC_CHECK_LIB([dld], [shl_load],
16305 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
16306 + [AC_CHECK_FUNC([dlopen],
16307 + [lt_cv_dlopen="dlopen"],
16308 + [AC_CHECK_LIB([dl], [dlopen],
16309 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
16310 + [AC_CHECK_LIB([svld], [dlopen],
16311 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
16312 + [AC_CHECK_LIB([dld], [dld_link],
16313 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
16314 + ])
16315 + ])
16316 + ])
16317 + ])
16318 + ])
16319 + ;;
16320 + esac
16321 +
16322 + if test "x$lt_cv_dlopen" != xno; then
16323 + enable_dlopen=yes
16324 else
16325 - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16326 - shlibpath_overrides_runpath=yes
16327 - case $host_os in
16328 - sco3.2v5*)
16329 - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16330 - ;;
16331 - esac
16332 + enable_dlopen=no
16333 fi
16334 - sys_lib_dlsearch_path_spec='/usr/lib'
16335 - ;;
16336 -
16337 -uts4*)
16338 - version_type=linux
16339 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16340 - soname_spec='${libname}${release}${shared_ext}$major'
16341 - shlibpath_var=LD_LIBRARY_PATH
16342 - ;;
16343 -
16344 -*)
16345 - dynamic_linker=no
16346 - ;;
16347 -esac
16348 -AC_MSG_RESULT([$dynamic_linker])
16349 -test "$dynamic_linker" = no && can_build_shared=no
16350 -
16351 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16352 -if test "$GCC" = yes; then
16353 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16354 -fi
16355 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
16356 -
16357
16358 -# _LT_AC_TAGCONFIG
16359 -# ----------------
16360 -AC_DEFUN([_LT_AC_TAGCONFIG],
16361 -[AC_ARG_WITH([tags],
16362 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
16363 - [include additional configurations @<:@automatic@:>@])],
16364 - [tagnames="$withval"])
16365 -
16366 -if test -f "$ltmain" && test -n "$tagnames"; then
16367 - if test ! -f "${ofile}"; then
16368 - AC_MSG_WARN([output file `$ofile' does not exist])
16369 - fi
16370 + case $lt_cv_dlopen in
16371 + dlopen)
16372 + save_CPPFLAGS="$CPPFLAGS"
16373 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16374
16375 - if test -z "$LTCC"; then
16376 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16377 - if test -z "$LTCC"; then
16378 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
16379 - else
16380 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
16381 - fi
16382 - fi
16383 - if test -z "$LTCFLAGS"; then
16384 - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
16385 - fi
16386 + save_LDFLAGS="$LDFLAGS"
16387 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16388
16389 - # Extract list of available tagged configurations in $ofile.
16390 - # Note that this assumes the entire list is on one line.
16391 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16392 + save_LIBS="$LIBS"
16393 + LIBS="$lt_cv_dlopen_libs $LIBS"
16394
16395 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16396 - for tagname in $tagnames; do
16397 - IFS="$lt_save_ifs"
16398 - # Check whether tagname contains only valid characters
16399 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
16400 - "") ;;
16401 - *) AC_MSG_ERROR([invalid tag name: $tagname])
16402 - ;;
16403 - esac
16404 + AC_CACHE_CHECK([whether a program can dlopen itself],
16405 + lt_cv_dlopen_self, [dnl
16406 + _LT_TRY_DLOPEN_SELF(
16407 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
16408 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
16409 + ])
16410
16411 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16412 - then
16413 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
16414 + if test "x$lt_cv_dlopen_self" = xyes; then
16415 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16416 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
16417 + lt_cv_dlopen_self_static, [dnl
16418 + _LT_TRY_DLOPEN_SELF(
16419 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
16420 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
16421 + ])
16422 fi
16423
16424 - # Update the list of available tags.
16425 - if test -n "$tagname"; then
16426 - echo appending configuration tag \"$tagname\" to $ofile
16427 -
16428 - case $tagname in
16429 - CXX)
16430 - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16431 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16432 - (test "X$CXX" != "Xg++"))) ; then
16433 - AC_LIBTOOL_LANG_CXX_CONFIG
16434 - else
16435 - tagname=""
16436 - fi
16437 - ;;
16438 -
16439 - F77)
16440 - if test -n "$F77" && test "X$F77" != "Xno"; then
16441 - AC_LIBTOOL_LANG_F77_CONFIG
16442 - else
16443 - tagname=""
16444 - fi
16445 - ;;
16446 -
16447 - GCJ)
16448 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16449 - AC_LIBTOOL_LANG_GCJ_CONFIG
16450 - else
16451 - tagname=""
16452 - fi
16453 - ;;
16454 -
16455 - RC)
16456 - AC_LIBTOOL_LANG_RC_CONFIG
16457 - ;;
16458 -
16459 - *)
16460 - AC_MSG_ERROR([Unsupported tag name: $tagname])
16461 - ;;
16462 - esac
16463 + CPPFLAGS="$save_CPPFLAGS"
16464 + LDFLAGS="$save_LDFLAGS"
16465 + LIBS="$save_LIBS"
16466 + ;;
16467 + esac
16468
16469 - # Append the new tag name to the list of available tags.
16470 - if test -n "$tagname" ; then
16471 - available_tags="$available_tags $tagname"
16472 - fi
16473 - fi
16474 - done
16475 - IFS="$lt_save_ifs"
16476 + case $lt_cv_dlopen_self in
16477 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16478 + *) enable_dlopen_self=unknown ;;
16479 + esac
16480
16481 - # Now substitute the updated list of available tags.
16482 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
16483 - mv "${ofile}T" "$ofile"
16484 - chmod +x "$ofile"
16485 - else
16486 - rm -f "${ofile}T"
16487 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
16488 - fi
16489 + case $lt_cv_dlopen_self_static in
16490 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16491 + *) enable_dlopen_self_static=unknown ;;
16492 + esac
16493 fi
16494 -])# _LT_AC_TAGCONFIG
16495 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
16496 + [Whether dlopen is supported])
16497 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
16498 + [Whether dlopen of programs is supported])
16499 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
16500 + [Whether dlopen of statically linked programs is supported])
16501 +])# LT_SYS_DLOPEN_SELF
16502 +
16503 +# Old name:
16504 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
16505 +dnl aclocal-1.4 backwards compatibility:
16506 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
16507
16508
16509 -# AC_LIBTOOL_DLOPEN
16510 -# -----------------
16511 -# enable checks for dlopen support
16512 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
16513 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
16514 -])# AC_LIBTOOL_DLOPEN
16515 +# _LT_COMPILER_C_O([TAGNAME])
16516 +# ---------------------------
16517 +# Check to see if options -c and -o are simultaneously supported by compiler.
16518 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
16519 +m4_defun([_LT_COMPILER_C_O],
16520 +[m4_require([_LT_DECL_SED])dnl
16521 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16522 +m4_require([_LT_TAG_COMPILER])dnl
16523 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
16524 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
16525 + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
16526 + $RM -r conftest 2>/dev/null
16527 + mkdir conftest
16528 + cd conftest
16529 + mkdir out
16530 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16531
16532 + lt_compiler_flag="-o out/conftest2.$ac_objext"
16533 + # Insert the option either (1) after the last *FLAGS variable, or
16534 + # (2) before a word containing "conftest.", or (3) at the end.
16535 + # Note that $ac_compile itself does not contain backslashes and begins
16536 + # with a dollar sign (not a hyphen), so the echo should work correctly.
16537 + lt_compile=`echo "$ac_compile" | $SED \
16538 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16539 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
16540 + -e 's:$: $lt_compiler_flag:'`
16541 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
16542 + (eval "$lt_compile" 2>out/conftest.err)
16543 + ac_status=$?
16544 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
16545 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
16546 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
16547 + then
16548 + # The compiler can only warn and ignore the option if not recognized
16549 + # So say no if there are warnings
16550 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16551 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16552 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16553 + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
16554 + fi
16555 + fi
16556 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
16557 + $RM conftest*
16558 + # SGI C++ compiler will create directory out/ii_files/ for
16559 + # template instantiation
16560 + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16561 + $RM out/* && rmdir out
16562 + cd ..
16563 + $RM -r conftest
16564 + $RM conftest*
16565 +])
16566 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
16567 + [Does compiler simultaneously support -c and -o options?])
16568 +])# _LT_COMPILER_C_O
16569
16570 -# AC_LIBTOOL_WIN32_DLL
16571 -# --------------------
16572 -# declare package support for building win32 DLLs
16573 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
16574 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
16575 -])# AC_LIBTOOL_WIN32_DLL
16576
16577 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
16578 +# ----------------------------------
16579 +# Check to see if we can do hard links to lock some files if needed
16580 +m4_defun([_LT_COMPILER_FILE_LOCKS],
16581 +[m4_require([_LT_ENABLE_LOCK])dnl
16582 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16583 +_LT_COMPILER_C_O([$1])
16584
16585 -# AC_ENABLE_SHARED([DEFAULT])
16586 -# ---------------------------
16587 -# implement the --enable-shared flag
16588 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16589 -AC_DEFUN([AC_ENABLE_SHARED],
16590 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
16591 -AC_ARG_ENABLE([shared],
16592 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
16593 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
16594 - [p=${PACKAGE-default}
16595 - case $enableval in
16596 - yes) enable_shared=yes ;;
16597 - no) enable_shared=no ;;
16598 - *)
16599 - enable_shared=no
16600 - # Look at the argument we got. We use all the common list separators.
16601 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16602 - for pkg in $enableval; do
16603 - IFS="$lt_save_ifs"
16604 - if test "X$pkg" = "X$p"; then
16605 - enable_shared=yes
16606 - fi
16607 - done
16608 - IFS="$lt_save_ifs"
16609 - ;;
16610 - esac],
16611 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
16612 -])# AC_ENABLE_SHARED
16613 -
16614 -
16615 -# AC_DISABLE_SHARED
16616 -# -----------------
16617 -# set the default shared flag to --disable-shared
16618 -AC_DEFUN([AC_DISABLE_SHARED],
16619 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16620 -AC_ENABLE_SHARED(no)
16621 -])# AC_DISABLE_SHARED
16622 -
16623 -
16624 -# AC_ENABLE_STATIC([DEFAULT])
16625 -# ---------------------------
16626 -# implement the --enable-static flag
16627 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16628 -AC_DEFUN([AC_ENABLE_STATIC],
16629 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
16630 -AC_ARG_ENABLE([static],
16631 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
16632 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
16633 - [p=${PACKAGE-default}
16634 - case $enableval in
16635 - yes) enable_static=yes ;;
16636 - no) enable_static=no ;;
16637 - *)
16638 - enable_static=no
16639 - # Look at the argument we got. We use all the common list separators.
16640 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16641 - for pkg in $enableval; do
16642 - IFS="$lt_save_ifs"
16643 - if test "X$pkg" = "X$p"; then
16644 - enable_static=yes
16645 - fi
16646 - done
16647 - IFS="$lt_save_ifs"
16648 - ;;
16649 - esac],
16650 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
16651 -])# AC_ENABLE_STATIC
16652 -
16653 -
16654 -# AC_DISABLE_STATIC
16655 -# -----------------
16656 -# set the default static flag to --disable-static
16657 -AC_DEFUN([AC_DISABLE_STATIC],
16658 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16659 -AC_ENABLE_STATIC(no)
16660 -])# AC_DISABLE_STATIC
16661 -
16662 -
16663 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
16664 -# ---------------------------------
16665 -# implement the --enable-fast-install flag
16666 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
16667 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
16668 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
16669 -AC_ARG_ENABLE([fast-install],
16670 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
16671 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
16672 - [p=${PACKAGE-default}
16673 - case $enableval in
16674 - yes) enable_fast_install=yes ;;
16675 - no) enable_fast_install=no ;;
16676 - *)
16677 - enable_fast_install=no
16678 - # Look at the argument we got. We use all the common list separators.
16679 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16680 - for pkg in $enableval; do
16681 - IFS="$lt_save_ifs"
16682 - if test "X$pkg" = "X$p"; then
16683 - enable_fast_install=yes
16684 - fi
16685 - done
16686 - IFS="$lt_save_ifs"
16687 - ;;
16688 - esac],
16689 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
16690 -])# AC_ENABLE_FAST_INSTALL
16691 -
16692 -
16693 -# AC_DISABLE_FAST_INSTALL
16694 -# -----------------------
16695 -# set the default to --disable-fast-install
16696 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
16697 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16698 -AC_ENABLE_FAST_INSTALL(no)
16699 -])# AC_DISABLE_FAST_INSTALL
16700 -
16701 -
16702 -# AC_LIBTOOL_PICMODE([MODE])
16703 -# --------------------------
16704 -# implement the --with-pic flag
16705 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
16706 -AC_DEFUN([AC_LIBTOOL_PICMODE],
16707 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
16708 -pic_mode=ifelse($#,1,$1,default)
16709 -])# AC_LIBTOOL_PICMODE
16710 -
16711 -
16712 -# AC_PROG_EGREP
16713 -# -------------
16714 -# This is predefined starting with Autoconf 2.54, so this conditional
16715 -# definition can be removed once we require Autoconf 2.54 or later.
16716 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
16717 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
16718 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
16719 - then ac_cv_prog_egrep='grep -E'
16720 - else ac_cv_prog_egrep='egrep'
16721 - fi])
16722 - EGREP=$ac_cv_prog_egrep
16723 - AC_SUBST([EGREP])
16724 -])])
16725 -
16726 -
16727 -# AC_PATH_TOOL_PREFIX
16728 -# -------------------
16729 -# find a file program which can recognise shared library
16730 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
16731 -[AC_REQUIRE([AC_PROG_EGREP])dnl
16732 -AC_MSG_CHECKING([for $1])
16733 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
16734 -[case $MAGIC_CMD in
16735 -[[\\/*] | ?:[\\/]*])
16736 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16737 - ;;
16738 -*)
16739 - lt_save_MAGIC_CMD="$MAGIC_CMD"
16740 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16741 -dnl $ac_dummy forces splitting on constant user-supplied paths.
16742 -dnl POSIX.2 word splitting is done only on the output of word expansions,
16743 -dnl not every word. This closes a longstanding sh security hole.
16744 - ac_dummy="ifelse([$2], , $PATH, [$2])"
16745 - for ac_dir in $ac_dummy; do
16746 - IFS="$lt_save_ifs"
16747 - test -z "$ac_dir" && ac_dir=.
16748 - if test -f $ac_dir/$1; then
16749 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
16750 - if test -n "$file_magic_test_file"; then
16751 - case $deplibs_check_method in
16752 - "file_magic "*)
16753 - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16754 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16755 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16756 - $EGREP "$file_magic_regex" > /dev/null; then
16757 - :
16758 - else
16759 - cat <<EOF 1>&2
16760 +hard_links="nottested"
16761 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
16762 + # do not overwrite the value of need_locks provided by the user
16763 + AC_MSG_CHECKING([if we can lock with hard links])
16764 + hard_links=yes
16765 + $RM conftest*
16766 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
16767 + touch conftest.a
16768 + ln conftest.a conftest.b 2>&5 || hard_links=no
16769 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
16770 + AC_MSG_RESULT([$hard_links])
16771 + if test "$hard_links" = no; then
16772 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
16773 + need_locks=warn
16774 + fi
16775 +else
16776 + need_locks=no
16777 +fi
16778 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
16779 +])# _LT_COMPILER_FILE_LOCKS
16780
16781 -*** Warning: the command libtool uses to detect shared libraries,
16782 -*** $file_magic_cmd, produces output that libtool cannot recognize.
16783 -*** The result is that libtool may fail to recognize shared libraries
16784 -*** as such. This will affect the creation of libtool libraries that
16785 -*** depend on shared libraries, but programs linked with such libtool
16786 -*** libraries will work regardless of this problem. Nevertheless, you
16787 -*** may want to report the problem to your system manager and/or to
16788 -*** bug-libtool@gnu.org
16789
16790 -EOF
16791 - fi ;;
16792 - esac
16793 - fi
16794 - break
16795 - fi
16796 - done
16797 - IFS="$lt_save_ifs"
16798 - MAGIC_CMD="$lt_save_MAGIC_CMD"
16799 - ;;
16800 -esac])
16801 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
16802 -if test -n "$MAGIC_CMD"; then
16803 - AC_MSG_RESULT($MAGIC_CMD)
16804 +# _LT_CHECK_OBJDIR
16805 +# ----------------
16806 +m4_defun([_LT_CHECK_OBJDIR],
16807 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
16808 +[rm -f .libs 2>/dev/null
16809 +mkdir .libs 2>/dev/null
16810 +if test -d .libs; then
16811 + lt_cv_objdir=.libs
16812 else
16813 - AC_MSG_RESULT(no)
16814 + # MS-DOS does not allow filenames that begin with a dot.
16815 + lt_cv_objdir=_libs
16816 fi
16817 -])# AC_PATH_TOOL_PREFIX
16818 +rmdir .libs 2>/dev/null])
16819 +objdir=$lt_cv_objdir
16820 +_LT_DECL([], [objdir], [0],
16821 + [The name of the directory that contains temporary libtool files])dnl
16822 +m4_pattern_allow([LT_OBJDIR])dnl
16823 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
16824 + [Define to the sub-directory in which libtool stores uninstalled libraries.])
16825 +])# _LT_CHECK_OBJDIR
16826
16827
16828 -# AC_PATH_MAGIC
16829 -# -------------
16830 -# find a file program which can recognise a shared library
16831 -AC_DEFUN([AC_PATH_MAGIC],
16832 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
16833 -if test -z "$lt_cv_path_MAGIC_CMD"; then
16834 - if test -n "$ac_tool_prefix"; then
16835 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
16836 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
16837 +# --------------------------------------
16838 +# Check hardcoding attributes.
16839 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
16840 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
16841 +_LT_TAGVAR(hardcode_action, $1)=
16842 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
16843 + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
16844 + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
16845 +
16846 + # We can hardcode non-existent directories.
16847 + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
16848 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
16849 + # have to relink, otherwise we might link with an installed library
16850 + # when we should be linking with a yet-to-be-installed one
16851 + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
16852 + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
16853 + # Linking always hardcodes the temporary library directory.
16854 + _LT_TAGVAR(hardcode_action, $1)=relink
16855 else
16856 - MAGIC_CMD=:
16857 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
16858 + _LT_TAGVAR(hardcode_action, $1)=immediate
16859 fi
16860 +else
16861 + # We cannot hardcode anything, or else we can only hardcode existing
16862 + # directories.
16863 + _LT_TAGVAR(hardcode_action, $1)=unsupported
16864 +fi
16865 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
16866 +
16867 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
16868 + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
16869 + # Fast installation is not supported
16870 + enable_fast_install=no
16871 +elif test "$shlibpath_overrides_runpath" = yes ||
16872 + test "$enable_shared" = no; then
16873 + # Fast installation is not necessary
16874 + enable_fast_install=needless
16875 fi
16876 -])# AC_PATH_MAGIC
16877 +_LT_TAGDECL([], [hardcode_action], [0],
16878 + [How to hardcode a shared library path into an executable])
16879 +])# _LT_LINKER_HARDCODE_LIBPATH
16880
16881
16882 -# AC_PROG_LD
16883 -# ----------
16884 -# find the pathname to the GNU or non-GNU linker
16885 -AC_DEFUN([AC_PROG_LD],
16886 -[AC_ARG_WITH([gnu-ld],
16887 - [AC_HELP_STRING([--with-gnu-ld],
16888 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
16889 - [test "$withval" = no || with_gnu_ld=yes],
16890 - [with_gnu_ld=no])
16891 -AC_REQUIRE([LT_AC_PROG_SED])dnl
16892 -AC_REQUIRE([AC_PROG_CC])dnl
16893 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
16894 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
16895 -ac_prog=ld
16896 -if test "$GCC" = yes; then
16897 - # Check if gcc -print-prog-name=ld gives a path.
16898 - AC_MSG_CHECKING([for ld used by $CC])
16899 - case $host in
16900 - *-*-mingw*)
16901 - # gcc leaves a trailing carriage return which upsets mingw
16902 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16903 - *)
16904 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16905 - esac
16906 - case $ac_prog in
16907 - # Accept absolute paths.
16908 - [[\\/]]* | ?:[[\\/]]*)
16909 - re_direlt='/[[^/]][[^/]]*/\.\./'
16910 - # Canonicalize the pathname of ld
16911 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16912 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16913 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16914 - done
16915 - test -z "$LD" && LD="$ac_prog"
16916 - ;;
16917 - "")
16918 - # If it fails, then pretend we aren't using GCC.
16919 - ac_prog=ld
16920 +# _LT_CMD_STRIPLIB
16921 +# ----------------
16922 +m4_defun([_LT_CMD_STRIPLIB],
16923 +[m4_require([_LT_DECL_EGREP])
16924 +striplib=
16925 +old_striplib=
16926 +AC_MSG_CHECKING([whether stripping libraries is possible])
16927 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16928 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16929 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16930 + AC_MSG_RESULT([yes])
16931 +else
16932 +# FIXME - insert some real tests, host_os isn't really good enough
16933 + case $host_os in
16934 + darwin*)
16935 + if test -n "$STRIP" ; then
16936 + striplib="$STRIP -x"
16937 + old_striplib="$STRIP -S"
16938 + AC_MSG_RESULT([yes])
16939 + else
16940 + AC_MSG_RESULT([no])
16941 + fi
16942 ;;
16943 *)
16944 - # If it is relative, then search for the first ld in PATH.
16945 - with_gnu_ld=unknown
16946 + AC_MSG_RESULT([no])
16947 ;;
16948 esac
16949 -elif test "$with_gnu_ld" = yes; then
16950 - AC_MSG_CHECKING([for GNU ld])
16951 -else
16952 - AC_MSG_CHECKING([for non-GNU ld])
16953 fi
16954 -AC_CACHE_VAL(lt_cv_path_LD,
16955 -[if test -z "$LD"; then
16956 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16957 - for ac_dir in $PATH; do
16958 - IFS="$lt_save_ifs"
16959 - test -z "$ac_dir" && ac_dir=.
16960 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16961 - lt_cv_path_LD="$ac_dir/$ac_prog"
16962 - # Check to see if the program is GNU ld. I'd rather use --version,
16963 - # but apparently some variants of GNU ld only accept -v.
16964 - # Break only if it was the GNU/non-GNU ld that we prefer.
16965 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16966 - *GNU* | *'with BFD'*)
16967 - test "$with_gnu_ld" != no && break
16968 - ;;
16969 - *)
16970 - test "$with_gnu_ld" != yes && break
16971 - ;;
16972 - esac
16973 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
16974 +_LT_DECL([], [striplib], [1])
16975 +])# _LT_CMD_STRIPLIB
16976 +
16977 +
16978 +# _LT_SYS_DYNAMIC_LINKER([TAG])
16979 +# -----------------------------
16980 +# PORTME Fill in your ld.so characteristics
16981 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
16982 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
16983 +m4_require([_LT_DECL_EGREP])dnl
16984 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
16985 +m4_require([_LT_DECL_SED])dnl
16986 +AC_MSG_CHECKING([dynamic linker characteristics])
16987 +m4_if([$1],
16988 + [], [
16989 +if test "$GCC" = yes; then
16990 + case $host_os in
16991 + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16992 + *) lt_awk_arg="/^libraries:/" ;;
16993 + esac
16994 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16995 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16996 + # if the path contains ";" then we assume it to be the separator
16997 + # otherwise default to the standard path separator (i.e. ":") - it is
16998 + # assumed that no part of a normal pathname contains ";" but that should
16999 + # okay in the real world where ";" in dirpaths is itself problematic.
17000 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
17001 + else
17002 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17003 + fi
17004 + # Ok, now we have the path, separated by spaces, we can step through it
17005 + # and add multilib dir if necessary.
17006 + lt_tmp_lt_search_path_spec=
17007 + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17008 + for lt_sys_path in $lt_search_path_spec; do
17009 + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17010 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17011 + else
17012 + test -d "$lt_sys_path" && \
17013 + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17014 fi
17015 done
17016 - IFS="$lt_save_ifs"
17017 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
17018 +BEGIN {RS=" "; FS="/|\n";} {
17019 + lt_foo="";
17020 + lt_count=0;
17021 + for (lt_i = NF; lt_i > 0; lt_i--) {
17022 + if ($lt_i != "" && $lt_i != ".") {
17023 + if ($lt_i == "..") {
17024 + lt_count++;
17025 + } else {
17026 + if (lt_count == 0) {
17027 + lt_foo="/" $lt_i lt_foo;
17028 + } else {
17029 + lt_count--;
17030 + }
17031 + }
17032 + }
17033 + }
17034 + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
17035 + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
17036 +}'`
17037 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
17038 else
17039 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
17040 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17041 fi])
17042 -LD="$lt_cv_path_LD"
17043 -if test -n "$LD"; then
17044 - AC_MSG_RESULT($LD)
17045 -else
17046 - AC_MSG_RESULT(no)
17047 -fi
17048 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
17049 -AC_PROG_LD_GNU
17050 -])# AC_PROG_LD
17051 +library_names_spec=
17052 +libname_spec='lib$name'
17053 +soname_spec=
17054 +shrext_cmds=".so"
17055 +postinstall_cmds=
17056 +postuninstall_cmds=
17057 +finish_cmds=
17058 +finish_eval=
17059 +shlibpath_var=
17060 +shlibpath_overrides_runpath=unknown
17061 +version_type=none
17062 +dynamic_linker="$host_os ld.so"
17063 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
17064 +need_lib_prefix=unknown
17065 +hardcode_into_libs=no
17066 +
17067 +# when you set need_version to no, make sure it does not cause -set_version
17068 +# flags to be left without arguments
17069 +need_version=unknown
17070
17071 +case $host_os in
17072 +aix3*)
17073 + version_type=linux
17074 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17075 + shlibpath_var=LIBPATH
17076
17077 -# AC_PROG_LD_GNU
17078 -# --------------
17079 -AC_DEFUN([AC_PROG_LD_GNU],
17080 -[AC_REQUIRE([AC_PROG_EGREP])dnl
17081 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
17082 -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
17083 -case `$LD -v 2>&1 </dev/null` in
17084 -*GNU* | *'with BFD'*)
17085 - lt_cv_prog_gnu_ld=yes
17086 + # AIX 3 has no versioning support, so we append a major version to the name.
17087 + soname_spec='${libname}${release}${shared_ext}$major'
17088 ;;
17089 -*)
17090 - lt_cv_prog_gnu_ld=no
17091 - ;;
17092 -esac])
17093 -with_gnu_ld=$lt_cv_prog_gnu_ld
17094 -])# AC_PROG_LD_GNU
17095 -
17096
17097 -# AC_PROG_LD_RELOAD_FLAG
17098 -# ----------------------
17099 -# find reload flag for linker
17100 -# -- PORTME Some linkers may need a different reload flag.
17101 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
17102 -[AC_CACHE_CHECK([for $LD option to reload object files],
17103 - lt_cv_ld_reload_flag,
17104 - [lt_cv_ld_reload_flag='-r'])
17105 -reload_flag=$lt_cv_ld_reload_flag
17106 -case $reload_flag in
17107 -"" | " "*) ;;
17108 -*) reload_flag=" $reload_flag" ;;
17109 -esac
17110 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
17111 -case $host_os in
17112 - darwin*)
17113 - if test "$GCC" = yes; then
17114 - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
17115 +aix[[4-9]]*)
17116 + version_type=linux
17117 + need_lib_prefix=no
17118 + need_version=no
17119 + hardcode_into_libs=yes
17120 + if test "$host_cpu" = ia64; then
17121 + # AIX 5 supports IA64
17122 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17123 + shlibpath_var=LD_LIBRARY_PATH
17124 + else
17125 + # With GCC up to 2.95.x, collect2 would create an import file
17126 + # for dependence libraries. The import file would start with
17127 + # the line `#! .'. This would cause the generated library to
17128 + # depend on `.', always an invalid library. This was fixed in
17129 + # development snapshots of GCC prior to 3.0.
17130 + case $host_os in
17131 + aix4 | aix4.[[01]] | aix4.[[01]].*)
17132 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17133 + echo ' yes '
17134 + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17135 + :
17136 + else
17137 + can_build_shared=no
17138 + fi
17139 + ;;
17140 + esac
17141 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17142 + # soname into executable. Probably we can add versioning support to
17143 + # collect2, so additional links can be useful in future.
17144 + if test "$aix_use_runtimelinking" = yes; then
17145 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17146 + # instead of lib<name>.a to let people know that these are not
17147 + # typical AIX shared libraries.
17148 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17149 else
17150 - reload_cmds='$LD$reload_flag -o $output$reload_objs'
17151 + # We preserve .a as extension for shared libraries through AIX4.2
17152 + # and later when we are not doing run time linking.
17153 + library_names_spec='${libname}${release}.a $libname.a'
17154 + soname_spec='${libname}${release}${shared_ext}$major'
17155 fi
17156 - ;;
17157 -esac
17158 -])# AC_PROG_LD_RELOAD_FLAG
17159 -
17160 -
17161 -# AC_DEPLIBS_CHECK_METHOD
17162 -# -----------------------
17163 -# how to check for library dependencies
17164 -# -- PORTME fill in with the dynamic library characteristics
17165 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
17166 -[AC_CACHE_CHECK([how to recognise dependent libraries],
17167 -lt_cv_deplibs_check_method,
17168 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
17169 -lt_cv_file_magic_test_file=
17170 -lt_cv_deplibs_check_method='unknown'
17171 -# Need to set the preceding variable on all platforms that support
17172 -# interlibrary dependencies.
17173 -# 'none' -- dependencies not supported.
17174 -# `unknown' -- same as none, but documents that we really don't know.
17175 -# 'pass_all' -- all dependencies passed with no checks.
17176 -# 'test_compile' -- check by making test program.
17177 -# 'file_magic [[regex]]' -- check by looking for files in library path
17178 -# which responds to the $file_magic_cmd with a given extended regex.
17179 -# If you have `file' or equivalent on your system and you're not sure
17180 -# whether `pass_all' will *always* work, you probably want this one.
17181 + shlibpath_var=LIBPATH
17182 + fi
17183 + ;;
17184
17185 -case $host_os in
17186 -aix4* | aix5*)
17187 - lt_cv_deplibs_check_method=pass_all
17188 +amigaos*)
17189 + case $host_cpu in
17190 + powerpc)
17191 + # Since July 2007 AmigaOS4 officially supports .so libraries.
17192 + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17193 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 + ;;
17195 + m68k)
17196 + library_names_spec='$libname.ixlibrary $libname.a'
17197 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
17198 + 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'
17199 + ;;
17200 + esac
17201 ;;
17202
17203 beos*)
17204 - lt_cv_deplibs_check_method=pass_all
17205 + library_names_spec='${libname}${shared_ext}'
17206 + dynamic_linker="$host_os ld.so"
17207 + shlibpath_var=LIBRARY_PATH
17208 ;;
17209
17210 bsdi[[45]]*)
17211 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
17212 - lt_cv_file_magic_cmd='/usr/bin/file -L'
17213 - lt_cv_file_magic_test_file=/shlib/libc.so
17214 - ;;
17215 -
17216 -cygwin*)
17217 - # func_win32_libid is a shell function defined in ltmain.sh
17218 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
17219 - lt_cv_file_magic_cmd='func_win32_libid'
17220 + version_type=linux
17221 + need_version=no
17222 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17223 + soname_spec='${libname}${release}${shared_ext}$major'
17224 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17225 + shlibpath_var=LD_LIBRARY_PATH
17226 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17227 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17228 + # the default ld.so.conf also contains /usr/contrib/lib and
17229 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17230 + # libtool to hard-code these into programs
17231 ;;
17232
17233 -mingw* | pw32*)
17234 - # Base MSYS/MinGW do not provide the 'file' command needed by
17235 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
17236 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
17237 - lt_cv_file_magic_cmd='$OBJDUMP -f'
17238 - ;;
17239 +cygwin* | mingw* | pw32*)
17240 + version_type=windows
17241 + shrext_cmds=".dll"
17242 + need_version=no
17243 + need_lib_prefix=no
17244
17245 -darwin* | rhapsody*)
17246 - lt_cv_deplibs_check_method=pass_all
17247 - ;;
17248 + case $GCC,$host_os in
17249 + yes,cygwin* | yes,mingw* | yes,pw32*)
17250 + library_names_spec='$libname.dll.a'
17251 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
17252 + postinstall_cmds='base_file=`basename \${file}`~
17253 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17254 + dldir=$destdir/`dirname \$dlpath`~
17255 + test -d \$dldir || mkdir -p \$dldir~
17256 + $install_prog $dir/$dlname \$dldir/$dlname~
17257 + chmod a+x \$dldir/$dlname~
17258 + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17259 + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17260 + fi'
17261 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17262 + dlpath=$dir/\$dldll~
17263 + $RM \$dlpath'
17264 + shlibpath_overrides_runpath=yes
17265
17266 -freebsd* | kfreebsd*-gnu | dragonfly*)
17267 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
17268 - case $host_cpu in
17269 - i*86 )
17270 - # Not sure whether the presence of OpenBSD here was a mistake.
17271 - # Let's accept both of them until this is cleared up.
17272 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
17273 - lt_cv_file_magic_cmd=/usr/bin/file
17274 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
17275 + case $host_os in
17276 + cygwin*)
17277 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17278 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17279 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17280 + ;;
17281 + mingw*)
17282 + # MinGW DLLs use traditional 'lib' prefix
17283 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17284 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17285 + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
17286 + # It is most probably a Windows format PATH printed by
17287 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
17288 + # path with ; separators, and with drive letters. We can handle the
17289 + # drive letters (cygwin fileutils understands them), so leave them,
17290 + # especially as we might pass files found there to a mingw objdump,
17291 + # which wouldn't understand a cygwinified path. Ahh.
17292 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17293 + else
17294 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17295 + fi
17296 + ;;
17297 + pw32*)
17298 + # pw32 DLLs use 'pw' prefix rather than 'lib'
17299 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
17300 ;;
17301 esac
17302 - else
17303 - lt_cv_deplibs_check_method=pass_all
17304 - fi
17305 - ;;
17306 -
17307 -gnu*)
17308 - lt_cv_deplibs_check_method=pass_all
17309 - ;;
17310 -
17311 -hpux10.20* | hpux11*)
17312 - lt_cv_file_magic_cmd=/usr/bin/file
17313 - case $host_cpu in
17314 - ia64*)
17315 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
17316 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
17317 - ;;
17318 - hppa*64*)
17319 - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
17320 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
17321 ;;
17322 +
17323 *)
17324 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
17325 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
17326 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
17327 ;;
17328 esac
17329 + dynamic_linker='Win32 ld.exe'
17330 + # FIXME: first we should search . and the directory the executable is in
17331 + shlibpath_var=PATH
17332 ;;
17333
17334 -interix3*)
17335 - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
17336 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
17337 - ;;
17338 -
17339 -irix5* | irix6* | nonstopux*)
17340 - case $LD in
17341 - *-32|*"-32 ") libmagic=32-bit;;
17342 - *-n32|*"-n32 ") libmagic=N32;;
17343 - *-64|*"-64 ") libmagic=64-bit;;
17344 - *) libmagic=never-match;;
17345 - esac
17346 - lt_cv_deplibs_check_method=pass_all
17347 - ;;
17348 -
17349 -# This must be Linux ELF.
17350 -linux*)
17351 - lt_cv_deplibs_check_method=pass_all
17352 - ;;
17353 -
17354 -netbsd*)
17355 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
17356 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
17357 - else
17358 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
17359 - fi
17360 +darwin* | rhapsody*)
17361 + dynamic_linker="$host_os dyld"
17362 + version_type=darwin
17363 + need_lib_prefix=no
17364 + need_version=no
17365 + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17366 + soname_spec='${libname}${release}${major}$shared_ext'
17367 + shlibpath_overrides_runpath=yes
17368 + shlibpath_var=DYLD_LIBRARY_PATH
17369 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17370 +m4_if([$1], [],[
17371 + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
17372 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17373 ;;
17374
17375 -newos6*)
17376 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
17377 - lt_cv_file_magic_cmd=/usr/bin/file
17378 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
17379 +dgux*)
17380 + version_type=linux
17381 + need_lib_prefix=no
17382 + need_version=no
17383 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17384 + soname_spec='${libname}${release}${shared_ext}$major'
17385 + shlibpath_var=LD_LIBRARY_PATH
17386 ;;
17387
17388 -nto-qnx*)
17389 - lt_cv_deplibs_check_method=unknown
17390 +freebsd1*)
17391 + dynamic_linker=no
17392 ;;
17393
17394 -openbsd*)
17395 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17396 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
17397 +freebsd* | dragonfly*)
17398 + # DragonFly does not have aout. When/if they implement a new
17399 + # versioning mechanism, adjust this.
17400 + if test -x /usr/bin/objformat; then
17401 + objformat=`/usr/bin/objformat`
17402 else
17403 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
17404 + case $host_os in
17405 + freebsd[[123]]*) objformat=aout ;;
17406 + *) objformat=elf ;;
17407 + esac
17408 fi
17409 - ;;
17410 -
17411 -osf3* | osf4* | osf5*)
17412 - lt_cv_deplibs_check_method=pass_all
17413 - ;;
17414 -
17415 -solaris*)
17416 - lt_cv_deplibs_check_method=pass_all
17417 - ;;
17418 -
17419 -sysv4 | sysv4.3*)
17420 - case $host_vendor in
17421 - motorola)
17422 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
17423 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
17424 - ;;
17425 - ncr)
17426 - lt_cv_deplibs_check_method=pass_all
17427 - ;;
17428 - sequent)
17429 - lt_cv_file_magic_cmd='/bin/file'
17430 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
17431 + version_type=freebsd-$objformat
17432 + case $version_type in
17433 + freebsd-elf*)
17434 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17435 + need_version=no
17436 + need_lib_prefix=no
17437 + ;;
17438 + freebsd-*)
17439 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17440 + need_version=yes
17441 + ;;
17442 + esac
17443 + shlibpath_var=LD_LIBRARY_PATH
17444 + case $host_os in
17445 + freebsd2*)
17446 + shlibpath_overrides_runpath=yes
17447 ;;
17448 - sni)
17449 - lt_cv_file_magic_cmd='/bin/file'
17450 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
17451 - lt_cv_file_magic_test_file=/lib/libc.so
17452 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
17453 + shlibpath_overrides_runpath=yes
17454 + hardcode_into_libs=yes
17455 ;;
17456 - siemens)
17457 - lt_cv_deplibs_check_method=pass_all
17458 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
17459 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
17460 + shlibpath_overrides_runpath=no
17461 + hardcode_into_libs=yes
17462 ;;
17463 - pc)
17464 - lt_cv_deplibs_check_method=pass_all
17465 + *) # from 4.6 on, and DragonFly
17466 + shlibpath_overrides_runpath=yes
17467 + hardcode_into_libs=yes
17468 ;;
17469 esac
17470 ;;
17471
17472 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17473 - lt_cv_deplibs_check_method=pass_all
17474 +gnu*)
17475 + version_type=linux
17476 + need_lib_prefix=no
17477 + need_version=no
17478 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17479 + soname_spec='${libname}${release}${shared_ext}$major'
17480 + shlibpath_var=LD_LIBRARY_PATH
17481 + hardcode_into_libs=yes
17482 ;;
17483 -esac
17484 -])
17485 -file_magic_cmd=$lt_cv_file_magic_cmd
17486 -deplibs_check_method=$lt_cv_deplibs_check_method
17487 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
17488 -])# AC_DEPLIBS_CHECK_METHOD
17489
17490 -
17491 -# AC_PROG_NM
17492 -# ----------
17493 -# find the pathname to a BSD-compatible name lister
17494 -AC_DEFUN([AC_PROG_NM],
17495 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
17496 -[if test -n "$NM"; then
17497 - # Let the user override the test.
17498 - lt_cv_path_NM="$NM"
17499 -else
17500 - lt_nm_to_check="${ac_tool_prefix}nm"
17501 - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
17502 - lt_nm_to_check="$lt_nm_to_check nm"
17503 - fi
17504 - for lt_tmp_nm in $lt_nm_to_check; do
17505 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17506 - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
17507 - IFS="$lt_save_ifs"
17508 - test -z "$ac_dir" && ac_dir=.
17509 - tmp_nm="$ac_dir/$lt_tmp_nm"
17510 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
17511 - # Check to see if the nm accepts a BSD-compat flag.
17512 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
17513 - # nm: unknown option "B" ignored
17514 - # Tru64's nm complains that /dev/null is an invalid object file
17515 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
17516 - */dev/null* | *'Invalid file or object type'*)
17517 - lt_cv_path_NM="$tmp_nm -B"
17518 - break
17519 - ;;
17520 - *)
17521 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
17522 - */dev/null*)
17523 - lt_cv_path_NM="$tmp_nm -p"
17524 - break
17525 - ;;
17526 - *)
17527 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
17528 - continue # so that we can try to find one that supports BSD flags
17529 - ;;
17530 - esac
17531 - ;;
17532 - esac
17533 - fi
17534 - done
17535 - IFS="$lt_save_ifs"
17536 - done
17537 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
17538 -fi])
17539 -NM="$lt_cv_path_NM"
17540 -])# AC_PROG_NM
17541 -
17542 -
17543 -# AC_CHECK_LIBM
17544 -# -------------
17545 -# check for math library
17546 -AC_DEFUN([AC_CHECK_LIBM],
17547 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
17548 -LIBM=
17549 -case $host in
17550 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
17551 - # These system don't have libm, or don't need it
17552 - ;;
17553 -*-ncr-sysv4.3*)
17554 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
17555 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
17556 - ;;
17557 -*)
17558 - AC_CHECK_LIB(m, cos, LIBM="-lm")
17559 +hpux9* | hpux10* | hpux11*)
17560 + # Give a soname corresponding to the major version so that dld.sl refuses to
17561 + # link against other versions.
17562 + version_type=sunos
17563 + need_lib_prefix=no
17564 + need_version=no
17565 + case $host_cpu in
17566 + ia64*)
17567 + shrext_cmds='.so'
17568 + hardcode_into_libs=yes
17569 + dynamic_linker="$host_os dld.so"
17570 + shlibpath_var=LD_LIBRARY_PATH
17571 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17572 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 + soname_spec='${libname}${release}${shared_ext}$major'
17574 + if test "X$HPUX_IA64_MODE" = X32; then
17575 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17576 + else
17577 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17578 + fi
17579 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17580 + ;;
17581 + hppa*64*)
17582 + shrext_cmds='.sl'
17583 + hardcode_into_libs=yes
17584 + dynamic_linker="$host_os dld.sl"
17585 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17586 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17587 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17588 + soname_spec='${libname}${release}${shared_ext}$major'
17589 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17590 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17591 + ;;
17592 + *)
17593 + shrext_cmds='.sl'
17594 + dynamic_linker="$host_os dld.sl"
17595 + shlibpath_var=SHLIB_PATH
17596 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17598 + soname_spec='${libname}${release}${shared_ext}$major'
17599 + ;;
17600 + esac
17601 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
17602 + postinstall_cmds='chmod 555 $lib'
17603 ;;
17604 -esac
17605 -])# AC_CHECK_LIBM
17606
17607 +interix[[3-9]]*)
17608 + version_type=linux
17609 + need_lib_prefix=no
17610 + need_version=no
17611 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17612 + soname_spec='${libname}${release}${shared_ext}$major'
17613 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17614 + shlibpath_var=LD_LIBRARY_PATH
17615 + shlibpath_overrides_runpath=no
17616 + hardcode_into_libs=yes
17617 + ;;
17618
17619 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
17620 -# -----------------------------------
17621 -# sets LIBLTDL to the link flags for the libltdl convenience library and
17622 -# LTDLINCL to the include flags for the libltdl header and adds
17623 -# --enable-ltdl-convenience to the configure arguments. Note that
17624 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
17625 -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
17626 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
17627 -# (note the single quotes!). If your package is not flat and you're not
17628 -# using automake, define top_builddir and top_srcdir appropriately in
17629 -# the Makefiles.
17630 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
17631 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
17632 - case $enable_ltdl_convenience in
17633 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
17634 - "") enable_ltdl_convenience=yes
17635 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
17636 +irix5* | irix6* | nonstopux*)
17637 + case $host_os in
17638 + nonstopux*) version_type=nonstopux ;;
17639 + *)
17640 + if test "$lt_cv_prog_gnu_ld" = yes; then
17641 + version_type=linux
17642 + else
17643 + version_type=irix
17644 + fi ;;
17645 esac
17646 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
17647 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
17648 - # For backwards non-gettext consistent compatibility...
17649 - INCLTDL="$LTDLINCL"
17650 -])# AC_LIBLTDL_CONVENIENCE
17651 -
17652 -
17653 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
17654 -# -----------------------------------
17655 -# sets LIBLTDL to the link flags for the libltdl installable library and
17656 -# LTDLINCL to the include flags for the libltdl header and adds
17657 -# --enable-ltdl-install to the configure arguments. Note that
17658 -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
17659 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
17660 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
17661 -# '${top_srcdir}/' (note the single quotes!). If your package is not
17662 -# flat and you're not using automake, define top_builddir and top_srcdir
17663 -# appropriately in the Makefiles.
17664 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
17665 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
17666 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
17667 - AC_CHECK_LIB(ltdl, lt_dlinit,
17668 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
17669 - [if test x"$enable_ltdl_install" = xno; then
17670 - AC_MSG_WARN([libltdl not installed, but installation disabled])
17671 - else
17672 - enable_ltdl_install=yes
17673 - fi
17674 - ])
17675 - if test x"$enable_ltdl_install" = x"yes"; then
17676 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
17677 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
17678 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
17679 - else
17680 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
17681 - LIBLTDL="-lltdl"
17682 - LTDLINCL=
17683 - fi
17684 - # For backwards non-gettext consistent compatibility...
17685 - INCLTDL="$LTDLINCL"
17686 -])# AC_LIBLTDL_INSTALLABLE
17687 + need_lib_prefix=no
17688 + need_version=no
17689 + soname_spec='${libname}${release}${shared_ext}$major'
17690 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17691 + case $host_os in
17692 + irix5* | nonstopux*)
17693 + libsuff= shlibsuff=
17694 + ;;
17695 + *)
17696 + case $LD in # libtool.m4 will add one of these switches to LD
17697 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17698 + libsuff= shlibsuff= libmagic=32-bit;;
17699 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17700 + libsuff=32 shlibsuff=N32 libmagic=N32;;
17701 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17702 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
17703 + *) libsuff= shlibsuff= libmagic=never-match;;
17704 + esac
17705 + ;;
17706 + esac
17707 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17708 + shlibpath_overrides_runpath=no
17709 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17710 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17711 + hardcode_into_libs=yes
17712 + ;;
17713
17714 +# No shared lib support for Linux oldld, aout, or coff.
17715 +linux*oldld* | linux*aout* | linux*coff*)
17716 + dynamic_linker=no
17717 + ;;
17718
17719 -# AC_LIBTOOL_CXX
17720 -# --------------
17721 -# enable support for C++ libraries
17722 -AC_DEFUN([AC_LIBTOOL_CXX],
17723 -[AC_REQUIRE([_LT_AC_LANG_CXX])
17724 -])# AC_LIBTOOL_CXX
17725 +# This must be Linux ELF.
17726 +linux* | k*bsd*-gnu)
17727 + version_type=linux
17728 + need_lib_prefix=no
17729 + need_version=no
17730 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17731 + soname_spec='${libname}${release}${shared_ext}$major'
17732 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17733 + shlibpath_var=LD_LIBRARY_PATH
17734 + shlibpath_overrides_runpath=no
17735 + # Some binutils ld are patched to set DT_RUNPATH
17736 + save_LDFLAGS=$LDFLAGS
17737 + save_libdir=$libdir
17738 + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
17739 + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
17740 + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
17741 + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
17742 + [shlibpath_overrides_runpath=yes])])
17743 + LDFLAGS=$save_LDFLAGS
17744 + libdir=$save_libdir
17745
17746 + # This implies no fast_install, which is unacceptable.
17747 + # Some rework will be needed to allow for fast_install
17748 + # before this can be enabled.
17749 + hardcode_into_libs=yes
17750
17751 -# _LT_AC_LANG_CXX
17752 -# ---------------
17753 -AC_DEFUN([_LT_AC_LANG_CXX],
17754 -[AC_REQUIRE([AC_PROG_CXX])
17755 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
17756 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
17757 -])# _LT_AC_LANG_CXX
17758 + # Append ld.so.conf contents to the search path
17759 + if test -f /etc/ld.so.conf; then
17760 + 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' ' '`
17761 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17762 + fi
17763
17764 -# _LT_AC_PROG_CXXCPP
17765 -# ------------------
17766 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
17767 -[
17768 -AC_REQUIRE([AC_PROG_CXX])
17769 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17770 - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17771 - (test "X$CXX" != "Xg++"))) ; then
17772 - AC_PROG_CXXCPP
17773 -fi
17774 -])# _LT_AC_PROG_CXXCPP
17775 -
17776 -# AC_LIBTOOL_F77
17777 -# --------------
17778 -# enable support for Fortran 77 libraries
17779 -AC_DEFUN([AC_LIBTOOL_F77],
17780 -[AC_REQUIRE([_LT_AC_LANG_F77])
17781 -])# AC_LIBTOOL_F77
17782 -
17783 -
17784 -# _LT_AC_LANG_F77
17785 -# ---------------
17786 -AC_DEFUN([_LT_AC_LANG_F77],
17787 -[AC_REQUIRE([AC_PROG_F77])
17788 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
17789 -])# _LT_AC_LANG_F77
17790 -
17791 -
17792 -# AC_LIBTOOL_GCJ
17793 -# --------------
17794 -# enable support for GCJ libraries
17795 -AC_DEFUN([AC_LIBTOOL_GCJ],
17796 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
17797 -])# AC_LIBTOOL_GCJ
17798 -
17799 -
17800 -# _LT_AC_LANG_GCJ
17801 -# ---------------
17802 -AC_DEFUN([_LT_AC_LANG_GCJ],
17803 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
17804 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
17805 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
17806 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
17807 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
17808 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
17809 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
17810 -])# _LT_AC_LANG_GCJ
17811 -
17812 -
17813 -# AC_LIBTOOL_RC
17814 -# -------------
17815 -# enable support for Windows resource files
17816 -AC_DEFUN([AC_LIBTOOL_RC],
17817 -[AC_REQUIRE([LT_AC_PROG_RC])
17818 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
17819 -])# AC_LIBTOOL_RC
17820 + # We used to test for /lib/ld.so.1 and disable shared libraries on
17821 + # powerpc, because MkLinux only supported shared libraries with the
17822 + # GNU dynamic linker. Since this was broken with cross compilers,
17823 + # most powerpc-linux boxes support dynamic linking these days and
17824 + # people can always --disable-shared, the test was removed, and we
17825 + # assume the GNU/Linux dynamic linker is in use.
17826 + dynamic_linker='GNU/Linux ld.so'
17827 + ;;
17828
17829 +netbsd*)
17830 + version_type=sunos
17831 + need_lib_prefix=no
17832 + need_version=no
17833 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17834 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17835 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17836 + dynamic_linker='NetBSD (a.out) ld.so'
17837 + else
17838 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17839 + soname_spec='${libname}${release}${shared_ext}$major'
17840 + dynamic_linker='NetBSD ld.elf_so'
17841 + fi
17842 + shlibpath_var=LD_LIBRARY_PATH
17843 + shlibpath_overrides_runpath=yes
17844 + hardcode_into_libs=yes
17845 + ;;
17846
17847 -# AC_LIBTOOL_LANG_C_CONFIG
17848 -# ------------------------
17849 -# Ensure that the configuration vars for the C compiler are
17850 -# suitably defined. Those variables are subsequently used by
17851 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
17852 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
17853 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
17854 -[lt_save_CC="$CC"
17855 -AC_LANG_PUSH(C)
17856 +newsos6)
17857 + version_type=linux
17858 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17859 + shlibpath_var=LD_LIBRARY_PATH
17860 + shlibpath_overrides_runpath=yes
17861 + ;;
17862
17863 -# Source file extension for C test sources.
17864 -ac_ext=c
17865 +*nto* | *qnx*)
17866 + version_type=qnx
17867 + need_lib_prefix=no
17868 + need_version=no
17869 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17870 + soname_spec='${libname}${release}${shared_ext}$major'
17871 + shlibpath_var=LD_LIBRARY_PATH
17872 + shlibpath_overrides_runpath=no
17873 + hardcode_into_libs=yes
17874 + dynamic_linker='ldqnx.so'
17875 + ;;
17876
17877 -# Object file extension for compiled C test sources.
17878 -objext=o
17879 -_LT_AC_TAGVAR(objext, $1)=$objext
17880 +openbsd*)
17881 + version_type=sunos
17882 + sys_lib_dlsearch_path_spec="/usr/lib"
17883 + need_lib_prefix=no
17884 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17885 + case $host_os in
17886 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17887 + *) need_version=no ;;
17888 + esac
17889 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17890 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17891 + shlibpath_var=LD_LIBRARY_PATH
17892 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17893 + case $host_os in
17894 + openbsd2.[[89]] | openbsd2.[[89]].*)
17895 + shlibpath_overrides_runpath=no
17896 + ;;
17897 + *)
17898 + shlibpath_overrides_runpath=yes
17899 + ;;
17900 + esac
17901 + else
17902 + shlibpath_overrides_runpath=yes
17903 + fi
17904 + ;;
17905
17906 -# Code to be used in simple compile tests
17907 -lt_simple_compile_test_code="int some_variable = 0;\n"
17908 +os2*)
17909 + libname_spec='$name'
17910 + shrext_cmds=".dll"
17911 + need_lib_prefix=no
17912 + library_names_spec='$libname${shared_ext} $libname.a'
17913 + dynamic_linker='OS/2 ld.exe'
17914 + shlibpath_var=LIBPATH
17915 + ;;
17916
17917 -# Code to be used in simple link tests
17918 -lt_simple_link_test_code='int main(){return(0);}\n'
17919 +osf3* | osf4* | osf5*)
17920 + version_type=osf
17921 + need_lib_prefix=no
17922 + need_version=no
17923 + soname_spec='${libname}${release}${shared_ext}$major'
17924 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17925 + shlibpath_var=LD_LIBRARY_PATH
17926 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17927 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17928 + ;;
17929
17930 -_LT_AC_SYS_COMPILER
17931 +rdos*)
17932 + dynamic_linker=no
17933 + ;;
17934
17935 -# save warnings/boilerplate of simple test code
17936 -_LT_COMPILER_BOILERPLATE
17937 -_LT_LINKER_BOILERPLATE
17938 +solaris*)
17939 + version_type=linux
17940 + need_lib_prefix=no
17941 + need_version=no
17942 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 + soname_spec='${libname}${release}${shared_ext}$major'
17944 + shlibpath_var=LD_LIBRARY_PATH
17945 + shlibpath_overrides_runpath=yes
17946 + hardcode_into_libs=yes
17947 + # ldd complains unless libraries are executable
17948 + postinstall_cmds='chmod +x $lib'
17949 + ;;
17950
17951 -## CAVEAT EMPTOR:
17952 -## There is no encapsulation within the following macros, do not change
17953 -## the running order or otherwise move them around unless you know exactly
17954 -## what you are doing...
17955 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
17956 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
17957 -AC_LIBTOOL_PROG_CC_C_O($1)
17958 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
17959 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
17960 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
17961 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
17962 -AC_LIBTOOL_SYS_LIB_STRIP
17963 -AC_LIBTOOL_DLOPEN_SELF
17964 -
17965 -# Report which library types will actually be built
17966 -AC_MSG_CHECKING([if libtool supports shared libraries])
17967 -AC_MSG_RESULT([$can_build_shared])
17968 +sunos4*)
17969 + version_type=sunos
17970 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17971 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17972 + shlibpath_var=LD_LIBRARY_PATH
17973 + shlibpath_overrides_runpath=yes
17974 + if test "$with_gnu_ld" = yes; then
17975 + need_lib_prefix=no
17976 + fi
17977 + need_version=yes
17978 + ;;
17979
17980 -AC_MSG_CHECKING([whether to build shared libraries])
17981 -test "$can_build_shared" = "no" && enable_shared=no
17982 +sysv4 | sysv4.3*)
17983 + version_type=linux
17984 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 + soname_spec='${libname}${release}${shared_ext}$major'
17986 + shlibpath_var=LD_LIBRARY_PATH
17987 + case $host_vendor in
17988 + sni)
17989 + shlibpath_overrides_runpath=no
17990 + need_lib_prefix=no
17991 + runpath_var=LD_RUN_PATH
17992 + ;;
17993 + siemens)
17994 + need_lib_prefix=no
17995 + ;;
17996 + motorola)
17997 + need_lib_prefix=no
17998 + need_version=no
17999 + shlibpath_overrides_runpath=no
18000 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18001 + ;;
18002 + esac
18003 + ;;
18004
18005 -# On AIX, shared libraries and static libraries use the same namespace, and
18006 -# are all built from PIC.
18007 -case $host_os in
18008 -aix3*)
18009 - test "$enable_shared" = yes && enable_static=no
18010 - if test -n "$RANLIB"; then
18011 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
18012 - postinstall_cmds='$RANLIB $lib'
18013 +sysv4*MP*)
18014 + if test -d /usr/nec ;then
18015 + version_type=linux
18016 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18017 + soname_spec='$libname${shared_ext}.$major'
18018 + shlibpath_var=LD_LIBRARY_PATH
18019 fi
18020 ;;
18021
18022 -aix4* | aix5*)
18023 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18024 - test "$enable_shared" = yes && enable_static=no
18025 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18026 + version_type=freebsd-elf
18027 + need_lib_prefix=no
18028 + need_version=no
18029 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18030 + soname_spec='${libname}${release}${shared_ext}$major'
18031 + shlibpath_var=LD_LIBRARY_PATH
18032 + shlibpath_overrides_runpath=yes
18033 + hardcode_into_libs=yes
18034 + if test "$with_gnu_ld" = yes; then
18035 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18036 + else
18037 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18038 + case $host_os in
18039 + sco3.2v5*)
18040 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18041 + ;;
18042 + esac
18043 fi
18044 - ;;
18045 -esac
18046 -AC_MSG_RESULT([$enable_shared])
18047 -
18048 -AC_MSG_CHECKING([whether to build static libraries])
18049 -# Make sure either enable_shared or enable_static is yes.
18050 -test "$enable_shared" = yes || enable_static=yes
18051 -AC_MSG_RESULT([$enable_static])
18052 -
18053 -AC_LIBTOOL_CONFIG($1)
18054 -
18055 -AC_LANG_POP
18056 -CC="$lt_save_CC"
18057 -])# AC_LIBTOOL_LANG_C_CONFIG
18058 -
18059 -
18060 -# AC_LIBTOOL_LANG_CXX_CONFIG
18061 -# --------------------------
18062 -# Ensure that the configuration vars for the C compiler are
18063 -# suitably defined. Those variables are subsequently used by
18064 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
18065 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
18066 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
18067 -[AC_LANG_PUSH(C++)
18068 -AC_REQUIRE([AC_PROG_CXX])
18069 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
18070 -
18071 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18072 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
18073 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
18074 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
18075 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
18076 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
18077 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
18078 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
18079 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
18080 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
18081 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
18082 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
18083 -_LT_AC_TAGVAR(module_cmds, $1)=
18084 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
18085 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
18086 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
18087 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
18088 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
18089 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
18090 -
18091 -# Dependencies to place before and after the object being linked:
18092 -_LT_AC_TAGVAR(predep_objects, $1)=
18093 -_LT_AC_TAGVAR(postdep_objects, $1)=
18094 -_LT_AC_TAGVAR(predeps, $1)=
18095 -_LT_AC_TAGVAR(postdeps, $1)=
18096 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
18097 -
18098 -# Source file extension for C++ test sources.
18099 -ac_ext=cpp
18100 -
18101 -# Object file extension for compiled C++ test sources.
18102 -objext=o
18103 -_LT_AC_TAGVAR(objext, $1)=$objext
18104 -
18105 -# Code to be used in simple compile tests
18106 -lt_simple_compile_test_code="int some_variable = 0;\n"
18107 + sys_lib_dlsearch_path_spec='/usr/lib'
18108 + ;;
18109
18110 -# Code to be used in simple link tests
18111 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
18112 +tpf*)
18113 + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18114 + version_type=linux
18115 + need_lib_prefix=no
18116 + need_version=no
18117 + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118 + shlibpath_var=LD_LIBRARY_PATH
18119 + shlibpath_overrides_runpath=no
18120 + hardcode_into_libs=yes
18121 + ;;
18122
18123 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18124 -_LT_AC_SYS_COMPILER
18125 +uts4*)
18126 + version_type=linux
18127 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128 + soname_spec='${libname}${release}${shared_ext}$major'
18129 + shlibpath_var=LD_LIBRARY_PATH
18130 + ;;
18131
18132 -# save warnings/boilerplate of simple test code
18133 -_LT_COMPILER_BOILERPLATE
18134 -_LT_LINKER_BOILERPLATE
18135 +*)
18136 + dynamic_linker=no
18137 + ;;
18138 +esac
18139 +AC_MSG_RESULT([$dynamic_linker])
18140 +test "$dynamic_linker" = no && can_build_shared=no
18141
18142 -# Allow CC to be a program name with arguments.
18143 -lt_save_CC=$CC
18144 -lt_save_LD=$LD
18145 -lt_save_GCC=$GCC
18146 -GCC=$GXX
18147 -lt_save_with_gnu_ld=$with_gnu_ld
18148 -lt_save_path_LD=$lt_cv_path_LD
18149 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18150 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18151 -else
18152 - $as_unset lt_cv_prog_gnu_ld
18153 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18154 +if test "$GCC" = yes; then
18155 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18156 fi
18157 -if test -n "${lt_cv_path_LDCXX+set}"; then
18158 - lt_cv_path_LD=$lt_cv_path_LDCXX
18159 -else
18160 - $as_unset lt_cv_path_LD
18161 +
18162 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18163 + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18164 fi
18165 -test -z "${LDCXX+set}" || LD=$LDCXX
18166 -CC=${CXX-"c++"}
18167 -compiler=$CC
18168 -_LT_AC_TAGVAR(compiler, $1)=$CC
18169 -_LT_CC_BASENAME([$compiler])
18170 -
18171 -# We don't want -fno-exception wen compiling C++ code, so set the
18172 -# no_builtin_flag separately
18173 -if test "$GXX" = yes; then
18174 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
18175 -else
18176 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
18177 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18178 + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18179 fi
18180
18181 -if test "$GXX" = yes; then
18182 - # Set up default GNU C++ configuration
18183 -
18184 - AC_PROG_LD
18185 -
18186 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
18187 - # archiving commands below assume that GNU ld is being used.
18188 - if test "$with_gnu_ld" = yes; then
18189 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190 - _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'
18191 -
18192 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
18193 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18194 -
18195 - # If archive_cmds runs LD, not CC, wlarc should be empty
18196 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18197 - # investigate it a little bit more. (MM)
18198 - wlarc='${wl}'
18199 -
18200 - # ancient GNU ld didn't support --whole-archive et. al.
18201 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18202 - grep 'no-whole-archive' > /dev/null; then
18203 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18204 - else
18205 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
18206 - fi
18207 - else
18208 - with_gnu_ld=no
18209 - wlarc=
18210 -
18211 - # A generic and very simple default shared library creation
18212 - # command for GNU C++ for the case where it uses the native
18213 - # linker, instead of GNU ld. If possible, this setting should
18214 - # overridden to take advantage of the native linker features on
18215 - # the platform it is being used on.
18216 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18217 - fi
18218 -
18219 - # Commands to make compiler produce verbose output that lists
18220 - # what "hidden" libraries, object files and flags are used when
18221 - # linking a shared library.
18222 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18223 -
18224 -else
18225 - GXX=no
18226 - with_gnu_ld=no
18227 - wlarc=
18228 -fi
18229 +_LT_DECL([], [variables_saved_for_relink], [1],
18230 + [Variables whose values should be saved in libtool wrapper scripts and
18231 + restored at link time])
18232 +_LT_DECL([], [need_lib_prefix], [0],
18233 + [Do we need the "lib" prefix for modules?])
18234 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
18235 +_LT_DECL([], [version_type], [0], [Library versioning type])
18236 +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
18237 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
18238 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
18239 + [Is shlibpath searched before the hard-coded library search path?])
18240 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
18241 +_LT_DECL([], [library_names_spec], [1],
18242 + [[List of archive names. First name is the real one, the rest are links.
18243 + The last name is the one that the linker finds with -lNAME]])
18244 +_LT_DECL([], [soname_spec], [1],
18245 + [[The coded name of the library, if different from the real name]])
18246 +_LT_DECL([], [postinstall_cmds], [2],
18247 + [Command to use after installation of a shared archive])
18248 +_LT_DECL([], [postuninstall_cmds], [2],
18249 + [Command to use after uninstallation of a shared archive])
18250 +_LT_DECL([], [finish_cmds], [2],
18251 + [Commands used to finish a libtool library installation in a directory])
18252 +_LT_DECL([], [finish_eval], [1],
18253 + [[As "finish_cmds", except a single script fragment to be evaled but
18254 + not shown]])
18255 +_LT_DECL([], [hardcode_into_libs], [0],
18256 + [Whether we should hardcode library paths into libraries])
18257 +_LT_DECL([], [sys_lib_search_path_spec], [2],
18258 + [Compile-time system search path for libraries])
18259 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
18260 + [Run-time system search path for libraries])
18261 +])# _LT_SYS_DYNAMIC_LINKER
18262
18263 -# PORTME: fill in a description of your system's C++ link characteristics
18264 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
18265 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
18266 -case $host_os in
18267 - aix3*)
18268 - # FIXME: insert proper C++ library support
18269 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18270 - ;;
18271 - aix4* | aix5*)
18272 - if test "$host_cpu" = ia64; then
18273 - # On IA64, the linker does run time linking by default, so we don't
18274 - # have to do anything special.
18275 - aix_use_runtimelinking=no
18276 - exp_sym_flag='-Bexport'
18277 - no_entry_flag=""
18278 - else
18279 - aix_use_runtimelinking=no
18280
18281 - # Test if we are trying to use run time linking or normal
18282 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18283 - # need to do runtime linking.
18284 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
18285 - for ld_flag in $LDFLAGS; do
18286 - case $ld_flag in
18287 - *-brtl*)
18288 - aix_use_runtimelinking=yes
18289 - break
18290 - ;;
18291 - esac
18292 - done
18293 - ;;
18294 - esac
18295 -
18296 - exp_sym_flag='-bexport'
18297 - no_entry_flag='-bnoentry'
18298 - fi
18299 +# _LT_PATH_TOOL_PREFIX(TOOL)
18300 +# --------------------------
18301 +# find a file program which can recognize shared library
18302 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
18303 +[m4_require([_LT_DECL_EGREP])dnl
18304 +AC_MSG_CHECKING([for $1])
18305 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
18306 +[case $MAGIC_CMD in
18307 +[[\\/*] | ?:[\\/]*])
18308 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18309 + ;;
18310 +*)
18311 + lt_save_MAGIC_CMD="$MAGIC_CMD"
18312 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18313 +dnl $ac_dummy forces splitting on constant user-supplied paths.
18314 +dnl POSIX.2 word splitting is done only on the output of word expansions,
18315 +dnl not every word. This closes a longstanding sh security hole.
18316 + ac_dummy="m4_if([$2], , $PATH, [$2])"
18317 + for ac_dir in $ac_dummy; do
18318 + IFS="$lt_save_ifs"
18319 + test -z "$ac_dir" && ac_dir=.
18320 + if test -f $ac_dir/$1; then
18321 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
18322 + if test -n "$file_magic_test_file"; then
18323 + case $deplibs_check_method in
18324 + "file_magic "*)
18325 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
18326 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18327 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18328 + $EGREP "$file_magic_regex" > /dev/null; then
18329 + :
18330 + else
18331 + cat <<_LT_EOF 1>&2
18332
18333 - # When large executables or shared objects are built, AIX ld can
18334 - # have problems creating the table of contents. If linking a library
18335 - # or program results in "error TOC overflow" add -mminimal-toc to
18336 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18337 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18338 -
18339 - _LT_AC_TAGVAR(archive_cmds, $1)=''
18340 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18341 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
18342 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18343 +*** Warning: the command libtool uses to detect shared libraries,
18344 +*** $file_magic_cmd, produces output that libtool cannot recognize.
18345 +*** The result is that libtool may fail to recognize shared libraries
18346 +*** as such. This will affect the creation of libtool libraries that
18347 +*** depend on shared libraries, but programs linked with such libtool
18348 +*** libraries will work regardless of this problem. Nevertheless, you
18349 +*** may want to report the problem to your system manager and/or to
18350 +*** bug-libtool@gnu.org
18351
18352 - if test "$GXX" = yes; then
18353 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
18354 - # We only want to do this on AIX 4.2 and lower, the check
18355 - # below for broken collect2 doesn't work under 4.3+
18356 - collect2name=`${CC} -print-prog-name=collect2`
18357 - if test -f "$collect2name" && \
18358 - strings "$collect2name" | grep resolve_lib_name >/dev/null
18359 - then
18360 - # We have reworked collect2
18361 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18362 - else
18363 - # We have old collect2
18364 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
18365 - # It fails to find uninstalled libraries when the uninstalled
18366 - # path is not listed in the libpath. Setting hardcode_minus_L
18367 - # to unsupported forces relinking
18368 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
18369 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
18370 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
18371 - fi
18372 - ;;
18373 - esac
18374 - shared_flag='-shared'
18375 - if test "$aix_use_runtimelinking" = yes; then
18376 - shared_flag="$shared_flag "'${wl}-G'
18377 - fi
18378 - else
18379 - # not using gcc
18380 - if test "$host_cpu" = ia64; then
18381 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18382 - # chokes on -Wl,-G. The following line is correct:
18383 - shared_flag='-G'
18384 - else
18385 - if test "$aix_use_runtimelinking" = yes; then
18386 - shared_flag='${wl}-G'
18387 - else
18388 - shared_flag='${wl}-bM:SRE'
18389 - fi
18390 +_LT_EOF
18391 + fi ;;
18392 + esac
18393 fi
18394 + break
18395 fi
18396 + done
18397 + IFS="$lt_save_ifs"
18398 + MAGIC_CMD="$lt_save_MAGIC_CMD"
18399 + ;;
18400 +esac])
18401 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18402 +if test -n "$MAGIC_CMD"; then
18403 + AC_MSG_RESULT($MAGIC_CMD)
18404 +else
18405 + AC_MSG_RESULT(no)
18406 +fi
18407 +_LT_DECL([], [MAGIC_CMD], [0],
18408 + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
18409 +])# _LT_PATH_TOOL_PREFIX
18410
18411 - # It seems that -bexpall does not export symbols beginning with
18412 - # underscore (_), so it is better to generate a list of symbols to export.
18413 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
18414 - if test "$aix_use_runtimelinking" = yes; then
18415 - # Warning - without using the other runtime loading flags (-brtl),
18416 - # -berok will link without error, but may produce a broken library.
18417 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
18418 - # Determine the default libpath from the value encoded in an empty executable.
18419 - _LT_AC_SYS_LIBPATH_AIX
18420 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
18421 +# Old name:
18422 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
18423 +dnl aclocal-1.4 backwards compatibility:
18424 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
18425
18426 - _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"
18427 - else
18428 - if test "$host_cpu" = ia64; then
18429 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
18430 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
18431 - _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"
18432 - else
18433 - # Determine the default libpath from the value encoded in an empty executable.
18434 - _LT_AC_SYS_LIBPATH_AIX
18435 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
18436 - # Warning - without using the other run time loading flags,
18437 - # -berok will link without error, but may produce a broken library.
18438 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
18439 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
18440 - # Exported symbols can be pulled into shared objects from archives
18441 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
18442 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
18443 - # This is similar to how AIX traditionally builds its shared libraries.
18444 - _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'
18445 - fi
18446 - fi
18447 - ;;
18448
18449 - beos*)
18450 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18451 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
18452 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18453 - # support --undefined. This deserves some investigation. FIXME
18454 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18455 - else
18456 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18457 - fi
18458 - ;;
18459 +# _LT_PATH_MAGIC
18460 +# --------------
18461 +# find a file program which can recognize a shared library
18462 +m4_defun([_LT_PATH_MAGIC],
18463 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
18464 +if test -z "$lt_cv_path_MAGIC_CMD"; then
18465 + if test -n "$ac_tool_prefix"; then
18466 + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
18467 + else
18468 + MAGIC_CMD=:
18469 + fi
18470 +fi
18471 +])# _LT_PATH_MAGIC
18472
18473 - chorus*)
18474 - case $cc_basename in
18475 - *)
18476 - # FIXME: insert proper C++ library support
18477 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18478 - ;;
18479 - esac
18480 - ;;
18481
18482 - cygwin* | mingw* | pw32*)
18483 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
18484 - # as there is no search path for DLLs.
18485 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
18486 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
18487 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
18488 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
18489 -
18490 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18491 - _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'
18492 - # If the export-symbols file already is a .def file (1st line
18493 - # is EXPORTS), use it as is; otherwise, prepend...
18494 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18495 - cp $export_symbols $output_objdir/$soname.def;
18496 - else
18497 - echo EXPORTS > $output_objdir/$soname.def;
18498 - cat $export_symbols >> $output_objdir/$soname.def;
18499 - fi~
18500 - $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'
18501 - else
18502 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18503 - fi
18504 - ;;
18505 - darwin* | rhapsody*)
18506 - case $host_os in
18507 - rhapsody* | darwin1.[[012]])
18508 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
18509 - ;;
18510 - *) # Darwin 1.3 on
18511 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18512 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18513 - else
18514 - case ${MACOSX_DEPLOYMENT_TARGET} in
18515 - 10.[[012]])
18516 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18517 - ;;
18518 - 10.*)
18519 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
18520 - ;;
18521 - esac
18522 - fi
18523 - ;;
18524 - esac
18525 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18526 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18527 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
18528 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
18529 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
18530 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18531 -
18532 - if test "$GXX" = yes ; then
18533 - lt_int_apple_cc_single_mod=no
18534 - output_verbose_link_cmd='echo'
18535 - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18536 - lt_int_apple_cc_single_mod=yes
18537 - fi
18538 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18539 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18540 - else
18541 - _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'
18542 - fi
18543 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18544 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18545 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18546 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18547 - else
18548 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18549 - fi
18550 - _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}'
18551 - else
18552 - case $cc_basename in
18553 - xlc*)
18554 - output_verbose_link_cmd='echo'
18555 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18556 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18557 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18558 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18559 - _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}'
18560 - ;;
18561 - *)
18562 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18563 - ;;
18564 - esac
18565 - fi
18566 - ;;
18567 +# LT_PATH_LD
18568 +# ----------
18569 +# find the pathname to the GNU or non-GNU linker
18570 +AC_DEFUN([LT_PATH_LD],
18571 +[AC_REQUIRE([AC_PROG_CC])dnl
18572 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
18573 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
18574 +m4_require([_LT_DECL_SED])dnl
18575 +m4_require([_LT_DECL_EGREP])dnl
18576
18577 - dgux*)
18578 - case $cc_basename in
18579 - ec++*)
18580 - # FIXME: insert proper C++ library support
18581 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18582 - ;;
18583 - ghcx*)
18584 - # Green Hills C++ Compiler
18585 - # FIXME: insert proper C++ library support
18586 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18587 - ;;
18588 - *)
18589 - # FIXME: insert proper C++ library support
18590 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18591 - ;;
18592 - esac
18593 - ;;
18594 - freebsd[[12]]*)
18595 - # C++ shared libraries reported to be fairly broken before switch to ELF
18596 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18597 - ;;
18598 - freebsd-elf*)
18599 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18600 - ;;
18601 - freebsd* | kfreebsd*-gnu | dragonfly*)
18602 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18603 - # conventions
18604 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
18605 - ;;
18606 - gnu*)
18607 - ;;
18608 - hpux9*)
18609 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
18610 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18611 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18612 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18613 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
18614 - # but as the default
18615 - # location of the library.
18616 -
18617 - case $cc_basename in
18618 - CC*)
18619 - # FIXME: insert proper C++ library support
18620 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18621 - ;;
18622 - aCC*)
18623 - _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'
18624 - # Commands to make compiler produce verbose output that lists
18625 - # what "hidden" libraries, object files and flags are used when
18626 - # linking a shared library.
18627 - #
18628 - # There doesn't appear to be a way to prevent this compiler from
18629 - # explicitly linking system object files so we need to strip them
18630 - # from the output so that they don't get included in the library
18631 - # dependencies.
18632 - 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'
18633 - ;;
18634 - *)
18635 - if test "$GXX" = yes; then
18636 - _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'
18637 - else
18638 - # FIXME: insert proper C++ library support
18639 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18640 - fi
18641 - ;;
18642 - esac
18643 - ;;
18644 - hpux10*|hpux11*)
18645 - if test $with_gnu_ld = no; then
18646 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
18647 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18648 +AC_ARG_WITH([gnu-ld],
18649 + [AS_HELP_STRING([--with-gnu-ld],
18650 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
18651 + [test "$withval" = no || with_gnu_ld=yes],
18652 + [with_gnu_ld=no])dnl
18653
18654 - case $host_cpu in
18655 - hppa*64*|ia64*)
18656 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
18657 - ;;
18658 - *)
18659 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18660 - ;;
18661 - esac
18662 - fi
18663 - case $host_cpu in
18664 - hppa*64*|ia64*)
18665 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18666 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18667 - ;;
18668 - *)
18669 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18670 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
18671 - # but as the default
18672 - # location of the library.
18673 +ac_prog=ld
18674 +if test "$GCC" = yes; then
18675 + # Check if gcc -print-prog-name=ld gives a path.
18676 + AC_MSG_CHECKING([for ld used by $CC])
18677 + case $host in
18678 + *-*-mingw*)
18679 + # gcc leaves a trailing carriage return which upsets mingw
18680 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18681 + *)
18682 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18683 + esac
18684 + case $ac_prog in
18685 + # Accept absolute paths.
18686 + [[\\/]]* | ?:[[\\/]]*)
18687 + re_direlt='/[[^/]][[^/]]*/\.\./'
18688 + # Canonicalize the pathname of ld
18689 + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18690 + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18691 + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18692 + done
18693 + test -z "$LD" && LD="$ac_prog"
18694 ;;
18695 - esac
18696 -
18697 - case $cc_basename in
18698 - CC*)
18699 - # FIXME: insert proper C++ library support
18700 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18701 - ;;
18702 - aCC*)
18703 - case $host_cpu in
18704 - hppa*64*)
18705 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18706 - ;;
18707 - ia64*)
18708 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18709 - ;;
18710 - *)
18711 - _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'
18712 - ;;
18713 - esac
18714 - # Commands to make compiler produce verbose output that lists
18715 - # what "hidden" libraries, object files and flags are used when
18716 - # linking a shared library.
18717 - #
18718 - # There doesn't appear to be a way to prevent this compiler from
18719 - # explicitly linking system object files so we need to strip them
18720 - # from the output so that they don't get included in the library
18721 - # dependencies.
18722 - 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'
18723 - ;;
18724 - *)
18725 - if test "$GXX" = yes; then
18726 - if test $with_gnu_ld = no; then
18727 - case $host_cpu in
18728 - hppa*64*)
18729 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18730 - ;;
18731 - ia64*)
18732 - _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'
18733 - ;;
18734 - *)
18735 - _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'
18736 - ;;
18737 - esac
18738 - fi
18739 - else
18740 - # FIXME: insert proper C++ library support
18741 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18742 - fi
18743 - ;;
18744 - esac
18745 - ;;
18746 - interix3*)
18747 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
18748 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18749 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18750 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18751 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18752 - # Instead, shared libraries are loaded at an image base (0x10000000 by
18753 - # default) and relocated if they conflict, which is a slow very memory
18754 - # consuming and fragmenting process. To avoid this, we pick a random,
18755 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18756 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18757 - _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'
18758 - _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'
18759 - ;;
18760 - irix5* | irix6*)
18761 - case $cc_basename in
18762 - CC*)
18763 - # SGI C++
18764 - _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'
18765 -
18766 - # Archives containing C++ object files must be created using
18767 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18768 - # necessary to make sure instantiated templates are included
18769 - # in the archive.
18770 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
18771 - ;;
18772 - *)
18773 - if test "$GXX" = yes; then
18774 - if test "$with_gnu_ld" = no; then
18775 - _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'
18776 - else
18777 - _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'
18778 - fi
18779 - fi
18780 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
18781 - ;;
18782 - esac
18783 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18784 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18785 + "")
18786 + # If it fails, then pretend we aren't using GCC.
18787 + ac_prog=ld
18788 ;;
18789 - linux*)
18790 - case $cc_basename in
18791 - KCC*)
18792 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18793 -
18794 - # KCC will only create a shared library if the output file
18795 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18796 - # to its proper name (with version) after linking.
18797 - _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'
18798 - _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'
18799 - # Commands to make compiler produce verbose output that lists
18800 - # what "hidden" libraries, object files and flags are used when
18801 - # linking a shared library.
18802 - #
18803 - # There doesn't appear to be a way to prevent this compiler from
18804 - # explicitly linking system object files so we need to strip them
18805 - # from the output so that they don't get included in the library
18806 - # dependencies.
18807 - 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'
18808 -
18809 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
18810 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18811 -
18812 - # Archives containing C++ object files must be created using
18813 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18814 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
18815 - ;;
18816 - icpc*)
18817 - # Intel C++
18818 - with_gnu_ld=yes
18819 - # version 8.0 and above of icpc choke on multiply defined symbols
18820 - # if we add $predep_objects and $postdep_objects, however 7.1 and
18821 - # earlier do not add the objects themselves.
18822 - case `$CC -V 2>&1` in
18823 - *"Version 7."*)
18824 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18825 - _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'
18826 - ;;
18827 - *) # Version 8.0 or newer
18828 - tmp_idyn=
18829 - case $host_cpu in
18830 - ia64*) tmp_idyn=' -i_dynamic';;
18831 - esac
18832 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18833 - _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'
18834 - ;;
18835 - esac
18836 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
18837 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18838 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18839 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18840 - ;;
18841 - pgCC*)
18842 - # Portland Group C++ compiler
18843 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18844 - _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'
18845 -
18846 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
18847 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
18848 - _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'
18849 - ;;
18850 - cxx*)
18851 - # Compaq C++
18852 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18853 - _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'
18854 -
18855 - runpath_var=LD_RUN_PATH
18856 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
18857 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18858 -
18859 - # Commands to make compiler produce verbose output that lists
18860 - # what "hidden" libraries, object files and flags are used when
18861 - # linking a shared library.
18862 - #
18863 - # There doesn't appear to be a way to prevent this compiler from
18864 - # explicitly linking system object files so we need to strip them
18865 - # from the output so that they don't get included in the library
18866 - # dependencies.
18867 - 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'
18868 - ;;
18869 - *)
18870 - case `$CC -V 2>&1 | sed 5q` in
18871 - *Sun\ C*)
18872 - # Sun C++ 5.9
18873 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
18874 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18875 - _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'
18876 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18877 - _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'
18878 -
18879 - # Not sure whether something based on
18880 - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18881 - # would be better.
18882 - output_verbose_link_cmd='echo'
18883 -
18884 - # Archives containing C++ object files must be created using
18885 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
18886 - # necessary to make sure instantiated templates are included
18887 - # in the archive.
18888 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
18889 - ;;
18890 - esac
18891 - ;;
18892 - esac
18893 + *)
18894 + # If it is relative, then search for the first ld in PATH.
18895 + with_gnu_ld=unknown
18896 ;;
18897 - lynxos*)
18898 - # FIXME: insert proper C++ library support
18899 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18900 - ;;
18901 - m88k*)
18902 - # FIXME: insert proper C++ library support
18903 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18904 - ;;
18905 - mvs*)
18906 - case $cc_basename in
18907 - cxx*)
18908 - # FIXME: insert proper C++ library support
18909 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18910 + esac
18911 +elif test "$with_gnu_ld" = yes; then
18912 + AC_MSG_CHECKING([for GNU ld])
18913 +else
18914 + AC_MSG_CHECKING([for non-GNU ld])
18915 +fi
18916 +AC_CACHE_VAL(lt_cv_path_LD,
18917 +[if test -z "$LD"; then
18918 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18919 + for ac_dir in $PATH; do
18920 + IFS="$lt_save_ifs"
18921 + test -z "$ac_dir" && ac_dir=.
18922 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18923 + lt_cv_path_LD="$ac_dir/$ac_prog"
18924 + # Check to see if the program is GNU ld. I'd rather use --version,
18925 + # but apparently some variants of GNU ld only accept -v.
18926 + # Break only if it was the GNU/non-GNU ld that we prefer.
18927 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18928 + *GNU* | *'with BFD'*)
18929 + test "$with_gnu_ld" != no && break
18930 ;;
18931 *)
18932 - # FIXME: insert proper C++ library support
18933 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18934 + test "$with_gnu_ld" != yes && break
18935 ;;
18936 - esac
18937 - ;;
18938 - netbsd*)
18939 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18940 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18941 - wlarc=
18942 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
18943 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18944 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18945 - fi
18946 - # Workaround some broken pre-1.5 toolchains
18947 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18948 - ;;
18949 - openbsd2*)
18950 - # C++ shared libraries are fairly broken
18951 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18952 - ;;
18953 - openbsd*)
18954 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
18955 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
18956 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18957 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18958 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18959 - _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'
18960 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
18961 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18962 + esac
18963 fi
18964 - output_verbose_link_cmd='echo'
18965 - ;;
18966 - osf3*)
18967 - case $cc_basename in
18968 - KCC*)
18969 - # Kuck and Associates, Inc. (KAI) C++ Compiler
18970 -
18971 - # KCC will only create a shared library if the output file
18972 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
18973 - # to its proper name (with version) after linking.
18974 - _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'
18975 -
18976 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
18977 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18978 -
18979 - # Archives containing C++ object files must be created using
18980 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18981 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
18982 -
18983 - ;;
18984 - RCC*)
18985 - # Rational C++ 2.4.1
18986 - # FIXME: insert proper C++ library support
18987 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
18988 - ;;
18989 - cxx*)
18990 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
18991 - _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'
18992 -
18993 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
18994 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
18995 -
18996 - # Commands to make compiler produce verbose output that lists
18997 - # what "hidden" libraries, object files and flags are used when
18998 - # linking a shared library.
18999 - #
19000 - # There doesn't appear to be a way to prevent this compiler from
19001 - # explicitly linking system object files so we need to strip them
19002 - # from the output so that they don't get included in the library
19003 - # dependencies.
19004 - 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'
19005 - ;;
19006 - *)
19007 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19008 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
19009 - _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'
19010 -
19011 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
19012 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19013 -
19014 - # Commands to make compiler produce verbose output that lists
19015 - # what "hidden" libraries, object files and flags are used when
19016 - # linking a shared library.
19017 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19018 + done
19019 + IFS="$lt_save_ifs"
19020 +else
19021 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
19022 +fi])
19023 +LD="$lt_cv_path_LD"
19024 +if test -n "$LD"; then
19025 + AC_MSG_RESULT($LD)
19026 +else
19027 + AC_MSG_RESULT(no)
19028 +fi
19029 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
19030 +_LT_PATH_LD_GNU
19031 +AC_SUBST([LD])
19032
19033 - else
19034 - # FIXME: insert proper C++ library support
19035 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19036 - fi
19037 - ;;
19038 - esac
19039 - ;;
19040 - osf4* | osf5*)
19041 - case $cc_basename in
19042 - KCC*)
19043 - # Kuck and Associates, Inc. (KAI) C++ Compiler
19044 -
19045 - # KCC will only create a shared library if the output file
19046 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
19047 - # to its proper name (with version) after linking.
19048 - _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'
19049 -
19050 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
19051 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19052 -
19053 - # Archives containing C++ object files must be created using
19054 - # the KAI C++ compiler.
19055 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
19056 - ;;
19057 - RCC*)
19058 - # Rational C++ 2.4.1
19059 - # FIXME: insert proper C++ library support
19060 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19061 - ;;
19062 - cxx*)
19063 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
19064 - _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'
19065 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19066 - echo "-hidden">> $lib.exp~
19067 - $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~
19068 - $rm $lib.exp'
19069 -
19070 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
19071 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19072 -
19073 - # Commands to make compiler produce verbose output that lists
19074 - # what "hidden" libraries, object files and flags are used when
19075 - # linking a shared library.
19076 - #
19077 - # There doesn't appear to be a way to prevent this compiler from
19078 - # explicitly linking system object files so we need to strip them
19079 - # from the output so that they don't get included in the library
19080 - # dependencies.
19081 - 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'
19082 - ;;
19083 - *)
19084 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19085 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
19086 - _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'
19087 -
19088 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
19089 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
19090 -
19091 - # Commands to make compiler produce verbose output that lists
19092 - # what "hidden" libraries, object files and flags are used when
19093 - # linking a shared library.
19094 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19095 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
19096 +])# LT_PATH_LD
19097
19098 - else
19099 - # FIXME: insert proper C++ library support
19100 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19101 - fi
19102 - ;;
19103 - esac
19104 - ;;
19105 - psos*)
19106 - # FIXME: insert proper C++ library support
19107 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19108 - ;;
19109 - sunos4*)
19110 - case $cc_basename in
19111 - CC*)
19112 - # Sun C++ 4.x
19113 - # FIXME: insert proper C++ library support
19114 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19115 - ;;
19116 - lcc*)
19117 - # Lucid
19118 - # FIXME: insert proper C++ library support
19119 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19120 - ;;
19121 - *)
19122 - # FIXME: insert proper C++ library support
19123 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19124 - ;;
19125 - esac
19126 +# Old names:
19127 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
19128 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
19129 +dnl aclocal-1.4 backwards compatibility:
19130 +dnl AC_DEFUN([AM_PROG_LD], [])
19131 +dnl AC_DEFUN([AC_PROG_LD], [])
19132 +
19133 +
19134 +# _LT_PATH_LD_GNU
19135 +#- --------------
19136 +m4_defun([_LT_PATH_LD_GNU],
19137 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
19138 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
19139 +case `$LD -v 2>&1 </dev/null` in
19140 +*GNU* | *'with BFD'*)
19141 + lt_cv_prog_gnu_ld=yes
19142 + ;;
19143 +*)
19144 + lt_cv_prog_gnu_ld=no
19145 + ;;
19146 +esac])
19147 +with_gnu_ld=$lt_cv_prog_gnu_ld
19148 +])# _LT_PATH_LD_GNU
19149 +
19150 +
19151 +# _LT_CMD_RELOAD
19152 +# --------------
19153 +# find reload flag for linker
19154 +# -- PORTME Some linkers may need a different reload flag.
19155 +m4_defun([_LT_CMD_RELOAD],
19156 +[AC_CACHE_CHECK([for $LD option to reload object files],
19157 + lt_cv_ld_reload_flag,
19158 + [lt_cv_ld_reload_flag='-r'])
19159 +reload_flag=$lt_cv_ld_reload_flag
19160 +case $reload_flag in
19161 +"" | " "*) ;;
19162 +*) reload_flag=" $reload_flag" ;;
19163 +esac
19164 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
19165 +case $host_os in
19166 + darwin*)
19167 + if test "$GCC" = yes; then
19168 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
19169 + else
19170 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
19171 + fi
19172 ;;
19173 - solaris*)
19174 - case $cc_basename in
19175 - CC*)
19176 - # Sun C++ 4.2, 5.x and Centerline C++
19177 - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
19178 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
19179 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19180 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19181 - $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'
19182 -
19183 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
19184 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
19185 - case $host_os in
19186 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
19187 - *)
19188 - # The C++ compiler is used as linker so we must use $wl
19189 - # flag to pass the commands to the underlying system
19190 - # linker. We must also pass each convience library through
19191 - # to the system linker between allextract/defaultextract.
19192 - # The C++ compiler will combine linker options so we
19193 - # cannot just pass the convience library names through
19194 - # without $wl.
19195 - # Supported since Solaris 2.6 (maybe 2.5.1?)
19196 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
19197 - ;;
19198 - esac
19199 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
19200 +esac
19201 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
19202 +_LT_DECL([], [reload_cmds], [2])dnl
19203 +])# _LT_CMD_RELOAD
19204
19205 - output_verbose_link_cmd='echo'
19206
19207 - # Archives containing C++ object files must be created using
19208 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
19209 - # necessary to make sure instantiated templates are included
19210 - # in the archive.
19211 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
19212 - ;;
19213 - gcx*)
19214 - # Green Hills C++ Compiler
19215 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19216 +# _LT_CHECK_MAGIC_METHOD
19217 +# ----------------------
19218 +# how to check for library dependencies
19219 +# -- PORTME fill in with the dynamic library characteristics
19220 +m4_defun([_LT_CHECK_MAGIC_METHOD],
19221 +[m4_require([_LT_DECL_EGREP])
19222 +AC_CACHE_CHECK([how to recognize dependent libraries],
19223 +lt_cv_deplibs_check_method,
19224 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
19225 +lt_cv_file_magic_test_file=
19226 +lt_cv_deplibs_check_method='unknown'
19227 +# Need to set the preceding variable on all platforms that support
19228 +# interlibrary dependencies.
19229 +# 'none' -- dependencies not supported.
19230 +# `unknown' -- same as none, but documents that we really don't know.
19231 +# 'pass_all' -- all dependencies passed with no checks.
19232 +# 'test_compile' -- check by making test program.
19233 +# 'file_magic [[regex]]' -- check by looking for files in library path
19234 +# which responds to the $file_magic_cmd with a given extended regex.
19235 +# If you have `file' or equivalent on your system and you're not sure
19236 +# whether `pass_all' will *always* work, you probably want this one.
19237
19238 - # The C++ compiler must be used to create the archive.
19239 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19240 - ;;
19241 - *)
19242 - # GNU C++ compiler with Solaris linker
19243 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19244 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
19245 - if $CC --version | grep -v '^2\.7' > /dev/null; then
19246 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19247 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19248 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19249 +case $host_os in
19250 +aix[[4-9]]*)
19251 + lt_cv_deplibs_check_method=pass_all
19252 + ;;
19253
19254 - # Commands to make compiler produce verbose output that lists
19255 - # what "hidden" libraries, object files and flags are used when
19256 - # linking a shared library.
19257 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19258 - else
19259 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
19260 - # platform.
19261 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19262 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19263 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19264 +beos*)
19265 + lt_cv_deplibs_check_method=pass_all
19266 + ;;
19267
19268 - # Commands to make compiler produce verbose output that lists
19269 - # what "hidden" libraries, object files and flags are used when
19270 - # linking a shared library.
19271 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19272 - fi
19273 +bsdi[[45]]*)
19274 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
19275 + lt_cv_file_magic_cmd='/usr/bin/file -L'
19276 + lt_cv_file_magic_test_file=/shlib/libc.so
19277 + ;;
19278
19279 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
19280 - fi
19281 - ;;
19282 - esac
19283 - ;;
19284 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
19285 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
19286 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
19287 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
19288 - runpath_var='LD_RUN_PATH'
19289 -
19290 - case $cc_basename in
19291 - CC*)
19292 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19293 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19294 - ;;
19295 - *)
19296 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19298 - ;;
19299 - esac
19300 - ;;
19301 - sysv5* | sco3.2v5* | sco5v6*)
19302 - # Note: We can NOT use -z defs as we might desire, because we do not
19303 - # link with -lc, and that would cause any symbols used from libc to
19304 - # always be unresolved, which means just about no library would
19305 - # ever link correctly. If we're not using GNU ld we use -z text
19306 - # though, which does catch some bad symbols but isn't as heavy-handed
19307 - # as -z defs.
19308 - # For security reasons, it is highly recommended that you always
19309 - # use absolute paths for naming shared libraries, and exclude the
19310 - # DT_RUNPATH tag from executables and libraries. But doing so
19311 - # requires that you compile everything twice, which is a pain.
19312 - # So that behaviour is only enabled if SCOABSPATH is set to a
19313 - # non-empty value in the environment. Most likely only useful for
19314 - # creating official distributions of packages.
19315 - # This is a hack until libtool officially supports absolute path
19316 - # names for shared libraries.
19317 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
19318 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
19319 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
19320 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
19321 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19322 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
19323 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
19324 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
19325 - runpath_var='LD_RUN_PATH'
19326 -
19327 - case $cc_basename in
19328 - CC*)
19329 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19330 - _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'
19331 - ;;
19332 - *)
19333 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19334 - _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'
19335 - ;;
19336 - esac
19337 - ;;
19338 - tandem*)
19339 - case $cc_basename in
19340 - NCC*)
19341 - # NonStop-UX NCC 3.20
19342 - # FIXME: insert proper C++ library support
19343 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19344 - ;;
19345 - *)
19346 - # FIXME: insert proper C++ library support
19347 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19348 - ;;
19349 +cygwin*)
19350 + # func_win32_libid is a shell function defined in ltmain.sh
19351 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19352 + lt_cv_file_magic_cmd='func_win32_libid'
19353 + ;;
19354 +
19355 +mingw* | pw32*)
19356 + # Base MSYS/MinGW do not provide the 'file' command needed by
19357 + # func_win32_libid shell function, so use a weaker test based on 'objdump',
19358 + # unless we find 'file', for example because we are cross-compiling.
19359 + if ( file / ) >/dev/null 2>&1; then
19360 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
19361 + lt_cv_file_magic_cmd='func_win32_libid'
19362 + else
19363 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
19364 + lt_cv_file_magic_cmd='$OBJDUMP -f'
19365 + fi
19366 + ;;
19367 +
19368 +darwin* | rhapsody*)
19369 + lt_cv_deplibs_check_method=pass_all
19370 + ;;
19371 +
19372 +freebsd* | dragonfly*)
19373 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
19374 + case $host_cpu in
19375 + i*86 )
19376 + # Not sure whether the presence of OpenBSD here was a mistake.
19377 + # Let's accept both of them until this is cleared up.
19378 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
19379 + lt_cv_file_magic_cmd=/usr/bin/file
19380 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
19381 + ;;
19382 esac
19383 + else
19384 + lt_cv_deplibs_check_method=pass_all
19385 + fi
19386 + ;;
19387 +
19388 +gnu*)
19389 + lt_cv_deplibs_check_method=pass_all
19390 + ;;
19391 +
19392 +hpux10.20* | hpux11*)
19393 + lt_cv_file_magic_cmd=/usr/bin/file
19394 + case $host_cpu in
19395 + ia64*)
19396 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
19397 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
19398 ;;
19399 - vxworks*)
19400 - # FIXME: insert proper C++ library support
19401 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19402 + hppa*64*)
19403 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
19404 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
19405 ;;
19406 *)
19407 - # FIXME: insert proper C++ library support
19408 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
19409 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
19410 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
19411 ;;
19412 -esac
19413 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
19414 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
19415 + esac
19416 + ;;
19417
19418 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
19419 -_LT_AC_TAGVAR(LD, $1)="$LD"
19420 +interix[[3-9]]*)
19421 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
19422 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
19423 + ;;
19424
19425 -## CAVEAT EMPTOR:
19426 -## There is no encapsulation within the following macros, do not change
19427 -## the running order or otherwise move them around unless you know exactly
19428 -## what you are doing...
19429 -AC_LIBTOOL_POSTDEP_PREDEP($1)
19430 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
19431 -AC_LIBTOOL_PROG_CC_C_O($1)
19432 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
19433 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
19434 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
19435 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
19436 +irix5* | irix6* | nonstopux*)
19437 + case $LD in
19438 + *-32|*"-32 ") libmagic=32-bit;;
19439 + *-n32|*"-n32 ") libmagic=N32;;
19440 + *-64|*"-64 ") libmagic=64-bit;;
19441 + *) libmagic=never-match;;
19442 + esac
19443 + lt_cv_deplibs_check_method=pass_all
19444 + ;;
19445
19446 -AC_LIBTOOL_CONFIG($1)
19447 +# This must be Linux ELF.
19448 +linux* | k*bsd*-gnu)
19449 + lt_cv_deplibs_check_method=pass_all
19450 + ;;
19451
19452 -AC_LANG_POP
19453 -CC=$lt_save_CC
19454 -LDCXX=$LD
19455 -LD=$lt_save_LD
19456 -GCC=$lt_save_GCC
19457 -with_gnu_ldcxx=$with_gnu_ld
19458 -with_gnu_ld=$lt_save_with_gnu_ld
19459 -lt_cv_path_LDCXX=$lt_cv_path_LD
19460 -lt_cv_path_LD=$lt_save_path_LD
19461 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19462 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19463 -])# AC_LIBTOOL_LANG_CXX_CONFIG
19464 +netbsd*)
19465 + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
19466 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
19467 + else
19468 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
19469 + fi
19470 + ;;
19471
19472 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
19473 -# ------------------------------------
19474 -# Figure out "hidden" library dependencies from verbose
19475 -# compiler output when linking a shared library.
19476 -# Parse the compiler output and extract the necessary
19477 -# objects, libraries and library flags.
19478 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
19479 -dnl we can't use the lt_simple_compile_test_code here,
19480 -dnl because it contains code intended for an executable,
19481 -dnl not a library. It's possible we should let each
19482 -dnl tag define a new lt_????_link_test_code variable,
19483 -dnl but it's only used here...
19484 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
19485 -int a;
19486 -void foo (void) { a = 0; }
19487 -EOF
19488 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
19489 -class Foo
19490 -{
19491 -public:
19492 - Foo (void) { a = 0; }
19493 -private:
19494 - int a;
19495 -};
19496 -EOF
19497 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
19498 - subroutine foo
19499 - implicit none
19500 - integer*4 a
19501 - a=0
19502 - return
19503 - end
19504 -EOF
19505 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
19506 -public class foo {
19507 - private int a;
19508 - public void bar (void) {
19509 - a = 0;
19510 - }
19511 -};
19512 -EOF
19513 -])
19514 -dnl Parse the compiler output and extract the necessary
19515 -dnl objects, libraries and library flags.
19516 -if AC_TRY_EVAL(ac_compile); then
19517 - # Parse the compiler output and extract the necessary
19518 - # objects, libraries and library flags.
19519 +newos6*)
19520 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
19521 + lt_cv_file_magic_cmd=/usr/bin/file
19522 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
19523 + ;;
19524
19525 - # Sentinel used to keep track of whether or not we are before
19526 - # the conftest object file.
19527 - pre_test_object_deps_done=no
19528 +*nto* | *qnx*)
19529 + lt_cv_deplibs_check_method=pass_all
19530 + ;;
19531
19532 - # The `*' in the case matches for architectures that use `case' in
19533 - # $output_verbose_cmd can trigger glob expansion during the loop
19534 - # eval without this substitution.
19535 - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19536 +openbsd*)
19537 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19538 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
19539 + else
19540 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
19541 + fi
19542 + ;;
19543
19544 - for p in `eval $output_verbose_link_cmd`; do
19545 - case $p in
19546 +osf3* | osf4* | osf5*)
19547 + lt_cv_deplibs_check_method=pass_all
19548 + ;;
19549
19550 - -L* | -R* | -l*)
19551 - # Some compilers place space between "-{L,R}" and the path.
19552 - # Remove the space.
19553 - if test $p = "-L" \
19554 - || test $p = "-R"; then
19555 - prev=$p
19556 - continue
19557 - else
19558 - prev=
19559 - fi
19560 +rdos*)
19561 + lt_cv_deplibs_check_method=pass_all
19562 + ;;
19563 +
19564 +solaris*)
19565 + lt_cv_deplibs_check_method=pass_all
19566 + ;;
19567 +
19568 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19569 + lt_cv_deplibs_check_method=pass_all
19570 + ;;
19571 +
19572 +sysv4 | sysv4.3*)
19573 + case $host_vendor in
19574 + motorola)
19575 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
19576 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
19577 + ;;
19578 + ncr)
19579 + lt_cv_deplibs_check_method=pass_all
19580 + ;;
19581 + sequent)
19582 + lt_cv_file_magic_cmd='/bin/file'
19583 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
19584 + ;;
19585 + sni)
19586 + lt_cv_file_magic_cmd='/bin/file'
19587 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
19588 + lt_cv_file_magic_test_file=/lib/libc.so
19589 + ;;
19590 + siemens)
19591 + lt_cv_deplibs_check_method=pass_all
19592 + ;;
19593 + pc)
19594 + lt_cv_deplibs_check_method=pass_all
19595 + ;;
19596 + esac
19597 + ;;
19598 +
19599 +tpf*)
19600 + lt_cv_deplibs_check_method=pass_all
19601 + ;;
19602 +esac
19603 +])
19604 +file_magic_cmd=$lt_cv_file_magic_cmd
19605 +deplibs_check_method=$lt_cv_deplibs_check_method
19606 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
19607 +
19608 +_LT_DECL([], [deplibs_check_method], [1],
19609 + [Method to check whether dependent libraries are shared objects])
19610 +_LT_DECL([], [file_magic_cmd], [1],
19611 + [Command to use when deplibs_check_method == "file_magic"])
19612 +])# _LT_CHECK_MAGIC_METHOD
19613 +
19614 +
19615 +# LT_PATH_NM
19616 +# ----------
19617 +# find the pathname to a BSD- or MS-compatible name lister
19618 +AC_DEFUN([LT_PATH_NM],
19619 +[AC_REQUIRE([AC_PROG_CC])dnl
19620 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
19621 +[if test -n "$NM"; then
19622 + # Let the user override the test.
19623 + lt_cv_path_NM="$NM"
19624 +else
19625 + lt_nm_to_check="${ac_tool_prefix}nm"
19626 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
19627 + lt_nm_to_check="$lt_nm_to_check nm"
19628 + fi
19629 + for lt_tmp_nm in $lt_nm_to_check; do
19630 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
19631 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
19632 + IFS="$lt_save_ifs"
19633 + test -z "$ac_dir" && ac_dir=.
19634 + tmp_nm="$ac_dir/$lt_tmp_nm"
19635 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
19636 + # Check to see if the nm accepts a BSD-compat flag.
19637 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
19638 + # nm: unknown option "B" ignored
19639 + # Tru64's nm complains that /dev/null is an invalid object file
19640 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
19641 + */dev/null* | *'Invalid file or object type'*)
19642 + lt_cv_path_NM="$tmp_nm -B"
19643 + break
19644 + ;;
19645 + *)
19646 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
19647 + */dev/null*)
19648 + lt_cv_path_NM="$tmp_nm -p"
19649 + break
19650 + ;;
19651 + *)
19652 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
19653 + continue # so that we can try to find one that supports BSD flags
19654 + ;;
19655 + esac
19656 + ;;
19657 + esac
19658 + fi
19659 + done
19660 + IFS="$lt_save_ifs"
19661 + done
19662 + : ${lt_cv_path_NM=no}
19663 +fi])
19664 +if test "$lt_cv_path_NM" != "no"; then
19665 + NM="$lt_cv_path_NM"
19666 +else
19667 + # Didn't find any BSD compatible name lister, look for dumpbin.
19668 + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
19669 + AC_SUBST([DUMPBIN])
19670 + if test "$DUMPBIN" != ":"; then
19671 + NM="$DUMPBIN"
19672 + fi
19673 +fi
19674 +test -z "$NM" && NM=nm
19675 +AC_SUBST([NM])
19676 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
19677 +
19678 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
19679 + [lt_cv_nm_interface="BSD nm"
19680 + echo "int some_variable = 0;" > conftest.$ac_ext
19681 + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
19682 + (eval "$ac_compile" 2>conftest.err)
19683 + cat conftest.err >&AS_MESSAGE_LOG_FD
19684 + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
19685 + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
19686 + cat conftest.err >&AS_MESSAGE_LOG_FD
19687 + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
19688 + cat conftest.out >&AS_MESSAGE_LOG_FD
19689 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
19690 + lt_cv_nm_interface="MS dumpbin"
19691 + fi
19692 + rm -f conftest*])
19693 +])# LT_PATH_NM
19694 +
19695 +# Old names:
19696 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
19697 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
19698 +dnl aclocal-1.4 backwards compatibility:
19699 +dnl AC_DEFUN([AM_PROG_NM], [])
19700 +dnl AC_DEFUN([AC_PROG_NM], [])
19701 +
19702 +
19703 +# LT_LIB_M
19704 +# --------
19705 +# check for math library
19706 +AC_DEFUN([LT_LIB_M],
19707 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
19708 +LIBM=
19709 +case $host in
19710 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
19711 + # These system don't have libm, or don't need it
19712 + ;;
19713 +*-ncr-sysv4.3*)
19714 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
19715 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
19716 + ;;
19717 +*)
19718 + AC_CHECK_LIB(m, cos, LIBM="-lm")
19719 + ;;
19720 +esac
19721 +AC_SUBST([LIBM])
19722 +])# LT_LIB_M
19723 +
19724 +# Old name:
19725 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
19726 +dnl aclocal-1.4 backwards compatibility:
19727 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
19728 +
19729 +
19730 +# _LT_COMPILER_NO_RTTI([TAGNAME])
19731 +# -------------------------------
19732 +m4_defun([_LT_COMPILER_NO_RTTI],
19733 +[m4_require([_LT_TAG_COMPILER])dnl
19734 +
19735 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
19736 +
19737 +if test "$GCC" = yes; then
19738 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
19739 +
19740 + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
19741 + lt_cv_prog_compiler_rtti_exceptions,
19742 + [-fno-rtti -fno-exceptions], [],
19743 + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
19744 +fi
19745 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
19746 + [Compiler flag to turn off builtin functions])
19747 +])# _LT_COMPILER_NO_RTTI
19748 +
19749 +
19750 +# _LT_CMD_GLOBAL_SYMBOLS
19751 +# ----------------------
19752 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
19753 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
19754 +AC_REQUIRE([AC_PROG_CC])dnl
19755 +AC_REQUIRE([LT_PATH_NM])dnl
19756 +AC_REQUIRE([LT_PATH_LD])dnl
19757 +m4_require([_LT_DECL_SED])dnl
19758 +m4_require([_LT_DECL_EGREP])dnl
19759 +m4_require([_LT_TAG_COMPILER])dnl
19760 +
19761 +# Check for command to grab the raw symbol name followed by C symbol from nm.
19762 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
19763 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
19764 +[
19765 +# These are sane defaults that work on at least a few old systems.
19766 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
19767 +
19768 +# Character class describing NM global symbol codes.
19769 +symcode='[[BCDEGRST]]'
19770 +
19771 +# Regexp to match symbols that can be accessed directly from C.
19772 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
19773 +
19774 +# Define system-specific variables.
19775 +case $host_os in
19776 +aix*)
19777 + symcode='[[BCDT]]'
19778 + ;;
19779 +cygwin* | mingw* | pw32*)
19780 + symcode='[[ABCDGISTW]]'
19781 + ;;
19782 +hpux*)
19783 + if test "$host_cpu" = ia64; then
19784 + symcode='[[ABCDEGRST]]'
19785 + fi
19786 + ;;
19787 +irix* | nonstopux*)
19788 + symcode='[[BCDEGRST]]'
19789 + ;;
19790 +osf*)
19791 + symcode='[[BCDEGQRST]]'
19792 + ;;
19793 +solaris*)
19794 + symcode='[[BDRT]]'
19795 + ;;
19796 +sco3.2v5*)
19797 + symcode='[[DT]]'
19798 + ;;
19799 +sysv4.2uw2*)
19800 + symcode='[[DT]]'
19801 + ;;
19802 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
19803 + symcode='[[ABDT]]'
19804 + ;;
19805 +sysv4)
19806 + symcode='[[DFNSTU]]'
19807 + ;;
19808 +esac
19809 +
19810 +# If we're using GNU nm, then use its standard symbol codes.
19811 +case `$NM -V 2>&1` in
19812 +*GNU* | *'with BFD'*)
19813 + symcode='[[ABCDGIRSTW]]' ;;
19814 +esac
19815 +
19816 +# Transform an extracted symbol line into a proper C declaration.
19817 +# Some systems (esp. on ia64) link data and code symbols differently,
19818 +# so use this general approach.
19819 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
19820 +
19821 +# Transform an extracted symbol line into symbol name and symbol address
19822 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
19823 +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'"
19824 +
19825 +# Handle CRLF in mingw tool chain
19826 +opt_cr=
19827 +case $build_os in
19828 +mingw*)
19829 + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
19830 + ;;
19831 +esac
19832 +
19833 +# Try without a prefix underscore, then with it.
19834 +for ac_symprfx in "" "_"; do
19835 +
19836 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
19837 + symxfrm="\\1 $ac_symprfx\\2 \\2"
19838 +
19839 + # Write the raw and C identifiers.
19840 + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
19841 + # Fake it for dumpbin and say T for any non-static function
19842 + # and D for any global variable.
19843 + # Also find C++ and __fastcall symbols from MSVC++,
19844 + # which start with @ or ?.
19845 + lt_cv_sys_global_symbol_pipe="$AWK ['"\
19846 +" {last_section=section; section=\$ 3};"\
19847 +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
19848 +" \$ 0!~/External *\|/{next};"\
19849 +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
19850 +" {if(hide[section]) next};"\
19851 +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
19852 +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
19853 +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
19854 +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
19855 +" ' prfx=^$ac_symprfx]"
19856 + else
19857 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
19858 + fi
19859 +
19860 + # Check to see that the pipe works correctly.
19861 + pipe_works=no
19862 +
19863 + rm -f conftest*
19864 + cat > conftest.$ac_ext <<_LT_EOF
19865 +#ifdef __cplusplus
19866 +extern "C" {
19867 +#endif
19868 +char nm_test_var;
19869 +void nm_test_func(void);
19870 +void nm_test_func(void){}
19871 +#ifdef __cplusplus
19872 +}
19873 +#endif
19874 +int main(){nm_test_var='a';nm_test_func();return(0);}
19875 +_LT_EOF
19876 +
19877 + if AC_TRY_EVAL(ac_compile); then
19878 + # Now try to grab the symbols.
19879 + nlist=conftest.nm
19880 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
19881 + # Try sorting and uniquifying the output.
19882 + if sort "$nlist" | uniq > "$nlist"T; then
19883 + mv -f "$nlist"T "$nlist"
19884 + else
19885 + rm -f "$nlist"T
19886 + fi
19887 +
19888 + # Make sure that we snagged all the symbols we need.
19889 + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
19890 + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
19891 + cat <<_LT_EOF > conftest.$ac_ext
19892 +#ifdef __cplusplus
19893 +extern "C" {
19894 +#endif
19895 +
19896 +_LT_EOF
19897 + # Now generate the symbol file.
19898 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
19899 +
19900 + cat <<_LT_EOF >> conftest.$ac_ext
19901 +
19902 +/* The mapping between symbol names and symbols. */
19903 +const struct {
19904 + const char *name;
19905 + void *address;
19906 +}
19907 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
19908 +{
19909 + { "@PROGRAM@", (void *) 0 },
19910 +_LT_EOF
19911 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
19912 + cat <<\_LT_EOF >> conftest.$ac_ext
19913 + {0, (void *) 0}
19914 +};
19915 +
19916 +/* This works around a problem in FreeBSD linker */
19917 +#ifdef FREEBSD_WORKAROUND
19918 +static const void *lt_preloaded_setup() {
19919 + return lt__PROGRAM__LTX_preloaded_symbols;
19920 +}
19921 +#endif
19922 +
19923 +#ifdef __cplusplus
19924 +}
19925 +#endif
19926 +_LT_EOF
19927 + # Now try linking the two files.
19928 + mv conftest.$ac_objext conftstm.$ac_objext
19929 + lt_save_LIBS="$LIBS"
19930 + lt_save_CFLAGS="$CFLAGS"
19931 + LIBS="conftstm.$ac_objext"
19932 + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
19933 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
19934 + pipe_works=yes
19935 + fi
19936 + LIBS="$lt_save_LIBS"
19937 + CFLAGS="$lt_save_CFLAGS"
19938 + else
19939 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
19940 + fi
19941 + else
19942 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
19943 + fi
19944 + else
19945 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
19946 + fi
19947 + else
19948 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
19949 + cat conftest.$ac_ext >&5
19950 + fi
19951 + rm -rf conftest* conftst*
19952
19953 - if test "$pre_test_object_deps_done" = no; then
19954 - case $p in
19955 - -L* | -R*)
19956 - # Internal compiler library paths should come after those
19957 - # provided the user. The postdeps already come after the
19958 - # user supplied libs so there is no need to process them.
19959 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
19960 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
19961 - else
19962 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
19963 - fi
19964 - ;;
19965 - # The "-l" case would never come before the object being
19966 - # linked, so don't bother handling this case.
19967 - esac
19968 - else
19969 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
19970 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
19971 - else
19972 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
19973 - fi
19974 - fi
19975 - ;;
19976 + # Do not use the global_symbol_pipe unless it works.
19977 + if test "$pipe_works" = yes; then
19978 + break
19979 + else
19980 + lt_cv_sys_global_symbol_pipe=
19981 + fi
19982 +done
19983 +])
19984 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
19985 + lt_cv_sys_global_symbol_to_cdecl=
19986 +fi
19987 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
19988 + AC_MSG_RESULT(failed)
19989 +else
19990 + AC_MSG_RESULT(ok)
19991 +fi
19992
19993 - *.$objext)
19994 - # This assumes that the test object file only shows up
19995 - # once in the compiler output.
19996 - if test "$p" = "conftest.$objext"; then
19997 - pre_test_object_deps_done=yes
19998 - continue
19999 - fi
20000 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
20001 + [Take the output of nm and produce a listing of raw symbols and C names])
20002 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
20003 + [Transform the output of nm in a proper C declaration])
20004 +_LT_DECL([global_symbol_to_c_name_address],
20005 + [lt_cv_sys_global_symbol_to_c_name_address], [1],
20006 + [Transform the output of nm in a C name address pair])
20007 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
20008 + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
20009 + [Transform the output of nm in a C name address pair when lib prefix is needed])
20010 +]) # _LT_CMD_GLOBAL_SYMBOLS
20011
20012 - if test "$pre_test_object_deps_done" = no; then
20013 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
20014 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
20015 - else
20016 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
20017 - fi
20018 - else
20019 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
20020 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
20021 - else
20022 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
20023 - fi
20024 - fi
20025 - ;;
20026
20027 - *) ;; # Ignore the rest.
20028 +# _LT_COMPILER_PIC([TAGNAME])
20029 +# ---------------------------
20030 +m4_defun([_LT_COMPILER_PIC],
20031 +[m4_require([_LT_TAG_COMPILER])dnl
20032 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
20033 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
20034 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
20035 +
20036 +AC_MSG_CHECKING([for $compiler option to produce PIC])
20037 +m4_if([$1], [CXX], [
20038 + # C++ specific cases for pic, static, wl, etc.
20039 + if test "$GXX" = yes; then
20040 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20041 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20042
20043 + case $host_os in
20044 + aix*)
20045 + # All AIX code is PIC.
20046 + if test "$host_cpu" = ia64; then
20047 + # AIX 5 now supports IA64 processor
20048 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20049 + fi
20050 + ;;
20051 +
20052 + amigaos*)
20053 + case $host_cpu in
20054 + powerpc)
20055 + # see comment about AmigaOS4 .so support
20056 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20057 + ;;
20058 + m68k)
20059 + # FIXME: we need at least 68020 code to build shared libraries, but
20060 + # adding the `-m68020' flag to GCC prevents building anything better,
20061 + # like `-m68040'.
20062 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
20063 + ;;
20064 + esac
20065 + ;;
20066 +
20067 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20068 + # PIC is the default for these OSes.
20069 + ;;
20070 + mingw* | cygwin* | os2* | pw32*)
20071 + # This hack is so that the source file can tell whether it is being
20072 + # built for inclusion in a dll (and should export symbols for example).
20073 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
20074 + # (--disable-auto-import) libraries
20075 + m4_if([$1], [GCJ], [],
20076 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
20077 + ;;
20078 + darwin* | rhapsody*)
20079 + # PIC is the default on this platform
20080 + # Common symbols not allowed in MH_DYLIB files
20081 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
20082 + ;;
20083 + *djgpp*)
20084 + # DJGPP does not support shared libraries at all
20085 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20086 + ;;
20087 + interix[[3-9]]*)
20088 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20089 + # Instead, we relocate shared libraries at runtime.
20090 + ;;
20091 + sysv4*MP*)
20092 + if test -d /usr/nec; then
20093 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
20094 + fi
20095 + ;;
20096 + hpux*)
20097 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20098 + # not for PA HP-UX.
20099 + case $host_cpu in
20100 + hppa*64*|ia64*)
20101 + ;;
20102 + *)
20103 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20104 + ;;
20105 + esac
20106 + ;;
20107 + *qnx* | *nto*)
20108 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20109 + # it will coredump.
20110 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20111 + ;;
20112 + *)
20113 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20114 + ;;
20115 + esac
20116 + else
20117 + case $host_os in
20118 + aix[[4-9]]*)
20119 + # All AIX code is PIC.
20120 + if test "$host_cpu" = ia64; then
20121 + # AIX 5 now supports IA64 processor
20122 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20123 + else
20124 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
20125 + fi
20126 + ;;
20127 + chorus*)
20128 + case $cc_basename in
20129 + cxch68*)
20130 + # Green Hills C++ Compiler
20131 + # _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"
20132 + ;;
20133 + esac
20134 + ;;
20135 + dgux*)
20136 + case $cc_basename in
20137 + ec++*)
20138 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20139 + ;;
20140 + ghcx*)
20141 + # Green Hills C++ Compiler
20142 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20143 + ;;
20144 + *)
20145 + ;;
20146 + esac
20147 + ;;
20148 + freebsd* | dragonfly*)
20149 + # FreeBSD uses GNU C++
20150 + ;;
20151 + hpux9* | hpux10* | hpux11*)
20152 + case $cc_basename in
20153 + CC*)
20154 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20155 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
20156 + if test "$host_cpu" != ia64; then
20157 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
20158 + fi
20159 + ;;
20160 + aCC*)
20161 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20162 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
20163 + case $host_cpu in
20164 + hppa*64*|ia64*)
20165 + # +Z the default
20166 + ;;
20167 + *)
20168 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
20169 + ;;
20170 + esac
20171 + ;;
20172 + *)
20173 + ;;
20174 + esac
20175 + ;;
20176 + interix*)
20177 + # This is c89, which is MS Visual C++ (no shared libs)
20178 + # Anyone wants to do a port?
20179 + ;;
20180 + irix5* | irix6* | nonstopux*)
20181 + case $cc_basename in
20182 + CC*)
20183 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20184 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20185 + # CC pic flag -KPIC is the default.
20186 + ;;
20187 + *)
20188 + ;;
20189 + esac
20190 + ;;
20191 + linux* | k*bsd*-gnu)
20192 + case $cc_basename in
20193 + KCC*)
20194 + # KAI C++ Compiler
20195 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
20196 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20197 + ;;
20198 + icpc* | ecpc* )
20199 + # Intel C++
20200 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20201 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20202 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20203 + ;;
20204 + pgCC* | pgcpp*)
20205 + # Portland Group C++ compiler
20206 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20207 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
20208 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20209 + ;;
20210 + cxx*)
20211 + # Compaq C++
20212 + # Make sure the PIC flag is empty. It appears that all Alpha
20213 + # Linux and Compaq Tru64 Unix objects are PIC.
20214 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20215 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20216 + ;;
20217 + xlc* | xlC*)
20218 + # IBM XL 8.0 on PPC
20219 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20220 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
20221 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
20222 + ;;
20223 + *)
20224 + case `$CC -V 2>&1 | sed 5q` in
20225 + *Sun\ C*)
20226 + # Sun C++ 5.9
20227 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20228 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20229 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
20230 + ;;
20231 + esac
20232 + ;;
20233 + esac
20234 + ;;
20235 + lynxos*)
20236 + ;;
20237 + m88k*)
20238 + ;;
20239 + mvs*)
20240 + case $cc_basename in
20241 + cxx*)
20242 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
20243 + ;;
20244 + *)
20245 + ;;
20246 + esac
20247 + ;;
20248 + netbsd*)
20249 + ;;
20250 + *qnx* | *nto*)
20251 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20252 + # it will coredump.
20253 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20254 + ;;
20255 + osf3* | osf4* | osf5*)
20256 + case $cc_basename in
20257 + KCC*)
20258 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
20259 + ;;
20260 + RCC*)
20261 + # Rational C++ 2.4.1
20262 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20263 + ;;
20264 + cxx*)
20265 + # Digital/Compaq C++
20266 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20267 + # Make sure the PIC flag is empty. It appears that all Alpha
20268 + # Linux and Compaq Tru64 Unix objects are PIC.
20269 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20270 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20271 + ;;
20272 + *)
20273 + ;;
20274 + esac
20275 + ;;
20276 + psos*)
20277 + ;;
20278 + solaris*)
20279 + case $cc_basename in
20280 + CC*)
20281 + # Sun C++ 4.2, 5.x and Centerline C++
20282 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20283 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20284 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
20285 + ;;
20286 + gcx*)
20287 + # Green Hills C++ Compiler
20288 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
20289 + ;;
20290 + *)
20291 + ;;
20292 + esac
20293 + ;;
20294 + sunos4*)
20295 + case $cc_basename in
20296 + CC*)
20297 + # Sun C++ 4.x
20298 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20299 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20300 + ;;
20301 + lcc*)
20302 + # Lucid
20303 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20304 + ;;
20305 + *)
20306 + ;;
20307 + esac
20308 + ;;
20309 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20310 + case $cc_basename in
20311 + CC*)
20312 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20313 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20314 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20315 + ;;
20316 + esac
20317 + ;;
20318 + tandem*)
20319 + case $cc_basename in
20320 + NCC*)
20321 + # NonStop-UX NCC 3.20
20322 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20323 + ;;
20324 + *)
20325 + ;;
20326 + esac
20327 + ;;
20328 + vxworks*)
20329 + ;;
20330 + *)
20331 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20332 + ;;
20333 esac
20334 - done
20335 -
20336 - # Clean up.
20337 - rm -f a.out a.exe
20338 -else
20339 - echo "libtool.m4: error: problem compiling $1 test program"
20340 -fi
20341 -
20342 -$rm -f confest.$objext
20343 -
20344 -# PORTME: override above test on systems where it is broken
20345 -ifelse([$1],[CXX],
20346 -[case $host_os in
20347 -interix3*)
20348 - # Interix 3.5 installs completely hosed .la files for C++, so rather than
20349 - # hack all around it, let's just trust "g++" to DTRT.
20350 - _LT_AC_TAGVAR(predep_objects,$1)=
20351 - _LT_AC_TAGVAR(postdep_objects,$1)=
20352 - _LT_AC_TAGVAR(postdeps,$1)=
20353 - ;;
20354 -
20355 -linux*)
20356 - case `$CC -V 2>&1 | sed 5q` in
20357 - *Sun\ C*)
20358 - # Sun C++ 5.9
20359 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
20360 - ;;
20361 - esac
20362 - ;;
20363 -
20364 -solaris*)
20365 - case $cc_basename in
20366 - CC*)
20367 - # Adding this requires a known-good setup of shared libraries for
20368 - # Sun compiler versions before 5.6, else PIC objects from an old
20369 - # archive will be linked into the output, leading to subtle bugs.
20370 - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
20371 - ;;
20372 - esac
20373 - ;;
20374 -esac
20375 -])
20376 -
20377 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
20378 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
20379 -esac
20380 -])# AC_LIBTOOL_POSTDEP_PREDEP
20381 -
20382 -# AC_LIBTOOL_LANG_F77_CONFIG
20383 -# --------------------------
20384 -# Ensure that the configuration vars for the C compiler are
20385 -# suitably defined. Those variables are subsequently used by
20386 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
20387 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
20388 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
20389 -[AC_REQUIRE([AC_PROG_F77])
20390 -AC_LANG_PUSH(Fortran 77)
20391 -
20392 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
20393 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
20394 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
20395 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
20396 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
20397 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
20398 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
20399 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
20400 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
20401 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
20402 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
20403 -_LT_AC_TAGVAR(module_cmds, $1)=
20404 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
20405 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
20406 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
20407 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
20408 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
20409 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
20410 -
20411 -# Source file extension for f77 test sources.
20412 -ac_ext=f
20413 -
20414 -# Object file extension for compiled f77 test sources.
20415 -objext=o
20416 -_LT_AC_TAGVAR(objext, $1)=$objext
20417 -
20418 -# Code to be used in simple compile tests
20419 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20420 -
20421 -# Code to be used in simple link tests
20422 -lt_simple_link_test_code=" program t\n end\n"
20423 -
20424 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20425 -_LT_AC_SYS_COMPILER
20426 -
20427 -# save warnings/boilerplate of simple test code
20428 -_LT_COMPILER_BOILERPLATE
20429 -_LT_LINKER_BOILERPLATE
20430 -
20431 -# Allow CC to be a program name with arguments.
20432 -lt_save_CC="$CC"
20433 -CC=${F77-"f77"}
20434 -compiler=$CC
20435 -_LT_AC_TAGVAR(compiler, $1)=$CC
20436 -_LT_CC_BASENAME([$compiler])
20437 -
20438 -AC_MSG_CHECKING([if libtool supports shared libraries])
20439 -AC_MSG_RESULT([$can_build_shared])
20440 -
20441 -AC_MSG_CHECKING([whether to build shared libraries])
20442 -test "$can_build_shared" = "no" && enable_shared=no
20443 -
20444 -# On AIX, shared libraries and static libraries use the same namespace, and
20445 -# are all built from PIC.
20446 -case $host_os in
20447 -aix3*)
20448 - test "$enable_shared" = yes && enable_static=no
20449 - if test -n "$RANLIB"; then
20450 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
20451 - postinstall_cmds='$RANLIB $lib'
20452 fi
20453 - ;;
20454 -aix4* | aix5*)
20455 - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20456 - test "$enable_shared" = yes && enable_static=no
20457 - fi
20458 - ;;
20459 -esac
20460 -AC_MSG_RESULT([$enable_shared])
20461 -
20462 -AC_MSG_CHECKING([whether to build static libraries])
20463 -# Make sure either enable_shared or enable_static is yes.
20464 -test "$enable_shared" = yes || enable_static=yes
20465 -AC_MSG_RESULT([$enable_static])
20466 -
20467 -_LT_AC_TAGVAR(GCC, $1)="$G77"
20468 -_LT_AC_TAGVAR(LD, $1)="$LD"
20469 -
20470 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
20471 -AC_LIBTOOL_PROG_CC_C_O($1)
20472 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
20473 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
20474 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
20475 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
20476 -
20477 -AC_LIBTOOL_CONFIG($1)
20478 -
20479 -AC_LANG_POP
20480 -CC="$lt_save_CC"
20481 -])# AC_LIBTOOL_LANG_F77_CONFIG
20482 -
20483 -
20484 -# AC_LIBTOOL_LANG_GCJ_CONFIG
20485 -# --------------------------
20486 -# Ensure that the configuration vars for the C compiler are
20487 -# suitably defined. Those variables are subsequently used by
20488 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
20489 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
20490 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
20491 -[AC_LANG_SAVE
20492 -
20493 -# Source file extension for Java test sources.
20494 -ac_ext=java
20495 +],
20496 +[
20497 + if test "$GCC" = yes; then
20498 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20499 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20500
20501 -# Object file extension for compiled Java test sources.
20502 -objext=o
20503 -_LT_AC_TAGVAR(objext, $1)=$objext
20504 + case $host_os in
20505 + aix*)
20506 + # All AIX code is PIC.
20507 + if test "$host_cpu" = ia64; then
20508 + # AIX 5 now supports IA64 processor
20509 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20510 + fi
20511 + ;;
20512
20513 -# Code to be used in simple compile tests
20514 -lt_simple_compile_test_code="class foo {}\n"
20515 + amigaos*)
20516 + case $host_cpu in
20517 + powerpc)
20518 + # see comment about AmigaOS4 .so support
20519 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20520 + ;;
20521 + m68k)
20522 + # FIXME: we need at least 68020 code to build shared libraries, but
20523 + # adding the `-m68020' flag to GCC prevents building anything better,
20524 + # like `-m68040'.
20525 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
20526 + ;;
20527 + esac
20528 + ;;
20529
20530 -# Code to be used in simple link tests
20531 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
20532 + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20533 + # PIC is the default for these OSes.
20534 + ;;
20535
20536 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20537 -_LT_AC_SYS_COMPILER
20538 + mingw* | cygwin* | pw32* | os2*)
20539 + # This hack is so that the source file can tell whether it is being
20540 + # built for inclusion in a dll (and should export symbols for example).
20541 + # Although the cygwin gcc ignores -fPIC, still need this for old-style
20542 + # (--disable-auto-import) libraries
20543 + m4_if([$1], [GCJ], [],
20544 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
20545 + ;;
20546
20547 -# save warnings/boilerplate of simple test code
20548 -_LT_COMPILER_BOILERPLATE
20549 -_LT_LINKER_BOILERPLATE
20550 + darwin* | rhapsody*)
20551 + # PIC is the default on this platform
20552 + # Common symbols not allowed in MH_DYLIB files
20553 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
20554 + ;;
20555
20556 -# Allow CC to be a program name with arguments.
20557 -lt_save_CC="$CC"
20558 -CC=${GCJ-"gcj"}
20559 -compiler=$CC
20560 -_LT_AC_TAGVAR(compiler, $1)=$CC
20561 -_LT_CC_BASENAME([$compiler])
20562 + hpux*)
20563 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20564 + # not for PA HP-UX.
20565 + case $host_cpu in
20566 + hppa*64*|ia64*)
20567 + # +Z the default
20568 + ;;
20569 + *)
20570 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20571 + ;;
20572 + esac
20573 + ;;
20574
20575 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
20576 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
20577 + interix[[3-9]]*)
20578 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20579 + # Instead, we relocate shared libraries at runtime.
20580 + ;;
20581
20582 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
20583 + msdosdjgpp*)
20584 + # Just because we use GCC doesn't mean we suddenly get shared libraries
20585 + # on systems that don't support them.
20586 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20587 + enable_shared=no
20588 + ;;
20589
20590 -## CAVEAT EMPTOR:
20591 -## There is no encapsulation within the following macros, do not change
20592 -## the running order or otherwise move them around unless you know exactly
20593 -## what you are doing...
20594 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
20595 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
20596 -AC_LIBTOOL_PROG_CC_C_O($1)
20597 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
20598 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
20599 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
20600 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
20601 + *nto* | *qnx*)
20602 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20603 + # it will coredump.
20604 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20605 + ;;
20606
20607 -AC_LIBTOOL_CONFIG($1)
20608 + sysv4*MP*)
20609 + if test -d /usr/nec; then
20610 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
20611 + fi
20612 + ;;
20613
20614 -AC_LANG_RESTORE
20615 -CC="$lt_save_CC"
20616 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
20617 + *)
20618 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
20619 + ;;
20620 + esac
20621 + else
20622 + # PORTME Check for flag to pass linker flags through the system compiler.
20623 + case $host_os in
20624 + aix*)
20625 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20626 + if test "$host_cpu" = ia64; then
20627 + # AIX 5 now supports IA64 processor
20628 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20629 + else
20630 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
20631 + fi
20632 + ;;
20633
20634 + mingw* | cygwin* | pw32* | os2*)
20635 + # This hack is so that the source file can tell whether it is being
20636 + # built for inclusion in a dll (and should export symbols for example).
20637 + m4_if([$1], [GCJ], [],
20638 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
20639 + ;;
20640
20641 -# AC_LIBTOOL_LANG_RC_CONFIG
20642 -# -------------------------
20643 -# Ensure that the configuration vars for the Windows resource compiler are
20644 -# suitably defined. Those variables are subsequently used by
20645 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
20646 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
20647 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
20648 -[AC_LANG_SAVE
20649 + hpux9* | hpux10* | hpux11*)
20650 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20651 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20652 + # not for PA HP-UX.
20653 + case $host_cpu in
20654 + hppa*64*|ia64*)
20655 + # +Z the default
20656 + ;;
20657 + *)
20658 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
20659 + ;;
20660 + esac
20661 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
20662 + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
20663 + ;;
20664
20665 -# Source file extension for RC test sources.
20666 -ac_ext=rc
20667 + irix5* | irix6* | nonstopux*)
20668 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20669 + # PIC (with -KPIC) is the default.
20670 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20671 + ;;
20672
20673 -# Object file extension for compiled RC test sources.
20674 -objext=o
20675 -_LT_AC_TAGVAR(objext, $1)=$objext
20676 + linux* | k*bsd*-gnu)
20677 + case $cc_basename in
20678 + icc* | ecc* | ifort*)
20679 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20680 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20681 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
20682 + ;;
20683 + pgcc* | pgf77* | pgf90* | pgf95*)
20684 + # Portland Group compilers (*not* the Pentium gcc compiler,
20685 + # which looks to be a dead project)
20686 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20687 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
20688 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20689 + ;;
20690 + ccc*)
20691 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20692 + # All Alpha code is PIC.
20693 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20694 + ;;
20695 + xl*)
20696 + # IBM XL C 8.0/Fortran 10.1 on PPC
20697 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20698 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
20699 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
20700 + ;;
20701 + *)
20702 + case `$CC -V 2>&1 | sed 5q` in
20703 + *Sun\ C*)
20704 + # Sun C 5.9
20705 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20706 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20707 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20708 + ;;
20709 + *Sun\ F*)
20710 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
20711 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20712 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20713 + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
20714 + ;;
20715 + esac
20716 + ;;
20717 + esac
20718 + ;;
20719
20720 -# Code to be used in simple compile tests
20721 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20722 + newsos6)
20723 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20724 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20725 + ;;
20726
20727 -# Code to be used in simple link tests
20728 -lt_simple_link_test_code="$lt_simple_compile_test_code"
20729 + *nto* | *qnx*)
20730 + # QNX uses GNU C++, but need to define -shared option too, otherwise
20731 + # it will coredump.
20732 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
20733 + ;;
20734
20735 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20736 -_LT_AC_SYS_COMPILER
20737 + osf3* | osf4* | osf5*)
20738 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20739 + # All OSF/1 code is PIC.
20740 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20741 + ;;
20742
20743 -# save warnings/boilerplate of simple test code
20744 -_LT_COMPILER_BOILERPLATE
20745 -_LT_LINKER_BOILERPLATE
20746 + rdos*)
20747 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
20748 + ;;
20749
20750 -# Allow CC to be a program name with arguments.
20751 -lt_save_CC="$CC"
20752 -CC=${RC-"windres"}
20753 -compiler=$CC
20754 -_LT_AC_TAGVAR(compiler, $1)=$CC
20755 -_LT_CC_BASENAME([$compiler])
20756 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
20757 + solaris*)
20758 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20759 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20760 + case $cc_basename in
20761 + f77* | f90* | f95*)
20762 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
20763 + *)
20764 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
20765 + esac
20766 + ;;
20767
20768 -AC_LIBTOOL_CONFIG($1)
20769 + sunos4*)
20770 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
20771 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
20772 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20773 + ;;
20774
20775 -AC_LANG_RESTORE
20776 -CC="$lt_save_CC"
20777 -])# AC_LIBTOOL_LANG_RC_CONFIG
20778 + sysv4 | sysv4.2uw2* | sysv4.3*)
20779 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20780 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20781 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20782 + ;;
20783 +
20784 + sysv4*MP*)
20785 + if test -d /usr/nec ;then
20786 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
20787 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20788 + fi
20789 + ;;
20790
20791 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20792 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20793 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
20794 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20795 + ;;
20796
20797 -# AC_LIBTOOL_CONFIG([TAGNAME])
20798 -# ----------------------------
20799 -# If TAGNAME is not passed, then create an initial libtool script
20800 -# with a default configuration from the untagged config vars. Otherwise
20801 -# add code to config.status for appending the configuration named by
20802 -# TAGNAME from the matching tagged config vars.
20803 -AC_DEFUN([AC_LIBTOOL_CONFIG],
20804 -[# The else clause should only fire when bootstrapping the
20805 -# libtool distribution, otherwise you forgot to ship ltmain.sh
20806 -# with your package, and you will get complaints that there are
20807 -# no rules to generate ltmain.sh.
20808 -if test -f "$ltmain"; then
20809 - # See if we are running on zsh, and set the options which allow our commands through
20810 - # without removal of \ escapes.
20811 - if test -n "${ZSH_VERSION+set}" ; then
20812 - setopt NO_GLOB_SUBST
20813 - fi
20814 - # Now quote all the things that may contain metacharacters while being
20815 - # careful not to overquote the AC_SUBSTed values. We take copies of the
20816 - # variables and quote the copies for generation of the libtool script.
20817 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20818 - SED SHELL STRIP \
20819 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20820 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20821 - deplibs_check_method reload_flag reload_cmds need_locks \
20822 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20823 - lt_cv_sys_global_symbol_to_c_name_address \
20824 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20825 - old_postinstall_cmds old_postuninstall_cmds \
20826 - _LT_AC_TAGVAR(compiler, $1) \
20827 - _LT_AC_TAGVAR(CC, $1) \
20828 - _LT_AC_TAGVAR(LD, $1) \
20829 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
20830 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
20831 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
20832 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
20833 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
20834 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
20835 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
20836 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
20837 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
20838 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
20839 - _LT_AC_TAGVAR(predep_objects, $1) \
20840 - _LT_AC_TAGVAR(postdep_objects, $1) \
20841 - _LT_AC_TAGVAR(predeps, $1) \
20842 - _LT_AC_TAGVAR(postdeps, $1) \
20843 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
20844 - _LT_AC_TAGVAR(archive_cmds, $1) \
20845 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
20846 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
20847 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
20848 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
20849 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
20850 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
20851 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
20852 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
20853 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
20854 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
20855 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
20856 - _LT_AC_TAGVAR(module_cmds, $1) \
20857 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
20858 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
20859 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
20860 - _LT_AC_TAGVAR(include_expsyms, $1); do
20861 -
20862 - case $var in
20863 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
20864 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
20865 - _LT_AC_TAGVAR(archive_cmds, $1) | \
20866 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
20867 - _LT_AC_TAGVAR(module_cmds, $1) | \
20868 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
20869 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
20870 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
20871 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
20872 - postinstall_cmds | postuninstall_cmds | \
20873 - old_postinstall_cmds | old_postuninstall_cmds | \
20874 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20875 - # Double-quote double-evaled strings.
20876 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20877 + unicos*)
20878 + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
20879 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20880 + ;;
20881 +
20882 + uts4*)
20883 + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
20884 + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
20885 ;;
20886 +
20887 *)
20888 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20889 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
20890 ;;
20891 esac
20892 - done
20893 -
20894 - case $lt_echo in
20895 - *'\[$]0 --fallback-echo"')
20896 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
20897 + fi
20898 +])
20899 +case $host_os in
20900 + # For platforms which do not support PIC, -DPIC is meaningless:
20901 + *djgpp*)
20902 + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
20903 ;;
20904 - esac
20905 -
20906 -ifelse([$1], [],
20907 - [cfgfile="${ofile}T"
20908 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20909 - $rm -f "$cfgfile"
20910 - AC_MSG_NOTICE([creating $ofile])],
20911 - [cfgfile="$ofile"])
20912 -
20913 - cat <<__EOF__ >> "$cfgfile"
20914 -ifelse([$1], [],
20915 -[#! $SHELL
20916 + *)
20917 + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
20918 + ;;
20919 +esac
20920 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
20921 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
20922 + [How to pass a linker flag through the compiler])
20923
20924 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20925 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20926 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20927 #
20928 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20929 -# Free Software Foundation, Inc.
20930 -#
20931 -# This file is part of GNU Libtool:
20932 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20933 -#
20934 -# This program is free software; you can redistribute it and/or modify
20935 -# it under the terms of the GNU General Public License as published by
20936 -# the Free Software Foundation; either version 2 of the License, or
20937 -# (at your option) any later version.
20938 +# Check to make sure the PIC flag actually works.
20939 #
20940 -# This program is distributed in the hope that it will be useful, but
20941 -# WITHOUT ANY WARRANTY; without even the implied warranty of
20942 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20943 -# General Public License for more details.
20944 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
20945 + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
20946 + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
20947 + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
20948 + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
20949 + "" | " "*) ;;
20950 + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
20951 + esac],
20952 + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
20953 + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
20954 +fi
20955 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
20956 + [Additional compiler flags for building library objects])
20957 +
20958 #
20959 -# You should have received a copy of the GNU General Public License
20960 -# along with this program; if not, write to the Free Software
20961 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20962 +# Check to make sure the static flag actually works.
20963 #
20964 -# As a special exception to the GNU General Public License, if you
20965 -# distribute this file as part of a program that contains a
20966 -# configuration script generated by Autoconf, you may include it under
20967 -# the same distribution terms that you use for the rest of that program.
20968 -
20969 -# A sed program that does not truncate output.
20970 -SED=$lt_SED
20971 -
20972 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20973 -Xsed="$SED -e 1s/^X//"
20974 -
20975 -# The HP-UX ksh and POSIX shell print the target directory to stdout
20976 -# if CDPATH is set.
20977 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20978 -
20979 -# The names of the tagged configurations supported by this script.
20980 -available_tags=
20981 -
20982 -# ### BEGIN LIBTOOL CONFIG],
20983 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
20984 -
20985 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20986 -
20987 -# Shell to use when invoking shell scripts.
20988 -SHELL=$lt_SHELL
20989 -
20990 -# Whether or not to build shared libraries.
20991 -build_libtool_libs=$enable_shared
20992 -
20993 -# Whether or not to build static libraries.
20994 -build_old_libs=$enable_static
20995 -
20996 -# Whether or not to add -lc for building shared libraries.
20997 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
20998 -
20999 -# Whether or not to disallow shared libs when runtime libs are static
21000 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
21001 -
21002 -# Whether or not to optimize for fast installation.
21003 -fast_install=$enable_fast_install
21004 -
21005 -# The host system.
21006 -host_alias=$host_alias
21007 -host=$host
21008 -host_os=$host_os
21009 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
21010 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
21011 + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
21012 + $lt_tmp_static_flag,
21013 + [],
21014 + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
21015 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
21016 + [Compiler flag to prevent dynamic linking])
21017 +])# _LT_COMPILER_PIC
21018
21019 -# The build system.
21020 -build_alias=$build_alias
21021 -build=$build
21022 -build_os=$build_os
21023
21024 -# An echo program that does not interpret backslashes.
21025 -echo=$lt_echo
21026 +# _LT_LINKER_SHLIBS([TAGNAME])
21027 +# ----------------------------
21028 +# See if the linker supports building shared libraries.
21029 +m4_defun([_LT_LINKER_SHLIBS],
21030 +[AC_REQUIRE([LT_PATH_LD])dnl
21031 +AC_REQUIRE([LT_PATH_NM])dnl
21032 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
21033 +m4_require([_LT_DECL_EGREP])dnl
21034 +m4_require([_LT_DECL_SED])dnl
21035 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
21036 +m4_require([_LT_TAG_COMPILER])dnl
21037 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
21038 +m4_if([$1], [CXX], [
21039 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21040 + case $host_os in
21041 + aix[[4-9]]*)
21042 + # If we're using GNU nm, then we don't want the "-C" option.
21043 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
21044 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21045 + _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'
21046 + else
21047 + _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'
21048 + fi
21049 + ;;
21050 + pw32*)
21051 + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
21052 + ;;
21053 + cygwin* | mingw*)
21054 + _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'
21055 + ;;
21056 + *)
21057 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21058 + ;;
21059 + esac
21060 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
21061 +], [
21062 + runpath_var=
21063 + _LT_TAGVAR(allow_undefined_flag, $1)=
21064 + _LT_TAGVAR(always_export_symbols, $1)=no
21065 + _LT_TAGVAR(archive_cmds, $1)=
21066 + _LT_TAGVAR(archive_expsym_cmds, $1)=
21067 + _LT_TAGVAR(compiler_needs_object, $1)=no
21068 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
21069 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
21070 + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21071 + _LT_TAGVAR(hardcode_automatic, $1)=no
21072 + _LT_TAGVAR(hardcode_direct, $1)=no
21073 + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
21074 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21075 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
21076 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
21077 + _LT_TAGVAR(hardcode_minus_L, $1)=no
21078 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
21079 + _LT_TAGVAR(inherit_rpath, $1)=no
21080 + _LT_TAGVAR(link_all_deplibs, $1)=unknown
21081 + _LT_TAGVAR(module_cmds, $1)=
21082 + _LT_TAGVAR(module_expsym_cmds, $1)=
21083 + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
21084 + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
21085 + _LT_TAGVAR(thread_safe_flag_spec, $1)=
21086 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21087 + # include_expsyms should be a list of space-separated symbols to be *always*
21088 + # included in the symbol list
21089 + _LT_TAGVAR(include_expsyms, $1)=
21090 + # exclude_expsyms can be an extended regexp of symbols to exclude
21091 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
21092 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21093 + # as well as any symbol that contains `d'.
21094 + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
21095 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21096 + # platforms (ab)use it in PIC code, but their linkers get confused if
21097 + # the symbol is explicitly referenced. Since portable code cannot
21098 + # rely on this symbol name, it's probably fine to never include it in
21099 + # preloaded symbol tables.
21100 + # Exclude shared library initialization/finalization symbols.
21101 +dnl Note also adjust exclude_expsyms for C++ above.
21102 + extract_expsyms_cmds=
21103
21104 -# The archiver.
21105 -AR=$lt_AR
21106 -AR_FLAGS=$lt_AR_FLAGS
21107 + case $host_os in
21108 + cygwin* | mingw* | pw32*)
21109 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
21110 + # When not using gcc, we currently assume that we are using
21111 + # Microsoft Visual C++.
21112 + if test "$GCC" != yes; then
21113 + with_gnu_ld=no
21114 + fi
21115 + ;;
21116 + interix*)
21117 + # we just hope/assume this is gcc and not c89 (= MSVC++)
21118 + with_gnu_ld=yes
21119 + ;;
21120 + openbsd*)
21121 + with_gnu_ld=no
21122 + ;;
21123 + esac
21124
21125 -# A C compiler.
21126 -LTCC=$lt_LTCC
21127 + _LT_TAGVAR(ld_shlibs, $1)=yes
21128 + if test "$with_gnu_ld" = yes; then
21129 + # If archive_cmds runs LD, not CC, wlarc should be empty
21130 + wlarc='${wl}'
21131
21132 -# LTCC compiler flags.
21133 -LTCFLAGS=$lt_LTCFLAGS
21134 + # Set some defaults for GNU ld with shared library support. These
21135 + # are reset later if shared libraries are not supported. Putting them
21136 + # here allows them to be overridden if necessary.
21137 + runpath_var=LD_RUN_PATH
21138 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21139 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
21140 + # ancient GNU ld didn't support --whole-archive et. al.
21141 + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21142 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21143 + else
21144 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21145 + fi
21146 + supports_anon_versioning=no
21147 + case `$LD -v 2>&1` in
21148 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
21149 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21150 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21151 + *\ 2.11.*) ;; # other 2.11 versions
21152 + *) supports_anon_versioning=yes ;;
21153 + esac
21154
21155 -# A language-specific compiler.
21156 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
21157 + # See if GNU ld supports shared libraries.
21158 + case $host_os in
21159 + aix[[3-9]]*)
21160 + # On AIX/PPC, the GNU linker is very broken
21161 + if test "$host_cpu" != ia64; then
21162 + _LT_TAGVAR(ld_shlibs, $1)=no
21163 + cat <<_LT_EOF 1>&2
21164
21165 -# Is the compiler the GNU C compiler?
21166 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
21167 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21168 +*** to be unable to reliably create shared libraries on AIX.
21169 +*** Therefore, libtool is disabling shared libraries support. If you
21170 +*** really care for shared libraries, you may want to modify your PATH
21171 +*** so that a non-GNU linker is found, and then restart.
21172
21173 -# An ERE matcher.
21174 -EGREP=$lt_EGREP
21175 +_LT_EOF
21176 + fi
21177 + ;;
21178
21179 -# The linker used to build libraries.
21180 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
21181 + amigaos*)
21182 + case $host_cpu in
21183 + powerpc)
21184 + # see comment about AmigaOS4 .so support
21185 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21186 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
21187 + ;;
21188 + m68k)
21189 + _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)'
21190 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21191 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21192 + ;;
21193 + esac
21194 + ;;
21195
21196 -# Whether we need hard or soft links.
21197 -LN_S=$lt_LN_S
21198 + beos*)
21199 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21200 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21201 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21202 + # support --undefined. This deserves some investigation. FIXME
21203 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21204 + else
21205 + _LT_TAGVAR(ld_shlibs, $1)=no
21206 + fi
21207 + ;;
21208
21209 -# A BSD-compatible nm program.
21210 -NM=$lt_NM
21211 + cygwin* | mingw* | pw32*)
21212 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
21213 + # as there is no search path for DLLs.
21214 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21215 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21216 + _LT_TAGVAR(always_export_symbols, $1)=no
21217 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
21218 + _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'
21219
21220 -# A symbol stripping program
21221 -STRIP=$lt_STRIP
21222 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21223 + _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'
21224 + # If the export-symbols file already is a .def file (1st line
21225 + # is EXPORTS), use it as is; otherwise, prepend...
21226 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21227 + cp $export_symbols $output_objdir/$soname.def;
21228 + else
21229 + echo EXPORTS > $output_objdir/$soname.def;
21230 + cat $export_symbols >> $output_objdir/$soname.def;
21231 + fi~
21232 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21233 + else
21234 + _LT_TAGVAR(ld_shlibs, $1)=no
21235 + fi
21236 + ;;
21237
21238 -# Used to examine libraries when file_magic_cmd begins "file"
21239 -MAGIC_CMD=$MAGIC_CMD
21240 + interix[[3-9]]*)
21241 + _LT_TAGVAR(hardcode_direct, $1)=no
21242 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21243 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21244 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21245 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21246 + # Instead, shared libraries are loaded at an image base (0x10000000 by
21247 + # default) and relocated if they conflict, which is a slow very memory
21248 + # consuming and fragmenting process. To avoid this, we pick a random,
21249 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21250 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21251 + _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'
21252 + _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'
21253 + ;;
21254
21255 -# Used on cygwin: DLL creation program.
21256 -DLLTOOL="$DLLTOOL"
21257 + gnu* | linux* | tpf* | k*bsd*-gnu)
21258 + tmp_diet=no
21259 + if test "$host_os" = linux-dietlibc; then
21260 + case $cc_basename in
21261 + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
21262 + esac
21263 + fi
21264 + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
21265 + && test "$tmp_diet" = no
21266 + then
21267 + tmp_addflag=
21268 + tmp_sharedflag='-shared'
21269 + case $cc_basename,$host_cpu in
21270 + pgcc*) # Portland Group C compiler
21271 + _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'
21272 + tmp_addflag=' $pic_flag'
21273 + ;;
21274 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21275 + _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'
21276 + tmp_addflag=' $pic_flag -Mnomain' ;;
21277 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21278 + tmp_addflag=' -i_dynamic' ;;
21279 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21280 + tmp_addflag=' -i_dynamic -nofor_main' ;;
21281 + ifc* | ifort*) # Intel Fortran compiler
21282 + tmp_addflag=' -nofor_main' ;;
21283 + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
21284 + tmp_sharedflag='-qmkshrobj'
21285 + tmp_addflag= ;;
21286 + esac
21287 + case `$CC -V 2>&1 | sed 5q` in
21288 + *Sun\ C*) # Sun C 5.9
21289 + _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'
21290 + _LT_TAGVAR(compiler_needs_object, $1)=yes
21291 + tmp_sharedflag='-G' ;;
21292 + *Sun\ F*) # Sun Fortran 8.3
21293 + tmp_sharedflag='-G' ;;
21294 + esac
21295 + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21296
21297 -# Used on cygwin: object dumper.
21298 -OBJDUMP="$OBJDUMP"
21299 + if test "x$supports_anon_versioning" = xyes; then
21300 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
21301 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21302 + echo "local: *; };" >> $output_objdir/$libname.ver~
21303 + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21304 + fi
21305
21306 -# Used on cygwin: assembler.
21307 -AS="$AS"
21308 + case $cc_basename in
21309 + xlf*)
21310 + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
21311 + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
21312 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21313 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
21314 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
21315 + if test "x$supports_anon_versioning" = xyes; then
21316 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
21317 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21318 + echo "local: *; };" >> $output_objdir/$libname.ver~
21319 + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
21320 + fi
21321 + ;;
21322 + esac
21323 + else
21324 + _LT_TAGVAR(ld_shlibs, $1)=no
21325 + fi
21326 + ;;
21327
21328 -# The name of the directory that contains temporary libtool files.
21329 -objdir=$objdir
21330 + netbsd*)
21331 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21332 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21333 + wlarc=
21334 + else
21335 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21336 + _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'
21337 + fi
21338 + ;;
21339
21340 -# How to create reloadable object files.
21341 -reload_flag=$lt_reload_flag
21342 -reload_cmds=$lt_reload_cmds
21343 + solaris*)
21344 + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
21345 + _LT_TAGVAR(ld_shlibs, $1)=no
21346 + cat <<_LT_EOF 1>&2
21347
21348 -# How to pass a linker flag through the compiler.
21349 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
21350 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21351 +*** create shared libraries on Solaris systems. Therefore, libtool
21352 +*** is disabling shared libraries support. We urge you to upgrade GNU
21353 +*** binutils to release 2.9.1 or newer. Another option is to modify
21354 +*** your PATH or compiler configuration so that the native linker is
21355 +*** used, and then restart.
21356
21357 -# Object file suffix (normally "o").
21358 -objext="$ac_objext"
21359 +_LT_EOF
21360 + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21361 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21362 + _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'
21363 + else
21364 + _LT_TAGVAR(ld_shlibs, $1)=no
21365 + fi
21366 + ;;
21367
21368 -# Old archive suffix (normally "a").
21369 -libext="$libext"
21370 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21371 + case `$LD -v 2>&1` in
21372 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
21373 + _LT_TAGVAR(ld_shlibs, $1)=no
21374 + cat <<_LT_EOF 1>&2
21375
21376 -# Shared library suffix (normally ".so").
21377 -shrext_cmds='$shrext_cmds'
21378 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21379 +*** reliably create shared libraries on SCO systems. Therefore, libtool
21380 +*** is disabling shared libraries support. We urge you to upgrade GNU
21381 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21382 +*** your PATH or compiler configuration so that the native linker is
21383 +*** used, and then restart.
21384
21385 -# Executable file suffix (normally "").
21386 -exeext="$exeext"
21387 +_LT_EOF
21388 + ;;
21389 + *)
21390 + # For security reasons, it is highly recommended that you always
21391 + # use absolute paths for naming shared libraries, and exclude the
21392 + # DT_RUNPATH tag from executables and libraries. But doing so
21393 + # requires that you compile everything twice, which is a pain.
21394 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21395 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21396 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21397 + _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'
21398 + else
21399 + _LT_TAGVAR(ld_shlibs, $1)=no
21400 + fi
21401 + ;;
21402 + esac
21403 + ;;
21404
21405 -# Additional compiler flags for building library objects.
21406 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
21407 -pic_mode=$pic_mode
21408 + sunos4*)
21409 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21410 + wlarc=
21411 + _LT_TAGVAR(hardcode_direct, $1)=yes
21412 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21413 + ;;
21414
21415 -# What is the maximum length of a command?
21416 -max_cmd_len=$lt_cv_sys_max_cmd_len
21417 + *)
21418 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21419 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21420 + _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'
21421 + else
21422 + _LT_TAGVAR(ld_shlibs, $1)=no
21423 + fi
21424 + ;;
21425 + esac
21426
21427 -# Does compiler simultaneously support -c and -o options?
21428 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
21429 + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
21430 + runpath_var=
21431 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
21432 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
21433 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
21434 + fi
21435 + else
21436 + # PORTME fill in a description of your system's linker (not GNU ld)
21437 + case $host_os in
21438 + aix3*)
21439 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21440 + _LT_TAGVAR(always_export_symbols, $1)=yes
21441 + _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'
21442 + # Note: this linker hardcodes the directories in LIBPATH if there
21443 + # are no directories specified by -L.
21444 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21445 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
21446 + # Neither direct hardcoding nor static linking is supported with a
21447 + # broken collect2.
21448 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
21449 + fi
21450 + ;;
21451
21452 -# Must we lock files when doing compilation?
21453 -need_locks=$lt_need_locks
21454 + aix[[4-9]]*)
21455 + if test "$host_cpu" = ia64; then
21456 + # On IA64, the linker does run time linking by default, so we don't
21457 + # have to do anything special.
21458 + aix_use_runtimelinking=no
21459 + exp_sym_flag='-Bexport'
21460 + no_entry_flag=""
21461 + else
21462 + # If we're using GNU nm, then we don't want the "-C" option.
21463 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
21464 + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21465 + _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'
21466 + else
21467 + _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'
21468 + fi
21469 + aix_use_runtimelinking=no
21470
21471 -# Do we need the lib prefix for modules?
21472 -need_lib_prefix=$need_lib_prefix
21473 + # Test if we are trying to use run time linking or normal
21474 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21475 + # need to do runtime linking.
21476 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
21477 + for ld_flag in $LDFLAGS; do
21478 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21479 + aix_use_runtimelinking=yes
21480 + break
21481 + fi
21482 + done
21483 + ;;
21484 + esac
21485
21486 -# Do we need a version for libraries?
21487 -need_version=$need_version
21488 + exp_sym_flag='-bexport'
21489 + no_entry_flag='-bnoentry'
21490 + fi
21491
21492 -# Whether dlopen is supported.
21493 -dlopen_support=$enable_dlopen
21494 + # When large executables or shared objects are built, AIX ld can
21495 + # have problems creating the table of contents. If linking a library
21496 + # or program results in "error TOC overflow" add -mminimal-toc to
21497 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21498 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21499
21500 -# Whether dlopen of programs is supported.
21501 -dlopen_self=$enable_dlopen_self
21502 + _LT_TAGVAR(archive_cmds, $1)=''
21503 + _LT_TAGVAR(hardcode_direct, $1)=yes
21504 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21505 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
21506 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21507 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
21508
21509 -# Whether dlopen of statically linked programs is supported.
21510 -dlopen_self_static=$enable_dlopen_self_static
21511 + if test "$GCC" = yes; then
21512 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
21513 + # We only want to do this on AIX 4.2 and lower, the check
21514 + # below for broken collect2 doesn't work under 4.3+
21515 + collect2name=`${CC} -print-prog-name=collect2`
21516 + if test -f "$collect2name" &&
21517 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21518 + then
21519 + # We have reworked collect2
21520 + :
21521 + else
21522 + # We have old collect2
21523 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
21524 + # It fails to find uninstalled libraries when the uninstalled
21525 + # path is not listed in the libpath. Setting hardcode_minus_L
21526 + # to unsupported forces relinking
21527 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21528 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21529 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
21530 + fi
21531 + ;;
21532 + esac
21533 + shared_flag='-shared'
21534 + if test "$aix_use_runtimelinking" = yes; then
21535 + shared_flag="$shared_flag "'${wl}-G'
21536 + fi
21537 + else
21538 + # not using gcc
21539 + if test "$host_cpu" = ia64; then
21540 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21541 + # chokes on -Wl,-G. The following line is correct:
21542 + shared_flag='-G'
21543 + else
21544 + if test "$aix_use_runtimelinking" = yes; then
21545 + shared_flag='${wl}-G'
21546 + else
21547 + shared_flag='${wl}-bM:SRE'
21548 + fi
21549 + fi
21550 + fi
21551
21552 -# Compiler flag to prevent dynamic linking.
21553 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
21554 + # It seems that -bexpall does not export symbols beginning with
21555 + # underscore (_), so it is better to generate a list of symbols to export.
21556 + _LT_TAGVAR(always_export_symbols, $1)=yes
21557 + if test "$aix_use_runtimelinking" = yes; then
21558 + # Warning - without using the other runtime loading flags (-brtl),
21559 + # -berok will link without error, but may produce a broken library.
21560 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
21561 + # Determine the default libpath from the value encoded in an
21562 + # empty executable.
21563 + _LT_SYS_MODULE_PATH_AIX
21564 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
21565 + _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"
21566 + else
21567 + if test "$host_cpu" = ia64; then
21568 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
21569 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
21570 + _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"
21571 + else
21572 + # Determine the default libpath from the value encoded in an
21573 + # empty executable.
21574 + _LT_SYS_MODULE_PATH_AIX
21575 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
21576 + # Warning - without using the other run time loading flags,
21577 + # -berok will link without error, but may produce a broken library.
21578 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
21579 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
21580 + # Exported symbols can be pulled into shared objects from archives
21581 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
21582 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
21583 + # This is similar to how AIX traditionally builds its shared libraries.
21584 + _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'
21585 + fi
21586 + fi
21587 + ;;
21588
21589 -# Compiler flag to turn off builtin functions.
21590 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
21591 + amigaos*)
21592 + case $host_cpu in
21593 + powerpc)
21594 + # see comment about AmigaOS4 .so support
21595 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21596 + _LT_TAGVAR(archive_expsym_cmds, $1)=''
21597 + ;;
21598 + m68k)
21599 + _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)'
21600 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21601 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21602 + ;;
21603 + esac
21604 + ;;
21605
21606 -# Compiler flag to allow reflexive dlopens.
21607 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
21608 + bsdi[[45]]*)
21609 + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
21610 + ;;
21611
21612 -# Compiler flag to generate shared objects directly from archives.
21613 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
21614 + cygwin* | mingw* | pw32*)
21615 + # When not using gcc, we currently assume that we are using
21616 + # Microsoft Visual C++.
21617 + # hardcode_libdir_flag_spec is actually meaningless, as there is
21618 + # no search path for DLLs.
21619 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
21620 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21621 + # Tell ltmain to make .lib files, not .a files.
21622 + libext=lib
21623 + # Tell ltmain to make .dll files, not .so files.
21624 + shrext_cmds=".dll"
21625 + # FIXME: Setting linknames here is a bad hack.
21626 + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
21627 + # The linker will automatically build a .lib file if we build a DLL.
21628 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
21629 + # FIXME: Should let the user specify the lib program.
21630 + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
21631 + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
21632 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
21633 + ;;
21634
21635 -# Compiler flag to generate thread-safe objects.
21636 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
21637 + darwin* | rhapsody*)
21638 + _LT_DARWIN_LINKER_FEATURES($1)
21639 + ;;
21640
21641 -# Library versioning type.
21642 -version_type=$version_type
21643 + dgux*)
21644 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21645 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21646 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21647 + ;;
21648
21649 -# Format of library name prefix.
21650 -libname_spec=$lt_libname_spec
21651 + freebsd1*)
21652 + _LT_TAGVAR(ld_shlibs, $1)=no
21653 + ;;
21654
21655 -# List of archive names. First name is the real one, the rest are links.
21656 -# The last name is the one that the linker finds with -lNAME.
21657 -library_names_spec=$lt_library_names_spec
21658 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21659 + # support. Future versions do this automatically, but an explicit c++rt0.o
21660 + # does not break anything, and helps significantly (at the cost of a little
21661 + # extra space).
21662 + freebsd2.2*)
21663 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21664 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21665 + _LT_TAGVAR(hardcode_direct, $1)=yes
21666 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21667 + ;;
21668
21669 -# The coded name of the library, if different from the real name.
21670 -soname_spec=$lt_soname_spec
21671 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21672 + freebsd2*)
21673 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21674 + _LT_TAGVAR(hardcode_direct, $1)=yes
21675 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21676 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21677 + ;;
21678
21679 -# Commands used to build and install an old-style archive.
21680 -RANLIB=$lt_RANLIB
21681 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
21682 -old_postinstall_cmds=$lt_old_postinstall_cmds
21683 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
21684 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21685 + freebsd* | dragonfly*)
21686 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21687 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21688 + _LT_TAGVAR(hardcode_direct, $1)=yes
21689 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21690 + ;;
21691
21692 -# Create an old-style archive from a shared archive.
21693 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
21694 + hpux9*)
21695 + if test "$GCC" = yes; then
21696 + _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'
21697 + else
21698 + _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'
21699 + fi
21700 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21701 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21702 + _LT_TAGVAR(hardcode_direct, $1)=yes
21703
21704 -# Create a temporary old-style archive to link instead of a shared archive.
21705 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
21706 + # hardcode_minus_L: Not really in the search PATH,
21707 + # but as the default location of the library.
21708 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21709 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21710 + ;;
21711
21712 -# Commands used to build and install a shared archive.
21713 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
21714 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
21715 -postinstall_cmds=$lt_postinstall_cmds
21716 -postuninstall_cmds=$lt_postuninstall_cmds
21717 + hpux10*)
21718 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21719 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21720 + else
21721 + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21722 + fi
21723 + if test "$with_gnu_ld" = no; then
21724 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21725 + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
21726 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21727 + _LT_TAGVAR(hardcode_direct, $1)=yes
21728 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21729 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21730 + # hardcode_minus_L: Not really in the search PATH,
21731 + # but as the default location of the library.
21732 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21733 + fi
21734 + ;;
21735
21736 -# Commands used to build a loadable module (assumed same as above if empty)
21737 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
21738 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
21739 + hpux11*)
21740 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21741 + case $host_cpu in
21742 + hppa*64*)
21743 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21744 + ;;
21745 + ia64*)
21746 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21747 + ;;
21748 + *)
21749 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21750 + ;;
21751 + esac
21752 + else
21753 + case $host_cpu in
21754 + hppa*64*)
21755 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21756 + ;;
21757 + ia64*)
21758 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21759 + ;;
21760 + *)
21761 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21762 + ;;
21763 + esac
21764 + fi
21765 + if test "$with_gnu_ld" = no; then
21766 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
21767 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21768
21769 -# Commands to strip libraries.
21770 -old_striplib=$lt_old_striplib
21771 -striplib=$lt_striplib
21772 + case $host_cpu in
21773 + hppa*64*|ia64*)
21774 + _LT_TAGVAR(hardcode_direct, $1)=no
21775 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21776 + ;;
21777 + *)
21778 + _LT_TAGVAR(hardcode_direct, $1)=yes
21779 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21780 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21781
21782 -# Dependencies to place before the objects being linked to create a
21783 -# shared library.
21784 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
21785 + # hardcode_minus_L: Not really in the search PATH,
21786 + # but as the default location of the library.
21787 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21788 + ;;
21789 + esac
21790 + fi
21791 + ;;
21792
21793 -# Dependencies to place after the objects being linked to create a
21794 -# shared library.
21795 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
21796 + irix5* | irix6* | nonstopux*)
21797 + if test "$GCC" = yes; then
21798 + _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'
21799 + # Try to use the -exported_symbol ld option, if it does not
21800 + # work, assume that -exports_file does not work either and
21801 + # implicitly export all symbols.
21802 + save_LDFLAGS="$LDFLAGS"
21803 + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
21804 + AC_LINK_IFELSE(int foo(void) {},
21805 + _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'
21806 + )
21807 + LDFLAGS="$save_LDFLAGS"
21808 + else
21809 + _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'
21810 + _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'
21811 + fi
21812 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
21813 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21814 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21815 + _LT_TAGVAR(inherit_rpath, $1)=yes
21816 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21817 + ;;
21818
21819 -# Dependencies to place before the objects being linked to create a
21820 -# shared library.
21821 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
21822 + netbsd*)
21823 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21824 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21825 + else
21826 + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21827 + fi
21828 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21829 + _LT_TAGVAR(hardcode_direct, $1)=yes
21830 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21831 + ;;
21832
21833 -# Dependencies to place after the objects being linked to create a
21834 -# shared library.
21835 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
21836 + newsos6)
21837 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21838 + _LT_TAGVAR(hardcode_direct, $1)=yes
21839 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21840 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21841 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21842 + ;;
21843
21844 -# The library search path used internally by the compiler when linking
21845 -# a shared library.
21846 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
21847 + *nto* | *qnx*)
21848 + ;;
21849
21850 -# Method to check whether dependent libraries are shared objects.
21851 -deplibs_check_method=$lt_deplibs_check_method
21852 + openbsd*)
21853 + if test -f /usr/libexec/ld.so; then
21854 + _LT_TAGVAR(hardcode_direct, $1)=yes
21855 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21856 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
21857 + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21858 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21859 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21860 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21861 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
21862 + else
21863 + case $host_os in
21864 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
21865 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21866 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21867 + ;;
21868 + *)
21869 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21870 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
21871 + ;;
21872 + esac
21873 + fi
21874 + else
21875 + _LT_TAGVAR(ld_shlibs, $1)=no
21876 + fi
21877 + ;;
21878
21879 -# Command to use when deplibs_check_method == file_magic.
21880 -file_magic_cmd=$lt_file_magic_cmd
21881 + os2*)
21882 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21883 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21884 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
21885 + _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'
21886 + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21887 + ;;
21888
21889 -# Flag that allows shared libraries with undefined symbols to be built.
21890 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
21891 + osf3*)
21892 + if test "$GCC" = yes; then
21893 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
21894 + _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'
21895 + else
21896 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
21897 + _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'
21898 + fi
21899 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
21900 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21901 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21902 + ;;
21903
21904 -# Flag that forces no undefined symbols.
21905 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
21906 + osf4* | osf5*) # as osf3* with the addition of -msym flag
21907 + if test "$GCC" = yes; then
21908 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
21909 + _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'
21910 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
21911 + else
21912 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
21913 + _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'
21914 + _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~
21915 + $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'
21916
21917 -# Commands used to finish a libtool library installation in a directory.
21918 -finish_cmds=$lt_finish_cmds
21919 + # Both c and cxx compiler support -rpath directly
21920 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
21921 + fi
21922 + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
21923 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
21924 + ;;
21925
21926 -# Same as above, but a single script fragment to be evaled but not shown.
21927 -finish_eval=$lt_finish_eval
21928 + solaris*)
21929 + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
21930 + if test "$GCC" = yes; then
21931 + wlarc='${wl}'
21932 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21933 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21934 + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21935 + else
21936 + case `$CC -V 2>&1` in
21937 + *"Compilers 5.0"*)
21938 + wlarc=''
21939 + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21940 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21941 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21942 + ;;
21943 + *)
21944 + wlarc='${wl}'
21945 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21946 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21947 + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21948 + ;;
21949 + esac
21950 + fi
21951 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
21952 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21953 + case $host_os in
21954 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
21955 + *)
21956 + # The compiler driver will combine and reorder linker options,
21957 + # but understands `-z linker_flag'. GCC discards it without `$wl',
21958 + # but is careful enough not to reorder.
21959 + # Supported since Solaris 2.6 (maybe 2.5.1?)
21960 + if test "$GCC" = yes; then
21961 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21962 + else
21963 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
21964 + fi
21965 + ;;
21966 + esac
21967 + _LT_TAGVAR(link_all_deplibs, $1)=yes
21968 + ;;
21969
21970 -# Take the output of nm and produce a listing of raw symbols and C names.
21971 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21972 + sunos4*)
21973 + if test "x$host_vendor" = xsequent; then
21974 + # Use $CC to link under sequent, because it throws in some extra .o
21975 + # files that make .init and .fini sections work.
21976 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21977 + else
21978 + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21979 + fi
21980 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
21981 + _LT_TAGVAR(hardcode_direct, $1)=yes
21982 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
21983 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
21984 + ;;
21985
21986 -# Transform the output of nm in a proper C declaration
21987 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21988 + sysv4)
21989 + case $host_vendor in
21990 + sni)
21991 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21992 + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
21993 + ;;
21994 + siemens)
21995 + ## LD is ld it makes a PLAMLIB
21996 + ## CC just makes a GrossModule.
21997 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21998 + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
21999 + _LT_TAGVAR(hardcode_direct, $1)=no
22000 + ;;
22001 + motorola)
22002 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003 + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
22004 + ;;
22005 + esac
22006 + runpath_var='LD_RUN_PATH'
22007 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22008 + ;;
22009
22010 -# Transform the output of nm in a C name address pair
22011 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22012 + sysv4.3*)
22013 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22015 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
22016 + ;;
22017
22018 -# This is the shared library runtime path variable.
22019 -runpath_var=$runpath_var
22020 + sysv4*MP*)
22021 + if test -d /usr/nec; then
22022 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22023 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22024 + runpath_var=LD_RUN_PATH
22025 + hardcode_runpath_var=yes
22026 + _LT_TAGVAR(ld_shlibs, $1)=yes
22027 + fi
22028 + ;;
22029
22030 -# This is the shared library path variable.
22031 -shlibpath_var=$shlibpath_var
22032 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
22033 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22034 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22035 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22036 + runpath_var='LD_RUN_PATH'
22037
22038 -# Is shlibpath searched before the hard-coded library search path?
22039 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22040 + if test "$GCC" = yes; then
22041 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22042 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22043 + else
22044 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22045 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22046 + fi
22047 + ;;
22048
22049 -# How to hardcode a shared library path into an executable.
22050 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
22051 + sysv5* | sco3.2v5* | sco5v6*)
22052 + # Note: We can NOT use -z defs as we might desire, because we do not
22053 + # link with -lc, and that would cause any symbols used from libc to
22054 + # always be unresolved, which means just about no library would
22055 + # ever link correctly. If we're not using GNU ld we use -z text
22056 + # though, which does catch some bad symbols but isn't as heavy-handed
22057 + # as -z defs.
22058 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
22059 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
22060 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22061 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22062 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
22063 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22064 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22065 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
22066 + runpath_var='LD_RUN_PATH'
22067
22068 -# Whether we should hardcode library paths into libraries.
22069 -hardcode_into_libs=$hardcode_into_libs
22070 + if test "$GCC" = yes; then
22071 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22072 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22073 + else
22074 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22075 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22076 + fi
22077 + ;;
22078
22079 -# Flag to hardcode \$libdir into a binary during linking.
22080 -# This must work even if \$libdir does not exist.
22081 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
22082 + uts4*)
22083 + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22084 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
22085 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
22086 + ;;
22087
22088 -# If ld is used when linking, flag to hardcode \$libdir into
22089 -# a binary during linking. This must work even if \$libdir does
22090 -# not exist.
22091 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
22092 + *)
22093 + _LT_TAGVAR(ld_shlibs, $1)=no
22094 + ;;
22095 + esac
22096
22097 -# Whether we need a single -rpath flag with a separated argument.
22098 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
22099 + if test x$host_vendor = xsni; then
22100 + case $host in
22101 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22102 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
22103 + ;;
22104 + esac
22105 + fi
22106 + fi
22107 +])
22108 +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
22109 +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
22110
22111 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22112 -# resulting binary.
22113 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
22114 +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
22115
22116 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22117 -# resulting binary.
22118 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
22119 +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
22120 +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
22121 +_LT_DECL([], [extract_expsyms_cmds], [2],
22122 + [The commands to extract the exported symbol list from a shared archive])
22123
22124 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22125 -# the resulting binary.
22126 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
22127 +#
22128 +# Do we need to explicitly link libc?
22129 +#
22130 +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
22131 +x|xyes)
22132 + # Assume -lc should be added
22133 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
22134
22135 -# Set to yes if building a shared library automatically hardcodes DIR into the library
22136 -# and all subsequent libraries and executables linked against it.
22137 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
22138 + if test "$enable_shared" = yes && test "$GCC" = yes; then
22139 + case $_LT_TAGVAR(archive_cmds, $1) in
22140 + *'~'*)
22141 + # FIXME: we may have to deal with multi-command sequences.
22142 + ;;
22143 + '$CC '*)
22144 + # Test whether the compiler implicitly links with -lc since on some
22145 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
22146 + # to ld, don't add -lc before -lgcc.
22147 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
22148 + $RM conftest*
22149 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22150
22151 -# Variables whose values should be saved in libtool wrapper scripts and
22152 -# restored at relink time.
22153 -variables_saved_for_relink="$variables_saved_for_relink"
22154 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
22155 + soname=conftest
22156 + lib=conftest
22157 + libobjs=conftest.$ac_objext
22158 + deplibs=
22159 + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
22160 + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
22161 + compiler_flags=-v
22162 + linker_flags=-v
22163 + verstring=
22164 + output_objdir=.
22165 + libname=conftest
22166 + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
22167 + _LT_TAGVAR(allow_undefined_flag, $1)=
22168 + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
22169 + then
22170 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
22171 + else
22172 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
22173 + fi
22174 + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
22175 + else
22176 + cat conftest.err 1>&5
22177 + fi
22178 + $RM conftest*
22179 + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
22180 + ;;
22181 + esac
22182 + fi
22183 + ;;
22184 +esac
22185
22186 -# Whether libtool must link a program against all its dependency libraries.
22187 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
22188 +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
22189 + [Whether or not to add -lc for building shared libraries])
22190 +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
22191 + [enable_shared_with_static_runtimes], [0],
22192 + [Whether or not to disallow shared libs when runtime libs are static])
22193 +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
22194 + [Compiler flag to allow reflexive dlopens])
22195 +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
22196 + [Compiler flag to generate shared objects directly from archives])
22197 +_LT_TAGDECL([], [compiler_needs_object], [1],
22198 + [Whether the compiler copes with passing no objects directly])
22199 +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
22200 + [Create an old-style archive from a shared archive])
22201 +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
22202 + [Create a temporary old-style archive to link instead of a shared archive])
22203 +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
22204 +_LT_TAGDECL([], [archive_expsym_cmds], [2])
22205 +_LT_TAGDECL([], [module_cmds], [2],
22206 + [Commands used to build a loadable module if different from building
22207 + a shared archive.])
22208 +_LT_TAGDECL([], [module_expsym_cmds], [2])
22209 +_LT_TAGDECL([], [with_gnu_ld], [1],
22210 + [Whether we are building with GNU ld or not])
22211 +_LT_TAGDECL([], [allow_undefined_flag], [1],
22212 + [Flag that allows shared libraries with undefined symbols to be built])
22213 +_LT_TAGDECL([], [no_undefined_flag], [1],
22214 + [Flag that enforces no undefined symbols])
22215 +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
22216 + [Flag to hardcode $libdir into a binary during linking.
22217 + This must work even if $libdir does not exist])
22218 +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
22219 + [[If ld is used when linking, flag to hardcode $libdir into a binary
22220 + during linking. This must work even if $libdir does not exist]])
22221 +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
22222 + [Whether we need a single "-rpath" flag with a separated argument])
22223 +_LT_TAGDECL([], [hardcode_direct], [0],
22224 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
22225 + DIR into the resulting binary])
22226 +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
22227 + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
22228 + DIR into the resulting binary and the resulting library dependency is
22229 + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
22230 + library is relocated])
22231 +_LT_TAGDECL([], [hardcode_minus_L], [0],
22232 + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22233 + into the resulting binary])
22234 +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
22235 + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22236 + into the resulting binary])
22237 +_LT_TAGDECL([], [hardcode_automatic], [0],
22238 + [Set to "yes" if building a shared library automatically hardcodes DIR
22239 + into the library and all subsequent libraries and executables linked
22240 + against it])
22241 +_LT_TAGDECL([], [inherit_rpath], [0],
22242 + [Set to yes if linker adds runtime paths of dependent libraries
22243 + to runtime path list])
22244 +_LT_TAGDECL([], [link_all_deplibs], [0],
22245 + [Whether libtool must link a program against all its dependency libraries])
22246 +_LT_TAGDECL([], [fix_srcfile_path], [1],
22247 + [Fix the shell variable $srcfile for the compiler])
22248 +_LT_TAGDECL([], [always_export_symbols], [0],
22249 + [Set to "yes" if exported symbols are required])
22250 +_LT_TAGDECL([], [export_symbols_cmds], [2],
22251 + [The commands to list exported symbols])
22252 +_LT_TAGDECL([], [exclude_expsyms], [1],
22253 + [Symbols that should not be listed in the preloaded symbols])
22254 +_LT_TAGDECL([], [include_expsyms], [1],
22255 + [Symbols that must always be exported])
22256 +_LT_TAGDECL([], [prelink_cmds], [2],
22257 + [Commands necessary for linking programs (against libraries) with templates])
22258 +_LT_TAGDECL([], [file_list_spec], [1],
22259 + [Specify filename containing input files])
22260 +dnl FIXME: Not yet implemented
22261 +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
22262 +dnl [Compiler flag to generate thread safe objects])
22263 +])# _LT_LINKER_SHLIBS
22264
22265 -# Compile-time system search path for libraries
22266 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22267
22268 -# Run-time system search path for libraries
22269 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22270 +# _LT_LANG_C_CONFIG([TAG])
22271 +# ------------------------
22272 +# Ensure that the configuration variables for a C compiler are suitably
22273 +# defined. These variables are subsequently used by _LT_CONFIG to write
22274 +# the compiler configuration to `libtool'.
22275 +m4_defun([_LT_LANG_C_CONFIG],
22276 +[m4_require([_LT_DECL_EGREP])dnl
22277 +lt_save_CC="$CC"
22278 +AC_LANG_PUSH(C)
22279
22280 -# Fix the shell variable \$srcfile for the compiler.
22281 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
22282 +# Source file extension for C test sources.
22283 +ac_ext=c
22284
22285 -# Set to yes if exported symbols are required.
22286 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
22287 +# Object file extension for compiled C test sources.
22288 +objext=o
22289 +_LT_TAGVAR(objext, $1)=$objext
22290
22291 -# The commands to list exported symbols.
22292 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
22293 +# Code to be used in simple compile tests
22294 +lt_simple_compile_test_code="int some_variable = 0;"
22295
22296 -# The commands to extract the exported symbol list from a shared archive.
22297 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
22298 +# Code to be used in simple link tests
22299 +lt_simple_link_test_code='int main(){return(0);}'
22300
22301 -# Symbols that should not be listed in the preloaded symbols.
22302 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
22303 +_LT_TAG_COMPILER
22304 +# Save the default compiler, since it gets overwritten when the other
22305 +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
22306 +compiler_DEFAULT=$CC
22307
22308 -# Symbols that must always be exported.
22309 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
22310 +# save warnings/boilerplate of simple test code
22311 +_LT_COMPILER_BOILERPLATE
22312 +_LT_LINKER_BOILERPLATE
22313
22314 -ifelse([$1],[],
22315 -[# ### END LIBTOOL CONFIG],
22316 -[# ### END LIBTOOL TAG CONFIG: $tagname])
22317 +## CAVEAT EMPTOR:
22318 +## There is no encapsulation within the following macros, do not change
22319 +## the running order or otherwise move them around unless you know exactly
22320 +## what you are doing...
22321 +if test -n "$compiler"; then
22322 + _LT_COMPILER_NO_RTTI($1)
22323 + _LT_COMPILER_PIC($1)
22324 + _LT_COMPILER_C_O($1)
22325 + _LT_COMPILER_FILE_LOCKS($1)
22326 + _LT_LINKER_SHLIBS($1)
22327 + _LT_SYS_DYNAMIC_LINKER($1)
22328 + _LT_LINKER_HARDCODE_LIBPATH($1)
22329 + LT_SYS_DLOPEN_SELF
22330 + _LT_CMD_STRIPLIB
22331 +
22332 + # Report which library types will actually be built
22333 + AC_MSG_CHECKING([if libtool supports shared libraries])
22334 + AC_MSG_RESULT([$can_build_shared])
22335
22336 -__EOF__
22337 + AC_MSG_CHECKING([whether to build shared libraries])
22338 + test "$can_build_shared" = "no" && enable_shared=no
22339
22340 -ifelse([$1],[], [
22341 + # On AIX, shared libraries and static libraries use the same namespace, and
22342 + # are all built from PIC.
22343 case $host_os in
22344 aix3*)
22345 - cat <<\EOF >> "$cfgfile"
22346 + test "$enable_shared" = yes && enable_static=no
22347 + if test -n "$RANLIB"; then
22348 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
22349 + postinstall_cmds='$RANLIB $lib'
22350 + fi
22351 + ;;
22352
22353 -# AIX sometimes has problems with the GCC collect2 program. For some
22354 -# reason, if we set the COLLECT_NAMES environment variable, the problems
22355 -# vanish in a puff of smoke.
22356 -if test "X${COLLECT_NAMES+set}" != Xset; then
22357 - COLLECT_NAMES=
22358 - export COLLECT_NAMES
22359 -fi
22360 -EOF
22361 + aix[[4-9]]*)
22362 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22363 + test "$enable_shared" = yes && enable_static=no
22364 + fi
22365 ;;
22366 esac
22367 + AC_MSG_RESULT([$enable_shared])
22368
22369 - # We use sed instead of cat because bash on DJGPP gets confused if
22370 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
22371 - # text mode, it properly converts lines to CR/LF. This bash problem
22372 - # is reportedly fixed, but why not run on old versions too?
22373 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
22374 + AC_MSG_CHECKING([whether to build static libraries])
22375 + # Make sure either enable_shared or enable_static is yes.
22376 + test "$enable_shared" = yes || enable_static=yes
22377 + AC_MSG_RESULT([$enable_static])
22378
22379 - mv -f "$cfgfile" "$ofile" || \
22380 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22381 - chmod +x "$ofile"
22382 -])
22383 -else
22384 - # If there is no Makefile yet, we rely on a make rule to execute
22385 - # `config.status --recheck' to rerun these tests and create the
22386 - # libtool script then.
22387 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22388 - if test -f "$ltmain_in"; then
22389 - test -f Makefile && make "$ltmain"
22390 - fi
22391 + _LT_CONFIG($1)
22392 fi
22393 -])# AC_LIBTOOL_CONFIG
22394 -
22395 -
22396 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
22397 -# -------------------------------------------
22398 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
22399 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
22400 -
22401 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
22402 +AC_LANG_POP
22403 +CC="$lt_save_CC"
22404 +])# _LT_LANG_C_CONFIG
22405
22406 -if test "$GCC" = yes; then
22407 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
22408
22409 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
22410 - lt_cv_prog_compiler_rtti_exceptions,
22411 - [-fno-rtti -fno-exceptions], [],
22412 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
22413 +# _LT_PROG_CXX
22414 +# ------------
22415 +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
22416 +# compiler, we have our own version here.
22417 +m4_defun([_LT_PROG_CXX],
22418 +[
22419 +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
22420 +AC_PROG_CXX
22421 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
22422 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
22423 + (test "X$CXX" != "Xg++"))) ; then
22424 + AC_PROG_CXXCPP
22425 +else
22426 + _lt_caught_CXX_error=yes
22427 fi
22428 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
22429 +popdef([AC_MSG_ERROR])
22430 +])# _LT_PROG_CXX
22431
22432 +dnl aclocal-1.4 backwards compatibility:
22433 +dnl AC_DEFUN([_LT_PROG_CXX], [])
22434
22435 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
22436 -# ---------------------------------
22437 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
22438 -[AC_REQUIRE([AC_CANONICAL_HOST])
22439 -AC_REQUIRE([AC_PROG_NM])
22440 -AC_REQUIRE([AC_OBJEXT])
22441 -# Check for command to grab the raw symbol name followed by C symbol from nm.
22442 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
22443 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
22444 -[
22445 -# These are sane defaults that work on at least a few old systems.
22446 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
22447 -
22448 -# Character class describing NM global symbol codes.
22449 -symcode='[[BCDEGRST]]'
22450
22451 -# Regexp to match symbols that can be accessed directly from C.
22452 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
22453 +# _LT_LANG_CXX_CONFIG([TAG])
22454 +# --------------------------
22455 +# Ensure that the configuration variables for a C++ compiler are suitably
22456 +# defined. These variables are subsequently used by _LT_CONFIG to write
22457 +# the compiler configuration to `libtool'.
22458 +m4_defun([_LT_LANG_CXX_CONFIG],
22459 +[AC_REQUIRE([_LT_PROG_CXX])dnl
22460 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
22461 +m4_require([_LT_DECL_EGREP])dnl
22462 +
22463 +AC_LANG_PUSH(C++)
22464 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
22465 +_LT_TAGVAR(allow_undefined_flag, $1)=
22466 +_LT_TAGVAR(always_export_symbols, $1)=no
22467 +_LT_TAGVAR(archive_expsym_cmds, $1)=
22468 +_LT_TAGVAR(compiler_needs_object, $1)=no
22469 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
22470 +_LT_TAGVAR(hardcode_direct, $1)=no
22471 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
22472 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
22473 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
22474 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
22475 +_LT_TAGVAR(hardcode_minus_L, $1)=no
22476 +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
22477 +_LT_TAGVAR(hardcode_automatic, $1)=no
22478 +_LT_TAGVAR(inherit_rpath, $1)=no
22479 +_LT_TAGVAR(module_cmds, $1)=
22480 +_LT_TAGVAR(module_expsym_cmds, $1)=
22481 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
22482 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
22483 +_LT_TAGVAR(no_undefined_flag, $1)=
22484 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
22485 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
22486
22487 -# Transform an extracted symbol line into a proper C declaration
22488 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
22489 +# Source file extension for C++ test sources.
22490 +ac_ext=cpp
22491
22492 -# Transform an extracted symbol line into symbol name and symbol address
22493 -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'"
22494 +# Object file extension for compiled C++ test sources.
22495 +objext=o
22496 +_LT_TAGVAR(objext, $1)=$objext
22497
22498 -# Define system-specific variables.
22499 -case $host_os in
22500 -aix*)
22501 - symcode='[[BCDT]]'
22502 - ;;
22503 -cygwin* | mingw* | pw32*)
22504 - symcode='[[ABCDGISTW]]'
22505 - ;;
22506 -hpux*) # Its linker distinguishes data from code symbols
22507 - if test "$host_cpu" = ia64; then
22508 - symcode='[[ABCDEGRST]]'
22509 +# No sense in running all these tests if we already determined that
22510 +# the CXX compiler isn't working. Some variables (like enable_shared)
22511 +# are currently assumed to apply to all compilers on this platform,
22512 +# and will be corrupted by setting them based on a non-working compiler.
22513 +if test "$_lt_caught_CXX_error" != yes; then
22514 + # Code to be used in simple compile tests
22515 + lt_simple_compile_test_code="int some_variable = 0;"
22516 +
22517 + # Code to be used in simple link tests
22518 + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
22519 +
22520 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22521 + _LT_TAG_COMPILER
22522 +
22523 + # save warnings/boilerplate of simple test code
22524 + _LT_COMPILER_BOILERPLATE
22525 + _LT_LINKER_BOILERPLATE
22526 +
22527 + # Allow CC to be a program name with arguments.
22528 + lt_save_CC=$CC
22529 + lt_save_LD=$LD
22530 + lt_save_GCC=$GCC
22531 + GCC=$GXX
22532 + lt_save_with_gnu_ld=$with_gnu_ld
22533 + lt_save_path_LD=$lt_cv_path_LD
22534 + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22535 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22536 + else
22537 + $as_unset lt_cv_prog_gnu_ld
22538 fi
22539 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
22540 - 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'"
22541 - ;;
22542 -linux*)
22543 - if test "$host_cpu" = ia64; then
22544 - symcode='[[ABCDGIRSTW]]'
22545 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
22546 - 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'"
22547 + if test -n "${lt_cv_path_LDCXX+set}"; then
22548 + lt_cv_path_LD=$lt_cv_path_LDCXX
22549 + else
22550 + $as_unset lt_cv_path_LD
22551 fi
22552 - ;;
22553 -irix* | nonstopux*)
22554 - symcode='[[BCDEGRST]]'
22555 - ;;
22556 -osf*)
22557 - symcode='[[BCDEGQRST]]'
22558 - ;;
22559 -solaris*)
22560 - symcode='[[BDRT]]'
22561 - ;;
22562 -sco3.2v5*)
22563 - symcode='[[DT]]'
22564 - ;;
22565 -sysv4.2uw2*)
22566 - symcode='[[DT]]'
22567 - ;;
22568 -sysv5* | sco5v6* | unixware* | OpenUNIX*)
22569 - symcode='[[ABDT]]'
22570 - ;;
22571 -sysv4)
22572 - symcode='[[DFNSTU]]'
22573 - ;;
22574 -esac
22575 -
22576 -# Handle CRLF in mingw tool chain
22577 -opt_cr=
22578 -case $build_os in
22579 -mingw*)
22580 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
22581 - ;;
22582 -esac
22583 -
22584 -# If we're using GNU nm, then use its standard symbol codes.
22585 -case `$NM -V 2>&1` in
22586 -*GNU* | *'with BFD'*)
22587 - symcode='[[ABCDGIRSTW]]' ;;
22588 -esac
22589 -
22590 -# Try without a prefix undercore, then with it.
22591 -for ac_symprfx in "" "_"; do
22592 -
22593 - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
22594 - symxfrm="\\1 $ac_symprfx\\2 \\2"
22595 -
22596 - # Write the raw and C identifiers.
22597 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
22598 -
22599 - # Check to see that the pipe works correctly.
22600 - pipe_works=no
22601 -
22602 - rm -f conftest*
22603 - cat > conftest.$ac_ext <<EOF
22604 -#ifdef __cplusplus
22605 -extern "C" {
22606 -#endif
22607 -char nm_test_var;
22608 -void nm_test_func(){}
22609 -#ifdef __cplusplus
22610 -}
22611 -#endif
22612 -int main(){nm_test_var='a';nm_test_func();return(0);}
22613 -EOF
22614 -
22615 - if AC_TRY_EVAL(ac_compile); then
22616 - # Now try to grab the symbols.
22617 - nlist=conftest.nm
22618 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
22619 - # Try sorting and uniquifying the output.
22620 - if sort "$nlist" | uniq > "$nlist"T; then
22621 - mv -f "$nlist"T "$nlist"
22622 - else
22623 - rm -f "$nlist"T
22624 - fi
22625 -
22626 - # Make sure that we snagged all the symbols we need.
22627 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
22628 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
22629 - cat <<EOF > conftest.$ac_ext
22630 -#ifdef __cplusplus
22631 -extern "C" {
22632 -#endif
22633 -
22634 -EOF
22635 - # Now generate the symbol file.
22636 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
22637 -
22638 - cat <<EOF >> conftest.$ac_ext
22639 -#if defined (__STDC__) && __STDC__
22640 -# define lt_ptr_t void *
22641 -#else
22642 -# define lt_ptr_t char *
22643 -# define const
22644 -#endif
22645 -
22646 -/* The mapping between symbol names and symbols. */
22647 -const struct {
22648 - const char *name;
22649 - lt_ptr_t address;
22650 -}
22651 -lt_preloaded_symbols[[]] =
22652 -{
22653 -EOF
22654 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
22655 - cat <<\EOF >> conftest.$ac_ext
22656 - {0, (lt_ptr_t) 0}
22657 -};
22658 + test -z "${LDCXX+set}" || LD=$LDCXX
22659 + CC=${CXX-"c++"}
22660 + compiler=$CC
22661 + _LT_TAGVAR(compiler, $1)=$CC
22662 + _LT_CC_BASENAME([$compiler])
22663
22664 -#ifdef __cplusplus
22665 -}
22666 -#endif
22667 -EOF
22668 - # Now try linking the two files.
22669 - mv conftest.$ac_objext conftstm.$ac_objext
22670 - lt_save_LIBS="$LIBS"
22671 - lt_save_CFLAGS="$CFLAGS"
22672 - LIBS="conftstm.$ac_objext"
22673 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
22674 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
22675 - pipe_works=yes
22676 - fi
22677 - LIBS="$lt_save_LIBS"
22678 - CFLAGS="$lt_save_CFLAGS"
22679 - else
22680 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
22681 - fi
22682 - else
22683 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
22684 - fi
22685 + if test -n "$compiler"; then
22686 + # We don't want -fno-exception when compiling C++ code, so set the
22687 + # no_builtin_flag separately
22688 + if test "$GXX" = yes; then
22689 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
22690 else
22691 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
22692 + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
22693 fi
22694 - else
22695 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
22696 - cat conftest.$ac_ext >&5
22697 - fi
22698 - rm -f conftest* conftst*
22699 -
22700 - # Do not use the global_symbol_pipe unless it works.
22701 - if test "$pipe_works" = yes; then
22702 - break
22703 - else
22704 - lt_cv_sys_global_symbol_pipe=
22705 - fi
22706 -done
22707 -])
22708 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
22709 - lt_cv_sys_global_symbol_to_cdecl=
22710 -fi
22711 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
22712 - AC_MSG_RESULT(failed)
22713 -else
22714 - AC_MSG_RESULT(ok)
22715 -fi
22716 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
22717
22718 + if test "$GXX" = yes; then
22719 + # Set up default GNU C++ configuration
22720
22721 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
22722 -# ---------------------------------------
22723 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
22724 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
22725 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
22726 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
22727 + LT_PATH_LD
22728
22729 -AC_MSG_CHECKING([for $compiler option to produce PIC])
22730 - ifelse([$1],[CXX],[
22731 - # C++ specific cases for pic, static, wl, etc.
22732 - if test "$GXX" = yes; then
22733 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
22734 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
22735 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
22736 + # archiving commands below assume that GNU ld is being used.
22737 + if test "$with_gnu_ld" = yes; then
22738 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22739 + _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'
22740 +
22741 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
22742 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
22743 +
22744 + # If archive_cmds runs LD, not CC, wlarc should be empty
22745 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22746 + # investigate it a little bit more. (MM)
22747 + wlarc='${wl}'
22748 +
22749 + # ancient GNU ld didn't support --whole-archive et. al.
22750 + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
22751 + $GREP 'no-whole-archive' > /dev/null; then
22752 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22753 + else
22754 + _LT_TAGVAR(whole_archive_flag_spec, $1)=
22755 + fi
22756 + else
22757 + with_gnu_ld=no
22758 + wlarc=
22759
22760 - case $host_os in
22761 - aix*)
22762 - # All AIX code is PIC.
22763 - if test "$host_cpu" = ia64; then
22764 - # AIX 5 now supports IA64 processor
22765 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22766 - fi
22767 - ;;
22768 - amigaos*)
22769 - # FIXME: we need at least 68020 code to build shared libraries, but
22770 - # adding the `-m68020' flag to GCC prevents building anything better,
22771 - # like `-m68040'.
22772 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
22773 - ;;
22774 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22775 - # PIC is the default for these OSes.
22776 - ;;
22777 - mingw* | cygwin* | os2* | pw32*)
22778 - # This hack is so that the source file can tell whether it is being
22779 - # built for inclusion in a dll (and should export symbols for example).
22780 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
22781 - # (--disable-auto-import) libraries
22782 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
22783 - ;;
22784 - darwin* | rhapsody*)
22785 - # PIC is the default on this platform
22786 - # Common symbols not allowed in MH_DYLIB files
22787 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
22788 - ;;
22789 - *djgpp*)
22790 - # DJGPP does not support shared libraries at all
22791 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
22792 - ;;
22793 - interix3*)
22794 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22795 - # Instead, we relocate shared libraries at runtime.
22796 - ;;
22797 - sysv4*MP*)
22798 - if test -d /usr/nec; then
22799 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
22800 + # A generic and very simple default shared library creation
22801 + # command for GNU C++ for the case where it uses the native
22802 + # linker, instead of GNU ld. If possible, this setting should
22803 + # overridden to take advantage of the native linker features on
22804 + # the platform it is being used on.
22805 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22806 fi
22807 - ;;
22808 - hpux*)
22809 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22810 - # not for PA HP-UX.
22811 - case $host_cpu in
22812 - hppa*64*|ia64*)
22813 - ;;
22814 - *)
22815 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22816 - ;;
22817 - esac
22818 - ;;
22819 - *)
22820 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
22821 - ;;
22822 - esac
22823 - else
22824 +
22825 + # Commands to make compiler produce verbose output that lists
22826 + # what "hidden" libraries, object files and flags are used when
22827 + # linking a shared library.
22828 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
22829 +
22830 + else
22831 + GXX=no
22832 + with_gnu_ld=no
22833 + wlarc=
22834 + fi
22835 +
22836 + # PORTME: fill in a description of your system's C++ link characteristics
22837 + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
22838 + _LT_TAGVAR(ld_shlibs, $1)=yes
22839 case $host_os in
22840 - aix4* | aix5*)
22841 - # All AIX code is PIC.
22842 - if test "$host_cpu" = ia64; then
22843 - # AIX 5 now supports IA64 processor
22844 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
22845 + aix3*)
22846 + # FIXME: insert proper C++ library support
22847 + _LT_TAGVAR(ld_shlibs, $1)=no
22848 + ;;
22849 + aix[[4-9]]*)
22850 + if test "$host_cpu" = ia64; then
22851 + # On IA64, the linker does run time linking by default, so we don't
22852 + # have to do anything special.
22853 + aix_use_runtimelinking=no
22854 + exp_sym_flag='-Bexport'
22855 + no_entry_flag=""
22856 + else
22857 + aix_use_runtimelinking=no
22858 +
22859 + # Test if we are trying to use run time linking or normal
22860 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22861 + # need to do runtime linking.
22862 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
22863 + for ld_flag in $LDFLAGS; do
22864 + case $ld_flag in
22865 + *-brtl*)
22866 + aix_use_runtimelinking=yes
22867 + break
22868 + ;;
22869 + esac
22870 + done
22871 + ;;
22872 + esac
22873 +
22874 + exp_sym_flag='-bexport'
22875 + no_entry_flag='-bnoentry'
22876 + fi
22877 +
22878 + # When large executables or shared objects are built, AIX ld can
22879 + # have problems creating the table of contents. If linking a library
22880 + # or program results in "error TOC overflow" add -mminimal-toc to
22881 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22882 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22883 +
22884 + _LT_TAGVAR(archive_cmds, $1)=''
22885 + _LT_TAGVAR(hardcode_direct, $1)=yes
22886 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
22887 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
22888 + _LT_TAGVAR(link_all_deplibs, $1)=yes
22889 + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
22890 +
22891 + if test "$GXX" = yes; then
22892 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
22893 + # We only want to do this on AIX 4.2 and lower, the check
22894 + # below for broken collect2 doesn't work under 4.3+
22895 + collect2name=`${CC} -print-prog-name=collect2`
22896 + if test -f "$collect2name" &&
22897 + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22898 + then
22899 + # We have reworked collect2
22900 + :
22901 + else
22902 + # We have old collect2
22903 + _LT_TAGVAR(hardcode_direct, $1)=unsupported
22904 + # It fails to find uninstalled libraries when the uninstalled
22905 + # path is not listed in the libpath. Setting hardcode_minus_L
22906 + # to unsupported forces relinking
22907 + _LT_TAGVAR(hardcode_minus_L, $1)=yes
22908 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
22909 + _LT_TAGVAR(hardcode_libdir_separator, $1)=
22910 + fi
22911 + esac
22912 + shared_flag='-shared'
22913 + if test "$aix_use_runtimelinking" = yes; then
22914 + shared_flag="$shared_flag "'${wl}-G'
22915 + fi
22916 + else
22917 + # not using gcc
22918 + if test "$host_cpu" = ia64; then
22919 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22920 + # chokes on -Wl,-G. The following line is correct:
22921 + shared_flag='-G'
22922 + else
22923 + if test "$aix_use_runtimelinking" = yes; then
22924 + shared_flag='${wl}-G'
22925 + else
22926 + shared_flag='${wl}-bM:SRE'
22927 + fi
22928 + fi
22929 + fi
22930 +
22931 + # It seems that -bexpall does not export symbols beginning with
22932 + # underscore (_), so it is better to generate a list of symbols to
22933 + # export.
22934 + _LT_TAGVAR(always_export_symbols, $1)=yes
22935 + if test "$aix_use_runtimelinking" = yes; then
22936 + # Warning - without using the other runtime loading flags (-brtl),
22937 + # -berok will link without error, but may produce a broken library.
22938 + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
22939 + # Determine the default libpath from the value encoded in an empty
22940 + # executable.
22941 + _LT_SYS_MODULE_PATH_AIX
22942 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
22943 +
22944 + _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"
22945 + else
22946 + if test "$host_cpu" = ia64; then
22947 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
22948 + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
22949 + _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"
22950 + else
22951 + # Determine the default libpath from the value encoded in an
22952 + # empty executable.
22953 + _LT_SYS_MODULE_PATH_AIX
22954 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
22955 + # Warning - without using the other run time loading flags,
22956 + # -berok will link without error, but may produce a broken library.
22957 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
22958 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
22959 + # Exported symbols can be pulled into shared objects from archives
22960 + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
22961 + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
22962 + # This is similar to how AIX traditionally builds its shared
22963 + # libraries.
22964 + _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'
22965 + fi
22966 + fi
22967 + ;;
22968 +
22969 + beos*)
22970 + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22971 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
22972 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22973 + # support --undefined. This deserves some investigation. FIXME
22974 + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22975 else
22976 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
22977 + _LT_TAGVAR(ld_shlibs, $1)=no
22978 fi
22979 ;;
22980 +
22981 chorus*)
22982 - case $cc_basename in
22983 - cxch68*)
22984 - # Green Hills C++ Compiler
22985 - # _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"
22986 + case $cc_basename in
22987 + *)
22988 + # FIXME: insert proper C++ library support
22989 + _LT_TAGVAR(ld_shlibs, $1)=no
22990 ;;
22991 - esac
22992 + esac
22993 + ;;
22994 +
22995 + cygwin* | mingw* | pw32*)
22996 + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
22997 + # as there is no search path for DLLs.
22998 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
22999 + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
23000 + _LT_TAGVAR(always_export_symbols, $1)=no
23001 + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
23002 +
23003 + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
23004 + _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'
23005 + # If the export-symbols file already is a .def file (1st line
23006 + # is EXPORTS), use it as is; otherwise, prepend...
23007 + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
23008 + cp $export_symbols $output_objdir/$soname.def;
23009 + else
23010 + echo EXPORTS > $output_objdir/$soname.def;
23011 + cat $export_symbols >> $output_objdir/$soname.def;
23012 + fi~
23013 + $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'
23014 + else
23015 + _LT_TAGVAR(ld_shlibs, $1)=no
23016 + fi
23017 + ;;
23018 + darwin* | rhapsody*)
23019 + _LT_DARWIN_LINKER_FEATURES($1)
23020 ;;
23021 - darwin*)
23022 - # PIC is the default on this platform
23023 - # Common symbols not allowed in MH_DYLIB files
23024 - case $cc_basename in
23025 - xlc*)
23026 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
23027 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23028 - ;;
23029 - esac
23030 - ;;
23031 +
23032 dgux*)
23033 - case $cc_basename in
23034 - ec++*)
23035 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23036 + case $cc_basename in
23037 + ec++*)
23038 + # FIXME: insert proper C++ library support
23039 + _LT_TAGVAR(ld_shlibs, $1)=no
23040 ;;
23041 - ghcx*)
23042 + ghcx*)
23043 # Green Hills C++ Compiler
23044 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23045 + # FIXME: insert proper C++ library support
23046 + _LT_TAGVAR(ld_shlibs, $1)=no
23047 ;;
23048 - *)
23049 + *)
23050 + # FIXME: insert proper C++ library support
23051 + _LT_TAGVAR(ld_shlibs, $1)=no
23052 ;;
23053 - esac
23054 - ;;
23055 - freebsd* | kfreebsd*-gnu | dragonfly*)
23056 - # FreeBSD uses GNU C++
23057 - ;;
23058 - hpux9* | hpux10* | hpux11*)
23059 - case $cc_basename in
23060 - CC*)
23061 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23062 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
23063 - if test "$host_cpu" != ia64; then
23064 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
23065 - fi
23066 + esac
23067 + ;;
23068 +
23069 + freebsd[[12]]*)
23070 + # C++ shared libraries reported to be fairly broken before
23071 + # switch to ELF
23072 + _LT_TAGVAR(ld_shlibs, $1)=no
23073 + ;;
23074 +
23075 + freebsd-elf*)
23076 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23077 + ;;
23078 +
23079 + freebsd* | dragonfly*)
23080 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
23081 + # conventions
23082 + _LT_TAGVAR(ld_shlibs, $1)=yes
23083 + ;;
23084 +
23085 + gnu*)
23086 + ;;
23087 +
23088 + hpux9*)
23089 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
23090 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23091 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23092 + _LT_TAGVAR(hardcode_direct, $1)=yes
23093 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
23094 + # but as the default
23095 + # location of the library.
23096 +
23097 + case $cc_basename in
23098 + CC*)
23099 + # FIXME: insert proper C++ library support
23100 + _LT_TAGVAR(ld_shlibs, $1)=no
23101 + ;;
23102 + aCC*)
23103 + _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'
23104 + # Commands to make compiler produce verbose output that lists
23105 + # what "hidden" libraries, object files and flags are used when
23106 + # linking a shared library.
23107 + #
23108 + # There doesn't appear to be a way to prevent this compiler from
23109 + # explicitly linking system object files so we need to strip them
23110 + # from the output so that they don't get included in the library
23111 + # dependencies.
23112 + 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'
23113 + ;;
23114 + *)
23115 + if test "$GXX" = yes; then
23116 + _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'
23117 + else
23118 + # FIXME: insert proper C++ library support
23119 + _LT_TAGVAR(ld_shlibs, $1)=no
23120 + fi
23121 + ;;
23122 + esac
23123 + ;;
23124 +
23125 + hpux10*|hpux11*)
23126 + if test $with_gnu_ld = no; then
23127 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
23128 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23129 +
23130 + case $host_cpu in
23131 + hppa*64*|ia64*)
23132 + ;;
23133 + *)
23134 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23135 + ;;
23136 + esac
23137 + fi
23138 + case $host_cpu in
23139 + hppa*64*|ia64*)
23140 + _LT_TAGVAR(hardcode_direct, $1)=no
23141 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23142 + ;;
23143 + *)
23144 + _LT_TAGVAR(hardcode_direct, $1)=yes
23145 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
23146 + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
23147 + # but as the default
23148 + # location of the library.
23149 + ;;
23150 + esac
23151 +
23152 + case $cc_basename in
23153 + CC*)
23154 + # FIXME: insert proper C++ library support
23155 + _LT_TAGVAR(ld_shlibs, $1)=no
23156 ;;
23157 - aCC*)
23158 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23159 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
23160 + aCC*)
23161 case $host_cpu in
23162 - hppa*64*|ia64*)
23163 - # +Z the default
23164 - ;;
23165 - *)
23166 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
23167 - ;;
23168 + hppa*64*)
23169 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23170 + ;;
23171 + ia64*)
23172 + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23173 + ;;
23174 + *)
23175 + _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'
23176 + ;;
23177 esac
23178 + # Commands to make compiler produce verbose output that lists
23179 + # what "hidden" libraries, object files and flags are used when
23180 + # linking a shared library.
23181 + #
23182 + # There doesn't appear to be a way to prevent this compiler from
23183 + # explicitly linking system object files so we need to strip them
23184 + # from the output so that they don't get included in the library
23185 + # dependencies.
23186 + 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'
23187 ;;
23188 - *)
23189 + *)
23190 + if test "$GXX" = yes; then
23191 + if test $with_gnu_ld = no; then
23192 + case $host_cpu in
23193 + hppa*64*)
23194 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23195 + ;;
23196 + ia64*)
23197 + _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'
23198 + ;;
23199 + *)
23200 + _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'
23201 + ;;
23202 + esac
23203 + fi
23204 + else
23205 + # FIXME: insert proper C++ library support
23206 + _LT_TAGVAR(ld_shlibs, $1)=no
23207 + fi
23208 ;;
23209 - esac
23210 - ;;
23211 - interix*)
23212 - # This is c89, which is MS Visual C++ (no shared libs)
23213 - # Anyone wants to do a port?
23214 - ;;
23215 - irix5* | irix6* | nonstopux*)
23216 - case $cc_basename in
23217 - CC*)
23218 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23219 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23220 - # CC pic flag -KPIC is the default.
23221 + esac
23222 + ;;
23223 +
23224 + interix[[3-9]]*)
23225 + _LT_TAGVAR(hardcode_direct, $1)=no
23226 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23227 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23228 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23229 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
23230 + # Instead, shared libraries are loaded at an image base (0x10000000 by
23231 + # default) and relocated if they conflict, which is a slow very memory
23232 + # consuming and fragmenting process. To avoid this, we pick a random,
23233 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
23234 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
23235 + _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'
23236 + _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'
23237 + ;;
23238 + irix5* | irix6*)
23239 + case $cc_basename in
23240 + CC*)
23241 + # SGI C++
23242 + _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'
23243 +
23244 + # Archives containing C++ object files must be created using
23245 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
23246 + # necessary to make sure instantiated templates are included
23247 + # in the archive.
23248 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
23249 ;;
23250 - *)
23251 + *)
23252 + if test "$GXX" = yes; then
23253 + if test "$with_gnu_ld" = no; then
23254 + _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'
23255 + else
23256 + _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'
23257 + fi
23258 + fi
23259 + _LT_TAGVAR(link_all_deplibs, $1)=yes
23260 ;;
23261 - esac
23262 - ;;
23263 - linux*)
23264 - case $cc_basename in
23265 - KCC*)
23266 - # KAI C++ Compiler
23267 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
23268 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
23269 + esac
23270 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23271 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23272 + _LT_TAGVAR(inherit_rpath, $1)=yes
23273 + ;;
23274 +
23275 + linux* | k*bsd*-gnu)
23276 + case $cc_basename in
23277 + KCC*)
23278 + # Kuck and Associates, Inc. (KAI) C++ Compiler
23279 +
23280 + # KCC will only create a shared library if the output file
23281 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
23282 + # to its proper name (with version) after linking.
23283 + _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'
23284 + _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'
23285 + # Commands to make compiler produce verbose output that lists
23286 + # what "hidden" libraries, object files and flags are used when
23287 + # linking a shared library.
23288 + #
23289 + # There doesn't appear to be a way to prevent this compiler from
23290 + # explicitly linking system object files so we need to strip them
23291 + # from the output so that they don't get included in the library
23292 + # dependencies.
23293 + 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'
23294 +
23295 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23296 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23297 +
23298 + # Archives containing C++ object files must be created using
23299 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
23300 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
23301 ;;
23302 - icpc* | ecpc*)
23303 + icpc* | ecpc* )
23304 # Intel C++
23305 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23306 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23307 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
23308 - ;;
23309 - pgCC*)
23310 - # Portland Group C++ compiler.
23311 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23312 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
23313 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23314 - ;;
23315 - cxx*)
23316 - # Compaq C++
23317 - # Make sure the PIC flag is empty. It appears that all Alpha
23318 - # Linux and Compaq Tru64 Unix objects are PIC.
23319 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23320 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23321 + with_gnu_ld=yes
23322 + # version 8.0 and above of icpc choke on multiply defined symbols
23323 + # if we add $predep_objects and $postdep_objects, however 7.1 and
23324 + # earlier do not add the objects themselves.
23325 + case `$CC -V 2>&1` in
23326 + *"Version 7."*)
23327 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
23328 + _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'
23329 + ;;
23330 + *) # Version 8.0 or newer
23331 + tmp_idyn=
23332 + case $host_cpu in
23333 + ia64*) tmp_idyn=' -i_dynamic';;
23334 + esac
23335 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23336 + _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'
23337 + ;;
23338 + esac
23339 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23340 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23341 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23342 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
23343 ;;
23344 - *)
23345 - case `$CC -V 2>&1 | sed 5q` in
23346 - *Sun\ C*)
23347 - # Sun C++ 5.9
23348 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23349 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23350 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
23351 + pgCC* | pgcpp*)
23352 + # Portland Group C++ compiler
23353 + case `$CC -V` in
23354 + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
23355 + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
23356 + rm -rf $tpldir~
23357 + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
23358 + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
23359 + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
23360 + rm -rf $tpldir~
23361 + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
23362 + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
23363 + $RANLIB $oldlib'
23364 + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
23365 + rm -rf $tpldir~
23366 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
23367 + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
23368 + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
23369 + rm -rf $tpldir~
23370 + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
23371 + $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'
23372 + ;;
23373 + *) # Version 6 will use weak symbols
23374 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
23375 + _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'
23376 ;;
23377 esac
23378 - ;;
23379 - esac
23380 - ;;
23381 - lynxos*)
23382 - ;;
23383 - m88k*)
23384 - ;;
23385 - mvs*)
23386 - case $cc_basename in
23387 - cxx*)
23388 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
23389 - ;;
23390 - *)
23391 - ;;
23392 - esac
23393 - ;;
23394 - netbsd*)
23395 - ;;
23396 - osf3* | osf4* | osf5*)
23397 - case $cc_basename in
23398 - KCC*)
23399 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
23400 - ;;
23401 - RCC*)
23402 - # Rational C++ 2.4.1
23403 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23404 - ;;
23405 +
23406 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
23407 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23408 + _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'
23409 + ;;
23410 cxx*)
23411 - # Digital/Compaq C++
23412 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23413 - # Make sure the PIC flag is empty. It appears that all Alpha
23414 - # Linux and Compaq Tru64 Unix objects are PIC.
23415 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
23416 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23417 - ;;
23418 - *)
23419 - ;;
23420 - esac
23421 - ;;
23422 - psos*)
23423 - ;;
23424 - solaris*)
23425 - case $cc_basename in
23426 - CC*)
23427 - # Sun C++ 4.2, 5.x and Centerline C++
23428 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23429 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23430 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
23431 - ;;
23432 - gcx*)
23433 - # Green Hills C++ Compiler
23434 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
23435 - ;;
23436 - *)
23437 - ;;
23438 - esac
23439 - ;;
23440 - sunos4*)
23441 - case $cc_basename in
23442 - CC*)
23443 - # Sun C++ 4.x
23444 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23445 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23446 - ;;
23447 - lcc*)
23448 - # Lucid
23449 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
23450 - ;;
23451 - *)
23452 + # Compaq C++
23453 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
23454 + _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'
23455 +
23456 + runpath_var=LD_RUN_PATH
23457 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
23458 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23459 +
23460 + # Commands to make compiler produce verbose output that lists
23461 + # what "hidden" libraries, object files and flags are used when
23462 + # linking a shared library.
23463 + #
23464 + # There doesn't appear to be a way to prevent this compiler from
23465 + # explicitly linking system object files so we need to strip them
23466 + # from the output so that they don't get included in the library
23467 + # dependencies.
23468 + 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'
23469 ;;
23470 - esac
23471 - ;;
23472 - tandem*)
23473 - case $cc_basename in
23474 - NCC*)
23475 - # NonStop-UX NCC 3.20
23476 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23477 + xl*)
23478 + # IBM XL 8.0 on PPC, with GNU ld
23479 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23480 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
23481 + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23482 + if test "x$supports_anon_versioning" = xyes; then
23483 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
23484 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
23485 + echo "local: *; };" >> $output_objdir/$libname.ver~
23486 + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
23487 + fi
23488 ;;
23489 *)
23490 + case `$CC -V 2>&1 | sed 5q` in
23491 + *Sun\ C*)
23492 + # Sun C++ 5.9
23493 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
23494 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23495 + _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'
23496 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23497 + _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'
23498 + _LT_TAGVAR(compiler_needs_object, $1)=yes
23499 +
23500 + # Not sure whether something based on
23501 + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
23502 + # would be better.
23503 + output_verbose_link_cmd='echo'
23504 +
23505 + # Archives containing C++ object files must be created using
23506 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
23507 + # necessary to make sure instantiated templates are included
23508 + # in the archive.
23509 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
23510 + ;;
23511 + esac
23512 ;;
23513 esac
23514 ;;
23515 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23516 - case $cc_basename in
23517 - CC*)
23518 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23519 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23520 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23521 +
23522 + lynxos*)
23523 + # FIXME: insert proper C++ library support
23524 + _LT_TAGVAR(ld_shlibs, $1)=no
23525 + ;;
23526 +
23527 + m88k*)
23528 + # FIXME: insert proper C++ library support
23529 + _LT_TAGVAR(ld_shlibs, $1)=no
23530 + ;;
23531 +
23532 + mvs*)
23533 + case $cc_basename in
23534 + cxx*)
23535 + # FIXME: insert proper C++ library support
23536 + _LT_TAGVAR(ld_shlibs, $1)=no
23537 + ;;
23538 + *)
23539 + # FIXME: insert proper C++ library support
23540 + _LT_TAGVAR(ld_shlibs, $1)=no
23541 ;;
23542 esac
23543 ;;
23544 - vxworks*)
23545 +
23546 + netbsd*)
23547 + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23548 + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
23549 + wlarc=
23550 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23551 + _LT_TAGVAR(hardcode_direct, $1)=yes
23552 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23553 + fi
23554 + # Workaround some broken pre-1.5 toolchains
23555 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
23556 ;;
23557 - *)
23558 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
23559 +
23560 + *nto* | *qnx*)
23561 + _LT_TAGVAR(ld_shlibs, $1)=yes
23562 ;;
23563 - esac
23564 - fi
23565 -],
23566 -[
23567 - if test "$GCC" = yes; then
23568 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23569 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
23570
23571 - case $host_os in
23572 - aix*)
23573 - # All AIX code is PIC.
23574 - if test "$host_cpu" = ia64; then
23575 - # AIX 5 now supports IA64 processor
23576 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23577 - fi
23578 - ;;
23579 + openbsd2*)
23580 + # C++ shared libraries are fairly broken
23581 + _LT_TAGVAR(ld_shlibs, $1)=no
23582 + ;;
23583 +
23584 + openbsd*)
23585 + if test -f /usr/libexec/ld.so; then
23586 + _LT_TAGVAR(hardcode_direct, $1)=yes
23587 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23588 + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
23589 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
23590 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23591 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23592 + _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'
23593 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
23594 + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23595 + fi
23596 + output_verbose_link_cmd=echo
23597 + else
23598 + _LT_TAGVAR(ld_shlibs, $1)=no
23599 + fi
23600 + ;;
23601
23602 - amigaos*)
23603 - # FIXME: we need at least 68020 code to build shared libraries, but
23604 - # adding the `-m68020' flag to GCC prevents building anything better,
23605 - # like `-m68040'.
23606 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
23607 - ;;
23608 + osf3* | osf4* | osf5*)
23609 + case $cc_basename in
23610 + KCC*)
23611 + # Kuck and Associates, Inc. (KAI) C++ Compiler
23612 +
23613 + # KCC will only create a shared library if the output file
23614 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
23615 + # to its proper name (with version) after linking.
23616 + _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'
23617 +
23618 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
23619 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23620 +
23621 + # Archives containing C++ object files must be created using
23622 + # the KAI C++ compiler.
23623 + case $host in
23624 + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
23625 + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
23626 + esac
23627 + ;;
23628 + RCC*)
23629 + # Rational C++ 2.4.1
23630 + # FIXME: insert proper C++ library support
23631 + _LT_TAGVAR(ld_shlibs, $1)=no
23632 + ;;
23633 + cxx*)
23634 + case $host in
23635 + osf3*)
23636 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
23637 + _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'
23638 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23639 + ;;
23640 + *)
23641 + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
23642 + _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'
23643 + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23644 + echo "-hidden">> $lib.exp~
23645 + $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~
23646 + $RM $lib.exp'
23647 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
23648 + ;;
23649 + esac
23650
23651 - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23652 - # PIC is the default for these OSes.
23653 - ;;
23654 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23655
23656 - mingw* | cygwin* | pw32* | os2*)
23657 - # This hack is so that the source file can tell whether it is being
23658 - # built for inclusion in a dll (and should export symbols for example).
23659 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
23660 - # (--disable-auto-import) libraries
23661 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
23662 - ;;
23663 + # Commands to make compiler produce verbose output that lists
23664 + # what "hidden" libraries, object files and flags are used when
23665 + # linking a shared library.
23666 + #
23667 + # There doesn't appear to be a way to prevent this compiler from
23668 + # explicitly linking system object files so we need to strip them
23669 + # from the output so that they don't get included in the library
23670 + # dependencies.
23671 + 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'
23672 + ;;
23673 + *)
23674 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23675 + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
23676 + case $host in
23677 + osf3*)
23678 + _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'
23679 + ;;
23680 + *)
23681 + _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'
23682 + ;;
23683 + esac
23684 +
23685 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
23686 + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
23687 +
23688 + # Commands to make compiler produce verbose output that lists
23689 + # what "hidden" libraries, object files and flags are used when
23690 + # linking a shared library.
23691 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
23692 +
23693 + else
23694 + # FIXME: insert proper C++ library support
23695 + _LT_TAGVAR(ld_shlibs, $1)=no
23696 + fi
23697 + ;;
23698 + esac
23699 + ;;
23700
23701 - darwin* | rhapsody*)
23702 - # PIC is the default on this platform
23703 - # Common symbols not allowed in MH_DYLIB files
23704 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
23705 - ;;
23706 + psos*)
23707 + # FIXME: insert proper C++ library support
23708 + _LT_TAGVAR(ld_shlibs, $1)=no
23709 + ;;
23710
23711 - interix3*)
23712 - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23713 - # Instead, we relocate shared libraries at runtime.
23714 - ;;
23715 + sunos4*)
23716 + case $cc_basename in
23717 + CC*)
23718 + # Sun C++ 4.x
23719 + # FIXME: insert proper C++ library support
23720 + _LT_TAGVAR(ld_shlibs, $1)=no
23721 + ;;
23722 + lcc*)
23723 + # Lucid
23724 + # FIXME: insert proper C++ library support
23725 + _LT_TAGVAR(ld_shlibs, $1)=no
23726 + ;;
23727 + *)
23728 + # FIXME: insert proper C++ library support
23729 + _LT_TAGVAR(ld_shlibs, $1)=no
23730 + ;;
23731 + esac
23732 + ;;
23733
23734 - msdosdjgpp*)
23735 - # Just because we use GCC doesn't mean we suddenly get shared libraries
23736 - # on systems that don't support them.
23737 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
23738 - enable_shared=no
23739 - ;;
23740 + solaris*)
23741 + case $cc_basename in
23742 + CC*)
23743 + # Sun C++ 4.2, 5.x and Centerline C++
23744 + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
23745 + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
23746 + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23747 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23748 + $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'
23749 +
23750 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
23751 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23752 + case $host_os in
23753 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
23754 + *)
23755 + # The compiler driver will combine and reorder linker options,
23756 + # but understands `-z linker_flag'.
23757 + # Supported since Solaris 2.6 (maybe 2.5.1?)
23758 + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
23759 + ;;
23760 + esac
23761 + _LT_TAGVAR(link_all_deplibs, $1)=yes
23762
23763 - sysv4*MP*)
23764 - if test -d /usr/nec; then
23765 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
23766 - fi
23767 - ;;
23768 + output_verbose_link_cmd='echo'
23769
23770 - hpux*)
23771 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23772 - # not for PA HP-UX.
23773 - case $host_cpu in
23774 - hppa*64*|ia64*)
23775 - # +Z the default
23776 - ;;
23777 - *)
23778 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
23779 - ;;
23780 - esac
23781 - ;;
23782 + # Archives containing C++ object files must be created using
23783 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
23784 + # necessary to make sure instantiated templates are included
23785 + # in the archive.
23786 + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
23787 + ;;
23788 + gcx*)
23789 + # Green Hills C++ Compiler
23790 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23791
23792 - *)
23793 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
23794 - ;;
23795 - esac
23796 - else
23797 - # PORTME Check for flag to pass linker flags through the system compiler.
23798 - case $host_os in
23799 - aix*)
23800 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23801 - if test "$host_cpu" = ia64; then
23802 - # AIX 5 now supports IA64 processor
23803 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23804 - else
23805 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
23806 - fi
23807 - ;;
23808 - darwin*)
23809 - # PIC is the default on this platform
23810 - # Common symbols not allowed in MH_DYLIB files
23811 - case $cc_basename in
23812 - xlc*)
23813 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
23814 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23815 - ;;
23816 - esac
23817 - ;;
23818 + # The C++ compiler must be used to create the archive.
23819 + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23820 + ;;
23821 + *)
23822 + # GNU C++ compiler with Solaris linker
23823 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23824 + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
23825 + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
23826 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23827 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23828 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23829 +
23830 + # Commands to make compiler produce verbose output that lists
23831 + # what "hidden" libraries, object files and flags are used when
23832 + # linking a shared library.
23833 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
23834 + else
23835 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
23836 + # platform.
23837 + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23838 + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
23839 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
23840 +
23841 + # Commands to make compiler produce verbose output that lists
23842 + # what "hidden" libraries, object files and flags are used when
23843 + # linking a shared library.
23844 + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
23845 + fi
23846 +
23847 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
23848 + case $host_os in
23849 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
23850 + *)
23851 + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23852 + ;;
23853 + esac
23854 + fi
23855 + ;;
23856 + esac
23857 + ;;
23858
23859 - mingw* | cygwin* | pw32* | os2*)
23860 - # This hack is so that the source file can tell whether it is being
23861 - # built for inclusion in a dll (and should export symbols for example).
23862 - # Although the cygwin gcc ignores -fPIC, still need this for old-style
23863 - # (--disable-auto-import) libraries
23864 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
23865 - ;;
23866 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
23867 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
23868 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23869 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23870 + runpath_var='LD_RUN_PATH'
23871
23872 - hpux9* | hpux10* | hpux11*)
23873 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23874 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23875 - # not for PA HP-UX.
23876 - case $host_cpu in
23877 - hppa*64*|ia64*)
23878 - # +Z the default
23879 - ;;
23880 - *)
23881 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
23882 - ;;
23883 + case $cc_basename in
23884 + CC*)
23885 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23886 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23887 + ;;
23888 + *)
23889 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23890 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23891 + ;;
23892 esac
23893 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
23894 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
23895 ;;
23896
23897 - irix5* | irix6* | nonstopux*)
23898 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23899 - # PIC (with -KPIC) is the default.
23900 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23901 - ;;
23902 + sysv5* | sco3.2v5* | sco5v6*)
23903 + # Note: We can NOT use -z defs as we might desire, because we do not
23904 + # link with -lc, and that would cause any symbols used from libc to
23905 + # always be unresolved, which means just about no library would
23906 + # ever link correctly. If we're not using GNU ld we use -z text
23907 + # though, which does catch some bad symbols but isn't as heavy-handed
23908 + # as -z defs.
23909 + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
23910 + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
23911 + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
23912 + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
23913 + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
23914 + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
23915 + _LT_TAGVAR(link_all_deplibs, $1)=yes
23916 + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
23917 + runpath_var='LD_RUN_PATH'
23918
23919 - newsos6)
23920 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23921 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23922 + case $cc_basename in
23923 + CC*)
23924 + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23925 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23926 + ;;
23927 + *)
23928 + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23929 + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
23930 + ;;
23931 + esac
23932 ;;
23933
23934 - linux*)
23935 - case $cc_basename in
23936 - icc* | ecc*)
23937 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23938 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23939 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
23940 - ;;
23941 - pgcc* | pgf77* | pgf90* | pgf95*)
23942 - # Portland Group compilers (*not* the Pentium gcc compiler,
23943 - # which looks to be a dead project)
23944 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23945 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
23946 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23947 - ;;
23948 - ccc*)
23949 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23950 - # All Alpha code is PIC.
23951 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
23952 + tandem*)
23953 + case $cc_basename in
23954 + NCC*)
23955 + # NonStop-UX NCC 3.20
23956 + # FIXME: insert proper C++ library support
23957 + _LT_TAGVAR(ld_shlibs, $1)=no
23958 + ;;
23959 + *)
23960 + # FIXME: insert proper C++ library support
23961 + _LT_TAGVAR(ld_shlibs, $1)=no
23962 + ;;
23963 + esac
23964 ;;
23965 - como)
23966 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
23967 +
23968 + vxworks*)
23969 + # FIXME: insert proper C++ library support
23970 + _LT_TAGVAR(ld_shlibs, $1)=no
23971 ;;
23972 +
23973 *)
23974 - case `$CC -V 2>&1 | sed 5q` in
23975 - *Sun\ C*)
23976 - # Sun C 5.9
23977 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23978 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23979 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23980 - ;;
23981 - *Sun\ F*)
23982 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
23983 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
23984 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
23985 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
23986 - ;;
23987 - esac
23988 - ;;
23989 - esac
23990 - ;;
23991 + # FIXME: insert proper C++ library support
23992 + _LT_TAGVAR(ld_shlibs, $1)=no
23993 + ;;
23994 + esac
23995
23996 - osf3* | osf4* | osf5*)
23997 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
23998 - # All OSF/1 code is PIC.
23999 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
24000 - ;;
24001 + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
24002 + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
24003
24004 - solaris*)
24005 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24006 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24007 - case $cc_basename in
24008 - f77* | f90* | f95*)
24009 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
24010 - *)
24011 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
24012 - esac
24013 - ;;
24014 + _LT_TAGVAR(GCC, $1)="$GXX"
24015 + _LT_TAGVAR(LD, $1)="$LD"
24016 +
24017 + ## CAVEAT EMPTOR:
24018 + ## There is no encapsulation within the following macros, do not change
24019 + ## the running order or otherwise move them around unless you know exactly
24020 + ## what you are doing...
24021 + _LT_SYS_HIDDEN_LIBDEPS($1)
24022 + _LT_COMPILER_PIC($1)
24023 + _LT_COMPILER_C_O($1)
24024 + _LT_COMPILER_FILE_LOCKS($1)
24025 + _LT_LINKER_SHLIBS($1)
24026 + _LT_SYS_DYNAMIC_LINKER($1)
24027 + _LT_LINKER_HARDCODE_LIBPATH($1)
24028 +
24029 + _LT_CONFIG($1)
24030 + fi # test -n "$compiler"
24031 +
24032 + CC=$lt_save_CC
24033 + LDCXX=$LD
24034 + LD=$lt_save_LD
24035 + GCC=$lt_save_GCC
24036 + with_gnu_ld=$lt_save_with_gnu_ld
24037 + lt_cv_path_LDCXX=$lt_cv_path_LD
24038 + lt_cv_path_LD=$lt_save_path_LD
24039 + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24040 + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24041 +fi # test "$_lt_caught_CXX_error" != yes
24042 +
24043 +AC_LANG_POP
24044 +])# _LT_LANG_CXX_CONFIG
24045 +
24046 +
24047 +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
24048 +# ---------------------------------
24049 +# Figure out "hidden" library dependencies from verbose
24050 +# compiler output when linking a shared library.
24051 +# Parse the compiler output and extract the necessary
24052 +# objects, libraries and library flags.
24053 +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
24054 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
24055 +# Dependencies to place before and after the object being linked:
24056 +_LT_TAGVAR(predep_objects, $1)=
24057 +_LT_TAGVAR(postdep_objects, $1)=
24058 +_LT_TAGVAR(predeps, $1)=
24059 +_LT_TAGVAR(postdeps, $1)=
24060 +_LT_TAGVAR(compiler_lib_search_path, $1)=
24061 +
24062 +dnl we can't use the lt_simple_compile_test_code here,
24063 +dnl because it contains code intended for an executable,
24064 +dnl not a library. It's possible we should let each
24065 +dnl tag define a new lt_????_link_test_code variable,
24066 +dnl but it's only used here...
24067 +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
24068 +int a;
24069 +void foo (void) { a = 0; }
24070 +_LT_EOF
24071 +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
24072 +class Foo
24073 +{
24074 +public:
24075 + Foo (void) { a = 0; }
24076 +private:
24077 + int a;
24078 +};
24079 +_LT_EOF
24080 +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
24081 + subroutine foo
24082 + implicit none
24083 + integer*4 a
24084 + a=0
24085 + return
24086 + end
24087 +_LT_EOF
24088 +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
24089 + subroutine foo
24090 + implicit none
24091 + integer a
24092 + a=0
24093 + return
24094 + end
24095 +_LT_EOF
24096 +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
24097 +public class foo {
24098 + private int a;
24099 + public void bar (void) {
24100 + a = 0;
24101 + }
24102 +};
24103 +_LT_EOF
24104 +])
24105 +dnl Parse the compiler output and extract the necessary
24106 +dnl objects, libraries and library flags.
24107 +if AC_TRY_EVAL(ac_compile); then
24108 + # Parse the compiler output and extract the necessary
24109 + # objects, libraries and library flags.
24110 +
24111 + # Sentinel used to keep track of whether or not we are before
24112 + # the conftest object file.
24113 + pre_test_object_deps_done=no
24114
24115 - sunos4*)
24116 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
24117 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
24118 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24119 - ;;
24120 + for p in `eval "$output_verbose_link_cmd"`; do
24121 + case $p in
24122
24123 - sysv4 | sysv4.2uw2* | sysv4.3*)
24124 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
24125 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24126 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24127 - ;;
24128 + -L* | -R* | -l*)
24129 + # Some compilers place space between "-{L,R}" and the path.
24130 + # Remove the space.
24131 + if test $p = "-L" ||
24132 + test $p = "-R"; then
24133 + prev=$p
24134 + continue
24135 + else
24136 + prev=
24137 + fi
24138
24139 - sysv4*MP*)
24140 - if test -d /usr/nec ;then
24141 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
24142 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24143 - fi
24144 - ;;
24145 + if test "$pre_test_object_deps_done" = no; then
24146 + case $p in
24147 + -L* | -R*)
24148 + # Internal compiler library paths should come after those
24149 + # provided the user. The postdeps already come after the
24150 + # user supplied libs so there is no need to process them.
24151 + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
24152 + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
24153 + else
24154 + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
24155 + fi
24156 + ;;
24157 + # The "-l" case would never come before the object being
24158 + # linked, so don't bother handling this case.
24159 + esac
24160 + else
24161 + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
24162 + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
24163 + else
24164 + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
24165 + fi
24166 + fi
24167 + ;;
24168
24169 - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24170 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
24171 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
24172 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24173 - ;;
24174 + *.$objext)
24175 + # This assumes that the test object file only shows up
24176 + # once in the compiler output.
24177 + if test "$p" = "conftest.$objext"; then
24178 + pre_test_object_deps_done=yes
24179 + continue
24180 + fi
24181
24182 - unicos*)
24183 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
24184 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
24185 - ;;
24186 + if test "$pre_test_object_deps_done" = no; then
24187 + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
24188 + _LT_TAGVAR(predep_objects, $1)="$p"
24189 + else
24190 + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
24191 + fi
24192 + else
24193 + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
24194 + _LT_TAGVAR(postdep_objects, $1)="$p"
24195 + else
24196 + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
24197 + fi
24198 + fi
24199 + ;;
24200
24201 - uts4*)
24202 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
24203 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
24204 - ;;
24205 + *) ;; # Ignore the rest.
24206
24207 - *)
24208 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
24209 - ;;
24210 esac
24211 - fi
24212 -])
24213 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
24214 + done
24215
24216 -#
24217 -# Check to make sure the PIC flag actually works.
24218 -#
24219 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
24220 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
24221 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
24222 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
24223 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
24224 - "" | " "*) ;;
24225 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
24226 - esac],
24227 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
24228 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
24229 + # Clean up.
24230 + rm -f a.out a.exe
24231 +else
24232 + echo "libtool.m4: error: problem compiling $1 test program"
24233 fi
24234 -case $host_os in
24235 - # For platforms which do not support PIC, -DPIC is meaningless:
24236 - *djgpp*)
24237 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
24238 - ;;
24239 - *)
24240 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
24241 - ;;
24242 -esac
24243 -
24244 -#
24245 -# Check to make sure the static flag actually works.
24246 -#
24247 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
24248 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
24249 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
24250 - $lt_tmp_static_flag,
24251 - [],
24252 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
24253 -])
24254
24255 +$RM -f confest.$objext
24256
24257 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
24258 -# ------------------------------------
24259 -# See if the linker supports building shared libraries.
24260 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
24261 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
24262 -ifelse([$1],[CXX],[
24263 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24264 - case $host_os in
24265 - aix4* | aix5*)
24266 - # If we're using GNU nm, then we don't want the "-C" option.
24267 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
24268 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24269 - _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'
24270 - else
24271 - _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'
24272 - fi
24273 - ;;
24274 - pw32*)
24275 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
24276 - ;;
24277 - cygwin* | mingw*)
24278 - _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'
24279 - ;;
24280 - *)
24281 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24282 +# PORTME: override above test on systems where it is broken
24283 +m4_if([$1], [CXX],
24284 +[case $host_os in
24285 +interix[[3-9]]*)
24286 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
24287 + # hack all around it, let's just trust "g++" to DTRT.
24288 + _LT_TAGVAR(predep_objects,$1)=
24289 + _LT_TAGVAR(postdep_objects,$1)=
24290 + _LT_TAGVAR(postdeps,$1)=
24291 ;;
24292 - esac
24293 -],[
24294 - runpath_var=
24295 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
24296 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
24297 - _LT_AC_TAGVAR(archive_cmds, $1)=
24298 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
24299 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
24300 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
24301 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
24302 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
24303 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
24304 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
24305 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
24306 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
24307 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
24308 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
24309 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
24310 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
24311 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
24312 - _LT_AC_TAGVAR(module_cmds, $1)=
24313 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
24314 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
24315 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24316 - # include_expsyms should be a list of space-separated symbols to be *always*
24317 - # included in the symbol list
24318 - _LT_AC_TAGVAR(include_expsyms, $1)=
24319 - # exclude_expsyms can be an extended regexp of symbols to exclude
24320 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
24321 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24322 - # as well as any symbol that contains `d'.
24323 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
24324 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24325 - # platforms (ab)use it in PIC code, but their linkers get confused if
24326 - # the symbol is explicitly referenced. Since portable code cannot
24327 - # rely on this symbol name, it's probably fine to never include it in
24328 - # preloaded symbol tables.
24329 - extract_expsyms_cmds=
24330 - # Just being paranoid about ensuring that cc_basename is set.
24331 - _LT_CC_BASENAME([$compiler])
24332 - case $host_os in
24333 - cygwin* | mingw* | pw32*)
24334 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
24335 - # When not using gcc, we currently assume that we are using
24336 - # Microsoft Visual C++.
24337 - if test "$GCC" != yes; then
24338 - with_gnu_ld=no
24339 - fi
24340 - ;;
24341 - interix*)
24342 - # we just hope/assume this is gcc and not c89 (= MSVC++)
24343 - with_gnu_ld=yes
24344 - ;;
24345 - openbsd*)
24346 - with_gnu_ld=no
24347 - ;;
24348 - esac
24349 -
24350 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
24351 - if test "$with_gnu_ld" = yes; then
24352 - # If archive_cmds runs LD, not CC, wlarc should be empty
24353 - wlarc='${wl}'
24354 -
24355 - # Set some defaults for GNU ld with shared library support. These
24356 - # are reset later if shared libraries are not supported. Putting them
24357 - # here allows them to be overridden if necessary.
24358 - runpath_var=LD_RUN_PATH
24359 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
24360 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
24361 - # ancient GNU ld didn't support --whole-archive et. al.
24362 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24363 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24364 - else
24365 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
24366 - fi
24367 - supports_anon_versioning=no
24368 - case `$LD -v 2>/dev/null` in
24369 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
24370 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24371 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24372 - *\ 2.11.*) ;; # other 2.11 versions
24373 - *) supports_anon_versioning=yes ;;
24374 - esac
24375 -
24376 - # See if GNU ld supports shared libraries.
24377 - case $host_os in
24378 - aix3* | aix4* | aix5*)
24379 - # On AIX/PPC, the GNU linker is very broken
24380 - if test "$host_cpu" != ia64; then
24381 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24382 - cat <<EOF 1>&2
24383 -
24384 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24385 -*** to be unable to reliably create shared libraries on AIX.
24386 -*** Therefore, libtool is disabling shared libraries support. If you
24387 -*** really care for shared libraries, you may want to modify your PATH
24388 -*** so that a non-GNU linker is found, and then restart.
24389 -
24390 -EOF
24391 - fi
24392 - ;;
24393
24394 - amigaos*)
24395 - _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)'
24396 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24397 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24398 -
24399 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24400 - # that the semantics of dynamic libraries on AmigaOS, at least up
24401 - # to version 4, is to share data among multiple programs linked
24402 - # with the same dynamic library. Since this doesn't match the
24403 - # behavior of shared libraries on other platforms, we can't use
24404 - # them.
24405 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24406 - ;;
24407 +linux*)
24408 + case `$CC -V 2>&1 | sed 5q` in
24409 + *Sun\ C*)
24410 + # Sun C++ 5.9
24411
24412 - beos*)
24413 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24414 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24415 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24416 - # support --undefined. This deserves some investigation. FIXME
24417 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24418 - else
24419 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24420 - fi
24421 + # The more standards-conforming stlport4 library is
24422 + # incompatible with the Cstd library. Avoid specifying
24423 + # it if it's in CXXFLAGS. Ignore libCrun as
24424 + # -library=stlport4 depends on it.
24425 + case " $CXX $CXXFLAGS " in
24426 + *" -library=stlport4 "*)
24427 + solaris_use_stlport4=yes
24428 ;;
24429 + esac
24430
24431 - cygwin* | mingw* | pw32*)
24432 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
24433 - # as there is no search path for DLLs.
24434 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24435 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24436 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
24437 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24438 - _LT_AC_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'
24439 -
24440 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24441 - _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'
24442 - # If the export-symbols file already is a .def file (1st line
24443 - # is EXPORTS), use it as is; otherwise, prepend...
24444 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24445 - cp $export_symbols $output_objdir/$soname.def;
24446 - else
24447 - echo EXPORTS > $output_objdir/$soname.def;
24448 - cat $export_symbols >> $output_objdir/$soname.def;
24449 - fi~
24450 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
24451 - else
24452 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24453 - fi
24454 - ;;
24455 + if test "$solaris_use_stlport4" != yes; then
24456 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
24457 + fi
24458 + ;;
24459 + esac
24460 + ;;
24461
24462 - interix3*)
24463 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
24464 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24465 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
24466 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
24467 - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24468 - # Instead, shared libraries are loaded at an image base (0x10000000 by
24469 - # default) and relocated if they conflict, which is a slow very memory
24470 - # consuming and fragmenting process. To avoid this, we pick a random,
24471 - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24472 - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24473 - _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'
24474 - _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'
24475 +solaris*)
24476 + case $cc_basename in
24477 + CC*)
24478 + # The more standards-conforming stlport4 library is
24479 + # incompatible with the Cstd library. Avoid specifying
24480 + # it if it's in CXXFLAGS. Ignore libCrun as
24481 + # -library=stlport4 depends on it.
24482 + case " $CXX $CXXFLAGS " in
24483 + *" -library=stlport4 "*)
24484 + solaris_use_stlport4=yes
24485 ;;
24486 + esac
24487
24488 - linux*)
24489 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24490 - tmp_addflag=
24491 - case $cc_basename,$host_cpu in
24492 - pgcc*) # Portland Group C compiler
24493 - _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'
24494 - tmp_addflag=' $pic_flag'
24495 - ;;
24496 - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24497 - _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'
24498 - tmp_addflag=' $pic_flag -Mnomain' ;;
24499 - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24500 - tmp_addflag=' -i_dynamic' ;;
24501 - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24502 - tmp_addflag=' -i_dynamic -nofor_main' ;;
24503 - ifc* | ifort*) # Intel Fortran compiler
24504 - tmp_addflag=' -nofor_main' ;;
24505 - esac
24506 - case `$CC -V 2>&1 | sed 5q` in
24507 - *Sun\ C*) # Sun C 5.9
24508 - _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 /dev/null'
24509 - tmp_sharedflag='-G' ;;
24510 - *Sun\ F*) # Sun Fortran 8.3
24511 - tmp_sharedflag='-G' ;;
24512 - *)
24513 - tmp_sharedflag='-shared' ;;
24514 - esac
24515 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24516 + # Adding this requires a known-good setup of shared libraries for
24517 + # Sun compiler versions before 5.6, else PIC objects from an old
24518 + # archive will be linked into the output, leading to subtle bugs.
24519 + if test "$solaris_use_stlport4" != yes; then
24520 + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
24521 + fi
24522 + ;;
24523 + esac
24524 + ;;
24525 +esac
24526 +])
24527
24528 - if test $supports_anon_versioning = yes; then
24529 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
24530 - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24531 - $echo "local: *; };" >> $output_objdir/$libname.ver~
24532 - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24533 - fi
24534 - else
24535 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24536 - fi
24537 - ;;
24538 +case " $_LT_TAGVAR(postdeps, $1) " in
24539 +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
24540 +esac
24541 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
24542 +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
24543 + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
24544 +fi
24545 +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
24546 + [The directories searched by this compiler when creating a shared library])
24547 +_LT_TAGDECL([], [predep_objects], [1],
24548 + [Dependencies to place before and after the objects being linked to
24549 + create a shared library])
24550 +_LT_TAGDECL([], [postdep_objects], [1])
24551 +_LT_TAGDECL([], [predeps], [1])
24552 +_LT_TAGDECL([], [postdeps], [1])
24553 +_LT_TAGDECL([], [compiler_lib_search_path], [1],
24554 + [The library search path used internally by the compiler when linking
24555 + a shared library])
24556 +])# _LT_SYS_HIDDEN_LIBDEPS
24557 +
24558 +
24559 +# _LT_PROG_F77
24560 +# ------------
24561 +# Since AC_PROG_F77 is broken, in that it returns the empty string
24562 +# if there is no fortran compiler, we have our own version here.
24563 +m4_defun([_LT_PROG_F77],
24564 +[
24565 +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
24566 +AC_PROG_F77
24567 +if test -z "$F77" || test "X$F77" = "Xno"; then
24568 + _lt_disable_F77=yes
24569 +fi
24570 +popdef([AC_MSG_ERROR])
24571 +])# _LT_PROG_F77
24572
24573 - netbsd*)
24574 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24575 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24576 - wlarc=
24577 - else
24578 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24579 - _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'
24580 - fi
24581 - ;;
24582 +dnl aclocal-1.4 backwards compatibility:
24583 +dnl AC_DEFUN([_LT_PROG_F77], [])
24584
24585 - solaris*)
24586 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24587 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24588 - cat <<EOF 1>&2
24589
24590 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24591 -*** create shared libraries on Solaris systems. Therefore, libtool
24592 -*** is disabling shared libraries support. We urge you to upgrade GNU
24593 -*** binutils to release 2.9.1 or newer. Another option is to modify
24594 -*** your PATH or compiler configuration so that the native linker is
24595 -*** used, and then restart.
24596 +# _LT_LANG_F77_CONFIG([TAG])
24597 +# --------------------------
24598 +# Ensure that the configuration variables for a Fortran 77 compiler are
24599 +# suitably defined. These variables are subsequently used by _LT_CONFIG
24600 +# to write the compiler configuration to `libtool'.
24601 +m4_defun([_LT_LANG_F77_CONFIG],
24602 +[AC_REQUIRE([_LT_PROG_F77])dnl
24603 +AC_LANG_PUSH(Fortran 77)
24604
24605 -EOF
24606 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24607 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24608 - _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'
24609 - else
24610 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24611 - fi
24612 - ;;
24613 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
24614 +_LT_TAGVAR(allow_undefined_flag, $1)=
24615 +_LT_TAGVAR(always_export_symbols, $1)=no
24616 +_LT_TAGVAR(archive_expsym_cmds, $1)=
24617 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
24618 +_LT_TAGVAR(hardcode_direct, $1)=no
24619 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
24620 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
24621 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
24622 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
24623 +_LT_TAGVAR(hardcode_minus_L, $1)=no
24624 +_LT_TAGVAR(hardcode_automatic, $1)=no
24625 +_LT_TAGVAR(inherit_rpath, $1)=no
24626 +_LT_TAGVAR(module_cmds, $1)=
24627 +_LT_TAGVAR(module_expsym_cmds, $1)=
24628 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
24629 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
24630 +_LT_TAGVAR(no_undefined_flag, $1)=
24631 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
24632 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
24633
24634 - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24635 - case `$LD -v 2>&1` in
24636 - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
24637 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24638 - cat <<_LT_EOF 1>&2
24639 +# Source file extension for f77 test sources.
24640 +ac_ext=f
24641
24642 -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24643 -*** reliably create shared libraries on SCO systems. Therefore, libtool
24644 -*** is disabling shared libraries support. We urge you to upgrade GNU
24645 -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24646 -*** your PATH or compiler configuration so that the native linker is
24647 -*** used, and then restart.
24648 +# Object file extension for compiled f77 test sources.
24649 +objext=o
24650 +_LT_TAGVAR(objext, $1)=$objext
24651
24652 -_LT_EOF
24653 - ;;
24654 - *)
24655 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24656 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24657 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24658 - _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'
24659 - else
24660 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24661 - fi
24662 - ;;
24663 - esac
24664 - ;;
24665 +# No sense in running all these tests if we already determined that
24666 +# the F77 compiler isn't working. Some variables (like enable_shared)
24667 +# are currently assumed to apply to all compilers on this platform,
24668 +# and will be corrupted by setting them based on a non-working compiler.
24669 +if test "$_lt_disable_F77" != yes; then
24670 + # Code to be used in simple compile tests
24671 + lt_simple_compile_test_code="\
24672 + subroutine t
24673 + return
24674 + end
24675 +"
24676
24677 - sunos4*)
24678 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24679 - wlarc=
24680 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24681 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
24682 - ;;
24683 + # Code to be used in simple link tests
24684 + lt_simple_link_test_code="\
24685 + program t
24686 + end
24687 +"
24688
24689 - *)
24690 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24691 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24692 - _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'
24693 - else
24694 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24695 - fi
24696 - ;;
24697 - esac
24698 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24699 + _LT_TAG_COMPILER
24700
24701 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
24702 - runpath_var=
24703 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
24704 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
24705 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
24706 - fi
24707 - else
24708 - # PORTME fill in a description of your system's linker (not GNU ld)
24709 - case $host_os in
24710 - aix3*)
24711 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24712 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
24713 - _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'
24714 - # Note: this linker hardcodes the directories in LIBPATH if there
24715 - # are no directories specified by -L.
24716 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24717 - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
24718 - # Neither direct hardcoding nor static linking is supported with a
24719 - # broken collect2.
24720 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
24721 - fi
24722 - ;;
24723 + # save warnings/boilerplate of simple test code
24724 + _LT_COMPILER_BOILERPLATE
24725 + _LT_LINKER_BOILERPLATE
24726 +
24727 + # Allow CC to be a program name with arguments.
24728 + lt_save_CC="$CC"
24729 + lt_save_GCC=$GCC
24730 + CC=${F77-"f77"}
24731 + compiler=$CC
24732 + _LT_TAGVAR(compiler, $1)=$CC
24733 + _LT_CC_BASENAME([$compiler])
24734 + GCC=$G77
24735 + if test -n "$compiler"; then
24736 + AC_MSG_CHECKING([if libtool supports shared libraries])
24737 + AC_MSG_RESULT([$can_build_shared])
24738
24739 - aix4* | aix5*)
24740 - if test "$host_cpu" = ia64; then
24741 - # On IA64, the linker does run time linking by default, so we don't
24742 - # have to do anything special.
24743 - aix_use_runtimelinking=no
24744 - exp_sym_flag='-Bexport'
24745 - no_entry_flag=""
24746 - else
24747 - # If we're using GNU nm, then we don't want the "-C" option.
24748 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
24749 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24750 - _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'
24751 - else
24752 - _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'
24753 + AC_MSG_CHECKING([whether to build shared libraries])
24754 + test "$can_build_shared" = "no" && enable_shared=no
24755 +
24756 + # On AIX, shared libraries and static libraries use the same namespace, and
24757 + # are all built from PIC.
24758 + case $host_os in
24759 + aix3*)
24760 + test "$enable_shared" = yes && enable_static=no
24761 + if test -n "$RANLIB"; then
24762 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
24763 + postinstall_cmds='$RANLIB $lib'
24764 + fi
24765 + ;;
24766 + aix[[4-9]]*)
24767 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24768 + test "$enable_shared" = yes && enable_static=no
24769 fi
24770 - aix_use_runtimelinking=no
24771 + ;;
24772 + esac
24773 + AC_MSG_RESULT([$enable_shared])
24774
24775 - # Test if we are trying to use run time linking or normal
24776 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24777 - # need to do runtime linking.
24778 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
24779 - for ld_flag in $LDFLAGS; do
24780 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24781 - aix_use_runtimelinking=yes
24782 - break
24783 - fi
24784 - done
24785 - ;;
24786 - esac
24787 + AC_MSG_CHECKING([whether to build static libraries])
24788 + # Make sure either enable_shared or enable_static is yes.
24789 + test "$enable_shared" = yes || enable_static=yes
24790 + AC_MSG_RESULT([$enable_static])
24791 +
24792 + _LT_TAGVAR(GCC, $1)="$G77"
24793 + _LT_TAGVAR(LD, $1)="$LD"
24794 +
24795 + ## CAVEAT EMPTOR:
24796 + ## There is no encapsulation within the following macros, do not change
24797 + ## the running order or otherwise move them around unless you know exactly
24798 + ## what you are doing...
24799 + _LT_COMPILER_PIC($1)
24800 + _LT_COMPILER_C_O($1)
24801 + _LT_COMPILER_FILE_LOCKS($1)
24802 + _LT_LINKER_SHLIBS($1)
24803 + _LT_SYS_DYNAMIC_LINKER($1)
24804 + _LT_LINKER_HARDCODE_LIBPATH($1)
24805 +
24806 + _LT_CONFIG($1)
24807 + fi # test -n "$compiler"
24808 +
24809 + GCC=$lt_save_GCC
24810 + CC="$lt_save_CC"
24811 +fi # test "$_lt_disable_F77" != yes
24812
24813 - exp_sym_flag='-bexport'
24814 - no_entry_flag='-bnoentry'
24815 - fi
24816 +AC_LANG_POP
24817 +])# _LT_LANG_F77_CONFIG
24818
24819 - # When large executables or shared objects are built, AIX ld can
24820 - # have problems creating the table of contents. If linking a library
24821 - # or program results in "error TOC overflow" add -mminimal-toc to
24822 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24823 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24824
24825 - _LT_AC_TAGVAR(archive_cmds, $1)=''
24826 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24827 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
24828 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
24829 +# _LT_PROG_FC
24830 +# -----------
24831 +# Since AC_PROG_FC is broken, in that it returns the empty string
24832 +# if there is no fortran compiler, we have our own version here.
24833 +m4_defun([_LT_PROG_FC],
24834 +[
24835 +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
24836 +AC_PROG_FC
24837 +if test -z "$FC" || test "X$FC" = "Xno"; then
24838 + _lt_disable_FC=yes
24839 +fi
24840 +popdef([AC_MSG_ERROR])
24841 +])# _LT_PROG_FC
24842
24843 - if test "$GCC" = yes; then
24844 - case $host_os in aix4.[[012]]|aix4.[[012]].*)
24845 - # We only want to do this on AIX 4.2 and lower, the check
24846 - # below for broken collect2 doesn't work under 4.3+
24847 - collect2name=`${CC} -print-prog-name=collect2`
24848 - if test -f "$collect2name" && \
24849 - strings "$collect2name" | grep resolve_lib_name >/dev/null
24850 - then
24851 - # We have reworked collect2
24852 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
24853 - else
24854 - # We have old collect2
24855 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
24856 - # It fails to find uninstalled libraries when the uninstalled
24857 - # path is not listed in the libpath. Setting hardcode_minus_L
24858 - # to unsupported forces relinking
24859 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24860 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24861 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
24862 - fi
24863 - ;;
24864 - esac
24865 - shared_flag='-shared'
24866 - if test "$aix_use_runtimelinking" = yes; then
24867 - shared_flag="$shared_flag "'${wl}-G'
24868 - fi
24869 - else
24870 - # not using gcc
24871 - if test "$host_cpu" = ia64; then
24872 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24873 - # chokes on -Wl,-G. The following line is correct:
24874 - shared_flag='-G'
24875 - else
24876 - if test "$aix_use_runtimelinking" = yes; then
24877 - shared_flag='${wl}-G'
24878 - else
24879 - shared_flag='${wl}-bM:SRE'
24880 - fi
24881 - fi
24882 - fi
24883 +dnl aclocal-1.4 backwards compatibility:
24884 +dnl AC_DEFUN([_LT_PROG_FC], [])
24885
24886 - # It seems that -bexpall does not export symbols beginning with
24887 - # underscore (_), so it is better to generate a list of symbols to export.
24888 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
24889 - if test "$aix_use_runtimelinking" = yes; then
24890 - # Warning - without using the other runtime loading flags (-brtl),
24891 - # -berok will link without error, but may produce a broken library.
24892 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
24893 - # Determine the default libpath from the value encoded in an empty executable.
24894 - _LT_AC_SYS_LIBPATH_AIX
24895 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24896 - _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"
24897 - else
24898 - if test "$host_cpu" = ia64; then
24899 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
24900 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
24901 - _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"
24902 - else
24903 - # Determine the default libpath from the value encoded in an empty executable.
24904 - _LT_AC_SYS_LIBPATH_AIX
24905 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
24906 - # Warning - without using the other run time loading flags,
24907 - # -berok will link without error, but may produce a broken library.
24908 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
24909 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
24910 - # Exported symbols can be pulled into shared objects from archives
24911 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
24912 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
24913 - # This is similar to how AIX traditionally builds its shared libraries.
24914 - _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'
24915 - fi
24916 - fi
24917 - ;;
24918
24919 - amigaos*)
24920 - _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)'
24921 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
24922 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
24923 - # see comment about different semantics on the GNU ld section
24924 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
24925 - ;;
24926 +# _LT_LANG_FC_CONFIG([TAG])
24927 +# -------------------------
24928 +# Ensure that the configuration variables for a Fortran compiler are
24929 +# suitably defined. These variables are subsequently used by _LT_CONFIG
24930 +# to write the compiler configuration to `libtool'.
24931 +m4_defun([_LT_LANG_FC_CONFIG],
24932 +[AC_REQUIRE([_LT_PROG_FC])dnl
24933 +AC_LANG_PUSH(Fortran)
24934 +
24935 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
24936 +_LT_TAGVAR(allow_undefined_flag, $1)=
24937 +_LT_TAGVAR(always_export_symbols, $1)=no
24938 +_LT_TAGVAR(archive_expsym_cmds, $1)=
24939 +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
24940 +_LT_TAGVAR(hardcode_direct, $1)=no
24941 +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
24942 +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
24943 +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
24944 +_LT_TAGVAR(hardcode_libdir_separator, $1)=
24945 +_LT_TAGVAR(hardcode_minus_L, $1)=no
24946 +_LT_TAGVAR(hardcode_automatic, $1)=no
24947 +_LT_TAGVAR(inherit_rpath, $1)=no
24948 +_LT_TAGVAR(module_cmds, $1)=
24949 +_LT_TAGVAR(module_expsym_cmds, $1)=
24950 +_LT_TAGVAR(link_all_deplibs, $1)=unknown
24951 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
24952 +_LT_TAGVAR(no_undefined_flag, $1)=
24953 +_LT_TAGVAR(whole_archive_flag_spec, $1)=
24954 +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
24955
24956 - bsdi[[45]]*)
24957 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
24958 - ;;
24959 +# Source file extension for fc test sources.
24960 +ac_ext=${ac_fc_srcext-f}
24961
24962 - cygwin* | mingw* | pw32*)
24963 - # When not using gcc, we currently assume that we are using
24964 - # Microsoft Visual C++.
24965 - # hardcode_libdir_flag_spec is actually meaningless, as there is
24966 - # no search path for DLLs.
24967 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
24968 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
24969 - # Tell ltmain to make .lib files, not .a files.
24970 - libext=lib
24971 - # Tell ltmain to make .dll files, not .so files.
24972 - shrext_cmds=".dll"
24973 - # FIXME: Setting linknames here is a bad hack.
24974 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
24975 - # The linker will automatically build a .lib file if we build a DLL.
24976 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
24977 - # FIXME: Should let the user specify the lib program.
24978 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
24979 - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
24980 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
24981 - ;;
24982 +# Object file extension for compiled fc test sources.
24983 +objext=o
24984 +_LT_TAGVAR(objext, $1)=$objext
24985
24986 - darwin* | rhapsody*)
24987 - case $host_os in
24988 - rhapsody* | darwin1.[[012]])
24989 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
24990 - ;;
24991 - *) # Darwin 1.3 on
24992 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24993 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24994 - else
24995 - case ${MACOSX_DEPLOYMENT_TARGET} in
24996 - 10.[[012]])
24997 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24998 - ;;
24999 - 10.*)
25000 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
25001 - ;;
25002 - esac
25003 - fi
25004 - ;;
25005 - esac
25006 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25007 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
25008 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
25009 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
25010 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
25011 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25012 - if test "$GCC" = yes ; then
25013 - output_verbose_link_cmd='echo'
25014 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25015 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25016 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25017 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25018 - _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}'
25019 - else
25020 - case $cc_basename in
25021 - xlc*)
25022 - output_verbose_link_cmd='echo'
25023 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25024 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25025 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25026 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25027 - _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}'
25028 - ;;
25029 - *)
25030 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
25031 - ;;
25032 - esac
25033 - fi
25034 - ;;
25035 +# No sense in running all these tests if we already determined that
25036 +# the FC compiler isn't working. Some variables (like enable_shared)
25037 +# are currently assumed to apply to all compilers on this platform,
25038 +# and will be corrupted by setting them based on a non-working compiler.
25039 +if test "$_lt_disable_FC" != yes; then
25040 + # Code to be used in simple compile tests
25041 + lt_simple_compile_test_code="\
25042 + subroutine t
25043 + return
25044 + end
25045 +"
25046
25047 - dgux*)
25048 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25049 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25050 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25051 - ;;
25052 + # Code to be used in simple link tests
25053 + lt_simple_link_test_code="\
25054 + program t
25055 + end
25056 +"
25057
25058 - freebsd1*)
25059 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
25060 - ;;
25061 + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25062 + _LT_TAG_COMPILER
25063
25064 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25065 - # support. Future versions do this automatically, but an explicit c++rt0.o
25066 - # does not break anything, and helps significantly (at the cost of a little
25067 - # extra space).
25068 - freebsd2.2*)
25069 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25070 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25071 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25072 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25073 - ;;
25074 + # save warnings/boilerplate of simple test code
25075 + _LT_COMPILER_BOILERPLATE
25076 + _LT_LINKER_BOILERPLATE
25077 +
25078 + # Allow CC to be a program name with arguments.
25079 + lt_save_CC="$CC"
25080 + lt_save_GCC=$GCC
25081 + CC=${FC-"f95"}
25082 + compiler=$CC
25083 + GCC=$ac_cv_fc_compiler_gnu
25084
25085 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25086 - freebsd2*)
25087 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25088 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25089 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25090 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25091 - ;;
25092 + _LT_TAGVAR(compiler, $1)=$CC
25093 + _LT_CC_BASENAME([$compiler])
25094
25095 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25096 - freebsd* | kfreebsd*-gnu | dragonfly*)
25097 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25098 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25099 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25100 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25101 - ;;
25102 + if test -n "$compiler"; then
25103 + AC_MSG_CHECKING([if libtool supports shared libraries])
25104 + AC_MSG_RESULT([$can_build_shared])
25105
25106 - hpux9*)
25107 - if test "$GCC" = yes; then
25108 - _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'
25109 - else
25110 - _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'
25111 - fi
25112 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
25113 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25114 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25115 + AC_MSG_CHECKING([whether to build shared libraries])
25116 + test "$can_build_shared" = "no" && enable_shared=no
25117
25118 - # hardcode_minus_L: Not really in the search PATH,
25119 - # but as the default location of the library.
25120 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25121 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25122 - ;;
25123 + # On AIX, shared libraries and static libraries use the same namespace, and
25124 + # are all built from PIC.
25125 + case $host_os in
25126 + aix3*)
25127 + test "$enable_shared" = yes && enable_static=no
25128 + if test -n "$RANLIB"; then
25129 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
25130 + postinstall_cmds='$RANLIB $lib'
25131 + fi
25132 + ;;
25133 + aix[[4-9]]*)
25134 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
25135 + test "$enable_shared" = yes && enable_static=no
25136 + fi
25137 + ;;
25138 + esac
25139 + AC_MSG_RESULT([$enable_shared])
25140
25141 - hpux10*)
25142 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25143 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25144 - else
25145 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25146 - fi
25147 - if test "$with_gnu_ld" = no; then
25148 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
25149 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25150 + AC_MSG_CHECKING([whether to build static libraries])
25151 + # Make sure either enable_shared or enable_static is yes.
25152 + test "$enable_shared" = yes || enable_static=yes
25153 + AC_MSG_RESULT([$enable_static])
25154 +
25155 + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
25156 + _LT_TAGVAR(LD, $1)="$LD"
25157 +
25158 + ## CAVEAT EMPTOR:
25159 + ## There is no encapsulation within the following macros, do not change
25160 + ## the running order or otherwise move them around unless you know exactly
25161 + ## what you are doing...
25162 + _LT_SYS_HIDDEN_LIBDEPS($1)
25163 + _LT_COMPILER_PIC($1)
25164 + _LT_COMPILER_C_O($1)
25165 + _LT_COMPILER_FILE_LOCKS($1)
25166 + _LT_LINKER_SHLIBS($1)
25167 + _LT_SYS_DYNAMIC_LINKER($1)
25168 + _LT_LINKER_HARDCODE_LIBPATH($1)
25169 +
25170 + _LT_CONFIG($1)
25171 + fi # test -n "$compiler"
25172 +
25173 + GCC=$lt_save_GCC
25174 + CC="$lt_save_CC"
25175 +fi # test "$_lt_disable_FC" != yes
25176
25177 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25178 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25179 +AC_LANG_POP
25180 +])# _LT_LANG_FC_CONFIG
25181
25182 - # hardcode_minus_L: Not really in the search PATH,
25183 - # but as the default location of the library.
25184 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25185 - fi
25186 - ;;
25187
25188 - hpux11*)
25189 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25190 - case $host_cpu in
25191 - hppa*64*)
25192 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193 - ;;
25194 - ia64*)
25195 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25196 - ;;
25197 - *)
25198 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25199 - ;;
25200 - esac
25201 - else
25202 - case $host_cpu in
25203 - hppa*64*)
25204 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25205 - ;;
25206 - ia64*)
25207 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25208 - ;;
25209 - *)
25210 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25211 - ;;
25212 - esac
25213 - fi
25214 - if test "$with_gnu_ld" = no; then
25215 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
25216 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25217 +# _LT_LANG_GCJ_CONFIG([TAG])
25218 +# --------------------------
25219 +# Ensure that the configuration variables for the GNU Java Compiler compiler
25220 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
25221 +# to write the compiler configuration to `libtool'.
25222 +m4_defun([_LT_LANG_GCJ_CONFIG],
25223 +[AC_REQUIRE([LT_PROG_GCJ])dnl
25224 +AC_LANG_SAVE
25225
25226 - case $host_cpu in
25227 - hppa*64*|ia64*)
25228 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
25229 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
25230 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25231 - ;;
25232 - *)
25233 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25234 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25235 +# Source file extension for Java test sources.
25236 +ac_ext=java
25237
25238 - # hardcode_minus_L: Not really in the search PATH,
25239 - # but as the default location of the library.
25240 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25241 - ;;
25242 - esac
25243 - fi
25244 - ;;
25245 +# Object file extension for compiled Java test sources.
25246 +objext=o
25247 +_LT_TAGVAR(objext, $1)=$objext
25248
25249 - irix5* | irix6* | nonstopux*)
25250 - if test "$GCC" = yes; then
25251 - _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'
25252 - else
25253 - _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'
25254 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
25255 - fi
25256 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25257 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25258 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25259 - ;;
25260 +# Code to be used in simple compile tests
25261 +lt_simple_compile_test_code="class foo {}"
25262
25263 - netbsd*)
25264 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25265 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25266 - else
25267 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25268 - fi
25269 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25270 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25271 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25272 - ;;
25273 +# Code to be used in simple link tests
25274 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
25275
25276 - newsos6)
25277 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25278 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25279 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25280 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25281 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25282 - ;;
25283 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25284 +_LT_TAG_COMPILER
25285 +
25286 +# save warnings/boilerplate of simple test code
25287 +_LT_COMPILER_BOILERPLATE
25288 +_LT_LINKER_BOILERPLATE
25289 +
25290 +# Allow CC to be a program name with arguments.
25291 +lt_save_CC="$CC"
25292 +lt_save_GCC=$GCC
25293 +GCC=yes
25294 +CC=${GCJ-"gcj"}
25295 +compiler=$CC
25296 +_LT_TAGVAR(compiler, $1)=$CC
25297 +_LT_TAGVAR(LD, $1)="$LD"
25298 +_LT_CC_BASENAME([$compiler])
25299
25300 - openbsd*)
25301 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25302 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25303 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25304 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25305 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25306 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
25307 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
25308 - else
25309 - case $host_os in
25310 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
25311 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25312 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25313 - ;;
25314 - *)
25315 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25316 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
25317 - ;;
25318 - esac
25319 - fi
25320 - ;;
25321 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
25322 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
25323
25324 - os2*)
25325 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25326 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25327 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
25328 - _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'
25329 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25330 - ;;
25331 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
25332
25333 - osf3*)
25334 - if test "$GCC" = yes; then
25335 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
25336 - _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'
25337 - else
25338 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
25339 - _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'
25340 - fi
25341 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25342 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25343 - ;;
25344 +## CAVEAT EMPTOR:
25345 +## There is no encapsulation within the following macros, do not change
25346 +## the running order or otherwise move them around unless you know exactly
25347 +## what you are doing...
25348 +if test -n "$compiler"; then
25349 + _LT_COMPILER_NO_RTTI($1)
25350 + _LT_COMPILER_PIC($1)
25351 + _LT_COMPILER_C_O($1)
25352 + _LT_COMPILER_FILE_LOCKS($1)
25353 + _LT_LINKER_SHLIBS($1)
25354 + _LT_LINKER_HARDCODE_LIBPATH($1)
25355
25356 - osf4* | osf5*) # as osf3* with the addition of -msym flag
25357 - if test "$GCC" = yes; then
25358 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
25359 - _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'
25360 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
25361 - else
25362 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
25363 - _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'
25364 - _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~
25365 - $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'
25366 + _LT_CONFIG($1)
25367 +fi
25368
25369 - # Both c and cxx compiler support -rpath directly
25370 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
25371 - fi
25372 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
25373 - ;;
25374 +AC_LANG_RESTORE
25375
25376 - solaris*)
25377 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
25378 - if test "$GCC" = yes; then
25379 - wlarc='${wl}'
25380 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25381 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25382 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25383 - else
25384 - wlarc=''
25385 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25386 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25387 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25388 - fi
25389 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
25390 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25391 - case $host_os in
25392 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
25393 - *)
25394 - # The compiler driver will combine linker options so we
25395 - # cannot just pass the convience library names through
25396 - # without $wl, iff we do not link with $LD.
25397 - # Luckily, gcc supports the same syntax we need for Sun Studio.
25398 - # Supported since Solaris 2.6 (maybe 2.5.1?)
25399 - case $wlarc in
25400 - '')
25401 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
25402 - *)
25403 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25404 - esac ;;
25405 - esac
25406 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25407 - ;;
25408 +GCC=$lt_save_GCC
25409 +CC="$lt_save_CC"
25410 +])# _LT_LANG_GCJ_CONFIG
25411
25412 - sunos4*)
25413 - if test "x$host_vendor" = xsequent; then
25414 - # Use $CC to link under sequent, because it throws in some extra .o
25415 - # files that make .init and .fini sections work.
25416 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25417 - else
25418 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25419 - fi
25420 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25421 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
25422 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
25423 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25424 - ;;
25425
25426 - sysv4)
25427 - case $host_vendor in
25428 - sni)
25429 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25430 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
25431 - ;;
25432 - siemens)
25433 - ## LD is ld it makes a PLAMLIB
25434 - ## CC just makes a GrossModule.
25435 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25436 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
25437 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
25438 - ;;
25439 - motorola)
25440 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25441 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
25442 - ;;
25443 - esac
25444 - runpath_var='LD_RUN_PATH'
25445 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25446 - ;;
25447 +# _LT_LANG_RC_CONFIG([TAG])
25448 +# -------------------------
25449 +# Ensure that the configuration variables for the Windows resource compiler
25450 +# are suitably defined. These variables are subsequently used by _LT_CONFIG
25451 +# to write the compiler configuration to `libtool'.
25452 +m4_defun([_LT_LANG_RC_CONFIG],
25453 +[AC_REQUIRE([LT_PROG_RC])dnl
25454 +AC_LANG_SAVE
25455
25456 - sysv4.3*)
25457 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25458 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25459 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
25460 - ;;
25461 +# Source file extension for RC test sources.
25462 +ac_ext=rc
25463
25464 - sysv4*MP*)
25465 - if test -d /usr/nec; then
25466 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25467 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25468 - runpath_var=LD_RUN_PATH
25469 - hardcode_runpath_var=yes
25470 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
25471 - fi
25472 - ;;
25473 +# Object file extension for compiled RC test sources.
25474 +objext=o
25475 +_LT_TAGVAR(objext, $1)=$objext
25476
25477 - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
25478 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
25479 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25480 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25481 - runpath_var='LD_RUN_PATH'
25482 +# Code to be used in simple compile tests
25483 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
25484
25485 - if test "$GCC" = yes; then
25486 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25487 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25488 - else
25489 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25490 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25491 - fi
25492 - ;;
25493 +# Code to be used in simple link tests
25494 +lt_simple_link_test_code="$lt_simple_compile_test_code"
25495
25496 - sysv5* | sco3.2v5* | sco5v6*)
25497 - # Note: We can NOT use -z defs as we might desire, because we do not
25498 - # link with -lc, and that would cause any symbols used from libc to
25499 - # always be unresolved, which means just about no library would
25500 - # ever link correctly. If we're not using GNU ld we use -z text
25501 - # though, which does catch some bad symbols but isn't as heavy-handed
25502 - # as -z defs.
25503 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
25504 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
25505 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25506 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25507 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25508 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
25509 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
25510 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
25511 - runpath_var='LD_RUN_PATH'
25512 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25513 +_LT_TAG_COMPILER
25514
25515 - if test "$GCC" = yes; then
25516 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25517 - _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'
25518 - else
25519 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25520 - _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'
25521 - fi
25522 - ;;
25523 +# save warnings/boilerplate of simple test code
25524 +_LT_COMPILER_BOILERPLATE
25525 +_LT_LINKER_BOILERPLATE
25526
25527 - uts4*)
25528 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25529 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
25530 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
25531 - ;;
25532 +# Allow CC to be a program name with arguments.
25533 +lt_save_CC="$CC"
25534 +lt_save_GCC=$GCC
25535 +GCC=
25536 +CC=${RC-"windres"}
25537 +compiler=$CC
25538 +_LT_TAGVAR(compiler, $1)=$CC
25539 +_LT_CC_BASENAME([$compiler])
25540 +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
25541
25542 - *)
25543 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
25544 - ;;
25545 - esac
25546 - fi
25547 -])
25548 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
25549 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
25550 +if test -n "$compiler"; then
25551 + :
25552 + _LT_CONFIG($1)
25553 +fi
25554
25555 -#
25556 -# Do we need to explicitly link libc?
25557 -#
25558 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
25559 -x|xyes)
25560 - # Assume -lc should be added
25561 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
25562 +GCC=$lt_save_GCC
25563 +AC_LANG_RESTORE
25564 +CC="$lt_save_CC"
25565 +])# _LT_LANG_RC_CONFIG
25566
25567 - if test "$enable_shared" = yes && test "$GCC" = yes; then
25568 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
25569 - *'~'*)
25570 - # FIXME: we may have to deal with multi-command sequences.
25571 - ;;
25572 - '$CC '*)
25573 - # Test whether the compiler implicitly links with -lc since on some
25574 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
25575 - # to ld, don't add -lc before -lgcc.
25576 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
25577 - $rm conftest*
25578 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25579
25580 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
25581 - soname=conftest
25582 - lib=conftest
25583 - libobjs=conftest.$ac_objext
25584 - deplibs=
25585 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
25586 - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
25587 - compiler_flags=-v
25588 - linker_flags=-v
25589 - verstring=
25590 - output_objdir=.
25591 - libname=conftest
25592 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
25593 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
25594 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
25595 - then
25596 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
25597 - else
25598 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
25599 - fi
25600 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
25601 - else
25602 - cat conftest.err 1>&5
25603 - fi
25604 - $rm conftest*
25605 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
25606 - ;;
25607 - esac
25608 - fi
25609 - ;;
25610 -esac
25611 -])# AC_LIBTOOL_PROG_LD_SHLIBS
25612 +# LT_PROG_GCJ
25613 +# -----------
25614 +AC_DEFUN([LT_PROG_GCJ],
25615 +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
25616 + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
25617 + [AC_CHECK_TOOL(GCJ, gcj,)
25618 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
25619 + AC_SUBST(GCJFLAGS)])])[]dnl
25620 +])
25621
25622 +# Old name:
25623 +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
25624 +dnl aclocal-1.4 backwards compatibility:
25625 +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
25626
25627 -# _LT_AC_FILE_LTDLL_C
25628 -# -------------------
25629 -# Be careful that the start marker always follows a newline.
25630 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
25631 -# /* ltdll.c starts here */
25632 -# #define WIN32_LEAN_AND_MEAN
25633 -# #include <windows.h>
25634 -# #undef WIN32_LEAN_AND_MEAN
25635 -# #include <stdio.h>
25636 -#
25637 -# #ifndef __CYGWIN__
25638 -# # ifdef __CYGWIN32__
25639 -# # define __CYGWIN__ __CYGWIN32__
25640 -# # endif
25641 -# #endif
25642 -#
25643 -# #ifdef __cplusplus
25644 -# extern "C" {
25645 -# #endif
25646 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
25647 -# #ifdef __cplusplus
25648 -# }
25649 -# #endif
25650 -#
25651 -# #ifdef __CYGWIN__
25652 -# #include <cygwin/cygwin_dll.h>
25653 -# DECLARE_CYGWIN_DLL( DllMain );
25654 -# #endif
25655 -# HINSTANCE __hDllInstance_base;
25656 -#
25657 -# BOOL APIENTRY
25658 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
25659 -# {
25660 -# __hDllInstance_base = hInst;
25661 -# return TRUE;
25662 -# }
25663 -# /* ltdll.c ends here */
25664 -])# _LT_AC_FILE_LTDLL_C
25665
25666 +# LT_PROG_RC
25667 +# ----------
25668 +AC_DEFUN([LT_PROG_RC],
25669 +[AC_CHECK_TOOL(RC, windres,)
25670 +])
25671
25672 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
25673 -# ---------------------------------
25674 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
25675 +# Old name:
25676 +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
25677 +dnl aclocal-1.4 backwards compatibility:
25678 +dnl AC_DEFUN([LT_AC_PROG_RC], [])
25679
25680
25681 -# old names
25682 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
25683 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
25684 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
25685 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
25686 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
25687 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
25688 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
25689 -
25690 -# This is just to silence aclocal about the macro not being used
25691 -ifelse([AC_DISABLE_FAST_INSTALL])
25692 -
25693 -AC_DEFUN([LT_AC_PROG_GCJ],
25694 -[AC_CHECK_TOOL(GCJ, gcj, no)
25695 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
25696 - AC_SUBST(GCJFLAGS)
25697 +# _LT_DECL_EGREP
25698 +# --------------
25699 +# If we don't have a new enough Autoconf to choose the best grep
25700 +# available, choose the one first in the user's PATH.
25701 +m4_defun([_LT_DECL_EGREP],
25702 +[AC_REQUIRE([AC_PROG_EGREP])dnl
25703 +AC_REQUIRE([AC_PROG_FGREP])dnl
25704 +test -z "$GREP" && GREP=grep
25705 +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
25706 +_LT_DECL([], [EGREP], [1], [An ERE matcher])
25707 +_LT_DECL([], [FGREP], [1], [A literal string matcher])
25708 +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
25709 +AC_SUBST([GREP])
25710 ])
25711
25712 -AC_DEFUN([LT_AC_PROG_RC],
25713 -[AC_CHECK_TOOL(RC, windres, no)
25714 -])
25715
25716 +# _LT_DECL_SED
25717 +# ------------
25718 +# Check for a fully-functional sed program, that truncates
25719 +# as few characters as possible. Prefer GNU sed if found.
25720 +m4_defun([_LT_DECL_SED],
25721 +[AC_PROG_SED
25722 +test -z "$SED" && SED=sed
25723 +Xsed="$SED -e 1s/^X//"
25724 +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
25725 +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
25726 + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
25727 +])# _LT_DECL_SED
25728 +
25729 +m4_ifndef([AC_PROG_SED], [
25730 ############################################################
25731 # NOTE: This macro has been submitted for inclusion into #
25732 # GNU Autoconf as AC_PROG_SED. When it is available in #
25733 # a released version of Autoconf we should remove this #
25734 # macro and use it instead. #
25735 ############################################################
25736 -# LT_AC_PROG_SED
25737 -# --------------
25738 -# Check for a fully-functional sed program, that truncates
25739 -# as few characters as possible. Prefer GNU sed if found.
25740 -AC_DEFUN([LT_AC_PROG_SED],
25741 +
25742 +m4_defun([AC_PROG_SED],
25743 [AC_MSG_CHECKING([for a sed that does not truncate output])
25744 AC_CACHE_VAL(lt_cv_path_SED,
25745 [# Loop through the user's path and test for sed and gsed.
25746 @@ -6435,6 +7010,7 @@ do
25747 done
25748 done
25749 done
25750 +IFS=$as_save_IFS
25751 lt_ac_max=0
25752 lt_ac_count=0
25753 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
25754 @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp
25755 done
25756 ])
25757 SED=$lt_cv_path_SED
25758 +AC_SUBST([SED])
25759 AC_MSG_RESULT([$SED])
25760 +])#AC_PROG_SED
25761 +])#m4_ifndef
25762 +
25763 +# Old name:
25764 +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
25765 +dnl aclocal-1.4 backwards compatibility:
25766 +dnl AC_DEFUN([LT_AC_PROG_SED], [])
25767 +
25768 +
25769 +# _LT_CHECK_SHELL_FEATURES
25770 +# ------------------------
25771 +# Find out whether the shell is Bourne or XSI compatible,
25772 +# or has some other useful features.
25773 +m4_defun([_LT_CHECK_SHELL_FEATURES],
25774 +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
25775 +# Try some XSI features
25776 +xsi_shell=no
25777 +( _lt_dummy="a/b/c"
25778 + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
25779 + = c,a/b,, \
25780 + && eval 'test $(( 1 + 1 )) -eq 2 \
25781 + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
25782 + && xsi_shell=yes
25783 +AC_MSG_RESULT([$xsi_shell])
25784 +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
25785 +
25786 +AC_MSG_CHECKING([whether the shell understands "+="])
25787 +lt_shell_append=no
25788 +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
25789 + >/dev/null 2>&1 \
25790 + && lt_shell_append=yes
25791 +AC_MSG_RESULT([$lt_shell_append])
25792 +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
25793 +
25794 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25795 + lt_unset=unset
25796 +else
25797 + lt_unset=false
25798 +fi
25799 +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
25800 +
25801 +# test EBCDIC or ASCII
25802 +case `echo X|tr X '\101'` in
25803 + A) # ASCII based system
25804 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
25805 + lt_SP2NL='tr \040 \012'
25806 + lt_NL2SP='tr \015\012 \040\040'
25807 + ;;
25808 + *) # EBCDIC based system
25809 + lt_SP2NL='tr \100 \n'
25810 + lt_NL2SP='tr \r\n \100\100'
25811 + ;;
25812 +esac
25813 +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
25814 +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
25815 +])# _LT_CHECK_SHELL_FEATURES
25816 +
25817 +
25818 +# _LT_PROG_XSI_SHELLFNS
25819 +# ---------------------
25820 +# Bourne and XSI compatible variants of some useful shell functions.
25821 +m4_defun([_LT_PROG_XSI_SHELLFNS],
25822 +[case $xsi_shell in
25823 + yes)
25824 + cat << \_LT_EOF >> "$cfgfile"
25825 +
25826 +# func_dirname file append nondir_replacement
25827 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25828 +# otherwise set result to NONDIR_REPLACEMENT.
25829 +func_dirname ()
25830 +{
25831 + case ${1} in
25832 + */*) func_dirname_result="${1%/*}${2}" ;;
25833 + * ) func_dirname_result="${3}" ;;
25834 + esac
25835 +}
25836 +
25837 +# func_basename file
25838 +func_basename ()
25839 +{
25840 + func_basename_result="${1##*/}"
25841 +}
25842 +
25843 +# func_dirname_and_basename file append nondir_replacement
25844 +# perform func_basename and func_dirname in a single function
25845 +# call:
25846 +# dirname: Compute the dirname of FILE. If nonempty,
25847 +# add APPEND to the result, otherwise set result
25848 +# to NONDIR_REPLACEMENT.
25849 +# value returned in "$func_dirname_result"
25850 +# basename: Compute filename of FILE.
25851 +# value retuned in "$func_basename_result"
25852 +# Implementation must be kept synchronized with func_dirname
25853 +# and func_basename. For efficiency, we do not delegate to
25854 +# those functions but instead duplicate the functionality here.
25855 +func_dirname_and_basename ()
25856 +{
25857 + case ${1} in
25858 + */*) func_dirname_result="${1%/*}${2}" ;;
25859 + * ) func_dirname_result="${3}" ;;
25860 + esac
25861 + func_basename_result="${1##*/}"
25862 +}
25863 +
25864 +# func_stripname prefix suffix name
25865 +# strip PREFIX and SUFFIX off of NAME.
25866 +# PREFIX and SUFFIX must not contain globbing or regex special
25867 +# characters, hashes, percent signs, but SUFFIX may contain a leading
25868 +# dot (in which case that matches only a dot).
25869 +func_stripname ()
25870 +{
25871 + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
25872 + # positional parameters, so assign one to ordinary parameter first.
25873 + func_stripname_result=${3}
25874 + func_stripname_result=${func_stripname_result#"${1}"}
25875 + func_stripname_result=${func_stripname_result%"${2}"}
25876 +}
25877 +
25878 +# func_opt_split
25879 +func_opt_split ()
25880 +{
25881 + func_opt_split_opt=${1%%=*}
25882 + func_opt_split_arg=${1#*=}
25883 +}
25884 +
25885 +# func_lo2o object
25886 +func_lo2o ()
25887 +{
25888 + case ${1} in
25889 + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
25890 + *) func_lo2o_result=${1} ;;
25891 + esac
25892 +}
25893 +
25894 +# func_xform libobj-or-source
25895 +func_xform ()
25896 +{
25897 + func_xform_result=${1%.*}.lo
25898 +}
25899 +
25900 +# func_arith arithmetic-term...
25901 +func_arith ()
25902 +{
25903 + func_arith_result=$(( $[*] ))
25904 +}
25905 +
25906 +# func_len string
25907 +# STRING may not start with a hyphen.
25908 +func_len ()
25909 +{
25910 + func_len_result=${#1}
25911 +}
25912 +
25913 +_LT_EOF
25914 + ;;
25915 + *) # Bourne compatible functions.
25916 + cat << \_LT_EOF >> "$cfgfile"
25917 +
25918 +# func_dirname file append nondir_replacement
25919 +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
25920 +# otherwise set result to NONDIR_REPLACEMENT.
25921 +func_dirname ()
25922 +{
25923 + # Extract subdirectory from the argument.
25924 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
25925 + if test "X$func_dirname_result" = "X${1}"; then
25926 + func_dirname_result="${3}"
25927 + else
25928 + func_dirname_result="$func_dirname_result${2}"
25929 + fi
25930 +}
25931 +
25932 +# func_basename file
25933 +func_basename ()
25934 +{
25935 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
25936 +}
25937 +
25938 +dnl func_dirname_and_basename
25939 +dnl A portable version of this function is already defined in general.m4sh
25940 +dnl so there is no need for it here.
25941 +
25942 +# func_stripname prefix suffix name
25943 +# strip PREFIX and SUFFIX off of NAME.
25944 +# PREFIX and SUFFIX must not contain globbing or regex special
25945 +# characters, hashes, percent signs, but SUFFIX may contain a leading
25946 +# dot (in which case that matches only a dot).
25947 +# func_strip_suffix prefix name
25948 +func_stripname ()
25949 +{
25950 + case ${2} in
25951 + .*) func_stripname_result=`$ECHO "X${3}" \
25952 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
25953 + *) func_stripname_result=`$ECHO "X${3}" \
25954 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
25955 + esac
25956 +}
25957 +
25958 +# sed scripts:
25959 +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
25960 +my_sed_long_arg='1s/^-[[^=]]*=//'
25961 +
25962 +# func_opt_split
25963 +func_opt_split ()
25964 +{
25965 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
25966 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
25967 +}
25968 +
25969 +# func_lo2o object
25970 +func_lo2o ()
25971 +{
25972 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
25973 +}
25974 +
25975 +# func_xform libobj-or-source
25976 +func_xform ()
25977 +{
25978 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
25979 +}
25980 +
25981 +# func_arith arithmetic-term...
25982 +func_arith ()
25983 +{
25984 + func_arith_result=`expr "$[@]"`
25985 +}
25986 +
25987 +# func_len string
25988 +# STRING may not start with a hyphen.
25989 +func_len ()
25990 +{
25991 + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
25992 +}
25993 +
25994 +_LT_EOF
25995 +esac
25996 +
25997 +case $lt_shell_append in
25998 + yes)
25999 + cat << \_LT_EOF >> "$cfgfile"
26000 +
26001 +# func_append var value
26002 +# Append VALUE to the end of shell variable VAR.
26003 +func_append ()
26004 +{
26005 + eval "$[1]+=\$[2]"
26006 +}
26007 +_LT_EOF
26008 + ;;
26009 + *)
26010 + cat << \_LT_EOF >> "$cfgfile"
26011 +
26012 +# func_append var value
26013 +# Append VALUE to the end of shell variable VAR.
26014 +func_append ()
26015 +{
26016 + eval "$[1]=\$$[1]\$[2]"
26017 +}
26018 +
26019 +_LT_EOF
26020 + ;;
26021 + esac
26022 ])