1
=== modified file 'Makefile.in'
2
--- Makefile.in 2009-12-08 13:36:06 +0000
3
+++ Makefile.in 2009-12-08 13:56:36 +0000
5
compile config.guess config.sub depcomp install-sh ltmain.sh \
7
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8
-am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
9
- $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
10
- $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
11
- $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
12
+am__aclocal_m4_deps = $(top_srcdir)/configure.ac
13
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
15
am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
17
=== modified file 'aclocal.m4'
18
--- aclocal.m4 2009-12-08 13:36:06 +0000
19
+++ aclocal.m4 2009-12-08 13:56:32 +0000
20
@@ -497,6 +497,8165 @@
25
+dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
26
+# serial 40 IT_PROG_INTLTOOL
27
+AC_DEFUN([IT_PROG_INTLTOOL], [
29
+AC_REQUIRE([AM_NLS])dnl
31
+case "$am__api_version" in
33
+ AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
39
+if test -n "$1"; then
40
+ AC_MSG_CHECKING([for intltool >= $1])
42
+ INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
43
+ INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
44
+ [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
46
+ AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
47
+ test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
48
+ AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
51
+AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
52
+AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
53
+AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
54
+if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
55
+ AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
58
+ INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
59
+INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
60
+ INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
61
+ INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
62
+ INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
63
+ INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
64
+ INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
65
+ INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
66
+INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
67
+ INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
68
+ INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
69
+ INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
70
+ INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
71
+ INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
72
+ INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
73
+ INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
74
+ INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
75
+ INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
76
+ INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
78
+_IT_SUBST(INTLTOOL_DESKTOP_RULE)
79
+_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
80
+_IT_SUBST(INTLTOOL_KEYS_RULE)
81
+_IT_SUBST(INTLTOOL_PROP_RULE)
82
+_IT_SUBST(INTLTOOL_OAF_RULE)
83
+_IT_SUBST(INTLTOOL_PONG_RULE)
84
+_IT_SUBST(INTLTOOL_SERVER_RULE)
85
+_IT_SUBST(INTLTOOL_SHEET_RULE)
86
+_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
87
+_IT_SUBST(INTLTOOL_UI_RULE)
88
+_IT_SUBST(INTLTOOL_XAM_RULE)
89
+_IT_SUBST(INTLTOOL_KBD_RULE)
90
+_IT_SUBST(INTLTOOL_XML_RULE)
91
+_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
92
+_IT_SUBST(INTLTOOL_CAVES_RULE)
93
+_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
94
+_IT_SUBST(INTLTOOL_THEME_RULE)
95
+_IT_SUBST(INTLTOOL_SERVICE_RULE)
96
+_IT_SUBST(INTLTOOL_POLICY_RULE)
98
+# Check the gettext tools to make sure they are GNU
99
+AC_PATH_PROG(XGETTEXT, xgettext)
100
+AC_PATH_PROG(MSGMERGE, msgmerge)
101
+AC_PATH_PROG(MSGFMT, msgfmt)
102
+AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
103
+if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
104
+ AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
106
+xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
107
+mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
108
+mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
109
+if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
110
+ AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
113
+AC_PATH_PROG(INTLTOOL_PERL, perl)
114
+if test -z "$INTLTOOL_PERL"; then
115
+ AC_MSG_ERROR([perl not found])
117
+AC_MSG_CHECKING([for perl >= 5.8.1])
118
+$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
119
+if test $? -ne 0; then
120
+ AC_MSG_ERROR([perl 5.8.1 is required for intltool])
122
+ IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
123
+ AC_MSG_RESULT([$IT_PERL_VERSION])
125
+if test "x$2" != "xno-xml"; then
126
+ AC_MSG_CHECKING([for XML::Parser])
127
+ if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
128
+ AC_MSG_RESULT([ok])
130
+ AC_MSG_ERROR([XML::Parser perl module is required for intltool])
134
+# Substitute ALL_LINGUAS so we can use it in po/Makefile
135
+AC_SUBST(ALL_LINGUAS)
137
+# Set DATADIRNAME correctly if it is not set yet
138
+# (copied from glib-gettext.m4)
139
+if test -z "$DATADIRNAME"; then
141
+ [AC_LANG_PROGRAM([[]],
142
+ [[extern int _nl_msg_cat_cntr;
143
+ return _nl_msg_cat_cntr]])],
144
+ [DATADIRNAME=share],
147
+ dnl On Solaris, if bind_textdomain_codeset is in libc,
148
+ dnl GNU format message catalog is always supported,
149
+ dnl since both are added to the libc all together.
150
+ dnl Hence, we'd like to go with DATADIRNAME=share
152
+ AC_CHECK_FUNC(bind_textdomain_codeset,
153
+ [DATADIRNAME=share], [DATADIRNAME=lib])
160
+AC_SUBST(DATADIRNAME)
167
+# IT_PO_SUBDIR(DIRNAME)
168
+# ---------------------
169
+# All po subdirs have to be declared with this macro; the subdir "po" is
170
+# declared by IT_PROG_INTLTOOL.
172
+AC_DEFUN([IT_PO_SUBDIR],
173
+[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
175
+dnl The following CONFIG_COMMANDS should be exetuted at the very end
176
+dnl of config.status.
177
+AC_CONFIG_COMMANDS_PRE([
178
+ AC_CONFIG_COMMANDS([$1/stamp-it], [
179
+ if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
180
+ AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
182
+ rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
187
+ '"s|^| $ac_top_srcdir/|" \
188
+ "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
190
+ [sed '/^POTFILES =/,/[^\\]$/ {
194
+ ' "$1/Makefile.in" >"$1/Makefile"]
195
+ rm -f "$1/Makefile.tmp"
196
+ mv "$1/stamp-it.tmp" "$1/stamp-it"
201
+# _IT_SUBST(VARIABLE)
202
+# -------------------
203
+# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
205
+AC_DEFUN([_IT_SUBST],
208
+m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
213
+AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
214
+# A hint is needed for aclocal from Automake <= 1.9.4:
215
+# AC_DEFUN([AC_PROG_INTLTOOL], ...)
218
+# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
220
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
221
+# 2006, 2007, 2008 Free Software Foundation, Inc.
222
+# Written by Gordon Matzigkeit, 1996
224
+# This file is free software; the Free Software Foundation gives
225
+# unlimited permission to copy and/or distribute it, with or without
226
+# modifications, as long as this notice is preserved.
228
+m4_define([_LT_COPYING], [dnl
229
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
230
+# 2006, 2007, 2008 Free Software Foundation, Inc.
231
+# Written by Gordon Matzigkeit, 1996
233
+# This file is part of GNU Libtool.
235
+# GNU Libtool is free software; you can redistribute it and/or
236
+# modify it under the terms of the GNU General Public License as
237
+# published by the Free Software Foundation; either version 2 of
238
+# the License, or (at your option) any later version.
240
+# As a special exception to the GNU General Public License,
241
+# if you distribute this file as part of a program or library that
242
+# is built using GNU Libtool, you may include this file under the
243
+# same distribution terms that you use for the rest of that program.
245
+# GNU Libtool is distributed in the hope that it will be useful,
246
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
247
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
248
+# GNU General Public License for more details.
250
+# You should have received a copy of the GNU General Public License
251
+# along with GNU Libtool; see the file COPYING. If not, a copy
252
+# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
253
+# obtained by writing to the Free Software Foundation, Inc.,
254
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
260
+# LT_PREREQ(VERSION)
261
+# ------------------
262
+# Complain and exit if this libtool version is less that VERSION.
263
+m4_defun([LT_PREREQ],
264
+[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
266
+ [m4_fatal([Libtool version $1 or higher is required],
271
+# _LT_CHECK_BUILDDIR
272
+# ------------------
273
+# Complain if the absolute build directory name contains unusual characters
274
+m4_defun([_LT_CHECK_BUILDDIR],
277
+ AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
282
+# LT_INIT([OPTIONS])
283
+# ------------------
285
+[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
286
+AC_BEFORE([$0], [LT_LANG])dnl
287
+AC_BEFORE([$0], [LT_OUTPUT])dnl
288
+AC_BEFORE([$0], [LTDL_INIT])dnl
289
+m4_require([_LT_CHECK_BUILDDIR])dnl
291
+dnl Autoconf doesn't catch unexpanded LT_ macros by default:
292
+m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
293
+m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
294
+dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
295
+dnl unless we require an AC_DEFUNed macro:
296
+AC_REQUIRE([LTOPTIONS_VERSION])dnl
297
+AC_REQUIRE([LTSUGAR_VERSION])dnl
298
+AC_REQUIRE([LTVERSION_VERSION])dnl
299
+AC_REQUIRE([LTOBSOLETE_VERSION])dnl
300
+m4_require([_LT_PROG_LTMAIN])dnl
303
+_LT_SET_OPTIONS([$0], [$1])
305
+# This can be used to rebuild libtool when needed
306
+LIBTOOL_DEPS="$ltmain"
308
+# Always use our own libtool.
309
+LIBTOOL='$(SHELL) $(top_builddir)/libtool'
310
+AC_SUBST(LIBTOOL)dnl
315
+m4_define([LT_INIT])
319
+AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
320
+AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
321
+dnl aclocal-1.4 backwards compatibility:
322
+dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
323
+dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
326
+# _LT_CC_BASENAME(CC)
327
+# -------------------
328
+# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
329
+m4_defun([_LT_CC_BASENAME],
330
+[for cc_temp in $1""; do
332
+ compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
333
+ distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
338
+cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
342
+# _LT_FILEUTILS_DEFAULTS
343
+# ----------------------
344
+# It is okay to use these file commands and assume they have been set
345
+# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
346
+m4_defun([_LT_FILEUTILS_DEFAULTS],
350
+])# _LT_FILEUTILS_DEFAULTS
355
+m4_defun([_LT_SETUP],
356
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
357
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
358
+_LT_DECL([], [host_alias], [0], [The host system])dnl
359
+_LT_DECL([], [host], [0])dnl
360
+_LT_DECL([], [host_os], [0])dnl
362
+_LT_DECL([], [build_alias], [0], [The build system])dnl
363
+_LT_DECL([], [build], [0])dnl
364
+_LT_DECL([], [build_os], [0])dnl
366
+AC_REQUIRE([AC_PROG_CC])dnl
367
+AC_REQUIRE([LT_PATH_LD])dnl
368
+AC_REQUIRE([LT_PATH_NM])dnl
370
+AC_REQUIRE([AC_PROG_LN_S])dnl
371
+test -z "$LN_S" && LN_S="ln -s"
372
+_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
374
+AC_REQUIRE([LT_CMD_MAX_LEN])dnl
375
+_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
376
+_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
378
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
379
+m4_require([_LT_CHECK_SHELL_FEATURES])dnl
380
+m4_require([_LT_CMD_RELOAD])dnl
381
+m4_require([_LT_CHECK_MAGIC_METHOD])dnl
382
+m4_require([_LT_CMD_OLD_ARCHIVE])dnl
383
+m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
385
+_LT_CONFIG_LIBTOOL_INIT([
386
+# See if we are running on zsh, and set the options which allow our
387
+# commands through without removal of \ escapes INIT.
388
+if test -n "\${ZSH_VERSION+set}" ; then
389
+ setopt NO_GLOB_SUBST
392
+if test -n "${ZSH_VERSION+set}" ; then
393
+ setopt NO_GLOB_SUBST
398
+m4_require([_LT_TAG_COMPILER])dnl
399
+_LT_PROG_ECHO_BACKSLASH
403
+ # AIX sometimes has problems with the GCC collect2 program. For some
404
+ # reason, if we set the COLLECT_NAMES environment variable, the problems
405
+ # vanish in a puff of smoke.
406
+ if test "X${COLLECT_NAMES+set}" != Xset; then
408
+ export COLLECT_NAMES
413
+# Sed substitution that helps us do robust quoting. It backslashifies
414
+# metacharacters that are still active within double-quoted strings.
415
+sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
417
+# Same as above, but do not quote variable references.
418
+double_quote_subst='s/\([["`\\]]\)/\\\1/g'
420
+# Sed substitution to delay expansion of an escaped shell variable in a
421
+# double_quote_subst'ed string.
422
+delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
424
+# Sed substitution to delay expansion of an escaped single quote.
425
+delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
427
+# Sed substitution to avoid accidental globbing in evaled expressions
428
+no_glob_subst='s/\*/\\\*/g'
432
+can_build_shared=yes
434
+# All known linkers require a `.a' archive for static linking (except MSVC,
435
+# which needs '.lib').
438
+with_gnu_ld="$lt_cv_prog_gnu_ld"
441
+old_CFLAGS="$CFLAGS"
443
+# Set sane defaults for various variables
444
+test -z "$CC" && CC=cc
445
+test -z "$LTCC" && LTCC=$CC
446
+test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
447
+test -z "$LD" && LD=ld
448
+test -z "$ac_objext" && ac_objext=o
450
+_LT_CC_BASENAME([$compiler])
452
+# Only perform the check for file, if the check method requires it
453
+test -z "$MAGIC_CMD" && MAGIC_CMD=file
454
+case $deplibs_check_method in
456
+ if test "$file_magic_cmd" = '$MAGIC_CMD'; then
462
+# Use C for the default configuration in the libtool script
463
+LT_SUPPORTED_TAG([CC])
465
+_LT_LANG_DEFAULT_CONFIG
472
+# Note that this code is called both from `configure', and `config.status'
473
+# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
474
+# `config.status' has no value for ac_aux_dir unless we are using Automake,
475
+# so we pass a copy along to make sure it has a sensible value anyway.
476
+m4_defun([_LT_PROG_LTMAIN],
477
+[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
478
+_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
479
+ltmain="$ac_aux_dir/ltmain.sh"
484
+# So that we can recreate a full libtool script including additional
485
+# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
486
+# in macros and then make a single call at the end using the `libtool'
490
+# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
491
+# ----------------------------------------
492
+# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
493
+m4_define([_LT_CONFIG_LIBTOOL_INIT],
495
+ [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
500
+m4_define([_LT_OUTPUT_LIBTOOL_INIT])
503
+# _LT_CONFIG_LIBTOOL([COMMANDS])
504
+# ------------------------------
505
+# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
506
+m4_define([_LT_CONFIG_LIBTOOL],
508
+ [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
513
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
516
+# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
517
+# -----------------------------------------------------
518
+m4_defun([_LT_CONFIG_SAVE_COMMANDS],
519
+[_LT_CONFIG_LIBTOOL([$1])
520
+_LT_CONFIG_LIBTOOL_INIT([$2])
524
+# _LT_FORMAT_COMMENT([COMMENT])
525
+# -----------------------------
526
+# Add leading comment marks to the start of each line, and a trailing
527
+# full-stop to the whole comment if one is not present already.
528
+m4_define([_LT_FORMAT_COMMENT],
530
+m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
531
+ [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
538
+# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
539
+# -------------------------------------------------------------------
540
+# CONFIGNAME is the name given to the value in the libtool script.
541
+# VARNAME is the (base) name used in the configure script.
542
+# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
543
+# VARNAME. Any other value will be used directly.
544
+m4_define([_LT_DECL],
545
+[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
546
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
547
+ [m4_ifval([$1], [$1], [$2])])
548
+ lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
550
+ [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
551
+ lt_dict_add_subkey([lt_decl_dict], [$2],
552
+ [tagged?], [m4_ifval([$5], [yes], [no])])])
556
+# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
557
+# --------------------------------------------------------
558
+m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
561
+# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
562
+# ------------------------------------------------
563
+m4_define([lt_decl_tag_varnames],
564
+[_lt_decl_filter([tagged?], [yes], $@)])
567
+# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
568
+# ---------------------------------------------------------
569
+m4_define([_lt_decl_filter],
571
+ [0], [m4_fatal([$0: too few arguments: $#])],
572
+ [1], [m4_fatal([$0: too few arguments: $#: $1])],
573
+ [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
574
+ [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
575
+ [lt_dict_filter([lt_decl_dict], $@)])[]dnl
579
+# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
580
+# --------------------------------------------------
581
+m4_define([lt_decl_quote_varnames],
582
+[_lt_decl_filter([value], [1], $@)])
585
+# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
586
+# ---------------------------------------------------
587
+m4_define([lt_decl_dquote_varnames],
588
+[_lt_decl_filter([value], [2], $@)])
591
+# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
592
+# ---------------------------------------------------
593
+m4_define([lt_decl_varnames_tagged],
594
+[m4_assert([$# <= 2])dnl
595
+_$0(m4_quote(m4_default([$1], [[, ]])),
596
+ m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
597
+ m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
598
+m4_define([_lt_decl_varnames_tagged],
599
+[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
602
+# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
603
+# ------------------------------------------------
604
+m4_define([lt_decl_all_varnames],
605
+[_$0(m4_quote(m4_default([$1], [[, ]])),
607
+ m4_quote(lt_decl_varnames),
608
+ m4_quote(m4_shift($@))))[]dnl
610
+m4_define([_lt_decl_all_varnames],
611
+[lt_join($@, lt_decl_varnames_tagged([$1],
612
+ lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
616
+# _LT_CONFIG_STATUS_DECLARE([VARNAME])
617
+# ------------------------------------
618
+# Quote a variable value, and forward it to `config.status' so that its
619
+# declaration there will have the same value as in `configure'. VARNAME
620
+# must have a single quote delimited value for this to work.
621
+m4_define([_LT_CONFIG_STATUS_DECLARE],
622
+[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
625
+# _LT_CONFIG_STATUS_DECLARATIONS
626
+# ------------------------------
627
+# We delimit libtool config variables with single quotes, so when
628
+# we write them to config.status, we have to be sure to quote all
629
+# embedded single quotes properly. In configure, this macro expands
630
+# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
632
+# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
633
+m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
634
+[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
635
+ [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
640
+# Output comment and list of tags supported by the script
641
+m4_defun([_LT_LIBTOOL_TAGS],
642
+[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
643
+available_tags="_LT_TAGS"dnl
647
+# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
648
+# -----------------------------------
649
+# Extract the dictionary values for VARNAME (optionally with TAG) and
650
+# expand to a commented shell variable setting:
652
+# # Some comment about what VAR is for.
653
+# visible_name=$lt_internal_name
654
+m4_define([_LT_LIBTOOL_DECLARE],
655
+[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
656
+ [description])))[]dnl
657
+m4_pushdef([_libtool_name],
658
+ m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
659
+m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
660
+ [0], [_libtool_name=[$]$1],
661
+ [1], [_libtool_name=$lt_[]$1],
662
+ [2], [_libtool_name=$lt_[]$1],
663
+ [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
664
+m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
668
+# _LT_LIBTOOL_CONFIG_VARS
669
+# -----------------------
670
+# Produce commented declarations of non-tagged libtool config variables
671
+# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
672
+# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
673
+# section) are produced by _LT_LIBTOOL_TAG_VARS.
674
+m4_defun([_LT_LIBTOOL_CONFIG_VARS],
675
+[m4_foreach([_lt_var],
676
+ m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
677
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
680
+# _LT_LIBTOOL_TAG_VARS(TAG)
681
+# -------------------------
682
+m4_define([_LT_LIBTOOL_TAG_VARS],
683
+[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
684
+ [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
687
+# _LT_TAGVAR(VARNAME, [TAGNAME])
688
+# ------------------------------
689
+m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
692
+# _LT_CONFIG_COMMANDS
693
+# -------------------
694
+# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
695
+# variables for single and double quote escaping we saved from calls
696
+# to _LT_DECL, we can put quote escaped variables declarations
697
+# into `config.status', and then the shell code to quote escape them in
698
+# for loops in `config.status'. Finally, any additional code accumulated
699
+# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
700
+m4_defun([_LT_CONFIG_COMMANDS],
701
+[AC_PROVIDE_IFELSE([LT_OUTPUT],
702
+ dnl If the libtool generation code has been placed in $CONFIG_LT,
703
+ dnl instead of duplicating it all over again into config.status,
704
+ dnl then we will have config.status run $CONFIG_LT later, so it
705
+ dnl needs to know what name is stored there:
706
+ [AC_CONFIG_COMMANDS([libtool],
707
+ [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
708
+ dnl If the libtool generation code is destined for config.status,
709
+ dnl expand the accumulated commands and init code now:
710
+ [AC_CONFIG_COMMANDS([libtool],
711
+ [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
712
+])#_LT_CONFIG_COMMANDS
716
+m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
719
+# The HP-UX ksh and POSIX shell print the target directory to stdout
721
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
723
+sed_quote_subst='$sed_quote_subst'
724
+double_quote_subst='$double_quote_subst'
725
+delay_variable_subst='$delay_variable_subst'
726
+_LT_CONFIG_STATUS_DECLARATIONS
728
+LTCFLAGS='$LTCFLAGS'
729
+compiler='$compiler_DEFAULT'
731
+# Quote evaled strings.
732
+for var in lt_decl_all_varnames([[ \
733
+]], lt_decl_quote_varnames); do
734
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
735
+ *[[\\\\\\\`\\"\\\$]]*)
736
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
739
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
744
+# Double-quote double-evaled strings.
745
+for var in lt_decl_all_varnames([[ \
746
+]], lt_decl_dquote_varnames); do
747
+ case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
748
+ *[[\\\\\\\`\\"\\\$]]*)
749
+ eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
752
+ eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
757
+# Fix-up fallback echo if it was mangled by the above quoting rules.
759
+*'\\\[$]0 --fallback-echo"')dnl "
760
+ lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
764
+_LT_OUTPUT_LIBTOOL_INIT
770
+# This macro allows early generation of the libtool script (before
771
+# AC_OUTPUT is called), incase it is used in configure for compilation
773
+AC_DEFUN([LT_OUTPUT],
774
+[: ${CONFIG_LT=./config.lt}
775
+AC_MSG_NOTICE([creating $CONFIG_LT])
776
+cat >"$CONFIG_LT" <<_LTEOF
778
+# Generated by $as_me.
779
+# Run this file to recreate a libtool stub with the current configuration.
782
+SHELL=\${CONFIG_SHELL-$SHELL}
785
+cat >>"$CONFIG_LT" <<\_LTEOF
789
+exec AS_MESSAGE_FD>&1
790
+exec AS_MESSAGE_LOG_FD>>config.log
793
+ AS_BOX([Running $as_me.])
794
+} >&AS_MESSAGE_LOG_FD
797
+\`$as_me' creates a local libtool stub from the current configuration,
798
+for use in further configure time tests before the real libtool is
801
+Usage: $[0] [[OPTIONS]]
803
+ -h, --help print this help, then exit
804
+ -V, --version print version number, then exit
805
+ -q, --quiet do not print progress messages
806
+ -d, --debug don't remove temporary files
808
+Report bugs to <bug-libtool@gnu.org>."
811
+m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
812
+m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
813
+configured by $[0], generated by m4_PACKAGE_STRING.
815
+Copyright (C) 2008 Free Software Foundation, Inc.
816
+This config.lt script is free software; the Free Software Foundation
817
+gives unlimited permision to copy, distribute and modify it."
819
+while test $[#] != 0
822
+ --version | --v* | -V )
823
+ echo "$lt_cl_version"; exit 0 ;;
824
+ --help | --h* | -h )
825
+ echo "$lt_cl_help"; exit 0 ;;
826
+ --debug | --d* | -d )
828
+ --quiet | --q* | --silent | --s* | -q )
831
+ -*) AC_MSG_ERROR([unrecognized option: $[1]
832
+Try \`$[0] --help' for more information.]) ;;
834
+ *) AC_MSG_ERROR([unrecognized argument: $[1]
835
+Try \`$[0] --help' for more information.]) ;;
840
+if $lt_cl_silent; then
841
+ exec AS_MESSAGE_FD>/dev/null
845
+cat >>"$CONFIG_LT" <<_LTEOF
846
+_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
849
+cat >>"$CONFIG_LT" <<\_LTEOF
850
+AC_MSG_NOTICE([creating $ofile])
851
+_LT_OUTPUT_LIBTOOL_COMMANDS
854
+chmod +x "$CONFIG_LT"
856
+# configure is writing to config.log, but config.lt does its own redirection,
857
+# appending to config.log, which fails on DOS, as config.log is still kept
858
+# open by configure. Here we exec the FD to /dev/null, effectively closing
859
+# config.log, so it can be properly (re)opened and appended to by config.lt.
860
+if test "$no_create" != yes; then
862
+ test "$silent" = yes &&
863
+ lt_config_lt_args="$lt_config_lt_args --quiet"
864
+ exec AS_MESSAGE_LOG_FD>/dev/null
865
+ $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
866
+ exec AS_MESSAGE_LOG_FD>>config.log
867
+ $lt_cl_success || AS_EXIT(1)
874
+# If TAG is the built-in tag, create an initial libtool script with a
875
+# default configuration from the untagged config vars. Otherwise add code
876
+# to config.status for appending the configuration named by TAG from the
877
+# matching tagged config vars.
878
+m4_defun([_LT_CONFIG],
879
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
880
+_LT_CONFIG_SAVE_COMMANDS([
881
+ m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
882
+ m4_if(_LT_TAG, [C], [
883
+ # See if we are running on zsh, and set the options which allow our
884
+ # commands through without removal of \ escapes.
885
+ if test -n "${ZSH_VERSION+set}" ; then
886
+ setopt NO_GLOB_SUBST
889
+ cfgfile="${ofile}T"
890
+ trap "$RM \"$cfgfile\"; exit 1" 1 2 15
893
+ cat <<_LT_EOF >> "$cfgfile"
896
+# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
897
+# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
898
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
899
+# NOTE: Changes made to this file will be lost: look at ltmain.sh.
904
+# ### BEGIN LIBTOOL CONFIG
905
+_LT_LIBTOOL_CONFIG_VARS
906
+_LT_LIBTOOL_TAG_VARS
907
+# ### END LIBTOOL CONFIG
913
+ cat <<\_LT_EOF >> "$cfgfile"
914
+# AIX sometimes has problems with the GCC collect2 program. For some
915
+# reason, if we set the COLLECT_NAMES environment variable, the problems
916
+# vanish in a puff of smoke.
917
+if test "X${COLLECT_NAMES+set}" != Xset; then
919
+ export COLLECT_NAMES
927
+ # We use sed instead of cat because bash on DJGPP gets confused if
928
+ # if finds mixed CR/LF and LF-only lines. Since sed operates in
929
+ # text mode, it properly converts lines to CR/LF. This bash problem
930
+ # is reportedly fixed, but why not run on old versions too?
931
+ sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
932
+ || (rm -f "$cfgfile"; exit 1)
934
+ _LT_PROG_XSI_SHELLFNS
936
+ sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
937
+ || (rm -f "$cfgfile"; exit 1)
939
+ mv -f "$cfgfile" "$ofile" ||
940
+ (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
943
+[cat <<_LT_EOF >> "$ofile"
945
+dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
946
+dnl in a comment (ie after a #).
947
+# ### BEGIN LIBTOOL TAG CONFIG: $1
948
+_LT_LIBTOOL_TAG_VARS(_LT_TAG)
949
+# ### END LIBTOOL TAG CONFIG: $1
956
+ TIMESTAMP='$TIMESTAMP'
958
+ ofile='$ofile'], [])
959
+])dnl /_LT_CONFIG_SAVE_COMMANDS
963
+# LT_SUPPORTED_TAG(TAG)
964
+# ---------------------
965
+# Trace this macro to discover what tags are supported by the libtool
966
+# --tag option, using:
967
+# autoconf --trace 'LT_SUPPORTED_TAG:$1'
968
+AC_DEFUN([LT_SUPPORTED_TAG], [])
971
+# C support is built-in for now
972
+m4_define([_LT_LANG_C_enabled], [])
973
+m4_define([_LT_TAGS], [])
978
+# Enable libtool support for the given language if not already enabled.
980
+[AC_BEFORE([$0], [LT_OUTPUT])dnl
982
+ [C], [_LT_LANG(C)],
983
+ [C++], [_LT_LANG(CXX)],
984
+ [Java], [_LT_LANG(GCJ)],
985
+ [Fortran 77], [_LT_LANG(F77)],
986
+ [Fortran], [_LT_LANG(FC)],
987
+ [Windows Resource], [_LT_LANG(RC)],
988
+ [m4_ifdef([_LT_LANG_]$1[_CONFIG],
990
+ [m4_fatal([$0: unsupported language: "$1"])])])dnl
994
+# _LT_LANG(LANGNAME)
995
+# ------------------
996
+m4_defun([_LT_LANG],
997
+[m4_ifdef([_LT_LANG_]$1[_enabled], [],
998
+ [LT_SUPPORTED_TAG([$1])dnl
999
+ m4_append([_LT_TAGS], [$1 ])dnl
1000
+ m4_define([_LT_LANG_]$1[_enabled], [])dnl
1001
+ _LT_LANG_$1_CONFIG($1)])dnl
1005
+# _LT_LANG_DEFAULT_CONFIG
1006
+# -----------------------
1007
+m4_defun([_LT_LANG_DEFAULT_CONFIG],
1008
+[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1010
+ [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1012
+AC_PROVIDE_IFELSE([AC_PROG_F77],
1014
+ [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1016
+AC_PROVIDE_IFELSE([AC_PROG_FC],
1018
+ [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1020
+dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1021
+dnl pulling things in needlessly.
1022
+AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1024
+ [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1026
+ [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1028
+ [m4_ifdef([AC_PROG_GCJ],
1029
+ [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1030
+ m4_ifdef([A][M_PROG_GCJ],
1031
+ [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1032
+ m4_ifdef([LT_PROG_GCJ],
1033
+ [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1035
+AC_PROVIDE_IFELSE([LT_PROG_RC],
1037
+ [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1038
+])# _LT_LANG_DEFAULT_CONFIG
1041
+AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1042
+AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1043
+AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1044
+AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1045
+dnl aclocal-1.4 backwards compatibility:
1046
+dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1047
+dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1048
+dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1049
+dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1054
+m4_defun([_LT_TAG_COMPILER],
1055
+[AC_REQUIRE([AC_PROG_CC])dnl
1057
+_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1058
+_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1059
+_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1060
+_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1062
+# If no C compiler was specified, use CC.
1065
+# If no C compiler flags were specified, use CFLAGS.
1066
+LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1068
+# Allow CC to be a program name with arguments.
1070
+])# _LT_TAG_COMPILER
1073
+# _LT_COMPILER_BOILERPLATE
1074
+# ------------------------
1075
+# Check for compiler boilerplate output or warnings with
1076
+# the simple compiler test code.
1077
+m4_defun([_LT_COMPILER_BOILERPLATE],
1078
+[m4_require([_LT_DECL_SED])dnl
1079
+ac_outfile=conftest.$ac_objext
1080
+echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1081
+eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1082
+_lt_compiler_boilerplate=`cat conftest.err`
1084
+])# _LT_COMPILER_BOILERPLATE
1087
+# _LT_LINKER_BOILERPLATE
1088
+# ----------------------
1089
+# Check for linker boilerplate output or warnings with
1090
+# the simple link test code.
1091
+m4_defun([_LT_LINKER_BOILERPLATE],
1092
+[m4_require([_LT_DECL_SED])dnl
1093
+ac_outfile=conftest.$ac_objext
1094
+echo "$lt_simple_link_test_code" >conftest.$ac_ext
1095
+eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1096
+_lt_linker_boilerplate=`cat conftest.err`
1098
+])# _LT_LINKER_BOILERPLATE
1100
+# _LT_REQUIRED_DARWIN_CHECKS
1101
+# -------------------------
1102
+m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1104
+ rhapsody* | darwin*)
1105
+ AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1106
+ AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1107
+ AC_CHECK_TOOL([LIPO], [lipo], [:])
1108
+ AC_CHECK_TOOL([OTOOL], [otool], [:])
1109
+ AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1110
+ _LT_DECL([], [DSYMUTIL], [1],
1111
+ [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1112
+ _LT_DECL([], [NMEDIT], [1],
1113
+ [Tool to change global to local symbols on Mac OS X])
1114
+ _LT_DECL([], [LIPO], [1],
1115
+ [Tool to manipulate fat objects and archives on Mac OS X])
1116
+ _LT_DECL([], [OTOOL], [1],
1117
+ [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1118
+ _LT_DECL([], [OTOOL64], [1],
1119
+ [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1121
+ AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1122
+ [lt_cv_apple_cc_single_mod=no
1123
+ if test -z "${LT_MULTI_MODULE}"; then
1124
+ # By default we will add the -single_module flag. You can override
1125
+ # by either setting the environment variable LT_MULTI_MODULE
1126
+ # non-empty at configure time, or by adding -multi_module to the
1128
+ rm -rf libconftest.dylib*
1129
+ echo "int foo(void){return 1;}" > conftest.c
1130
+ echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1131
+-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1132
+ $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1133
+ -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1135
+ if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1136
+ lt_cv_apple_cc_single_mod=yes
1138
+ cat conftest.err >&AS_MESSAGE_LOG_FD
1140
+ rm -rf libconftest.dylib*
1143
+ AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1144
+ [lt_cv_ld_exported_symbols_list],
1145
+ [lt_cv_ld_exported_symbols_list=no
1146
+ save_LDFLAGS=$LDFLAGS
1147
+ echo "_main" > conftest.sym
1148
+ LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1149
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1150
+ [lt_cv_ld_exported_symbols_list=yes],
1151
+ [lt_cv_ld_exported_symbols_list=no])
1152
+ LDFLAGS="$save_LDFLAGS"
1155
+ rhapsody* | darwin1.[[012]])
1156
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1158
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1159
+ darwin*) # darwin 5.x on
1160
+ # if running on 10.5 or later, the deployment target defaults
1161
+ # to the OS version, if on x86, and 10.4, the deployment
1162
+ # target defaults to 10.4. Don't you love it?
1163
+ case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1164
+ 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1165
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1167
+ _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1169
+ _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1173
+ if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1174
+ _lt_dar_single_mod='$single_module'
1176
+ if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1177
+ _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1179
+ _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1181
+ if test "$DSYMUTIL" != ":"; then
1182
+ _lt_dsymutil='~$DSYMUTIL $lib || :'
1191
+# _LT_DARWIN_LINKER_FEATURES
1192
+# --------------------------
1193
+# Checks for linker and compiler features on darwin
1194
+m4_defun([_LT_DARWIN_LINKER_FEATURES],
1196
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1197
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1198
+ _LT_TAGVAR(hardcode_direct, $1)=no
1199
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
1200
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1201
+ _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1202
+ _LT_TAGVAR(link_all_deplibs, $1)=yes
1203
+ _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1204
+ case $cc_basename in
1205
+ ifort*) _lt_dar_can_shared=yes ;;
1206
+ *) _lt_dar_can_shared=$GCC ;;
1208
+ if test "$_lt_dar_can_shared" = "yes"; then
1209
+ output_verbose_link_cmd=echo
1210
+ _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}"
1211
+ _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1212
+ _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}"
1213
+ _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}"
1214
+ m4_if([$1], [CXX],
1215
+[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1216
+ _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}"
1217
+ _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}"
1221
+ _LT_TAGVAR(ld_shlibs, $1)=no
1225
+# _LT_SYS_MODULE_PATH_AIX
1226
+# -----------------------
1227
+# Links a minimal program and checks the executable
1228
+# for the system default hardcoded library path. In most cases,
1229
+# this is /usr/lib:/lib, but when the MPI compilers are used
1230
+# the location of the communication and MPI libs are included too.
1231
+# If we don't find anything, use the default library path according
1232
+# to the aix ld manual.
1233
+m4_defun([_LT_SYS_MODULE_PATH_AIX],
1234
+[m4_require([_LT_DECL_SED])dnl
1235
+AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1236
+lt_aix_libpath_sed='
1237
+ /Import File Strings/,/^$/ {
1243
+aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1244
+# Check for a 64-bit object if we didn't find anything.
1245
+if test -z "$aix_libpath"; then
1246
+ aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1248
+if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1249
+])# _LT_SYS_MODULE_PATH_AIX
1252
+# _LT_SHELL_INIT(ARG)
1253
+# -------------------
1254
+m4_define([_LT_SHELL_INIT],
1255
+[ifdef([AC_DIVERSION_NOTICE],
1256
+ [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1257
+ [AC_DIVERT_PUSH(NOTICE)])
1263
+# _LT_PROG_ECHO_BACKSLASH
1264
+# -----------------------
1265
+# Add some code to the start of the generated configure script which
1266
+# will find an echo command which doesn't interpret backslashes.
1267
+m4_defun([_LT_PROG_ECHO_BACKSLASH],
1269
+# Check that we are running under the correct shell.
1270
+SHELL=${CONFIG_SHELL-/bin/sh}
1274
+ # Remove one level of quotation (which was required for Make).
1275
+ ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1279
+ECHO=${lt_ECHO-echo}
1280
+if test "X[$]1" = X--no-reexec; then
1281
+ # Discard the --no-reexec flag, and continue.
1283
+elif test "X[$]1" = X--fallback-echo; then
1284
+ # Avoid inline document here, it may be left over
1286
+elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1287
+ # Yippee, $ECHO works!
1290
+ # Restart under the correct shell.
1291
+ exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1294
+if test "X[$]1" = X--fallback-echo; then
1295
+ # used as fallback echo
1303
+# The HP-UX ksh and POSIX shell print the target directory to stdout
1304
+# if CDPATH is set.
1305
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1307
+if test -z "$lt_ECHO"; then
1308
+ if test "X${echo_test_string+set}" != Xset; then
1309
+ # find a string as large as possible, as long as the shell can cope with it
1310
+ for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1311
+ # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1312
+ if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1313
+ { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1320
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1321
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1322
+ test "X$echo_testing_string" = "X$echo_test_string"; then
1325
+ # The Solaris, AIX, and Digital Unix default echo programs unquote
1326
+ # backslashes. This makes it impossible to quote backslashes using
1327
+ # echo "$something" | sed 's/\\/\\\\/g'
1329
+ # So, first we look for a working echo in the user's PATH.
1331
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1332
+ for dir in $PATH /usr/ucb; do
1333
+ IFS="$lt_save_ifs"
1334
+ if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1335
+ test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1336
+ echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1337
+ test "X$echo_testing_string" = "X$echo_test_string"; then
1342
+ IFS="$lt_save_ifs"
1344
+ if test "X$ECHO" = Xecho; then
1345
+ # We didn't find a better echo, so look for alternatives.
1346
+ if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1347
+ echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1348
+ test "X$echo_testing_string" = "X$echo_test_string"; then
1349
+ # This shell has a builtin print -r that does the trick.
1351
+ elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1352
+ test "X$CONFIG_SHELL" != X/bin/ksh; then
1353
+ # If we have ksh, try running configure again with it.
1354
+ ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1355
+ export ORIGINAL_CONFIG_SHELL
1356
+ CONFIG_SHELL=/bin/ksh
1357
+ export CONFIG_SHELL
1358
+ exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1360
+ # Try using printf.
1361
+ ECHO='printf %s\n'
1362
+ if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1363
+ echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1364
+ test "X$echo_testing_string" = "X$echo_test_string"; then
1365
+ # Cool, printf works
1367
+ elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1368
+ test "X$echo_testing_string" = 'X\t' &&
1369
+ echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1370
+ test "X$echo_testing_string" = "X$echo_test_string"; then
1371
+ CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1372
+ export CONFIG_SHELL
1373
+ SHELL="$CONFIG_SHELL"
1375
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1376
+ elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1377
+ test "X$echo_testing_string" = 'X\t' &&
1378
+ echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1379
+ test "X$echo_testing_string" = "X$echo_test_string"; then
1380
+ ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1382
+ # maybe with a smaller string...
1385
+ for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1386
+ if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1393
+ if test "$prev" != 'sed 50q "[$]0"'; then
1394
+ echo_test_string=`eval $prev`
1395
+ export echo_test_string
1396
+ exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1398
+ # Oops. We lost completely, so just stick with echo.
1407
+# Copy echo and quote the copy suitably for passing to libtool from
1408
+# the Makefile, instead of quoting the original, which is used later.
1410
+if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1411
+ lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1416
+_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1417
+_LT_DECL([], [ECHO], [1],
1418
+ [An echo program that does not interpret backslashes])
1419
+])# _LT_PROG_ECHO_BACKSLASH
1424
+m4_defun([_LT_ENABLE_LOCK],
1425
+[AC_ARG_ENABLE([libtool-lock],
1426
+ [AS_HELP_STRING([--disable-libtool-lock],
1427
+ [avoid locking (might break parallel builds)])])
1428
+test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1430
+# Some flags need to be propagated to the compiler or linker for good
1434
+ # Find out which ABI we are using.
1435
+ echo 'int i;' > conftest.$ac_ext
1436
+ if AC_TRY_EVAL(ac_compile); then
1437
+ case `/usr/bin/file conftest.$ac_objext` in
1439
+ HPUX_IA64_MODE="32"
1442
+ HPUX_IA64_MODE="64"
1449
+ # Find out which ABI we are using.
1450
+ echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1451
+ if AC_TRY_EVAL(ac_compile); then
1452
+ if test "$lt_cv_prog_gnu_ld" = yes; then
1453
+ case `/usr/bin/file conftest.$ac_objext` in
1455
+ LD="${LD-ld} -melf32bsmip"
1458
+ LD="${LD-ld} -melf32bmipn32"
1461
+ LD="${LD-ld} -melf64bmip"
1465
+ case `/usr/bin/file conftest.$ac_objext` in
1470
+ LD="${LD-ld} -n32"
1481
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1482
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1483
+ # Find out which ABI we are using.
1484
+ echo 'int i;' > conftest.$ac_ext
1485
+ if AC_TRY_EVAL(ac_compile); then
1486
+ case `/usr/bin/file conftest.o` in
1489
+ x86_64-*kfreebsd*-gnu)
1490
+ LD="${LD-ld} -m elf_i386_fbsd"
1493
+ LD="${LD-ld} -m elf_i386"
1495
+ ppc64-*linux*|powerpc64-*linux*)
1496
+ LD="${LD-ld} -m elf32ppclinux"
1499
+ LD="${LD-ld} -m elf_s390"
1502
+ LD="${LD-ld} -m elf32_sparc"
1508
+ x86_64-*kfreebsd*-gnu)
1509
+ LD="${LD-ld} -m elf_x86_64_fbsd"
1512
+ LD="${LD-ld} -m elf_x86_64"
1514
+ ppc*-*linux*|powerpc*-*linux*)
1515
+ LD="${LD-ld} -m elf64ppc"
1517
+ s390*-*linux*|s390*-*tpf*)
1518
+ LD="${LD-ld} -m elf64_s390"
1521
+ LD="${LD-ld} -m elf64_sparc"
1531
+ # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1532
+ SAVE_CFLAGS="$CFLAGS"
1533
+ CFLAGS="$CFLAGS -belf"
1534
+ AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1536
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1538
+ if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1539
+ # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1540
+ CFLAGS="$SAVE_CFLAGS"
1544
+ # Find out which ABI we are using.
1545
+ echo 'int i;' > conftest.$ac_ext
1546
+ if AC_TRY_EVAL(ac_compile); then
1547
+ case `/usr/bin/file conftest.o` in
1549
+ case $lt_cv_prog_gnu_ld in
1550
+ yes*) LD="${LD-ld} -m elf64_sparc" ;;
1552
+ if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1564
+need_locks="$enable_libtool_lock"
1565
+])# _LT_ENABLE_LOCK
1568
+# _LT_CMD_OLD_ARCHIVE
1569
+# -------------------
1570
+m4_defun([_LT_CMD_OLD_ARCHIVE],
1571
+[AC_CHECK_TOOL(AR, ar, false)
1572
+test -z "$AR" && AR=ar
1573
+test -z "$AR_FLAGS" && AR_FLAGS=cru
1574
+_LT_DECL([], [AR], [1], [The archiver])
1575
+_LT_DECL([], [AR_FLAGS], [1])
1577
+AC_CHECK_TOOL(STRIP, strip, :)
1578
+test -z "$STRIP" && STRIP=:
1579
+_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1581
+AC_CHECK_TOOL(RANLIB, ranlib, :)
1582
+test -z "$RANLIB" && RANLIB=:
1583
+_LT_DECL([], [RANLIB], [1],
1584
+ [Commands used to install an old-style archive])
1586
+# Determine commands to create old-style static archives.
1587
+old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1588
+old_postinstall_cmds='chmod 644 $oldlib'
1589
+old_postuninstall_cmds=
1591
+if test -n "$RANLIB"; then
1594
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1597
+ old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1600
+ old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1602
+_LT_DECL([], [old_postinstall_cmds], [2])
1603
+_LT_DECL([], [old_postuninstall_cmds], [2])
1604
+_LT_TAGDECL([], [old_archive_cmds], [2],
1605
+ [Commands used to build an old-style archive])
1606
+])# _LT_CMD_OLD_ARCHIVE
1609
+# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1610
+# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1611
+# ----------------------------------------------------------------
1612
+# Check whether the given compiler option works
1613
+AC_DEFUN([_LT_COMPILER_OPTION],
1614
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1615
+m4_require([_LT_DECL_SED])dnl
1616
+AC_CACHE_CHECK([$1], [$2],
1618
+ m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1619
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1620
+ lt_compiler_flag="$3"
1621
+ # Insert the option either (1) after the last *FLAGS variable, or
1622
+ # (2) before a word containing "conftest.", or (3) at the end.
1623
+ # Note that $ac_compile itself does not contain backslashes and begins
1624
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
1625
+ # The option is referenced via a variable to avoid confusing sed.
1626
+ lt_compile=`echo "$ac_compile" | $SED \
1627
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1628
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1629
+ -e 's:$: $lt_compiler_flag:'`
1630
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1631
+ (eval "$lt_compile" 2>conftest.err)
1633
+ cat conftest.err >&AS_MESSAGE_LOG_FD
1634
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1635
+ if (exit $ac_status) && test -s "$ac_outfile"; then
1636
+ # The compiler can only warn and ignore the option if not recognized
1637
+ # So say no if there are warnings other than the usual output.
1638
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1639
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1640
+ if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1647
+if test x"[$]$2" = xyes; then
1648
+ m4_if([$5], , :, [$5])
1650
+ m4_if([$6], , :, [$6])
1652
+])# _LT_COMPILER_OPTION
1655
+AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1656
+dnl aclocal-1.4 backwards compatibility:
1657
+dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1660
+# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1661
+# [ACTION-SUCCESS], [ACTION-FAILURE])
1662
+# ----------------------------------------------------
1663
+# Check whether the given linker option works
1664
+AC_DEFUN([_LT_LINKER_OPTION],
1665
+[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1666
+m4_require([_LT_DECL_SED])dnl
1667
+AC_CACHE_CHECK([$1], [$2],
1669
+ save_LDFLAGS="$LDFLAGS"
1670
+ LDFLAGS="$LDFLAGS $3"
1671
+ echo "$lt_simple_link_test_code" > conftest.$ac_ext
1672
+ if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1673
+ # The linker can only warn and ignore the option if not recognized
1674
+ # So say no if there are warnings
1675
+ if test -s conftest.err; then
1676
+ # Append any errors to the config.log.
1677
+ cat conftest.err 1>&AS_MESSAGE_LOG_FD
1678
+ $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1679
+ $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1680
+ if diff conftest.exp conftest.er2 >/dev/null; then
1688
+ LDFLAGS="$save_LDFLAGS"
1691
+if test x"[$]$2" = xyes; then
1692
+ m4_if([$4], , :, [$4])
1694
+ m4_if([$5], , :, [$5])
1696
+])# _LT_LINKER_OPTION
1699
+AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1700
+dnl aclocal-1.4 backwards compatibility:
1701
+dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1706
+AC_DEFUN([LT_CMD_MAX_LEN],
1707
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1708
+# find the maximum length of command line arguments
1709
+AC_MSG_CHECKING([the maximum length of command line arguments])
1710
+AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1716
+ # On DJGPP, this test can blow up pretty badly due to problems in libc
1717
+ # (any single argument exceeding 2000 bytes causes a buffer overrun
1718
+ # during glob expansion). Even if it were fixed, the result of this
1719
+ # check would be larger than it should be.
1720
+ lt_cv_sys_max_cmd_len=12288; # 12K is about right
1724
+ # Under GNU Hurd, this test is not required because there is
1725
+ # no limit to the length of command line arguments.
1726
+ # Libtool will interpret -1 as no limit whatsoever
1727
+ lt_cv_sys_max_cmd_len=-1;
1730
+ cygwin* | mingw* | cegcc*)
1731
+ # On Win9x/ME, this test blows up -- it succeeds, but takes
1732
+ # about 5 minutes as the teststring grows exponentially.
1733
+ # Worse, since 9x/ME are not pre-emptively multitasking,
1734
+ # you end up with a "frozen" computer, even though with patience
1735
+ # the test eventually succeeds (with a max line length of 256k).
1736
+ # Instead, let's just punt: use the minimum linelength reported by
1737
+ # all of the supported platforms: 8192 (on NT/2K/XP).
1738
+ lt_cv_sys_max_cmd_len=8192;
1742
+ # On AmigaOS with pdksh, this test takes hours, literally.
1743
+ # So we just punt and use a minimum line length of 8192.
1744
+ lt_cv_sys_max_cmd_len=8192;
1747
+ netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1748
+ # This has been around since 386BSD, at least. Likely further.
1749
+ if test -x /sbin/sysctl; then
1750
+ lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1751
+ elif test -x /usr/sbin/sysctl; then
1752
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1754
+ lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1756
+ # And add a safety zone
1757
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1758
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1762
+ # We know the value 262144 and hardcode it with a safety zone (like BSD)
1763
+ lt_cv_sys_max_cmd_len=196608
1767
+ # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1768
+ # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1769
+ # nice to cause kernel panics so lets avoid the loop below.
1770
+ # First set a reasonable default.
1771
+ lt_cv_sys_max_cmd_len=16384
1773
+ if test -x /sbin/sysconfig; then
1774
+ case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1775
+ *1*) lt_cv_sys_max_cmd_len=-1 ;;
1780
+ lt_cv_sys_max_cmd_len=102400
1782
+ sysv5* | sco5v6* | sysv4.2uw2*)
1783
+ kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1784
+ if test -n "$kargmax"; then
1785
+ lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1787
+ lt_cv_sys_max_cmd_len=32768
1791
+ lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1792
+ if test -n "$lt_cv_sys_max_cmd_len"; then
1793
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1794
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1796
+ # Make teststring a little bigger before we do anything with it.
1797
+ # a 1K string should be a reasonable start.
1798
+ for i in 1 2 3 4 5 6 7 8 ; do
1799
+ teststring=$teststring$teststring
1801
+ SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1802
+ # If test is not a shell built-in, we'll probably end up computing a
1803
+ # maximum length that is only half of the actual maximum length, but
1805
+ while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1806
+ = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
1807
+ test $i != 17 # 1/2 MB should be enough
1810
+ teststring=$teststring$teststring
1812
+ # Only check the string length outside the loop.
1813
+ lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1815
+ # Add a significant safety factor because C++ compilers can tack on
1816
+ # massive amounts of additional arguments before passing them to the
1817
+ # linker. It appears as though 1/2 is a usable value.
1818
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1823
+if test -n $lt_cv_sys_max_cmd_len ; then
1824
+ AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1826
+ AC_MSG_RESULT(none)
1828
+max_cmd_len=$lt_cv_sys_max_cmd_len
1829
+_LT_DECL([], [max_cmd_len], [0],
1830
+ [What is the maximum length of a command?])
1834
+AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1835
+dnl aclocal-1.4 backwards compatibility:
1836
+dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1841
+m4_defun([_LT_HEADER_DLFCN],
1842
+[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1843
+])# _LT_HEADER_DLFCN
1846
+# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1847
+# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1848
+# ----------------------------------------------------------------
1849
+m4_defun([_LT_TRY_DLOPEN_SELF],
1850
+[m4_require([_LT_HEADER_DLFCN])dnl
1851
+if test "$cross_compiling" = yes; then :
1854
+ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1855
+ lt_status=$lt_dlunknown
1856
+ cat > conftest.$ac_ext <<_LT_EOF
1857
+[#line __oline__ "configure"
1858
+#include "confdefs.h"
1867
+# define LT_DLGLOBAL RTLD_GLOBAL
1870
+# define LT_DLGLOBAL DL_GLOBAL
1872
+# define LT_DLGLOBAL 0
1876
+/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1877
+ find out it does not work in some platform. */
1878
+#ifndef LT_DLLAZY_OR_NOW
1880
+# define LT_DLLAZY_OR_NOW RTLD_LAZY
1883
+# define LT_DLLAZY_OR_NOW DL_LAZY
1886
+# define LT_DLLAZY_OR_NOW RTLD_NOW
1889
+# define LT_DLLAZY_OR_NOW DL_NOW
1891
+# define LT_DLLAZY_OR_NOW 0
1898
+void fnord() { int i=42;}
1901
+ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1902
+ int status = $lt_dlunknown;
1906
+ if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1907
+ else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1908
+ /* dlclose (self); */
1911
+ puts (dlerror ());
1916
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1917
+ (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1919
+ case x$lt_status in
1920
+ x$lt_dlno_uscore) $1 ;;
1921
+ x$lt_dlneed_uscore) $2 ;;
1922
+ x$lt_dlunknown|x*) $3 ;;
1925
+ # compilation failed
1930
+])# _LT_TRY_DLOPEN_SELF
1933
+# LT_SYS_DLOPEN_SELF
1934
+# ------------------
1935
+AC_DEFUN([LT_SYS_DLOPEN_SELF],
1936
+[m4_require([_LT_HEADER_DLFCN])dnl
1937
+if test "x$enable_dlopen" != xyes; then
1938
+ enable_dlopen=unknown
1939
+ enable_dlopen_self=unknown
1940
+ enable_dlopen_self_static=unknown
1943
+ lt_cv_dlopen_libs=
1947
+ lt_cv_dlopen="load_add_on"
1948
+ lt_cv_dlopen_libs=
1949
+ lt_cv_dlopen_self=yes
1952
+ mingw* | pw32* | cegcc*)
1953
+ lt_cv_dlopen="LoadLibrary"
1954
+ lt_cv_dlopen_libs=
1958
+ lt_cv_dlopen="dlopen"
1959
+ lt_cv_dlopen_libs=
1963
+ # if libdl is installed we need to link against it
1964
+ AC_CHECK_LIB([dl], [dlopen],
1965
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1966
+ lt_cv_dlopen="dyld"
1967
+ lt_cv_dlopen_libs=
1968
+ lt_cv_dlopen_self=yes
1973
+ AC_CHECK_FUNC([shl_load],
1974
+ [lt_cv_dlopen="shl_load"],
1975
+ [AC_CHECK_LIB([dld], [shl_load],
1976
+ [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1977
+ [AC_CHECK_FUNC([dlopen],
1978
+ [lt_cv_dlopen="dlopen"],
1979
+ [AC_CHECK_LIB([dl], [dlopen],
1980
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1981
+ [AC_CHECK_LIB([svld], [dlopen],
1982
+ [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1983
+ [AC_CHECK_LIB([dld], [dld_link],
1984
+ [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1993
+ if test "x$lt_cv_dlopen" != xno; then
1999
+ case $lt_cv_dlopen in
2001
+ save_CPPFLAGS="$CPPFLAGS"
2002
+ test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2004
+ save_LDFLAGS="$LDFLAGS"
2005
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2008
+ LIBS="$lt_cv_dlopen_libs $LIBS"
2010
+ AC_CACHE_CHECK([whether a program can dlopen itself],
2011
+ lt_cv_dlopen_self, [dnl
2012
+ _LT_TRY_DLOPEN_SELF(
2013
+ lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2014
+ lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2017
+ if test "x$lt_cv_dlopen_self" = xyes; then
2018
+ wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2019
+ AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2020
+ lt_cv_dlopen_self_static, [dnl
2021
+ _LT_TRY_DLOPEN_SELF(
2022
+ lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2023
+ lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2027
+ CPPFLAGS="$save_CPPFLAGS"
2028
+ LDFLAGS="$save_LDFLAGS"
2033
+ case $lt_cv_dlopen_self in
2034
+ yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2035
+ *) enable_dlopen_self=unknown ;;
2038
+ case $lt_cv_dlopen_self_static in
2039
+ yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2040
+ *) enable_dlopen_self_static=unknown ;;
2043
+_LT_DECL([dlopen_support], [enable_dlopen], [0],
2044
+ [Whether dlopen is supported])
2045
+_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2046
+ [Whether dlopen of programs is supported])
2047
+_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2048
+ [Whether dlopen of statically linked programs is supported])
2049
+])# LT_SYS_DLOPEN_SELF
2052
+AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2053
+dnl aclocal-1.4 backwards compatibility:
2054
+dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2057
+# _LT_COMPILER_C_O([TAGNAME])
2058
+# ---------------------------
2059
+# Check to see if options -c and -o are simultaneously supported by compiler.
2060
+# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2061
+m4_defun([_LT_COMPILER_C_O],
2062
+[m4_require([_LT_DECL_SED])dnl
2063
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2064
+m4_require([_LT_TAG_COMPILER])dnl
2065
+AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2066
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2067
+ [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2068
+ $RM -r conftest 2>/dev/null
2072
+ echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2074
+ lt_compiler_flag="-o out/conftest2.$ac_objext"
2075
+ # Insert the option either (1) after the last *FLAGS variable, or
2076
+ # (2) before a word containing "conftest.", or (3) at the end.
2077
+ # Note that $ac_compile itself does not contain backslashes and begins
2078
+ # with a dollar sign (not a hyphen), so the echo should work correctly.
2079
+ lt_compile=`echo "$ac_compile" | $SED \
2080
+ -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2081
+ -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2082
+ -e 's:$: $lt_compiler_flag:'`
2083
+ (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2084
+ (eval "$lt_compile" 2>out/conftest.err)
2086
+ cat out/conftest.err >&AS_MESSAGE_LOG_FD
2087
+ echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2088
+ if (exit $ac_status) && test -s out/conftest2.$ac_objext
2090
+ # The compiler can only warn and ignore the option if not recognized
2091
+ # So say no if there are warnings
2092
+ $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2093
+ $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2094
+ if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2095
+ _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2098
+ chmod u+w . 2>&AS_MESSAGE_LOG_FD
2100
+ # SGI C++ compiler will create directory out/ii_files/ for
2101
+ # template instantiation
2102
+ test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2103
+ $RM out/* && rmdir out
2108
+_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2109
+ [Does compiler simultaneously support -c and -o options?])
2110
+])# _LT_COMPILER_C_O
2113
+# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2114
+# ----------------------------------
2115
+# Check to see if we can do hard links to lock some files if needed
2116
+m4_defun([_LT_COMPILER_FILE_LOCKS],
2117
+[m4_require([_LT_ENABLE_LOCK])dnl
2118
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2119
+_LT_COMPILER_C_O([$1])
2121
+hard_links="nottested"
2122
+if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2123
+ # do not overwrite the value of need_locks provided by the user
2124
+ AC_MSG_CHECKING([if we can lock with hard links])
2127
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
2129
+ ln conftest.a conftest.b 2>&5 || hard_links=no
2130
+ ln conftest.a conftest.b 2>/dev/null && hard_links=no
2131
+ AC_MSG_RESULT([$hard_links])
2132
+ if test "$hard_links" = no; then
2133
+ AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2139
+_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2140
+])# _LT_COMPILER_FILE_LOCKS
2145
+m4_defun([_LT_CHECK_OBJDIR],
2146
+[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2147
+[rm -f .libs 2>/dev/null
2148
+mkdir .libs 2>/dev/null
2149
+if test -d .libs; then
2150
+ lt_cv_objdir=.libs
2152
+ # MS-DOS does not allow filenames that begin with a dot.
2153
+ lt_cv_objdir=_libs
2155
+rmdir .libs 2>/dev/null])
2156
+objdir=$lt_cv_objdir
2157
+_LT_DECL([], [objdir], [0],
2158
+ [The name of the directory that contains temporary libtool files])dnl
2159
+m4_pattern_allow([LT_OBJDIR])dnl
2160
+AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2161
+ [Define to the sub-directory in which libtool stores uninstalled libraries.])
2162
+])# _LT_CHECK_OBJDIR
2165
+# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2166
+# --------------------------------------
2167
+# Check hardcoding attributes.
2168
+m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2169
+[AC_MSG_CHECKING([how to hardcode library paths into programs])
2170
+_LT_TAGVAR(hardcode_action, $1)=
2171
+if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2172
+ test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2173
+ test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2175
+ # We can hardcode non-existent directories.
2176
+ if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2177
+ # If the only mechanism to avoid hardcoding is shlibpath_var, we
2178
+ # have to relink, otherwise we might link with an installed library
2179
+ # when we should be linking with a yet-to-be-installed one
2180
+ ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2181
+ test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2182
+ # Linking always hardcodes the temporary library directory.
2183
+ _LT_TAGVAR(hardcode_action, $1)=relink
2185
+ # We can link without hardcoding, and we can hardcode nonexisting dirs.
2186
+ _LT_TAGVAR(hardcode_action, $1)=immediate
2189
+ # We cannot hardcode anything, or else we can only hardcode existing
2191
+ _LT_TAGVAR(hardcode_action, $1)=unsupported
2193
+AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2195
+if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2196
+ test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2197
+ # Fast installation is not supported
2198
+ enable_fast_install=no
2199
+elif test "$shlibpath_overrides_runpath" = yes ||
2200
+ test "$enable_shared" = no; then
2201
+ # Fast installation is not necessary
2202
+ enable_fast_install=needless
2204
+_LT_TAGDECL([], [hardcode_action], [0],
2205
+ [How to hardcode a shared library path into an executable])
2206
+])# _LT_LINKER_HARDCODE_LIBPATH
2211
+m4_defun([_LT_CMD_STRIPLIB],
2212
+[m4_require([_LT_DECL_EGREP])
2215
+AC_MSG_CHECKING([whether stripping libraries is possible])
2216
+if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2217
+ test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2218
+ test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2219
+ AC_MSG_RESULT([yes])
2221
+# FIXME - insert some real tests, host_os isn't really good enough
2224
+ if test -n "$STRIP" ; then
2225
+ striplib="$STRIP -x"
2226
+ old_striplib="$STRIP -S"
2227
+ AC_MSG_RESULT([yes])
2229
+ AC_MSG_RESULT([no])
2233
+ AC_MSG_RESULT([no])
2237
+_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2238
+_LT_DECL([], [striplib], [1])
2239
+])# _LT_CMD_STRIPLIB
2242
+# _LT_SYS_DYNAMIC_LINKER([TAG])
2243
+# -----------------------------
2244
+# PORTME Fill in your ld.so characteristics
2245
+m4_defun([_LT_SYS_DYNAMIC_LINKER],
2246
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2247
+m4_require([_LT_DECL_EGREP])dnl
2248
+m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2249
+m4_require([_LT_DECL_OBJDUMP])dnl
2250
+m4_require([_LT_DECL_SED])dnl
2251
+AC_MSG_CHECKING([dynamic linker characteristics])
2254
+if test "$GCC" = yes; then
2256
+ darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2257
+ *) lt_awk_arg="/^libraries:/" ;;
2259
+ lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2260
+ if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2261
+ # if the path contains ";" then we assume it to be the separator
2262
+ # otherwise default to the standard path separator (i.e. ":") - it is
2263
+ # assumed that no part of a normal pathname contains ";" but that should
2264
+ # okay in the real world where ";" in dirpaths is itself problematic.
2265
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2267
+ lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2269
+ # Ok, now we have the path, separated by spaces, we can step through it
2270
+ # and add multilib dir if necessary.
2271
+ lt_tmp_lt_search_path_spec=
2272
+ lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2273
+ for lt_sys_path in $lt_search_path_spec; do
2274
+ if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2275
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2277
+ test -d "$lt_sys_path" && \
2278
+ lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2281
+ lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2282
+BEGIN {RS=" "; FS="/|\n";} {
2285
+ for (lt_i = NF; lt_i > 0; lt_i--) {
2286
+ if ($lt_i != "" && $lt_i != ".") {
2287
+ if ($lt_i == "..") {
2290
+ if (lt_count == 0) {
2291
+ lt_foo="/" $lt_i lt_foo;
2298
+ if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2299
+ if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2301
+ sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2303
+ sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2305
+library_names_spec=
2306
+libname_spec='lib$name'
2310
+postuninstall_cmds=
2314
+shlibpath_overrides_runpath=unknown
2316
+dynamic_linker="$host_os ld.so"
2317
+sys_lib_dlsearch_path_spec="/lib /usr/lib"
2318
+need_lib_prefix=unknown
2319
+hardcode_into_libs=no
2321
+# when you set need_version to no, make sure it does not cause -set_version
2322
+# flags to be left without arguments
2323
+need_version=unknown
2327
+ version_type=linux
2328
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2329
+ shlibpath_var=LIBPATH
2331
+ # AIX 3 has no versioning support, so we append a major version to the name.
2332
+ soname_spec='${libname}${release}${shared_ext}$major'
2336
+ version_type=linux
2337
+ need_lib_prefix=no
2339
+ hardcode_into_libs=yes
2340
+ if test "$host_cpu" = ia64; then
2341
+ # AIX 5 supports IA64
2342
+ library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2343
+ shlibpath_var=LD_LIBRARY_PATH
2345
+ # With GCC up to 2.95.x, collect2 would create an import file
2346
+ # for dependence libraries. The import file would start with
2347
+ # the line `#! .'. This would cause the generated library to
2348
+ # depend on `.', always an invalid library. This was fixed in
2349
+ # development snapshots of GCC prior to 3.0.
2351
+ aix4 | aix4.[[01]] | aix4.[[01]].*)
2352
+ if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2354
+ echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2357
+ can_build_shared=no
2361
+ # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2362
+ # soname into executable. Probably we can add versioning support to
2363
+ # collect2, so additional links can be useful in future.
2364
+ if test "$aix_use_runtimelinking" = yes; then
2365
+ # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2366
+ # instead of lib<name>.a to let people know that these are not
2367
+ # typical AIX shared libraries.
2368
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2370
+ # We preserve .a as extension for shared libraries through AIX4.2
2371
+ # and later when we are not doing run time linking.
2372
+ library_names_spec='${libname}${release}.a $libname.a'
2373
+ soname_spec='${libname}${release}${shared_ext}$major'
2375
+ shlibpath_var=LIBPATH
2382
+ # Since July 2007 AmigaOS4 officially supports .so libraries.
2383
+ # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2384
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2387
+ library_names_spec='$libname.ixlibrary $libname.a'
2388
+ # Create ${libname}_ixlibrary.a entries in /sys/libs.
2389
+ 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'
2395
+ library_names_spec='${libname}${shared_ext}'
2396
+ dynamic_linker="$host_os ld.so"
2397
+ shlibpath_var=LIBRARY_PATH
2401
+ version_type=linux
2403
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2404
+ soname_spec='${libname}${release}${shared_ext}$major'
2405
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2406
+ shlibpath_var=LD_LIBRARY_PATH
2407
+ sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2408
+ sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2409
+ # the default ld.so.conf also contains /usr/contrib/lib and
2410
+ # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2411
+ # libtool to hard-code these into programs
2414
+cygwin* | mingw* | pw32* | cegcc*)
2415
+ version_type=windows
2416
+ shrext_cmds=".dll"
2418
+ need_lib_prefix=no
2420
+ case $GCC,$host_os in
2421
+ yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2422
+ library_names_spec='$libname.dll.a'
2423
+ # DLL is installed to $(libdir)/../bin by postinstall_cmds
2424
+ postinstall_cmds='base_file=`basename \${file}`~
2425
+ dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2426
+ dldir=$destdir/`dirname \$dlpath`~
2427
+ test -d \$dldir || mkdir -p \$dldir~
2428
+ $install_prog $dir/$dlname \$dldir/$dlname~
2429
+ chmod a+x \$dldir/$dlname~
2430
+ if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2431
+ eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2433
+ postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2434
+ dlpath=$dir/\$dldll~
2436
+ shlibpath_overrides_runpath=yes
2440
+ # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2441
+ soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2442
+ sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2445
+ # MinGW DLLs use traditional 'lib' prefix
2446
+ soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2447
+ sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2448
+ if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2449
+ # It is most probably a Windows format PATH printed by
2450
+ # mingw gcc, but we are running on Cygwin. Gcc prints its search
2451
+ # path with ; separators, and with drive letters. We can handle the
2452
+ # drive letters (cygwin fileutils understands them), so leave them,
2453
+ # especially as we might pass files found there to a mingw objdump,
2454
+ # which wouldn't understand a cygwinified path. Ahh.
2455
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2457
+ sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2461
+ # pw32 DLLs use 'pw' prefix rather than 'lib'
2462
+ library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2468
+ library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2471
+ dynamic_linker='Win32 ld.exe'
2472
+ # FIXME: first we should search . and the directory the executable is in
2473
+ shlibpath_var=PATH
2476
+darwin* | rhapsody*)
2477
+ dynamic_linker="$host_os dyld"
2478
+ version_type=darwin
2479
+ need_lib_prefix=no
2481
+ library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2482
+ soname_spec='${libname}${release}${major}$shared_ext'
2483
+ shlibpath_overrides_runpath=yes
2484
+ shlibpath_var=DYLD_LIBRARY_PATH
2485
+ shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2487
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2488
+ sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2492
+ version_type=linux
2493
+ need_lib_prefix=no
2495
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2496
+ soname_spec='${libname}${release}${shared_ext}$major'
2497
+ shlibpath_var=LD_LIBRARY_PATH
2504
+freebsd* | dragonfly*)
2505
+ # DragonFly does not have aout. When/if they implement a new
2506
+ # versioning mechanism, adjust this.
2507
+ if test -x /usr/bin/objformat; then
2508
+ objformat=`/usr/bin/objformat`
2511
+ freebsd[[123]]*) objformat=aout ;;
2512
+ *) objformat=elf ;;
2515
+ version_type=freebsd-$objformat
2516
+ case $version_type in
2518
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2520
+ need_lib_prefix=no
2523
+ library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2527
+ shlibpath_var=LD_LIBRARY_PATH
2530
+ shlibpath_overrides_runpath=yes
2532
+ freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2533
+ shlibpath_overrides_runpath=yes
2534
+ hardcode_into_libs=yes
2536
+ freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2537
+ freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2538
+ shlibpath_overrides_runpath=no
2539
+ hardcode_into_libs=yes
2541
+ *) # from 4.6 on, and DragonFly
2542
+ shlibpath_overrides_runpath=yes
2543
+ hardcode_into_libs=yes
2549
+ version_type=linux
2550
+ need_lib_prefix=no
2552
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2553
+ soname_spec='${libname}${release}${shared_ext}$major'
2554
+ shlibpath_var=LD_LIBRARY_PATH
2555
+ hardcode_into_libs=yes
2558
+hpux9* | hpux10* | hpux11*)
2559
+ # Give a soname corresponding to the major version so that dld.sl refuses to
2560
+ # link against other versions.
2561
+ version_type=sunos
2562
+ need_lib_prefix=no
2567
+ hardcode_into_libs=yes
2568
+ dynamic_linker="$host_os dld.so"
2569
+ shlibpath_var=LD_LIBRARY_PATH
2570
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2571
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2572
+ soname_spec='${libname}${release}${shared_ext}$major'
2573
+ if test "X$HPUX_IA64_MODE" = X32; then
2574
+ sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2576
+ sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2578
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2582
+ hardcode_into_libs=yes
2583
+ dynamic_linker="$host_os dld.sl"
2584
+ shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2585
+ shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2586
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2587
+ soname_spec='${libname}${release}${shared_ext}$major'
2588
+ sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2589
+ sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2593
+ dynamic_linker="$host_os dld.sl"
2594
+ shlibpath_var=SHLIB_PATH
2595
+ shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2596
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2597
+ soname_spec='${libname}${release}${shared_ext}$major'
2600
+ # HP-UX runs *really* slowly unless shared libraries are mode 555.
2601
+ postinstall_cmds='chmod 555 $lib'
2605
+ version_type=linux
2606
+ need_lib_prefix=no
2608
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2609
+ soname_spec='${libname}${release}${shared_ext}$major'
2610
+ dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2611
+ shlibpath_var=LD_LIBRARY_PATH
2612
+ shlibpath_overrides_runpath=no
2613
+ hardcode_into_libs=yes
2616
+irix5* | irix6* | nonstopux*)
2618
+ nonstopux*) version_type=nonstopux ;;
2620
+ if test "$lt_cv_prog_gnu_ld" = yes; then
2621
+ version_type=linux
2626
+ need_lib_prefix=no
2628
+ soname_spec='${libname}${release}${shared_ext}$major'
2629
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2631
+ irix5* | nonstopux*)
2632
+ libsuff= shlibsuff=
2635
+ case $LD in # libtool.m4 will add one of these switches to LD
2636
+ *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2637
+ libsuff= shlibsuff= libmagic=32-bit;;
2638
+ *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2639
+ libsuff=32 shlibsuff=N32 libmagic=N32;;
2640
+ *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2641
+ libsuff=64 shlibsuff=64 libmagic=64-bit;;
2642
+ *) libsuff= shlibsuff= libmagic=never-match;;
2646
+ shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2647
+ shlibpath_overrides_runpath=no
2648
+ sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2649
+ sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2650
+ hardcode_into_libs=yes
2653
+# No shared lib support for Linux oldld, aout, or coff.
2654
+linux*oldld* | linux*aout* | linux*coff*)
2658
+# This must be Linux ELF.
2659
+linux* | k*bsd*-gnu)
2660
+ version_type=linux
2661
+ need_lib_prefix=no
2663
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2664
+ soname_spec='${libname}${release}${shared_ext}$major'
2665
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2666
+ shlibpath_var=LD_LIBRARY_PATH
2667
+ shlibpath_overrides_runpath=no
2668
+ # Some binutils ld are patched to set DT_RUNPATH
2669
+ save_LDFLAGS=$LDFLAGS
2670
+ save_libdir=$libdir
2671
+ eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2672
+ LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2673
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2674
+ [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2675
+ [shlibpath_overrides_runpath=yes])])
2676
+ LDFLAGS=$save_LDFLAGS
2677
+ libdir=$save_libdir
2679
+ # This implies no fast_install, which is unacceptable.
2680
+ # Some rework will be needed to allow for fast_install
2681
+ # before this can be enabled.
2682
+ hardcode_into_libs=yes
2684
+ # Append ld.so.conf contents to the search path
2685
+ if test -f /etc/ld.so.conf; then
2686
+ 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' ' '`
2687
+ sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2690
+ # We used to test for /lib/ld.so.1 and disable shared libraries on
2691
+ # powerpc, because MkLinux only supported shared libraries with the
2692
+ # GNU dynamic linker. Since this was broken with cross compilers,
2693
+ # most powerpc-linux boxes support dynamic linking these days and
2694
+ # people can always --disable-shared, the test was removed, and we
2695
+ # assume the GNU/Linux dynamic linker is in use.
2696
+ dynamic_linker='GNU/Linux ld.so'
2700
+ version_type=linux
2701
+ need_lib_prefix=no
2703
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2704
+ soname_spec='${libname}${release}${shared_ext}$major'
2705
+ shlibpath_var=LD_LIBRARY_PATH
2706
+ shlibpath_overrides_runpath=no
2707
+ hardcode_into_libs=yes
2708
+ dynamic_linker='NetBSD ld.elf_so'
2712
+ version_type=sunos
2713
+ need_lib_prefix=no
2715
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2716
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2717
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2718
+ dynamic_linker='NetBSD (a.out) ld.so'
2720
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2721
+ soname_spec='${libname}${release}${shared_ext}$major'
2722
+ dynamic_linker='NetBSD ld.elf_so'
2724
+ shlibpath_var=LD_LIBRARY_PATH
2725
+ shlibpath_overrides_runpath=yes
2726
+ hardcode_into_libs=yes
2730
+ version_type=linux
2731
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2732
+ shlibpath_var=LD_LIBRARY_PATH
2733
+ shlibpath_overrides_runpath=yes
2738
+ need_lib_prefix=no
2740
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2741
+ soname_spec='${libname}${release}${shared_ext}$major'
2742
+ shlibpath_var=LD_LIBRARY_PATH
2743
+ shlibpath_overrides_runpath=no
2744
+ hardcode_into_libs=yes
2745
+ dynamic_linker='ldqnx.so'
2749
+ version_type=sunos
2750
+ sys_lib_dlsearch_path_spec="/usr/lib"
2751
+ need_lib_prefix=no
2752
+ # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2754
+ openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2755
+ *) need_version=no ;;
2757
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2758
+ finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2759
+ shlibpath_var=LD_LIBRARY_PATH
2760
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2762
+ openbsd2.[[89]] | openbsd2.[[89]].*)
2763
+ shlibpath_overrides_runpath=no
2766
+ shlibpath_overrides_runpath=yes
2770
+ shlibpath_overrides_runpath=yes
2775
+ libname_spec='$name'
2776
+ shrext_cmds=".dll"
2777
+ need_lib_prefix=no
2778
+ library_names_spec='$libname${shared_ext} $libname.a'
2779
+ dynamic_linker='OS/2 ld.exe'
2780
+ shlibpath_var=LIBPATH
2783
+osf3* | osf4* | osf5*)
2785
+ need_lib_prefix=no
2787
+ soname_spec='${libname}${release}${shared_ext}$major'
2788
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2789
+ shlibpath_var=LD_LIBRARY_PATH
2790
+ sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2791
+ sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2799
+ version_type=linux
2800
+ need_lib_prefix=no
2802
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2803
+ soname_spec='${libname}${release}${shared_ext}$major'
2804
+ shlibpath_var=LD_LIBRARY_PATH
2805
+ shlibpath_overrides_runpath=yes
2806
+ hardcode_into_libs=yes
2807
+ # ldd complains unless libraries are executable
2808
+ postinstall_cmds='chmod +x $lib'
2812
+ version_type=sunos
2813
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2814
+ finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2815
+ shlibpath_var=LD_LIBRARY_PATH
2816
+ shlibpath_overrides_runpath=yes
2817
+ if test "$with_gnu_ld" = yes; then
2818
+ need_lib_prefix=no
2824
+ version_type=linux
2825
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2826
+ soname_spec='${libname}${release}${shared_ext}$major'
2827
+ shlibpath_var=LD_LIBRARY_PATH
2828
+ case $host_vendor in
2830
+ shlibpath_overrides_runpath=no
2831
+ need_lib_prefix=no
2832
+ runpath_var=LD_RUN_PATH
2835
+ need_lib_prefix=no
2838
+ need_lib_prefix=no
2840
+ shlibpath_overrides_runpath=no
2841
+ sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2847
+ if test -d /usr/nec ;then
2848
+ version_type=linux
2849
+ library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2850
+ soname_spec='$libname${shared_ext}.$major'
2851
+ shlibpath_var=LD_LIBRARY_PATH
2855
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2856
+ version_type=freebsd-elf
2857
+ need_lib_prefix=no
2859
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2860
+ soname_spec='${libname}${release}${shared_ext}$major'
2861
+ shlibpath_var=LD_LIBRARY_PATH
2862
+ shlibpath_overrides_runpath=yes
2863
+ hardcode_into_libs=yes
2864
+ if test "$with_gnu_ld" = yes; then
2865
+ sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2867
+ sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2870
+ sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2874
+ sys_lib_dlsearch_path_spec='/usr/lib'
2878
+ # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2879
+ version_type=linux
2880
+ need_lib_prefix=no
2882
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2883
+ shlibpath_var=LD_LIBRARY_PATH
2884
+ shlibpath_overrides_runpath=no
2885
+ hardcode_into_libs=yes
2889
+ version_type=linux
2890
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2891
+ soname_spec='${libname}${release}${shared_ext}$major'
2892
+ shlibpath_var=LD_LIBRARY_PATH
2899
+AC_MSG_RESULT([$dynamic_linker])
2900
+test "$dynamic_linker" = no && can_build_shared=no
2902
+variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2903
+if test "$GCC" = yes; then
2904
+ variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2907
+if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2908
+ sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2910
+if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2911
+ sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2914
+_LT_DECL([], [variables_saved_for_relink], [1],
2915
+ [Variables whose values should be saved in libtool wrapper scripts and
2916
+ restored at link time])
2917
+_LT_DECL([], [need_lib_prefix], [0],
2918
+ [Do we need the "lib" prefix for modules?])
2919
+_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2920
+_LT_DECL([], [version_type], [0], [Library versioning type])
2921
+_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2922
+_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2923
+_LT_DECL([], [shlibpath_overrides_runpath], [0],
2924
+ [Is shlibpath searched before the hard-coded library search path?])
2925
+_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2926
+_LT_DECL([], [library_names_spec], [1],
2927
+ [[List of archive names. First name is the real one, the rest are links.
2928
+ The last name is the one that the linker finds with -lNAME]])
2929
+_LT_DECL([], [soname_spec], [1],
2930
+ [[The coded name of the library, if different from the real name]])
2931
+_LT_DECL([], [postinstall_cmds], [2],
2932
+ [Command to use after installation of a shared archive])
2933
+_LT_DECL([], [postuninstall_cmds], [2],
2934
+ [Command to use after uninstallation of a shared archive])
2935
+_LT_DECL([], [finish_cmds], [2],
2936
+ [Commands used to finish a libtool library installation in a directory])
2937
+_LT_DECL([], [finish_eval], [1],
2938
+ [[As "finish_cmds", except a single script fragment to be evaled but
2940
+_LT_DECL([], [hardcode_into_libs], [0],
2941
+ [Whether we should hardcode library paths into libraries])
2942
+_LT_DECL([], [sys_lib_search_path_spec], [2],
2943
+ [Compile-time system search path for libraries])
2944
+_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2945
+ [Run-time system search path for libraries])
2946
+])# _LT_SYS_DYNAMIC_LINKER
2949
+# _LT_PATH_TOOL_PREFIX(TOOL)
2950
+# --------------------------
2951
+# find a file program which can recognize shared library
2952
+AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2953
+[m4_require([_LT_DECL_EGREP])dnl
2954
+AC_MSG_CHECKING([for $1])
2955
+AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2956
+[case $MAGIC_CMD in
2957
+[[\\/*] | ?:[\\/]*])
2958
+ lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2961
+ lt_save_MAGIC_CMD="$MAGIC_CMD"
2962
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2963
+dnl $ac_dummy forces splitting on constant user-supplied paths.
2964
+dnl POSIX.2 word splitting is done only on the output of word expansions,
2965
+dnl not every word. This closes a longstanding sh security hole.
2966
+ ac_dummy="m4_if([$2], , $PATH, [$2])"
2967
+ for ac_dir in $ac_dummy; do
2968
+ IFS="$lt_save_ifs"
2969
+ test -z "$ac_dir" && ac_dir=.
2970
+ if test -f $ac_dir/$1; then
2971
+ lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2972
+ if test -n "$file_magic_test_file"; then
2973
+ case $deplibs_check_method in
2975
+ file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2976
+ MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2977
+ if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2978
+ $EGREP "$file_magic_regex" > /dev/null; then
2981
+ cat <<_LT_EOF 1>&2
2983
+*** Warning: the command libtool uses to detect shared libraries,
2984
+*** $file_magic_cmd, produces output that libtool cannot recognize.
2985
+*** The result is that libtool may fail to recognize shared libraries
2986
+*** as such. This will affect the creation of libtool libraries that
2987
+*** depend on shared libraries, but programs linked with such libtool
2988
+*** libraries will work regardless of this problem. Nevertheless, you
2989
+*** may want to report the problem to your system manager and/or to
2990
+*** bug-libtool@gnu.org
2999
+ IFS="$lt_save_ifs"
3000
+ MAGIC_CMD="$lt_save_MAGIC_CMD"
3003
+MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3004
+if test -n "$MAGIC_CMD"; then
3005
+ AC_MSG_RESULT($MAGIC_CMD)
3009
+_LT_DECL([], [MAGIC_CMD], [0],
3010
+ [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3011
+])# _LT_PATH_TOOL_PREFIX
3014
+AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3015
+dnl aclocal-1.4 backwards compatibility:
3016
+dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3021
+# find a file program which can recognize a shared library
3022
+m4_defun([_LT_PATH_MAGIC],
3023
+[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3024
+if test -z "$lt_cv_path_MAGIC_CMD"; then
3025
+ if test -n "$ac_tool_prefix"; then
3026
+ _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3036
+# find the pathname to the GNU or non-GNU linker
3037
+AC_DEFUN([LT_PATH_LD],
3038
+[AC_REQUIRE([AC_PROG_CC])dnl
3039
+AC_REQUIRE([AC_CANONICAL_HOST])dnl
3040
+AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3041
+m4_require([_LT_DECL_SED])dnl
3042
+m4_require([_LT_DECL_EGREP])dnl
3044
+AC_ARG_WITH([gnu-ld],
3045
+ [AS_HELP_STRING([--with-gnu-ld],
3046
+ [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3047
+ [test "$withval" = no || with_gnu_ld=yes],
3048
+ [with_gnu_ld=no])dnl
3051
+if test "$GCC" = yes; then
3052
+ # Check if gcc -print-prog-name=ld gives a path.
3053
+ AC_MSG_CHECKING([for ld used by $CC])
3056
+ # gcc leaves a trailing carriage return which upsets mingw
3057
+ ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3059
+ ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3062
+ # Accept absolute paths.
3063
+ [[\\/]]* | ?:[[\\/]]*)
3064
+ re_direlt='/[[^/]][[^/]]*/\.\./'
3065
+ # Canonicalize the pathname of ld
3066
+ ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3067
+ while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3068
+ ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3070
+ test -z "$LD" && LD="$ac_prog"
3073
+ # If it fails, then pretend we aren't using GCC.
3077
+ # If it is relative, then search for the first ld in PATH.
3078
+ with_gnu_ld=unknown
3081
+elif test "$with_gnu_ld" = yes; then
3082
+ AC_MSG_CHECKING([for GNU ld])
3084
+ AC_MSG_CHECKING([for non-GNU ld])
3086
+AC_CACHE_VAL(lt_cv_path_LD,
3087
+[if test -z "$LD"; then
3088
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3089
+ for ac_dir in $PATH; do
3090
+ IFS="$lt_save_ifs"
3091
+ test -z "$ac_dir" && ac_dir=.
3092
+ if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3093
+ lt_cv_path_LD="$ac_dir/$ac_prog"
3094
+ # Check to see if the program is GNU ld. I'd rather use --version,
3095
+ # but apparently some variants of GNU ld only accept -v.
3096
+ # Break only if it was the GNU/non-GNU ld that we prefer.
3097
+ case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3098
+ *GNU* | *'with BFD'*)
3099
+ test "$with_gnu_ld" != no && break
3102
+ test "$with_gnu_ld" != yes && break
3107
+ IFS="$lt_save_ifs"
3109
+ lt_cv_path_LD="$LD" # Let the user override the test with a path.
3111
+LD="$lt_cv_path_LD"
3112
+if test -n "$LD"; then
3113
+ AC_MSG_RESULT($LD)
3117
+test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3121
+_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3125
+AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3126
+AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3127
+dnl aclocal-1.4 backwards compatibility:
3128
+dnl AC_DEFUN([AM_PROG_LD], [])
3129
+dnl AC_DEFUN([AC_PROG_LD], [])
3134
+m4_defun([_LT_PATH_LD_GNU],
3135
+[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3136
+[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3137
+case `$LD -v 2>&1 </dev/null` in
3138
+*GNU* | *'with BFD'*)
3139
+ lt_cv_prog_gnu_ld=yes
3142
+ lt_cv_prog_gnu_ld=no
3145
+with_gnu_ld=$lt_cv_prog_gnu_ld
3146
+])# _LT_PATH_LD_GNU
3151
+# find reload flag for linker
3152
+# -- PORTME Some linkers may need a different reload flag.
3153
+m4_defun([_LT_CMD_RELOAD],
3154
+[AC_CACHE_CHECK([for $LD option to reload object files],
3155
+ lt_cv_ld_reload_flag,
3156
+ [lt_cv_ld_reload_flag='-r'])
3157
+reload_flag=$lt_cv_ld_reload_flag
3158
+case $reload_flag in
3160
+*) reload_flag=" $reload_flag" ;;
3162
+reload_cmds='$LD$reload_flag -o $output$reload_objs'
3165
+ if test "$GCC" = yes; then
3166
+ reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3168
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
3172
+_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3173
+_LT_DECL([], [reload_cmds], [2])dnl
3177
+# _LT_CHECK_MAGIC_METHOD
3178
+# ----------------------
3179
+# how to check for library dependencies
3180
+# -- PORTME fill in with the dynamic library characteristics
3181
+m4_defun([_LT_CHECK_MAGIC_METHOD],
3182
+[m4_require([_LT_DECL_EGREP])
3183
+m4_require([_LT_DECL_OBJDUMP])
3184
+AC_CACHE_CHECK([how to recognize dependent libraries],
3185
+lt_cv_deplibs_check_method,
3186
+[lt_cv_file_magic_cmd='$MAGIC_CMD'
3187
+lt_cv_file_magic_test_file=
3188
+lt_cv_deplibs_check_method='unknown'
3189
+# Need to set the preceding variable on all platforms that support
3190
+# interlibrary dependencies.
3191
+# 'none' -- dependencies not supported.
3192
+# `unknown' -- same as none, but documents that we really don't know.
3193
+# 'pass_all' -- all dependencies passed with no checks.
3194
+# 'test_compile' -- check by making test program.
3195
+# 'file_magic [[regex]]' -- check by looking for files in library path
3196
+# which responds to the $file_magic_cmd with a given extended regex.
3197
+# If you have `file' or equivalent on your system and you're not sure
3198
+# whether `pass_all' will *always* work, you probably want this one.
3202
+ lt_cv_deplibs_check_method=pass_all
3206
+ lt_cv_deplibs_check_method=pass_all
3210
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3211
+ lt_cv_file_magic_cmd='/usr/bin/file -L'
3212
+ lt_cv_file_magic_test_file=/shlib/libc.so
3216
+ # func_win32_libid is a shell function defined in ltmain.sh
3217
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3218
+ lt_cv_file_magic_cmd='func_win32_libid'
3222
+ # Base MSYS/MinGW do not provide the 'file' command needed by
3223
+ # func_win32_libid shell function, so use a weaker test based on 'objdump',
3224
+ # unless we find 'file', for example because we are cross-compiling.
3225
+ if ( file / ) >/dev/null 2>&1; then
3226
+ lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3227
+ lt_cv_file_magic_cmd='func_win32_libid'
3229
+ lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3230
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
3235
+ # use the weaker test based on 'objdump'. See mingw*.
3236
+ lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3237
+ lt_cv_file_magic_cmd='$OBJDUMP -f'
3240
+darwin* | rhapsody*)
3241
+ lt_cv_deplibs_check_method=pass_all
3244
+freebsd* | dragonfly*)
3245
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3248
+ # Not sure whether the presence of OpenBSD here was a mistake.
3249
+ # Let's accept both of them until this is cleared up.
3250
+ lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3251
+ lt_cv_file_magic_cmd=/usr/bin/file
3252
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3256
+ lt_cv_deplibs_check_method=pass_all
3261
+ lt_cv_deplibs_check_method=pass_all
3264
+hpux10.20* | hpux11*)
3265
+ lt_cv_file_magic_cmd=/usr/bin/file
3268
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3269
+ lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3272
+ [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]']
3273
+ lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3276
+ lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3277
+ lt_cv_file_magic_test_file=/usr/lib/libc.sl
3283
+ # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3284
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3287
+irix5* | irix6* | nonstopux*)
3289
+ *-32|*"-32 ") libmagic=32-bit;;
3290
+ *-n32|*"-n32 ") libmagic=N32;;
3291
+ *-64|*"-64 ") libmagic=64-bit;;
3292
+ *) libmagic=never-match;;
3294
+ lt_cv_deplibs_check_method=pass_all
3297
+# This must be Linux ELF.
3298
+linux* | k*bsd*-gnu)
3299
+ lt_cv_deplibs_check_method=pass_all
3302
+netbsd* | netbsdelf*-gnu)
3303
+ if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3304
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3306
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3311
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3312
+ lt_cv_file_magic_cmd=/usr/bin/file
3313
+ lt_cv_file_magic_test_file=/usr/lib/libnls.so
3317
+ lt_cv_deplibs_check_method=pass_all
3321
+ if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3322
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3324
+ lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3328
+osf3* | osf4* | osf5*)
3329
+ lt_cv_deplibs_check_method=pass_all
3333
+ lt_cv_deplibs_check_method=pass_all
3337
+ lt_cv_deplibs_check_method=pass_all
3340
+sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3341
+ lt_cv_deplibs_check_method=pass_all
3345
+ case $host_vendor in
3347
+ 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]]'
3348
+ lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3351
+ lt_cv_deplibs_check_method=pass_all
3354
+ lt_cv_file_magic_cmd='/bin/file'
3355
+ lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3358
+ lt_cv_file_magic_cmd='/bin/file'
3359
+ lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3360
+ lt_cv_file_magic_test_file=/lib/libc.so
3363
+ lt_cv_deplibs_check_method=pass_all
3366
+ lt_cv_deplibs_check_method=pass_all
3372
+ lt_cv_deplibs_check_method=pass_all
3376
+file_magic_cmd=$lt_cv_file_magic_cmd
3377
+deplibs_check_method=$lt_cv_deplibs_check_method
3378
+test -z "$deplibs_check_method" && deplibs_check_method=unknown
3380
+_LT_DECL([], [deplibs_check_method], [1],
3381
+ [Method to check whether dependent libraries are shared objects])
3382
+_LT_DECL([], [file_magic_cmd], [1],
3383
+ [Command to use when deplibs_check_method == "file_magic"])
3384
+])# _LT_CHECK_MAGIC_METHOD
3389
+# find the pathname to a BSD- or MS-compatible name lister
3390
+AC_DEFUN([LT_PATH_NM],
3391
+[AC_REQUIRE([AC_PROG_CC])dnl
3392
+AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3393
+[if test -n "$NM"; then
3394
+ # Let the user override the test.
3395
+ lt_cv_path_NM="$NM"
3397
+ lt_nm_to_check="${ac_tool_prefix}nm"
3398
+ if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3399
+ lt_nm_to_check="$lt_nm_to_check nm"
3401
+ for lt_tmp_nm in $lt_nm_to_check; do
3402
+ lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3403
+ for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3404
+ IFS="$lt_save_ifs"
3405
+ test -z "$ac_dir" && ac_dir=.
3406
+ tmp_nm="$ac_dir/$lt_tmp_nm"
3407
+ if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3408
+ # Check to see if the nm accepts a BSD-compat flag.
3409
+ # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3410
+ # nm: unknown option "B" ignored
3411
+ # Tru64's nm complains that /dev/null is an invalid object file
3412
+ case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3413
+ */dev/null* | *'Invalid file or object type'*)
3414
+ lt_cv_path_NM="$tmp_nm -B"
3418
+ case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3420
+ lt_cv_path_NM="$tmp_nm -p"
3424
+ lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3425
+ continue # so that we can try to find one that supports BSD flags
3432
+ IFS="$lt_save_ifs"
3434
+ : ${lt_cv_path_NM=no}
3436
+if test "$lt_cv_path_NM" != "no"; then
3437
+ NM="$lt_cv_path_NM"
3439
+ # Didn't find any BSD compatible name lister, look for dumpbin.
3440
+ AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3441
+ AC_SUBST([DUMPBIN])
3442
+ if test "$DUMPBIN" != ":"; then
3446
+test -z "$NM" && NM=nm
3448
+_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3450
+AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3451
+ [lt_cv_nm_interface="BSD nm"
3452
+ echo "int some_variable = 0;" > conftest.$ac_ext
3453
+ (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3454
+ (eval "$ac_compile" 2>conftest.err)
3455
+ cat conftest.err >&AS_MESSAGE_LOG_FD
3456
+ (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3457
+ (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3458
+ cat conftest.err >&AS_MESSAGE_LOG_FD
3459
+ (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3460
+ cat conftest.out >&AS_MESSAGE_LOG_FD
3461
+ if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3462
+ lt_cv_nm_interface="MS dumpbin"
3468
+AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3469
+AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3470
+dnl aclocal-1.4 backwards compatibility:
3471
+dnl AC_DEFUN([AM_PROG_NM], [])
3472
+dnl AC_DEFUN([AC_PROG_NM], [])
3477
+# check for math library
3478
+AC_DEFUN([LT_LIB_M],
3479
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3482
+*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3483
+ # These system don't have libm, or don't need it
3486
+ AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3487
+ AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3490
+ AC_CHECK_LIB(m, cos, LIBM="-lm")
3497
+AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3498
+dnl aclocal-1.4 backwards compatibility:
3499
+dnl AC_DEFUN([AC_CHECK_LIBM], [])
3502
+# _LT_COMPILER_NO_RTTI([TAGNAME])
3503
+# -------------------------------
3504
+m4_defun([_LT_COMPILER_NO_RTTI],
3505
+[m4_require([_LT_TAG_COMPILER])dnl
3507
+_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3509
+if test "$GCC" = yes; then
3510
+ _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3512
+ _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3513
+ lt_cv_prog_compiler_rtti_exceptions,
3514
+ [-fno-rtti -fno-exceptions], [],
3515
+ [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3517
+_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3518
+ [Compiler flag to turn off builtin functions])
3519
+])# _LT_COMPILER_NO_RTTI
3522
+# _LT_CMD_GLOBAL_SYMBOLS
3523
+# ----------------------
3524
+m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3525
+[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3526
+AC_REQUIRE([AC_PROG_CC])dnl
3527
+AC_REQUIRE([LT_PATH_NM])dnl
3528
+AC_REQUIRE([LT_PATH_LD])dnl
3529
+m4_require([_LT_DECL_SED])dnl
3530
+m4_require([_LT_DECL_EGREP])dnl
3531
+m4_require([_LT_TAG_COMPILER])dnl
3533
+# Check for command to grab the raw symbol name followed by C symbol from nm.
3534
+AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3535
+AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3537
+# These are sane defaults that work on at least a few old systems.
3538
+# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3540
+# Character class describing NM global symbol codes.
3541
+symcode='[[BCDEGRST]]'
3543
+# Regexp to match symbols that can be accessed directly from C.
3544
+sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3546
+# Define system-specific variables.
3549
+ symcode='[[BCDT]]'
3551
+cygwin* | mingw* | pw32* | cegcc*)
3552
+ symcode='[[ABCDGISTW]]'
3555
+ if test "$host_cpu" = ia64; then
3556
+ symcode='[[ABCDEGRST]]'
3559
+irix* | nonstopux*)
3560
+ symcode='[[BCDEGRST]]'
3563
+ symcode='[[BCDEGQRST]]'
3566
+ symcode='[[BDRT]]'
3574
+sysv5* | sco5v6* | unixware* | OpenUNIX*)
3575
+ symcode='[[ABDT]]'
3578
+ symcode='[[DFNSTU]]'
3582
+# If we're using GNU nm, then use its standard symbol codes.
3583
+case `$NM -V 2>&1` in
3584
+*GNU* | *'with BFD'*)
3585
+ symcode='[[ABCDGIRSTW]]' ;;
3588
+# Transform an extracted symbol line into a proper C declaration.
3589
+# Some systems (esp. on ia64) link data and code symbols differently,
3590
+# so use this general approach.
3591
+lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3593
+# Transform an extracted symbol line into symbol name and symbol address
3594
+lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3595
+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'"
3597
+# Handle CRLF in mingw tool chain
3601
+ opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3605
+# Try without a prefix underscore, then with it.
3606
+for ac_symprfx in "" "_"; do
3608
+ # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
3609
+ symxfrm="\\1 $ac_symprfx\\2 \\2"
3611
+ # Write the raw and C identifiers.
3612
+ if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3613
+ # Fake it for dumpbin and say T for any non-static function
3614
+ # and D for any global variable.
3615
+ # Also find C++ and __fastcall symbols from MSVC++,
3616
+ # which start with @ or ?.
3617
+ lt_cv_sys_global_symbol_pipe="$AWK ['"\
3618
+" {last_section=section; section=\$ 3};"\
3619
+" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3620
+" \$ 0!~/External *\|/{next};"\
3621
+" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3622
+" {if(hide[section]) next};"\
3623
+" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3624
+" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3625
+" s[1]~/^[@?]/{print s[1], s[1]; next};"\
3626
+" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3627
+" ' prfx=^$ac_symprfx]"
3629
+ lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3632
+ # Check to see that the pipe works correctly.
3636
+ cat > conftest.$ac_ext <<_LT_EOF
3641
+void nm_test_func(void);
3642
+void nm_test_func(void){}
3646
+int main(){nm_test_var='a';nm_test_func();return(0);}
3649
+ if AC_TRY_EVAL(ac_compile); then
3650
+ # Now try to grab the symbols.
3652
+ if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
3653
+ # Try sorting and uniquifying the output.
3654
+ if sort "$nlist" | uniq > "$nlist"T; then
3655
+ mv -f "$nlist"T "$nlist"
3660
+ # Make sure that we snagged all the symbols we need.
3661
+ if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3662
+ if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3663
+ cat <<_LT_EOF > conftest.$ac_ext
3669
+ # Now generate the symbol file.
3670
+ eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3672
+ cat <<_LT_EOF >> conftest.$ac_ext
3674
+/* The mapping between symbol names and symbols. */
3679
+lt__PROGRAM__LTX_preloaded_symbols[[]] =
3681
+ { "@PROGRAM@", (void *) 0 },
3683
+ $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3684
+ cat <<\_LT_EOF >> conftest.$ac_ext
3688
+/* This works around a problem in FreeBSD linker */
3689
+#ifdef FREEBSD_WORKAROUND
3690
+static const void *lt_preloaded_setup() {
3691
+ return lt__PROGRAM__LTX_preloaded_symbols;
3699
+ # Now try linking the two files.
3700
+ mv conftest.$ac_objext conftstm.$ac_objext
3701
+ lt_save_LIBS="$LIBS"
3702
+ lt_save_CFLAGS="$CFLAGS"
3703
+ LIBS="conftstm.$ac_objext"
3704
+ CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3705
+ if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
3708
+ LIBS="$lt_save_LIBS"
3709
+ CFLAGS="$lt_save_CFLAGS"
3711
+ echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
3714
+ echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
3717
+ echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
3720
+ echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
3721
+ cat conftest.$ac_ext >&5
3723
+ rm -rf conftest* conftst*
3725
+ # Do not use the global_symbol_pipe unless it works.
3726
+ if test "$pipe_works" = yes; then
3729
+ lt_cv_sys_global_symbol_pipe=
3733
+if test -z "$lt_cv_sys_global_symbol_pipe"; then
3734
+ lt_cv_sys_global_symbol_to_cdecl=
3736
+if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3737
+ AC_MSG_RESULT(failed)
3742
+_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3743
+ [Take the output of nm and produce a listing of raw symbols and C names])
3744
+_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3745
+ [Transform the output of nm in a proper C declaration])
3746
+_LT_DECL([global_symbol_to_c_name_address],
3747
+ [lt_cv_sys_global_symbol_to_c_name_address], [1],
3748
+ [Transform the output of nm in a C name address pair])
3749
+_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3750
+ [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3751
+ [Transform the output of nm in a C name address pair when lib prefix is needed])
3752
+]) # _LT_CMD_GLOBAL_SYMBOLS
3755
+# _LT_COMPILER_PIC([TAGNAME])
3756
+# ---------------------------
3757
+m4_defun([_LT_COMPILER_PIC],
3758
+[m4_require([_LT_TAG_COMPILER])dnl
3759
+_LT_TAGVAR(lt_prog_compiler_wl, $1)=
3760
+_LT_TAGVAR(lt_prog_compiler_pic, $1)=
3761
+_LT_TAGVAR(lt_prog_compiler_static, $1)=
3763
+AC_MSG_CHECKING([for $compiler option to produce PIC])
3764
+m4_if([$1], [CXX], [
3765
+ # C++ specific cases for pic, static, wl, etc.
3766
+ if test "$GXX" = yes; then
3767
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3768
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3772
+ # All AIX code is PIC.
3773
+ if test "$host_cpu" = ia64; then
3774
+ # AIX 5 now supports IA64 processor
3775
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3782
+ # see comment about AmigaOS4 .so support
3783
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3786
+ # FIXME: we need at least 68020 code to build shared libraries, but
3787
+ # adding the `-m68020' flag to GCC prevents building anything better,
3789
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3794
+ beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3795
+ # PIC is the default for these OSes.
3797
+ mingw* | cygwin* | os2* | pw32* | cegcc*)
3798
+ # This hack is so that the source file can tell whether it is being
3799
+ # built for inclusion in a dll (and should export symbols for example).
3800
+ # Although the cygwin gcc ignores -fPIC, still need this for old-style
3801
+ # (--disable-auto-import) libraries
3802
+ m4_if([$1], [GCJ], [],
3803
+ [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3805
+ darwin* | rhapsody*)
3806
+ # PIC is the default on this platform
3807
+ # Common symbols not allowed in MH_DYLIB files
3808
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3811
+ # DJGPP does not support shared libraries at all
3812
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3815
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3816
+ # Instead, we relocate shared libraries at runtime.
3819
+ if test -d /usr/nec; then
3820
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3824
+ # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
3825
+ # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
3826
+ # sets the default TLS model and affects inlining.
3831
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3836
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
3837
+ # it will coredump.
3838
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3841
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3847
+ # All AIX code is PIC.
3848
+ if test "$host_cpu" = ia64; then
3849
+ # AIX 5 now supports IA64 processor
3850
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3852
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3856
+ case $cc_basename in
3858
+ # Green Hills C++ Compiler
3859
+ # _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"
3864
+ case $cc_basename in
3866
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3869
+ # Green Hills C++ Compiler
3870
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3876
+ freebsd* | dragonfly*)
3877
+ # FreeBSD uses GNU C++
3879
+ hpux9* | hpux10* | hpux11*)
3880
+ case $cc_basename in
3882
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3883
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3884
+ if test "$host_cpu" != ia64; then
3885
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3889
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3890
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3896
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3905
+ # This is c89, which is MS Visual C++ (no shared libs)
3906
+ # Anyone wants to do a port?
3908
+ irix5* | irix6* | nonstopux*)
3909
+ case $cc_basename in
3911
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3912
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3913
+ # CC pic flag -KPIC is the default.
3919
+ linux* | k*bsd*-gnu)
3920
+ case $cc_basename in
3922
+ # KAI C++ Compiler
3923
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3924
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3927
+ # old Intel C++ for x86_64 which still supported -KPIC.
3928
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3929
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3930
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3933
+ # Intel C++, used to be incompatible with GCC.
3934
+ # ICC 10 doesn't accept -KPIC any more.
3935
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3936
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3937
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
3940
+ # Portland Group C++ compiler
3941
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3942
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3943
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3947
+ # Make sure the PIC flag is empty. It appears that all Alpha
3948
+ # Linux and Compaq Tru64 Unix objects are PIC.
3949
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3950
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3953
+ # IBM XL 8.0 on PPC
3954
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3955
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3956
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
3959
+ case `$CC -V 2>&1 | sed 5q` in
3962
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3963
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3964
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3975
+ case $cc_basename in
3977
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3983
+ netbsd* | netbsdelf*-gnu)
3986
+ # QNX uses GNU C++, but need to define -shared option too, otherwise
3987
+ # it will coredump.
3988
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3990
+ osf3* | osf4* | osf5*)
3991
+ case $cc_basename in
3993
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3996
+ # Rational C++ 2.4.1
3997
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4000
+ # Digital/Compaq C++
4001
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4002
+ # Make sure the PIC flag is empty. It appears that all Alpha
4003
+ # Linux and Compaq Tru64 Unix objects are PIC.
4004
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4005
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4014
+ case $cc_basename in
4016
+ # Sun C++ 4.2, 5.x and Centerline C++
4017
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4018
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4019
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4022
+ # Green Hills C++ Compiler
4023
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4030
+ case $cc_basename in
4033
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4034
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4038
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4044
+ sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4045
+ case $cc_basename in
4047
+ _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4048
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4049
+ _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4054
+ case $cc_basename in
4056
+ # NonStop-UX NCC 3.20
4057
+ _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'