14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.62],,
17
[m4_warning([this file was generated for autoconf 2.62.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
24
# This file is free software; the Free Software Foundation
25
# gives unlimited permission to copy and/or distribute it,
26
# with or without modifications, as long as this notice is preserved.
28
# AM_AUTOMAKE_VERSION(VERSION)
29
# ----------------------------
30
# Automake X.Y traces this macro to ensure aclocal.m4 has been
31
# generated from the m4 files accompanying Automake X.Y.
32
# (This private macro should not be called outside this file.)
33
AC_DEFUN([AM_AUTOMAKE_VERSION],
34
[am__api_version='1.10'
35
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
36
dnl require some minimum version. Point them to the right macro.
37
m4_if([$1], [1.10.1], [],
38
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
41
# _AM_AUTOCONF_VERSION(VERSION)
42
# -----------------------------
43
# aclocal traces this macro to find the Autoconf version.
44
# This is a private macro too. Using m4_define simplifies
45
# the logic in aclocal, which can simply ignore this definition.
46
m4_define([_AM_AUTOCONF_VERSION], [])
48
# AM_SET_CURRENT_AUTOMAKE_VERSION
49
# -------------------------------
50
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
51
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
52
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53
[AM_AUTOMAKE_VERSION([1.10.1])dnl
54
m4_ifndef([AC_AUTOCONF_VERSION],
55
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
56
_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
58
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
62
# This file is free software; the Free Software Foundation
63
# gives unlimited permission to copy and/or distribute it,
64
# with or without modifications, as long as this notice is preserved.
66
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
70
# Of course, Automake must honor this variable whenever it calls a
71
# tool from the auxiliary directory. The problem is that $srcdir (and
72
# therefore $ac_aux_dir as well) can be either absolute or relative,
73
# depending on how configure is run. This is pretty annoying, since
74
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75
# source directory, any form will work fine, but in subdirectories a
76
# relative path needs to be adjusted first.
79
# fails when called from a subdirectory if $ac_aux_dir is relative
80
# $top_srcdir/$ac_aux_dir/missing
81
# fails if $ac_aux_dir is absolute,
82
# fails when called from a subdirectory in a VPATH build with
83
# a relative $ac_aux_dir
85
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86
# are both prefixed by $srcdir. In an in-source build this is usually
87
# harmless because $srcdir is `.', but things will broke when you
88
# start a VPATH build or use an absolute $srcdir.
90
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93
# and then we would define $MISSING as
94
# MISSING="\${SHELL} $am_aux_dir/missing"
95
# This will work as long as MISSING is not called from configure, because
96
# unfortunately $(top_srcdir) has no meaning in configure.
97
# However there are other variables, like CC, which are often used in
98
# configure, and could therefore not use this "fixed" $ac_aux_dir.
100
# Another solution, used here, is to always expand $ac_aux_dir to an
101
# absolute PATH. The drawback is that using absolute paths prevent a
102
# configured tree to be moved without reconfiguration.
104
AC_DEFUN([AM_AUX_DIR_EXPAND],
105
[dnl Rely on autoconf to set up CDPATH properly.
107
# expand $ac_aux_dir to an absolute path
108
am_aux_dir=`cd $ac_aux_dir && pwd`
111
# AM_CONDITIONAL -*- Autoconf -*-
113
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
114
# Free Software Foundation, Inc.
116
# This file is free software; the Free Software Foundation
117
# gives unlimited permission to copy and/or distribute it,
118
# with or without modifications, as long as this notice is preserved.
122
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123
# -------------------------------------
124
# Define a conditional.
125
AC_DEFUN([AM_CONDITIONAL],
127
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129
AC_SUBST([$1_TRUE])dnl
130
AC_SUBST([$1_FALSE])dnl
131
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
132
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
140
AC_CONFIG_COMMANDS_PRE(
141
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
142
AC_MSG_ERROR([[conditional "$1" was never defined.
143
Usually this means the macro was only invoked conditionally.]])
146
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
147
# Free Software Foundation, Inc.
149
# This file is free software; the Free Software Foundation
150
# gives unlimited permission to copy and/or distribute it,
151
# with or without modifications, as long as this notice is preserved.
155
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
156
# written in clear, in which case automake, when reading aclocal.m4,
157
# will think it sees a *use*, and therefore will trigger all it's
158
# C support machinery. Also note that it means that autoscan, seeing
159
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
162
# _AM_DEPENDENCIES(NAME)
163
# ----------------------
164
# See how the compiler implements dependency checking.
165
# NAME is "CC", "CXX", "GCJ", or "OBJC".
166
# We try a few techniques and use that to set a single cache variable.
168
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
169
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
170
# dependency, and given that the user is not expected to run this macro,
171
# just rely on AC_PROG_CC.
172
AC_DEFUN([_AM_DEPENDENCIES],
173
[AC_REQUIRE([AM_SET_DEPDIR])dnl
174
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
175
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
176
AC_REQUIRE([AM_DEP_TRACK])dnl
178
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
179
[$1], CXX, [depcc="$CXX" am_compiler_list=],
180
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
181
[$1], UPC, [depcc="$UPC" am_compiler_list=],
182
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
183
[depcc="$$1" am_compiler_list=])
185
AC_CACHE_CHECK([dependency style of $depcc],
186
[am_cv_$1_dependencies_compiler_type],
187
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
188
# We make a subdir and do the tests there. Otherwise we can end up
189
# making bogus files that we don't know about and never remove. For
190
# instance it was reported that on HP-UX the gcc test will end up
191
# making a dummy file named `D' -- because `-MD' means `put the output
194
# Copy depcomp to subdir because otherwise we won't find it if we're
195
# using a relative directory.
196
cp "$am_depcomp" conftest.dir
198
# We will build objects and dependencies in a subdirectory because
199
# it helps to detect inapplicable dependency modes. For instance
200
# both Tru64's cc and ICC support -MD to output dependencies as a
201
# side effect of compilation, but ICC will put the dependencies in
202
# the current directory while Tru64 will put them in the object
206
am_cv_$1_dependencies_compiler_type=none
207
if test "$am_compiler_list" = ""; then
208
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
210
for depmode in $am_compiler_list; do
211
# Setup a source with many dependencies, because some compilers
212
# like to wrap large dependency lists on column 80 (with \), and
213
# we should not choose a depcomp mode which is confused by this.
215
# We need to recreate these files for each test, as the compiler may
216
# overwrite some of them when testing with obscure command lines.
217
# This happens at least with the AIX C compiler.
219
for i in 1 2 3 4 5 6; do
220
echo '#include "conftst'$i'.h"' >> sub/conftest.c
221
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
222
# Solaris 8's {/usr,}/bin/sh.
223
touch sub/conftst$i.h
225
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
229
# after this tag, mechanisms are not by side-effect, so they'll
230
# only be used when explicitly requested
231
if test "x$enable_dependency_tracking" = xyes; then
239
# We check with `-c' and `-o' for the sake of the "dashmstdout"
240
# mode. It turns out that the SunPro C++ compiler does not properly
241
# handle `-M -o', and we need to detect this.
242
if depmode=$depmode \
243
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
244
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
245
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
246
>/dev/null 2>conftest.err &&
247
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
248
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
249
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
250
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
251
# icc doesn't choke on unknown options, it will just issue warnings
252
# or remarks (even with -Werror). So we grep stderr for any message
253
# that says an option was ignored or not supported.
254
# When given -MP, icc 7.0 and 7.1 complain thusly:
255
# icc: Command line warning: ignoring option '-M'; no argument required
256
# The diagnosis changed in icc 8.0:
257
# icc: Command line remark: option '-MP' not supported
258
if (grep 'ignoring option' conftest.err ||
259
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
260
am_cv_$1_dependencies_compiler_type=$depmode
269
am_cv_$1_dependencies_compiler_type=none
272
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
273
AM_CONDITIONAL([am__fastdep$1], [
274
test "x$enable_dependency_tracking" != xno \
275
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
281
# Choose a directory name for dependency files.
282
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
283
AC_DEFUN([AM_SET_DEPDIR],
284
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
285
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
291
AC_DEFUN([AM_DEP_TRACK],
292
[AC_ARG_ENABLE(dependency-tracking,
293
[ --disable-dependency-tracking speeds up one-time build
294
--enable-dependency-tracking do not reject slow dependency extractors])
295
if test "x$enable_dependency_tracking" != xno; then
296
am_depcomp="$ac_aux_dir/depcomp"
299
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
300
AC_SUBST([AMDEPBACKSLASH])dnl
301
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
304
# Generate code to set up dependency tracking. -*- Autoconf -*-
306
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
307
# Free Software Foundation, Inc.
309
# This file is free software; the Free Software Foundation
310
# gives unlimited permission to copy and/or distribute it,
311
# with or without modifications, as long as this notice is preserved.
315
# _AM_OUTPUT_DEPENDENCY_COMMANDS
316
# ------------------------------
317
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
318
[for mf in $CONFIG_FILES; do
319
# Strip MF so we end up with the name of the file.
320
mf=`echo "$mf" | sed -e 's/:.*$//'`
321
# Check whether this is an Automake generated Makefile or not.
322
# We used to match only the files named `Makefile.in', but
323
# some people rename them; so instead we look at the file content.
324
# Grep'ing the first line is not enough: some people post-process
325
# each Makefile.in and add a new line on top of each file to say so.
326
# Grep'ing the whole file is not good either: AIX grep has a line
327
# limit of 2048, but all sed's we know have understand at least 4000.
328
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
329
dirpart=`AS_DIRNAME("$mf")`
333
# Extract the definition of DEPDIR, am__include, and am__quote
334
# from the Makefile without running `make'.
335
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
336
test -z "$DEPDIR" && continue
337
am__include=`sed -n 's/^am__include = //p' < "$mf"`
338
test -z "am__include" && continue
339
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
340
# When using ansi2knr, U may be empty or an underscore; expand it
341
U=`sed -n 's/^U = //p' < "$mf"`
342
# Find all dependency output files, they are included files with
343
# $(DEPDIR) in their names. We invoke sed twice because it is the
344
# simplest approach to changing $(DEPDIR) to its actual value in the
346
for file in `sed -n "
347
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
348
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
349
# Make sure the directory exists.
350
test -f "$dirpart/$file" && continue
351
fdir=`AS_DIRNAME(["$file"])`
352
AS_MKDIR_P([$dirpart/$fdir])
353
# echo "creating $dirpart/$file"
354
echo '# dummy' > "$dirpart/$file"
357
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
360
# AM_OUTPUT_DEPENDENCY_COMMANDS
361
# -----------------------------
362
# This macro should only be invoked once -- use via AC_REQUIRE.
364
# This code is only required when automatic dependency tracking
365
# is enabled. FIXME. This creates each `.P' file that we will
366
# need in order to bootstrap the dependency handling code.
367
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
368
[AC_CONFIG_COMMANDS([depfiles],
369
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
370
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
373
# Do all the work for Automake. -*- Autoconf -*-
375
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
376
# 2005, 2006, 2008 Free Software Foundation, Inc.
378
# This file is free software; the Free Software Foundation
379
# gives unlimited permission to copy and/or distribute it,
380
# with or without modifications, as long as this notice is preserved.
384
# This macro actually does too much. Some checks are only needed if
385
# your package does certain things. But this isn't really a big deal.
387
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
388
# AM_INIT_AUTOMAKE([OPTIONS])
389
# -----------------------------------------------
390
# The call with PACKAGE and VERSION arguments is the old style
391
# call (pre autoconf-2.50), which is being phased out. PACKAGE
392
# and VERSION should now be passed to AC_INIT and removed from
393
# the call to AM_INIT_AUTOMAKE.
394
# We support both call styles for the transition. After
395
# the next Automake release, Autoconf can make the AC_INIT
396
# arguments mandatory, and then we can depend on a new Autoconf
397
# release and drop the old call support.
398
AC_DEFUN([AM_INIT_AUTOMAKE],
399
[AC_PREREQ([2.60])dnl
400
dnl Autoconf wants to disallow AM_ names. We explicitly allow
401
dnl the ones we care about.
402
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
403
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
404
AC_REQUIRE([AC_PROG_INSTALL])dnl
405
if test "`cd $srcdir && pwd`" != "`pwd`"; then
406
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
407
# is not polluted with repeated "-I."
408
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
409
# test to see if srcdir already configured
410
if test -f $srcdir/config.status; then
411
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
415
# test whether we have cygpath
416
if test -z "$CYGPATH_W"; then
417
if (cygpath --version) >/dev/null 2>/dev/null; then
418
CYGPATH_W='cygpath -w'
423
AC_SUBST([CYGPATH_W])
425
# Define the identity of the package.
426
dnl Distinguish between old-style and new-style calls.
428
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
429
AC_SUBST([PACKAGE], [$1])dnl
430
AC_SUBST([VERSION], [$2])],
431
[_AM_SET_OPTIONS([$1])dnl
432
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
433
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
434
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
435
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
436
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
438
_AM_IF_OPTION([no-define],,
439
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
440
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
442
# Some tools Automake needs.
443
AC_REQUIRE([AM_SANITY_CHECK])dnl
444
AC_REQUIRE([AC_ARG_PROGRAM])dnl
445
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
446
AM_MISSING_PROG(AUTOCONF, autoconf)
447
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
448
AM_MISSING_PROG(AUTOHEADER, autoheader)
449
AM_MISSING_PROG(MAKEINFO, makeinfo)
451
AM_PROG_INSTALL_STRIP
452
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
453
# We need awk for the "check" target. The system "awk" is bad on
455
AC_REQUIRE([AC_PROG_AWK])dnl
456
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
457
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
458
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
459
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
460
[_AM_PROG_TAR([v7])])])
461
_AM_IF_OPTION([no-dependencies],,
462
[AC_PROVIDE_IFELSE([AC_PROG_CC],
463
[_AM_DEPENDENCIES(CC)],
464
[define([AC_PROG_CC],
465
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
466
AC_PROVIDE_IFELSE([AC_PROG_CXX],
467
[_AM_DEPENDENCIES(CXX)],
468
[define([AC_PROG_CXX],
469
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
470
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
471
[_AM_DEPENDENCIES(OBJC)],
472
[define([AC_PROG_OBJC],
473
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
478
# When config.status generates a header, we must update the stamp-h file.
479
# This file resides in the same directory as the config header
480
# that is generated. The stamp files are numbered to have different names.
482
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
483
# loop where config.status creates the headers, so we can generate
484
# our stamp files there.
485
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
486
[# Compute $1's index in $config_headers.
489
for _am_header in $config_headers :; do
491
$_am_arg | $_am_arg:* )
494
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
497
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
499
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
501
# This file is free software; the Free Software Foundation
502
# gives unlimited permission to copy and/or distribute it,
503
# with or without modifications, as long as this notice is preserved.
507
# Define $install_sh.
508
AC_DEFUN([AM_PROG_INSTALL_SH],
509
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
510
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
511
AC_SUBST(install_sh)])
513
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
515
# This file is free software; the Free Software Foundation
516
# gives unlimited permission to copy and/or distribute it,
517
# with or without modifications, as long as this notice is preserved.
521
# Check whether the underlying file-system supports filenames
522
# with a leading dot. For instance MS-DOS doesn't.
523
AC_DEFUN([AM_SET_LEADING_DOT],
524
[rm -rf .tst 2>/dev/null
525
mkdir .tst 2>/dev/null
526
if test -d .tst; then
531
rmdir .tst 2>/dev/null
532
AC_SUBST([am__leading_dot])])
534
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
537
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
538
# Free Software Foundation, Inc.
540
# This file is free software; the Free Software Foundation
541
# gives unlimited permission to copy and/or distribute it,
542
# with or without modifications, as long as this notice is preserved.
546
AC_DEFUN([AM_MAINTAINER_MODE],
547
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
548
dnl maintainer-mode is disabled by default
549
AC_ARG_ENABLE(maintainer-mode,
550
[ --enable-maintainer-mode enable make rules and dependencies not useful
551
(and sometimes confusing) to the casual installer],
552
USE_MAINTAINER_MODE=$enableval,
553
USE_MAINTAINER_MODE=no)
554
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
555
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
556
MAINT=$MAINTAINER_MODE_TRUE
561
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
563
# Check to see how 'make' treats includes. -*- Autoconf -*-
565
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
567
# This file is free software; the Free Software Foundation
568
# gives unlimited permission to copy and/or distribute it,
569
# with or without modifications, as long as this notice is preserved.
575
# Check to see how make treats includes.
576
AC_DEFUN([AM_MAKE_INCLUDE],
577
[am_make=${MAKE-make}
578
cat > confinc << 'END'
583
# If we don't find an include directive, just comment out the code.
584
AC_MSG_CHECKING([for style of include used by $am_make])
588
# First try GNU make style include.
589
echo "include confinc" > confmf
590
# We grep out `Entering directory' and `Leaving directory'
591
# messages which can occur if `w' ends up in MAKEFLAGS.
592
# In particular we don't look at `^make:' because GNU make might
593
# be invoked under some other name (usually "gmake"), in which
594
# case it prints its new name instead of `make'.
595
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
600
# Now try BSD make style include.
601
if test "$am__include" = "#"; then
602
echo '.include "confinc"' > confmf
603
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
609
AC_SUBST([am__include])
610
AC_SUBST([am__quote])
611
AC_MSG_RESULT([$_am_result])
615
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
617
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
618
# Free Software Foundation, Inc.
620
# This file is free software; the Free Software Foundation
621
# gives unlimited permission to copy and/or distribute it,
622
# with or without modifications, as long as this notice is preserved.
626
# AM_MISSING_PROG(NAME, PROGRAM)
627
# ------------------------------
628
AC_DEFUN([AM_MISSING_PROG],
629
[AC_REQUIRE([AM_MISSING_HAS_RUN])
630
$1=${$1-"${am_missing_run}$2"}
636
# Define MISSING if not defined so far and test if it supports --run.
637
# If it does, set am_missing_run to use it, otherwise, to nothing.
638
AC_DEFUN([AM_MISSING_HAS_RUN],
639
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
640
AC_REQUIRE_AUX_FILE([missing])dnl
641
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
642
# Use eval to expand $SHELL
643
if eval "$MISSING --run true"; then
644
am_missing_run="$MISSING --run "
647
AC_MSG_WARN([`missing' script is too old or missing])
651
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
653
# This file is free software; the Free Software Foundation
654
# gives unlimited permission to copy and/or distribute it,
655
# with or without modifications, as long as this notice is preserved.
659
# Check for `mkdir -p'.
660
AC_DEFUN([AM_PROG_MKDIR_P],
661
[AC_PREREQ([2.60])dnl
662
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
663
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
664
dnl while keeping a definition of mkdir_p for backward compatibility.
665
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
666
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
667
dnl Makefile.ins that do not define MKDIR_P, so we do our own
668
dnl adjustment using top_builddir (which is defined more often than
670
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
672
[[\\/$]]* | ?:[[\\/]]*) ;;
673
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
677
# Helper functions for option handling. -*- Autoconf -*-
679
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
681
# This file is free software; the Free Software Foundation
682
# gives unlimited permission to copy and/or distribute it,
683
# with or without modifications, as long as this notice is preserved.
687
# _AM_MANGLE_OPTION(NAME)
688
# -----------------------
689
AC_DEFUN([_AM_MANGLE_OPTION],
690
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
692
# _AM_SET_OPTION(NAME)
693
# ------------------------------
694
# Set option NAME. Presently that only means defining a flag for this option.
695
AC_DEFUN([_AM_SET_OPTION],
696
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
698
# _AM_SET_OPTIONS(OPTIONS)
699
# ----------------------------------
700
# OPTIONS is a space-separated list of Automake options.
701
AC_DEFUN([_AM_SET_OPTIONS],
702
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
704
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
705
# -------------------------------------------
706
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
707
AC_DEFUN([_AM_IF_OPTION],
708
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
710
# Check to make sure that the build environment is sane. -*- Autoconf -*-
712
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
713
# Free Software Foundation, Inc.
715
# This file is free software; the Free Software Foundation
716
# gives unlimited permission to copy and/or distribute it,
717
# with or without modifications, as long as this notice is preserved.
723
AC_DEFUN([AM_SANITY_CHECK],
724
[AC_MSG_CHECKING([whether build environment is sane])
727
echo timestamp > conftest.file
728
# Do `set' in a subshell so we don't clobber the current shell's
729
# arguments. Must try -L first in case configure is actually a
730
# symlink; some systems play weird games with the mod time of symlinks
731
# (eg FreeBSD returns the mod time of the symlink's containing
734
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
735
if test "$[*]" = "X"; then
737
set X `ls -t $srcdir/configure conftest.file`
740
if test "$[*]" != "X $srcdir/configure conftest.file" \
741
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
743
# If neither matched, then we have a broken ls. This can happen
744
# if, for instance, CONFIG_SHELL is bash and it inherits a
745
# broken ls alias from the environment. This has actually
746
# happened. Such a system could not be considered "sane".
747
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
748
alias in your environment])
751
test "$[2]" = conftest.file
757
AC_MSG_ERROR([newly created file is older than distributed files!
758
Check your system clock])
762
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
764
# This file is free software; the Free Software Foundation
765
# gives unlimited permission to copy and/or distribute it,
766
# with or without modifications, as long as this notice is preserved.
768
# AM_PROG_INSTALL_STRIP
769
# ---------------------
770
# One issue with vendor `install' (even GNU) is that you can't
771
# specify the program used to strip binaries. This is especially
772
# annoying in cross-compiling environments, where the build's strip
773
# is unlikely to handle the host's binaries.
774
# Fortunately install-sh will honor a STRIPPROG variable, so we
775
# always use install-sh in `make install-strip', and initialize
776
# STRIPPROG with the value of the STRIP variable (set by the user).
777
AC_DEFUN([AM_PROG_INSTALL_STRIP],
778
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
779
# Installed binaries are usually stripped using `strip' when the user
780
# run `make install-strip'. However `strip' might not be the right
781
# tool to use in cross-compilation environments, therefore Automake
782
# will honor the `STRIP' environment variable to overrule this program.
783
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
784
if test "$cross_compiling" != no; then
785
AC_CHECK_TOOL([STRIP], [strip], :)
787
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
788
AC_SUBST([INSTALL_STRIP_PROGRAM])])
790
# Copyright (C) 2006 Free Software Foundation, Inc.
792
# This file is free software; the Free Software Foundation
793
# gives unlimited permission to copy and/or distribute it,
794
# with or without modifications, as long as this notice is preserved.
796
# _AM_SUBST_NOTMAKE(VARIABLE)
797
# ---------------------------
798
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
799
# This macro is traced by Automake.
800
AC_DEFUN([_AM_SUBST_NOTMAKE])
802
# Check how to create a tarball. -*- Autoconf -*-
804
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
806
# This file is free software; the Free Software Foundation
807
# gives unlimited permission to copy and/or distribute it,
808
# with or without modifications, as long as this notice is preserved.
812
# _AM_PROG_TAR(FORMAT)
813
# --------------------
814
# Check how to create a tarball in format FORMAT.
815
# FORMAT should be one of `v7', `ustar', or `pax'.
817
# Substitute a variable $(am__tar) that is a command
818
# writing to stdout a FORMAT-tarball containing the directory
820
# tardir=directory && $(am__tar) > result.tar
822
# Substitute a variable $(am__untar) that extract such
823
# a tarball read from stdin.
824
# $(am__untar) < result.tar
825
AC_DEFUN([_AM_PROG_TAR],
826
[# Always define AMTAR for backward compatibility.
827
AM_MISSING_PROG([AMTAR], [tar])
829
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
830
[m4_case([$1], [ustar],, [pax],,
831
[m4_fatal([Unknown tar format])])
832
AC_MSG_CHECKING([how to create a $1 tar archive])
833
# Loop over all known methods to create a tar archive until one works.
834
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
835
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
836
# Do not fold the above two line into one, because Tru64 sh and
837
# Solaris sh will not grok spaces in the rhs of `-'.
838
for _am_tool in $_am_tools
842
for _am_tar in tar gnutar gtar;
844
AM_RUN_LOG([$_am_tar --version]) && break
846
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
847
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
848
am__untar="$_am_tar -xf -"
851
# Must skip GNU tar: if it does not support --format= it doesn't create
852
# ustar tarball either.
853
(tar --version) >/dev/null 2>&1 && continue
854
am__tar='tar chf - "$$tardir"'
855
am__tar_='tar chf - "$tardir"'
859
am__tar='pax -L -x $1 -w "$$tardir"'
860
am__tar_='pax -L -x $1 -w "$tardir"'
864
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
865
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
866
am__untar='cpio -i -H $1 -d'
875
# If the value was cached, stop now. We just wanted to have am__tar
877
test -n "${am_cv_prog_tar_$1}" && break
879
# tar/untar a dummy directory, and stop if the command works
882
echo GrepMe > conftest.dir/file
883
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
885
if test -s conftest.tar; then
886
AM_RUN_LOG([$am__untar <conftest.tar])
887
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
892
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
893
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
895
AC_SUBST([am__untar])
898
22
dnl AM_GCONF_SOURCE_2
899
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
900
24
dnl (i.e. pass to gconftool-2
1852
1078
# Sed substitution that helps us do robust quoting. It backslashifies
1853
1079
# metacharacters that are still active within double-quoted strings.
1854
Xsed='sed -e 1s/^X//'
1855
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1080
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1857
1082
# Same as above, but do not quote variable references.
1858
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1083
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1860
1085
# Sed substitution to delay expansion of an escaped shell variable in a
1861
1086
# double_quote_subst'ed string.
1862
1087
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1089
# Sed substitution to delay expansion of an escaped single quote.
1090
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1864
1092
# Sed substitution to avoid accidental globbing in evaled expressions
1865
1093
no_glob_subst='s/\*/\\\*/g'
1870
1095
# Global variables:
1871
default_ofile=libtool
1872
1097
can_build_shared=yes
1874
1099
# All known linkers require a `.a' archive for static linking (except MSVC,
1875
1100
# which needs '.lib').
1877
ltmain="$ac_aux_dir/ltmain.sh"
1878
ofile="$default_ofile"
1879
1103
with_gnu_ld="$lt_cv_prog_gnu_ld"
1881
AC_CHECK_TOOL(AR, ar, false)
1882
AC_CHECK_TOOL(RANLIB, ranlib, :)
1883
AC_CHECK_TOOL(STRIP, strip, :)
1886
1106
old_CFLAGS="$CFLAGS"
1888
1108
# Set sane defaults for various variables
1889
test -z "$AR" && AR=ar
1890
test -z "$AR_FLAGS" && AR_FLAGS=cru
1891
test -z "$AS" && AS=as
1892
1109
test -z "$CC" && CC=cc
1893
1110
test -z "$LTCC" && LTCC=$CC
1894
1111
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1895
test -z "$DLLTOOL" && DLLTOOL=dlltool
1896
1112
test -z "$LD" && LD=ld
1897
test -z "$LN_S" && LN_S="ln -s"
1898
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1899
test -z "$NM" && NM=nm
1900
test -z "$SED" && SED=sed
1901
test -z "$OBJDUMP" && OBJDUMP=objdump
1902
test -z "$RANLIB" && RANLIB=:
1903
test -z "$STRIP" && STRIP=:
1904
1113
test -z "$ac_objext" && ac_objext=o
1906
# Determine commands to create old-style static archives.
1907
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1908
old_postinstall_cmds='chmod 644 $oldlib'
1909
old_postuninstall_cmds=
1911
if test -n "$RANLIB"; then
1914
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1917
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1920
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1923
1115
_LT_CC_BASENAME([$compiler])
1925
1117
# Only perform the check for file, if the check method requires it
1118
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1926
1119
case $deplibs_check_method in
1928
1121
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1934
_LT_REQUIRED_DARWIN_CHECKS
1936
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1937
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1938
enable_win32_dll=yes, enable_win32_dll=no)
1940
AC_ARG_ENABLE([libtool-lock],
1941
[AC_HELP_STRING([--disable-libtool-lock],
1942
[avoid locking (might break parallel builds)])])
1943
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1946
[AC_HELP_STRING([--with-pic],
1947
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1948
[pic_mode="$withval"],
1950
test -z "$pic_mode" && pic_mode=default
1952
1127
# Use C for the default configuration in the libtool script
1954
AC_LIBTOOL_LANG_C_CONFIG
1956
])# AC_LIBTOOL_SETUP
1959
# _LT_AC_SYS_COMPILER
1128
LT_SUPPORTED_TAG([CC])
1130
_LT_LANG_DEFAULT_CONFIG
1137
# Note that this code is called both from `configure', and `config.status'
1138
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1139
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1140
# so we pass a copy along to make sure it has a sensible value anyway.
1141
m4_defun([_LT_PROG_LTMAIN],
1142
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1143
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1144
ltmain="$ac_aux_dir/ltmain.sh"
1149
# So that we can recreate a full libtool script including additional
1150
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1151
# in macros and then make a single call at the end using the `libtool'
1155
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1156
# ----------------------------------------
1157
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1158
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1160
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1165
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1168
# _LT_CONFIG_LIBTOOL([COMMANDS])
1169
# ------------------------------
1170
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1171
m4_define([_LT_CONFIG_LIBTOOL],
1173
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1178
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1181
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1182
# -----------------------------------------------------
1183
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1184
[_LT_CONFIG_LIBTOOL([$1])
1185
_LT_CONFIG_LIBTOOL_INIT([$2])
1189
# _LT_FORMAT_COMMENT([COMMENT])
1190
# -----------------------------
1191
# Add leading comment marks to the start of each line, and a trailing
1192
# full-stop to the whole comment if one is not present already.
1193
m4_define([_LT_FORMAT_COMMENT],
1195
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1196
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1203
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1204
# -------------------------------------------------------------------
1205
# CONFIGNAME is the name given to the value in the libtool script.
1206
# VARNAME is the (base) name used in the configure script.
1207
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1208
# VARNAME. Any other value will be used directly.
1209
m4_define([_LT_DECL],
1210
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1211
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1212
[m4_ifval([$1], [$1], [$2])])
1213
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1215
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1216
lt_dict_add_subkey([lt_decl_dict], [$2],
1217
[tagged?], [m4_ifval([$5], [yes], [no])])])
1221
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1222
# --------------------------------------------------------
1223
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1226
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1227
# ------------------------------------------------
1228
m4_define([lt_decl_tag_varnames],
1229
[_lt_decl_filter([tagged?], [yes], $@)])
1232
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1233
# ---------------------------------------------------------
1234
m4_define([_lt_decl_filter],
1236
[0], [m4_fatal([$0: too few arguments: $#])],
1237
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1238
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1239
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1240
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1244
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1245
# --------------------------------------------------
1246
m4_define([lt_decl_quote_varnames],
1247
[_lt_decl_filter([value], [1], $@)])
1250
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1251
# ---------------------------------------------------
1252
m4_define([lt_decl_dquote_varnames],
1253
[_lt_decl_filter([value], [2], $@)])
1256
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1257
# ---------------------------------------------------
1258
m4_define([lt_decl_varnames_tagged],
1259
[m4_assert([$# <= 2])dnl
1260
_$0(m4_quote(m4_default([$1], [[, ]])),
1261
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1262
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1263
m4_define([_lt_decl_varnames_tagged],
1264
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1267
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1268
# ------------------------------------------------
1269
m4_define([lt_decl_all_varnames],
1270
[_$0(m4_quote(m4_default([$1], [[, ]])),
1272
m4_quote(lt_decl_varnames),
1273
m4_quote(m4_shift($@))))[]dnl
1275
m4_define([_lt_decl_all_varnames],
1276
[lt_join($@, lt_decl_varnames_tagged([$1],
1277
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1281
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1282
# ------------------------------------
1283
# Quote a variable value, and forward it to `config.status' so that its
1284
# declaration there will have the same value as in `configure'. VARNAME
1285
# must have a single quote delimited value for this to work.
1286
m4_define([_LT_CONFIG_STATUS_DECLARE],
1287
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1290
# _LT_CONFIG_STATUS_DECLARATIONS
1291
# ------------------------------
1292
# We delimit libtool config variables with single quotes, so when
1293
# we write them to config.status, we have to be sure to quote all
1294
# embedded single quotes properly. In configure, this macro expands
1295
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1297
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1298
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1299
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1300
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1305
# Output comment and list of tags supported by the script
1306
m4_defun([_LT_LIBTOOL_TAGS],
1307
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1308
available_tags="_LT_TAGS"dnl
1312
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1313
# -----------------------------------
1314
# Extract the dictionary values for VARNAME (optionally with TAG) and
1315
# expand to a commented shell variable setting:
1317
# # Some comment about what VAR is for.
1318
# visible_name=$lt_internal_name
1319
m4_define([_LT_LIBTOOL_DECLARE],
1320
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1321
[description])))[]dnl
1322
m4_pushdef([_libtool_name],
1323
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1324
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1325
[0], [_libtool_name=[$]$1],
1326
[1], [_libtool_name=$lt_[]$1],
1327
[2], [_libtool_name=$lt_[]$1],
1328
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1329
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1333
# _LT_LIBTOOL_CONFIG_VARS
1334
# -----------------------
1335
# Produce commented declarations of non-tagged libtool config variables
1336
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1337
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1338
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1339
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1340
[m4_foreach([_lt_var],
1341
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1342
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1345
# _LT_LIBTOOL_TAG_VARS(TAG)
1346
# -------------------------
1347
m4_define([_LT_LIBTOOL_TAG_VARS],
1348
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1349
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1352
# _LT_TAGVAR(VARNAME, [TAGNAME])
1353
# ------------------------------
1354
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1357
# _LT_CONFIG_COMMANDS
1960
1358
# -------------------
1961
AC_DEFUN([_LT_AC_SYS_COMPILER],
1359
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1360
# variables for single and double quote escaping we saved from calls
1361
# to _LT_DECL, we can put quote escaped variables declarations
1362
# into `config.status', and then the shell code to quote escape them in
1363
# for loops in `config.status'. Finally, any additional code accumulated
1364
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1365
m4_defun([_LT_CONFIG_COMMANDS],
1366
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1367
dnl If the libtool generation code has been placed in $CONFIG_LT,
1368
dnl instead of duplicating it all over again into config.status,
1369
dnl then we will have config.status run $CONFIG_LT later, so it
1370
dnl needs to know what name is stored there:
1371
[AC_CONFIG_COMMANDS([libtool],
1372
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1373
dnl If the libtool generation code is destined for config.status,
1374
dnl expand the accumulated commands and init code now:
1375
[AC_CONFIG_COMMANDS([libtool],
1376
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1377
])#_LT_CONFIG_COMMANDS
1381
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1384
# The HP-UX ksh and POSIX shell print the target directory to stdout
1386
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1388
sed_quote_subst='$sed_quote_subst'
1389
double_quote_subst='$double_quote_subst'
1390
delay_variable_subst='$delay_variable_subst'
1391
_LT_CONFIG_STATUS_DECLARATIONS
1393
LTCFLAGS='$LTCFLAGS'
1394
compiler='$compiler_DEFAULT'
1396
# Quote evaled strings.
1397
for var in lt_decl_all_varnames([[ \
1398
]], lt_decl_quote_varnames); do
1399
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1400
*[[\\\\\\\`\\"\\\$]]*)
1401
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1404
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1409
# Double-quote double-evaled strings.
1410
for var in lt_decl_all_varnames([[ \
1411
]], lt_decl_dquote_varnames); do
1412
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1413
*[[\\\\\\\`\\"\\\$]]*)
1414
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1417
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1422
# Fix-up fallback echo if it was mangled by the above quoting rules.
1424
*'\\\[$]0 --fallback-echo"')dnl "
1425
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1429
_LT_OUTPUT_LIBTOOL_INIT
1435
# This macro allows early generation of the libtool script (before
1436
# AC_OUTPUT is called), incase it is used in configure for compilation
1438
AC_DEFUN([LT_OUTPUT],
1439
[: ${CONFIG_LT=./config.lt}
1440
AC_MSG_NOTICE([creating $CONFIG_LT])
1441
cat >"$CONFIG_LT" <<_LTEOF
1443
# Generated by $as_me.
1444
# Run this file to recreate a libtool stub with the current configuration.
1447
SHELL=\${CONFIG_SHELL-$SHELL}
1450
cat >>"$CONFIG_LT" <<\_LTEOF
1454
exec AS_MESSAGE_FD>&1
1455
exec AS_MESSAGE_LOG_FD>>config.log
1458
AS_BOX([Running $as_me.])
1459
} >&AS_MESSAGE_LOG_FD
1462
\`$as_me' creates a local libtool stub from the current configuration,
1463
for use in further configure time tests before the real libtool is
1466
Usage: $[0] [[OPTIONS]]
1468
-h, --help print this help, then exit
1469
-V, --version print version number, then exit
1470
-q, --quiet do not print progress messages
1471
-d, --debug don't remove temporary files
1473
Report bugs to <bug-libtool@gnu.org>."
1476
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1477
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1478
configured by $[0], generated by m4_PACKAGE_STRING.
1480
Copyright (C) 2008 Free Software Foundation, Inc.
1481
This config.lt script is free software; the Free Software Foundation
1482
gives unlimited permision to copy, distribute and modify it."
1484
while test $[#] != 0
1487
--version | --v* | -V )
1488
echo "$lt_cl_version"; exit 0 ;;
1489
--help | --h* | -h )
1490
echo "$lt_cl_help"; exit 0 ;;
1491
--debug | --d* | -d )
1493
--quiet | --q* | --silent | --s* | -q )
1496
-*) AC_MSG_ERROR([unrecognized option: $[1]
1497
Try \`$[0] --help' for more information.]) ;;
1499
*) AC_MSG_ERROR([unrecognized argument: $[1]
1500
Try \`$[0] --help' for more information.]) ;;
1505
if $lt_cl_silent; then
1506
exec AS_MESSAGE_FD>/dev/null
1510
cat >>"$CONFIG_LT" <<_LTEOF
1511
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1514
cat >>"$CONFIG_LT" <<\_LTEOF
1515
AC_MSG_NOTICE([creating $ofile])
1516
_LT_OUTPUT_LIBTOOL_COMMANDS
1519
chmod +x "$CONFIG_LT"
1521
# configure is writing to config.log, but config.lt does its own redirection,
1522
# appending to config.log, which fails on DOS, as config.log is still kept
1523
# open by configure. Here we exec the FD to /dev/null, effectively closing
1524
# config.log, so it can be properly (re)opened and appended to by config.lt.
1525
if test "$no_create" != yes; then
1527
test "$silent" = yes &&
1528
lt_config_lt_args="$lt_config_lt_args --quiet"
1529
exec AS_MESSAGE_LOG_FD>/dev/null
1530
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1531
exec AS_MESSAGE_LOG_FD>>config.log
1532
$lt_cl_success || AS_EXIT(1)
1539
# If TAG is the built-in tag, create an initial libtool script with a
1540
# default configuration from the untagged config vars. Otherwise add code
1541
# to config.status for appending the configuration named by TAG from the
1542
# matching tagged config vars.
1543
m4_defun([_LT_CONFIG],
1544
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1545
_LT_CONFIG_SAVE_COMMANDS([
1546
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1547
m4_if(_LT_TAG, [C], [
1548
# See if we are running on zsh, and set the options which allow our
1549
# commands through without removal of \ escapes.
1550
if test -n "${ZSH_VERSION+set}" ; then
1551
setopt NO_GLOB_SUBST
1555
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1558
cat <<_LT_EOF >> "$cfgfile"
1561
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1562
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1563
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1564
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1569
# ### BEGIN LIBTOOL CONFIG
1570
_LT_LIBTOOL_CONFIG_VARS
1571
_LT_LIBTOOL_TAG_VARS
1572
# ### END LIBTOOL CONFIG
1578
cat <<\_LT_EOF >> "$cfgfile"
1579
# AIX sometimes has problems with the GCC collect2 program. For some
1580
# reason, if we set the COLLECT_NAMES environment variable, the problems
1581
# vanish in a puff of smoke.
1582
if test "X${COLLECT_NAMES+set}" != Xset; then
1584
export COLLECT_NAMES
1592
# We use sed instead of cat because bash on DJGPP gets confused if
1593
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1594
# text mode, it properly converts lines to CR/LF. This bash problem
1595
# is reportedly fixed, but why not run on old versions too?
1596
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1597
|| (rm -f "$cfgfile"; exit 1)
1599
_LT_PROG_XSI_SHELLFNS
1601
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1602
|| (rm -f "$cfgfile"; exit 1)
1604
mv -f "$cfgfile" "$ofile" ||
1605
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1608
[cat <<_LT_EOF >> "$ofile"
1610
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1611
dnl in a comment (ie after a #).
1612
# ### BEGIN LIBTOOL TAG CONFIG: $1
1613
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1614
# ### END LIBTOOL TAG CONFIG: $1
1621
TIMESTAMP='$TIMESTAMP'
1623
ofile='$ofile'], [])
1624
])dnl /_LT_CONFIG_SAVE_COMMANDS
1628
# LT_SUPPORTED_TAG(TAG)
1629
# ---------------------
1630
# Trace this macro to discover what tags are supported by the libtool
1631
# --tag option, using:
1632
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1633
AC_DEFUN([LT_SUPPORTED_TAG], [])
1636
# C support is built-in for now
1637
m4_define([_LT_LANG_C_enabled], [])
1638
m4_define([_LT_TAGS], [])
1643
# Enable libtool support for the given language if not already enabled.
1645
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1648
[C++], [_LT_LANG(CXX)],
1649
[Java], [_LT_LANG(GCJ)],
1650
[Fortran 77], [_LT_LANG(F77)],
1651
[Fortran], [_LT_LANG(FC)],
1652
[Windows Resource], [_LT_LANG(RC)],
1653
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1655
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1659
# _LT_LANG(LANGNAME)
1660
# ------------------
1661
m4_defun([_LT_LANG],
1662
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1663
[LT_SUPPORTED_TAG([$1])dnl
1664
m4_append([_LT_TAGS], [$1 ])dnl
1665
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1666
_LT_LANG_$1_CONFIG($1)])dnl
1670
# _LT_LANG_DEFAULT_CONFIG
1671
# -----------------------
1672
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1673
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1675
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1677
AC_PROVIDE_IFELSE([AC_PROG_F77],
1679
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1681
AC_PROVIDE_IFELSE([AC_PROG_FC],
1683
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1685
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1686
dnl pulling things in needlessly.
1687
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1689
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1691
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1693
[m4_ifdef([AC_PROG_GCJ],
1694
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1695
m4_ifdef([A][M_PROG_GCJ],
1696
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1697
m4_ifdef([LT_PROG_GCJ],
1698
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1700
AC_PROVIDE_IFELSE([LT_PROG_RC],
1702
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1703
])# _LT_LANG_DEFAULT_CONFIG
1706
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1707
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1708
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1709
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1710
dnl aclocal-1.4 backwards compatibility:
1711
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1712
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1713
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1714
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1719
m4_defun([_LT_TAG_COMPILER],
1962
1720
[AC_REQUIRE([AC_PROG_CC])dnl
1722
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1723
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1724
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1725
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1964
1727
# If no C compiler was specified, use CC.
1965
1728
LTCC=${LTCC-"$CC"}
4374
4155
AC_CHECK_LIB(m, cos, LIBM="-lm")
4380
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4381
# -----------------------------------
4382
# sets LIBLTDL to the link flags for the libltdl convenience library and
4383
# LTDLINCL to the include flags for the libltdl header and adds
4384
# --enable-ltdl-convenience to the configure arguments. Note that
4385
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4386
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4387
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4388
# (note the single quotes!). If your package is not flat and you're not
4389
# using automake, define top_builddir and top_srcdir appropriately in
4391
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4392
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4393
case $enable_ltdl_convenience in
4394
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4395
"") enable_ltdl_convenience=yes
4396
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4398
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4399
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4400
# For backwards non-gettext consistent compatibility...
4402
])# AC_LIBLTDL_CONVENIENCE
4405
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4406
# -----------------------------------
4407
# sets LIBLTDL to the link flags for the libltdl installable library and
4408
# LTDLINCL to the include flags for the libltdl header and adds
4409
# --enable-ltdl-install to the configure arguments. Note that
4410
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4411
# and an installed libltdl is not found, it is assumed to be `libltdl'.
4412
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4413
# '${top_srcdir}/' (note the single quotes!). If your package is not
4414
# flat and you're not using automake, define top_builddir and top_srcdir
4415
# appropriately in the Makefiles.
4416
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4417
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4418
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4419
AC_CHECK_LIB(ltdl, lt_dlinit,
4420
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4421
[if test x"$enable_ltdl_install" = xno; then
4422
AC_MSG_WARN([libltdl not installed, but installation disabled])
4424
enable_ltdl_install=yes
4427
if test x"$enable_ltdl_install" = x"yes"; then
4428
ac_configure_args="$ac_configure_args --enable-ltdl-install"
4429
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4430
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4432
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4436
# For backwards non-gettext consistent compatibility...
4438
])# AC_LIBLTDL_INSTALLABLE
4443
# enable support for C++ libraries
4444
AC_DEFUN([AC_LIBTOOL_CXX],
4445
[AC_REQUIRE([_LT_AC_LANG_CXX])
4451
AC_DEFUN([_LT_AC_LANG_CXX],
4452
[AC_REQUIRE([AC_PROG_CXX])
4453
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4454
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4457
# _LT_AC_PROG_CXXCPP
4458
# ------------------
4459
AC_DEFUN([_LT_AC_PROG_CXXCPP],
4461
AC_REQUIRE([AC_PROG_CXX])
4462
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4463
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4464
(test "X$CXX" != "Xg++"))) ; then
4467
])# _LT_AC_PROG_CXXCPP
4471
# enable support for Fortran 77 libraries
4472
AC_DEFUN([AC_LIBTOOL_F77],
4473
[AC_REQUIRE([_LT_AC_LANG_F77])
4479
AC_DEFUN([_LT_AC_LANG_F77],
4480
[AC_REQUIRE([AC_PROG_F77])
4481
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4487
# enable support for GCJ libraries
4488
AC_DEFUN([AC_LIBTOOL_GCJ],
4489
[AC_REQUIRE([_LT_AC_LANG_GCJ])
4495
AC_DEFUN([_LT_AC_LANG_GCJ],
4496
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4497
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4498
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4499
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4500
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4501
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4502
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4508
# enable support for Windows resource files
4509
AC_DEFUN([AC_LIBTOOL_RC],
4510
[AC_REQUIRE([LT_AC_PROG_RC])
4511
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4515
# AC_LIBTOOL_LANG_C_CONFIG
4516
# ------------------------
4517
# Ensure that the configuration vars for the C compiler are
4518
# suitably defined. Those variables are subsequently used by
4519
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4520
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4521
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4525
# Source file extension for C test sources.
4528
# Object file extension for compiled C test sources.
4530
_LT_AC_TAGVAR(objext, $1)=$objext
4532
# Code to be used in simple compile tests
4533
lt_simple_compile_test_code="int some_variable = 0;"
4535
# Code to be used in simple link tests
4536
lt_simple_link_test_code='int main(){return(0);}'
4540
# save warnings/boilerplate of simple test code
4541
_LT_COMPILER_BOILERPLATE
4542
_LT_LINKER_BOILERPLATE
4544
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4545
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4546
AC_LIBTOOL_PROG_CC_C_O($1)
4547
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4548
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4549
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4550
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4551
AC_LIBTOOL_SYS_LIB_STRIP
4552
AC_LIBTOOL_DLOPEN_SELF
4554
# Report which library types will actually be built
4555
AC_MSG_CHECKING([if libtool supports shared libraries])
4556
AC_MSG_RESULT([$can_build_shared])
4558
AC_MSG_CHECKING([whether to build shared libraries])
4559
test "$can_build_shared" = "no" && enable_shared=no
4561
# On AIX, shared libraries and static libraries use the same namespace, and
4562
# are all built from PIC.
4565
test "$enable_shared" = yes && enable_static=no
4566
if test -n "$RANLIB"; then
4567
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4568
postinstall_cmds='$RANLIB $lib'
4573
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4574
test "$enable_shared" = yes && enable_static=no
4578
AC_MSG_RESULT([$enable_shared])
4580
AC_MSG_CHECKING([whether to build static libraries])
4581
# Make sure either enable_shared or enable_static is yes.
4582
test "$enable_shared" = yes || enable_static=yes
4583
AC_MSG_RESULT([$enable_static])
4585
AC_LIBTOOL_CONFIG($1)
4589
])# AC_LIBTOOL_LANG_C_CONFIG
4592
# AC_LIBTOOL_LANG_CXX_CONFIG
4593
# --------------------------
4594
# Ensure that the configuration vars for the C compiler are
4595
# suitably defined. Those variables are subsequently used by
4596
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4597
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4598
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4600
AC_REQUIRE([AC_PROG_CXX])
4601
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4603
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4604
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4605
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4606
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4607
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4608
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4609
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4610
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4611
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4612
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4613
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4614
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4615
_LT_AC_TAGVAR(module_cmds, $1)=
4616
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4617
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4618
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4619
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4620
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4621
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4623
# Dependencies to place before and after the object being linked:
4624
_LT_AC_TAGVAR(predep_objects, $1)=
4625
_LT_AC_TAGVAR(postdep_objects, $1)=
4626
_LT_AC_TAGVAR(predeps, $1)=
4627
_LT_AC_TAGVAR(postdeps, $1)=
4628
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4629
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4631
# Source file extension for C++ test sources.
4634
# Object file extension for compiled C++ test sources.
4636
_LT_AC_TAGVAR(objext, $1)=$objext
4638
# Code to be used in simple compile tests
4639
lt_simple_compile_test_code="int some_variable = 0;"
4641
# Code to be used in simple link tests
4642
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
4644
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4647
# save warnings/boilerplate of simple test code
4648
_LT_COMPILER_BOILERPLATE
4649
_LT_LINKER_BOILERPLATE
4651
# Allow CC to be a program name with arguments.
4656
lt_save_with_gnu_ld=$with_gnu_ld
4657
lt_save_path_LD=$lt_cv_path_LD
4658
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4659
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4661
$as_unset lt_cv_prog_gnu_ld
4663
if test -n "${lt_cv_path_LDCXX+set}"; then
4664
lt_cv_path_LD=$lt_cv_path_LDCXX
4666
$as_unset lt_cv_path_LD
4668
test -z "${LDCXX+set}" || LD=$LDCXX
4671
_LT_AC_TAGVAR(compiler, $1)=$CC
4672
_LT_CC_BASENAME([$compiler])
4674
# We don't want -fno-exception wen compiling C++ code, so set the
4675
# no_builtin_flag separately
4676
if test "$GXX" = yes; then
4677
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4679
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4682
if test "$GXX" = yes; then
4683
# Set up default GNU C++ configuration
4687
# Check if GNU C++ uses GNU ld as the underlying linker, since the
4688
# archiving commands below assume that GNU ld is being used.
4689
if test "$with_gnu_ld" = yes; then
4690
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4691
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4693
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4694
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4696
# If archive_cmds runs LD, not CC, wlarc should be empty
4697
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4698
# investigate it a little bit more. (MM)
4701
# ancient GNU ld didn't support --whole-archive et. al.
4702
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4703
grep 'no-whole-archive' > /dev/null; then
4704
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4706
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4712
# A generic and very simple default shared library creation
4713
# command for GNU C++ for the case where it uses the native
4714
# linker, instead of GNU ld. If possible, this setting should
4715
# overridden to take advantage of the native linker features on
4716
# the platform it is being used on.
4717
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4720
# Commands to make compiler produce verbose output that lists
4721
# what "hidden" libraries, object files and flags are used when
4722
# linking a shared library.
4723
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4731
# PORTME: fill in a description of your system's C++ link characteristics
4732
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4733
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4736
# FIXME: insert proper C++ library support
4737
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4740
if test "$host_cpu" = ia64; then
4741
# On IA64, the linker does run time linking by default, so we don't
4742
# have to do anything special.
4743
aix_use_runtimelinking=no
4744
exp_sym_flag='-Bexport'
4747
aix_use_runtimelinking=no
4749
# Test if we are trying to use run time linking or normal
4750
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
4751
# need to do runtime linking.
4752
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
4753
for ld_flag in $LDFLAGS; do
4756
aix_use_runtimelinking=yes
4764
exp_sym_flag='-bexport'
4765
no_entry_flag='-bnoentry'
4768
# When large executables or shared objects are built, AIX ld can
4769
# have problems creating the table of contents. If linking a library
4770
# or program results in "error TOC overflow" add -mminimal-toc to
4771
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4772
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4774
_LT_AC_TAGVAR(archive_cmds, $1)=''
4775
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4776
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4777
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4779
if test "$GXX" = yes; then
4780
case $host_os in aix4.[[012]]|aix4.[[012]].*)
4781
# We only want to do this on AIX 4.2 and lower, the check
4782
# below for broken collect2 doesn't work under 4.3+
4783
collect2name=`${CC} -print-prog-name=collect2`
4784
if test -f "$collect2name" && \
4785
strings "$collect2name" | grep resolve_lib_name >/dev/null
4787
# We have reworked collect2
4790
# We have old collect2
4791
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4792
# It fails to find uninstalled libraries when the uninstalled
4793
# path is not listed in the libpath. Setting hardcode_minus_L
4794
# to unsupported forces relinking
4795
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4796
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4797
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4801
shared_flag='-shared'
4802
if test "$aix_use_runtimelinking" = yes; then
4803
shared_flag="$shared_flag "'${wl}-G'
4807
if test "$host_cpu" = ia64; then
4808
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4809
# chokes on -Wl,-G. The following line is correct:
4812
if test "$aix_use_runtimelinking" = yes; then
4813
shared_flag='${wl}-G'
4815
shared_flag='${wl}-bM:SRE'
4820
# It seems that -bexpall does not export symbols beginning with
4821
# underscore (_), so it is better to generate a list of symbols to export.
4822
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
4823
if test "$aix_use_runtimelinking" = yes; then
4824
# Warning - without using the other runtime loading flags (-brtl),
4825
# -berok will link without error, but may produce a broken library.
4826
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4827
# Determine the default libpath from the value encoded in an empty executable.
4828
_LT_AC_SYS_LIBPATH_AIX
4829
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4831
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4833
if test "$host_cpu" = ia64; then
4834
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4835
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4836
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4838
# Determine the default libpath from the value encoded in an empty executable.
4839
_LT_AC_SYS_LIBPATH_AIX
4840
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4841
# Warning - without using the other run time loading flags,
4842
# -berok will link without error, but may produce a broken library.
4843
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4844
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4845
# Exported symbols can be pulled into shared objects from archives
4846
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4847
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4848
# This is similar to how AIX traditionally builds its shared libraries.
4849
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4855
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4856
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4857
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4858
# support --undefined. This deserves some investigation. FIXME
4859
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4861
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4866
case $cc_basename in
4868
# FIXME: insert proper C++ library support
4869
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4874
cygwin* | mingw* | pw32*)
4875
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4876
# as there is no search path for DLLs.
4877
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4878
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4879
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4880
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4882
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4883
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4884
# If the export-symbols file already is a .def file (1st line
4885
# is EXPORTS), use it as is; otherwise, prepend...
4886
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4887
cp $export_symbols $output_objdir/$soname.def;
4889
echo EXPORTS > $output_objdir/$soname.def;
4890
cat $export_symbols >> $output_objdir/$soname.def;
4892
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4894
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4897
darwin* | rhapsody*)
4898
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4899
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4900
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4901
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4902
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4903
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4904
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
4905
if test "$GXX" = yes ; then
4906
output_verbose_link_cmd='echo'
4907
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
4908
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
4909
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
4910
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
4911
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
4912
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
4913
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
4916
case $cc_basename in
4918
output_verbose_link_cmd='echo'
4919
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
4920
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4921
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4922
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4923
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4926
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4933
case $cc_basename in
4935
# FIXME: insert proper C++ library support
4936
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4939
# Green Hills C++ Compiler
4940
# FIXME: insert proper C++ library support
4941
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4944
# FIXME: insert proper C++ library support
4945
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4950
# C++ shared libraries reported to be fairly broken before switch to ELF
4951
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4954
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4956
freebsd* | dragonfly*)
4957
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4959
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4964
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4965
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4966
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4967
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4968
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4969
# but as the default
4970
# location of the library.
4972
case $cc_basename in
4974
# FIXME: insert proper C++ library support
4975
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4978
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4979
# Commands to make compiler produce verbose output that lists
4980
# what "hidden" libraries, object files and flags are used when
4981
# linking a shared library.
4983
# There doesn't appear to be a way to prevent this compiler from
4984
# explicitly linking system object files so we need to strip them
4985
# from the output so that they don't get included in the library
4987
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4990
if test "$GXX" = yes; then
4991
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4993
# FIXME: insert proper C++ library support
4994
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5000
if test $with_gnu_ld = no; then
5001
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5002
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5007
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5013
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5014
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5017
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5018
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5019
# but as the default
5020
# location of the library.
5024
case $cc_basename in
5026
# FIXME: insert proper C++ library support
5027
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5032
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5035
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5038
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5041
# Commands to make compiler produce verbose output that lists
5042
# what "hidden" libraries, object files and flags are used when
5043
# linking a shared library.
5045
# There doesn't appear to be a way to prevent this compiler from
5046
# explicitly linking system object files so we need to strip them
5047
# from the output so that they don't get included in the library
5049
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5052
if test "$GXX" = yes; then
5053
if test $with_gnu_ld = no; then
5056
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5059
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5062
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5067
# FIXME: insert proper C++ library support
5068
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5074
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5075
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5076
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5077
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5078
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5079
# Instead, shared libraries are loaded at an image base (0x10000000 by
5080
# default) and relocated if they conflict, which is a slow very memory
5081
# consuming and fragmenting process. To avoid this, we pick a random,
5082
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5083
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5084
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5085
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5088
case $cc_basename in
5091
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5093
# Archives containing C++ object files must be created using
5094
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
5095
# necessary to make sure instantiated templates are included
5097
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5100
if test "$GXX" = yes; then
5101
if test "$with_gnu_ld" = no; then
5102
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5107
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5110
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5111
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5113
linux* | k*bsd*-gnu)
5114
case $cc_basename in
5116
# Kuck and Associates, Inc. (KAI) C++ Compiler
5118
# KCC will only create a shared library if the output file
5119
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5120
# to its proper name (with version) after linking.
5121
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5122
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5123
# Commands to make compiler produce verbose output that lists
5124
# what "hidden" libraries, object files and flags are used when
5125
# linking a shared library.
5127
# There doesn't appear to be a way to prevent this compiler from
5128
# explicitly linking system object files so we need to strip them
5129
# from the output so that they don't get included in the library
5131
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5133
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5134
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5136
# Archives containing C++ object files must be created using
5137
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5138
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5143
# version 8.0 and above of icpc choke on multiply defined symbols
5144
# if we add $predep_objects and $postdep_objects, however 7.1 and
5145
# earlier do not add the objects themselves.
5146
case `$CC -V 2>&1` in
5148
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5149
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5151
*) # Version 8.0 or newer
5154
ia64*) tmp_idyn=' -i_dynamic';;
5156
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5157
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5160
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5161
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5162
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5163
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5166
# Portland Group C++ compiler
5167
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5168
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5170
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5171
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5172
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5176
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5177
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5179
runpath_var=LD_RUN_PATH
5180
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5181
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5183
# Commands to make compiler produce verbose output that lists
5184
# what "hidden" libraries, object files and flags are used when
5185
# linking a shared library.
5187
# There doesn't appear to be a way to prevent this compiler from
5188
# explicitly linking system object files so we need to strip them
5189
# from the output so that they don't get included in the library
5191
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5194
case `$CC -V 2>&1 | sed 5q` in
5197
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5198
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5199
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
5200
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5201
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5203
# Not sure whether something based on
5204
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5206
output_verbose_link_cmd='echo'
5208
# Archives containing C++ object files must be created using
5209
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5210
# necessary to make sure instantiated templates are included
5212
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5219
# FIXME: insert proper C++ library support
5220
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5223
# FIXME: insert proper C++ library support
5224
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5227
case $cc_basename in
5229
# FIXME: insert proper C++ library support
5230
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5233
# FIXME: insert proper C++ library support
5234
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5239
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5240
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5242
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5243
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5244
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5246
# Workaround some broken pre-1.5 toolchains
5247
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5250
# C++ shared libraries are fairly broken
5251
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5254
if test -f /usr/libexec/ld.so; then
5255
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5256
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5257
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5259
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5260
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
5261
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5262
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5264
output_verbose_link_cmd='echo'
5266
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5270
case $cc_basename in
5272
# Kuck and Associates, Inc. (KAI) C++ Compiler
5274
# KCC will only create a shared library if the output file
5275
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5276
# to its proper name (with version) after linking.
5277
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5280
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5282
# Archives containing C++ object files must be created using
5283
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
5284
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5288
# Rational C++ 2.4.1
5289
# FIXME: insert proper C++ library support
5290
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5293
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5294
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5296
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5297
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5299
# Commands to make compiler produce verbose output that lists
5300
# what "hidden" libraries, object files and flags are used when
5301
# linking a shared library.
5303
# There doesn't appear to be a way to prevent this compiler from
5304
# explicitly linking system object files so we need to strip them
5305
# from the output so that they don't get included in the library
5307
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5310
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5311
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5312
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5314
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5315
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5317
# Commands to make compiler produce verbose output that lists
5318
# what "hidden" libraries, object files and flags are used when
5319
# linking a shared library.
5320
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5323
# FIXME: insert proper C++ library support
5324
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5330
case $cc_basename in
5332
# Kuck and Associates, Inc. (KAI) C++ Compiler
5334
# KCC will only create a shared library if the output file
5335
# ends with ".so" (or ".sl" for HP-UX), so rename the library
5336
# to its proper name (with version) after linking.
5337
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5339
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5340
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5342
# Archives containing C++ object files must be created using
5343
# the KAI C++ compiler.
5344
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5347
# Rational C++ 2.4.1
5348
# FIXME: insert proper C++ library support
5349
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5352
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5353
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5354
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5355
echo "-hidden">> $lib.exp~
5356
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
5359
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5360
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5362
# Commands to make compiler produce verbose output that lists
5363
# what "hidden" libraries, object files and flags are used when
5364
# linking a shared library.
5366
# There doesn't appear to be a way to prevent this compiler from
5367
# explicitly linking system object files so we need to strip them
5368
# from the output so that they don't get included in the library
5370
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5373
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5374
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5375
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5377
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5378
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5380
# Commands to make compiler produce verbose output that lists
5381
# what "hidden" libraries, object files and flags are used when
5382
# linking a shared library.
5383
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5386
# FIXME: insert proper C++ library support
5387
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5393
# FIXME: insert proper C++ library support
5394
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5397
case $cc_basename in
5400
# FIXME: insert proper C++ library support
5401
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5405
# FIXME: insert proper C++ library support
5406
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5409
# FIXME: insert proper C++ library support
5410
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5415
case $cc_basename in
5417
# Sun C++ 4.2, 5.x and Centerline C++
5418
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
5419
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5420
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5421
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5422
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5424
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5425
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5427
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5429
# The compiler driver will combine and reorder linker options,
5430
# but understands `-z linker_flag'.
5431
# Supported since Solaris 2.6 (maybe 2.5.1?)
5432
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5435
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5437
output_verbose_link_cmd='echo'
5439
# Archives containing C++ object files must be created using
5440
# "CC -xar", where "CC" is the Sun C++ compiler. This is
5441
# necessary to make sure instantiated templates are included
5443
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5446
# Green Hills C++ Compiler
5447
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5449
# The C++ compiler must be used to create the archive.
5450
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5453
# GNU C++ compiler with Solaris linker
5454
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5455
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5456
if $CC --version | grep -v '^2\.7' > /dev/null; then
5457
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5458
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5459
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5461
# Commands to make compiler produce verbose output that lists
5462
# what "hidden" libraries, object files and flags are used when
5463
# linking a shared library.
5464
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5466
# g++ 2.7 appears to require `-G' NOT `-shared' on this
5468
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5469
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5470
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5472
# Commands to make compiler produce verbose output that lists
5473
# what "hidden" libraries, object files and flags are used when
5474
# linking a shared library.
5475
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5478
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5480
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5482
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5489
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5490
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5491
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5492
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5493
runpath_var='LD_RUN_PATH'
5495
case $cc_basename in
5497
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5498
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5502
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5506
sysv5* | sco3.2v5* | sco5v6*)
5507
# Note: We can NOT use -z defs as we might desire, because we do not
5508
# link with -lc, and that would cause any symbols used from libc to
5509
# always be unresolved, which means just about no library would
5510
# ever link correctly. If we're not using GNU ld we use -z text
5511
# though, which does catch some bad symbols but isn't as heavy-handed
5513
# For security reasons, it is highly recommended that you always
5514
# use absolute paths for naming shared libraries, and exclude the
5515
# DT_RUNPATH tag from executables and libraries. But doing so
5516
# requires that you compile everything twice, which is a pain.
5517
# So that behaviour is only enabled if SCOABSPATH is set to a
5518
# non-empty value in the environment. Most likely only useful for
5519
# creating official distributions of packages.
5520
# This is a hack until libtool officially supports absolute path
5521
# names for shared libraries.
5522
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5523
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5524
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5525
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5526
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5527
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5528
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5529
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5530
runpath_var='LD_RUN_PATH'
5532
case $cc_basename in
5534
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5535
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5538
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5539
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5544
case $cc_basename in
5546
# NonStop-UX NCC 3.20
5547
# FIXME: insert proper C++ library support
5548
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5551
# FIXME: insert proper C++ library support
5552
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5557
# FIXME: insert proper C++ library support
5558
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5561
# FIXME: insert proper C++ library support
5562
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5565
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5566
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5568
_LT_AC_TAGVAR(GCC, $1)="$GXX"
5569
_LT_AC_TAGVAR(LD, $1)="$LD"
5571
AC_LIBTOOL_POSTDEP_PREDEP($1)
5572
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5573
AC_LIBTOOL_PROG_CC_C_O($1)
5574
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5575
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5576
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5577
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5579
AC_LIBTOOL_CONFIG($1)
5586
with_gnu_ldcxx=$with_gnu_ld
5587
with_gnu_ld=$lt_save_with_gnu_ld
5588
lt_cv_path_LDCXX=$lt_cv_path_LD
5589
lt_cv_path_LD=$lt_save_path_LD
5590
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5591
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5592
])# AC_LIBTOOL_LANG_CXX_CONFIG
5594
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5595
# ------------------------------------
5596
# Figure out "hidden" library dependencies from verbose
5597
# compiler output when linking a shared library.
5598
# Parse the compiler output and extract the necessary
5599
# objects, libraries and library flags.
5600
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
5601
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5602
dnl we can't use the lt_simple_compile_test_code here,
5603
dnl because it contains code intended for an executable,
5604
dnl not a library. It's possible we should let each
5605
dnl tag define a new lt_????_link_test_code variable,
5606
dnl but it's only used here...
5607
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5609
void foo (void) { a = 0; }
5611
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5615
Foo (void) { a = 0; }
5620
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5628
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5631
public void bar (void) {
5637
dnl Parse the compiler output and extract the necessary
5638
dnl objects, libraries and library flags.
5639
if AC_TRY_EVAL(ac_compile); then
5640
# Parse the compiler output and extract the necessary
5641
# objects, libraries and library flags.
5643
# Sentinel used to keep track of whether or not we are before
5644
# the conftest object file.
5645
pre_test_object_deps_done=no
5647
# The `*' in the case matches for architectures that use `case' in
5648
# $output_verbose_cmd can trigger glob expansion during the loop
5649
# eval without this substitution.
5650
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5652
for p in `eval $output_verbose_link_cmd`; do
5656
# Some compilers place space between "-{L,R}" and the path.
5659
|| test $p = "-R"; then
5666
if test "$pre_test_object_deps_done" = no; then
5669
# Internal compiler library paths should come after those
5670
# provided the user. The postdeps already come after the
5671
# user supplied libs so there is no need to process them.
5672
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5673
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5675
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5678
# The "-l" case would never come before the object being
5679
# linked, so don't bother handling this case.
5682
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5683
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5685
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5691
# This assumes that the test object file only shows up
5692
# once in the compiler output.
5693
if test "$p" = "conftest.$objext"; then
5694
pre_test_object_deps_done=yes
5698
if test "$pre_test_object_deps_done" = no; then
5699
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5700
_LT_AC_TAGVAR(predep_objects, $1)="$p"
5702
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5705
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5706
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
5708
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5713
*) ;; # Ignore the rest.
5721
echo "libtool.m4: error: problem compiling $1 test program"
5724
$rm -f confest.$objext
5726
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
5727
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5728
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
5731
# PORTME: override above test on systems where it is broken
5735
# Interix 3.5 installs completely hosed .la files for C++, so rather than
5736
# hack all around it, let's just trust "g++" to DTRT.
5737
_LT_AC_TAGVAR(predep_objects,$1)=
5738
_LT_AC_TAGVAR(postdep_objects,$1)=
5739
_LT_AC_TAGVAR(postdeps,$1)=
5743
case `$CC -V 2>&1 | sed 5q` in
5747
# The more standards-conforming stlport4 library is
5748
# incompatible with the Cstd library. Avoid specifying
5749
# it if it's in CXXFLAGS. Ignore libCrun as
5750
# -library=stlport4 depends on it.
5751
case " $CXX $CXXFLAGS " in
5752
*" -library=stlport4 "*)
5753
solaris_use_stlport4=yes
5756
if test "$solaris_use_stlport4" != yes; then
5757
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5764
case $cc_basename in
5766
# The more standards-conforming stlport4 library is
5767
# incompatible with the Cstd library. Avoid specifying
5768
# it if it's in CXXFLAGS. Ignore libCrun as
5769
# -library=stlport4 depends on it.
5770
case " $CXX $CXXFLAGS " in
5771
*" -library=stlport4 "*)
5772
solaris_use_stlport4=yes
5776
# Adding this requires a known-good setup of shared libraries for
5777
# Sun compiler versions before 5.6, else PIC objects from an old
5778
# archive will be linked into the output, leading to subtle bugs.
5779
if test "$solaris_use_stlport4" != yes; then
5780
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
5787
case " $_LT_AC_TAGVAR(postdeps, $1) " in
5788
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5790
])# AC_LIBTOOL_POSTDEP_PREDEP
5792
# AC_LIBTOOL_LANG_F77_CONFIG
5793
# --------------------------
5794
# Ensure that the configuration vars for the C compiler are
5795
# suitably defined. Those variables are subsequently used by
5796
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5797
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5798
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5799
[AC_REQUIRE([AC_PROG_F77])
5800
AC_LANG_PUSH(Fortran 77)
5802
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5803
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5804
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5805
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5806
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5807
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5808
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5809
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5810
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5811
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5812
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5813
_LT_AC_TAGVAR(module_cmds, $1)=
5814
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5815
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5816
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5817
_LT_AC_TAGVAR(no_undefined_flag, $1)=
5818
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5819
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5821
# Source file extension for f77 test sources.
5824
# Object file extension for compiled f77 test sources.
5826
_LT_AC_TAGVAR(objext, $1)=$objext
5828
# Code to be used in simple compile tests
5829
lt_simple_compile_test_code="\
5835
# Code to be used in simple link tests
5836
lt_simple_link_test_code="\
5841
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5844
# save warnings/boilerplate of simple test code
5845
_LT_COMPILER_BOILERPLATE
5846
_LT_LINKER_BOILERPLATE
5848
# Allow CC to be a program name with arguments.
5852
_LT_AC_TAGVAR(compiler, $1)=$CC
5853
_LT_CC_BASENAME([$compiler])
5855
AC_MSG_CHECKING([if libtool supports shared libraries])
5856
AC_MSG_RESULT([$can_build_shared])
5858
AC_MSG_CHECKING([whether to build shared libraries])
5859
test "$can_build_shared" = "no" && enable_shared=no
5861
# On AIX, shared libraries and static libraries use the same namespace, and
5862
# are all built from PIC.
5865
test "$enable_shared" = yes && enable_static=no
5866
if test -n "$RANLIB"; then
5867
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5868
postinstall_cmds='$RANLIB $lib'
5872
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5873
test "$enable_shared" = yes && enable_static=no
5877
AC_MSG_RESULT([$enable_shared])
5879
AC_MSG_CHECKING([whether to build static libraries])
5880
# Make sure either enable_shared or enable_static is yes.
5881
test "$enable_shared" = yes || enable_static=yes
5882
AC_MSG_RESULT([$enable_static])
5884
_LT_AC_TAGVAR(GCC, $1)="$G77"
5885
_LT_AC_TAGVAR(LD, $1)="$LD"
5887
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5888
AC_LIBTOOL_PROG_CC_C_O($1)
5889
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5890
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5891
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5892
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5894
AC_LIBTOOL_CONFIG($1)
5898
])# AC_LIBTOOL_LANG_F77_CONFIG
5901
# AC_LIBTOOL_LANG_GCJ_CONFIG
5902
# --------------------------
5903
# Ensure that the configuration vars for the C compiler are
5904
# suitably defined. Those variables are subsequently used by
5905
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5906
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5907
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5910
# Source file extension for Java test sources.
5913
# Object file extension for compiled Java test sources.
5915
_LT_AC_TAGVAR(objext, $1)=$objext
5917
# Code to be used in simple compile tests
5918
lt_simple_compile_test_code="class foo {}"
5920
# Code to be used in simple link tests
5921
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
5923
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5926
# save warnings/boilerplate of simple test code
5927
_LT_COMPILER_BOILERPLATE
5928
_LT_LINKER_BOILERPLATE
5930
# Allow CC to be a program name with arguments.
5934
_LT_AC_TAGVAR(compiler, $1)=$CC
5935
_LT_CC_BASENAME([$compiler])
5937
# GCJ did not exist at the time GCC didn't implicitly link libc in.
5938
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5940
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5942
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5943
AC_LIBTOOL_PROG_COMPILER_PIC($1)
5944
AC_LIBTOOL_PROG_CC_C_O($1)
5945
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5946
AC_LIBTOOL_PROG_LD_SHLIBS($1)
5947
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5948
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5950
AC_LIBTOOL_CONFIG($1)
5954
])# AC_LIBTOOL_LANG_GCJ_CONFIG
5957
# AC_LIBTOOL_LANG_RC_CONFIG
5958
# -------------------------
5959
# Ensure that the configuration vars for the Windows resource compiler are
5960
# suitably defined. Those variables are subsequently used by
5961
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5962
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5963
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5966
# Source file extension for RC test sources.
5969
# Object file extension for compiled RC test sources.
5971
_LT_AC_TAGVAR(objext, $1)=$objext
5973
# Code to be used in simple compile tests
5974
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
5976
# Code to be used in simple link tests
5977
lt_simple_link_test_code="$lt_simple_compile_test_code"
5979
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5982
# save warnings/boilerplate of simple test code
5983
_LT_COMPILER_BOILERPLATE
5984
_LT_LINKER_BOILERPLATE
5986
# Allow CC to be a program name with arguments.
5990
_LT_AC_TAGVAR(compiler, $1)=$CC
5991
_LT_CC_BASENAME([$compiler])
5992
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5994
AC_LIBTOOL_CONFIG($1)
5998
])# AC_LIBTOOL_LANG_RC_CONFIG
6001
# AC_LIBTOOL_CONFIG([TAGNAME])
6002
# ----------------------------
6003
# If TAGNAME is not passed, then create an initial libtool script
6004
# with a default configuration from the untagged config vars. Otherwise
6005
# add code to config.status for appending the configuration named by
6006
# TAGNAME from the matching tagged config vars.
6007
AC_DEFUN([AC_LIBTOOL_CONFIG],
6008
[# The else clause should only fire when bootstrapping the
6009
# libtool distribution, otherwise you forgot to ship ltmain.sh
6010
# with your package, and you will get complaints that there are
6011
# no rules to generate ltmain.sh.
6012
if test -f "$ltmain"; then
6013
# See if we are running on zsh, and set the options which allow our commands through
6014
# without removal of \ escapes.
6015
if test -n "${ZSH_VERSION+set}" ; then
6016
setopt NO_GLOB_SUBST
6018
# Now quote all the things that may contain metacharacters while being
6019
# careful not to overquote the AC_SUBSTed values. We take copies of the
6020
# variables and quote the copies for generation of the libtool script.
6021
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
6023
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6024
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6025
deplibs_check_method reload_flag reload_cmds need_locks \
6026
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6027
lt_cv_sys_global_symbol_to_c_name_address \
6028
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6029
old_postinstall_cmds old_postuninstall_cmds \
6030
_LT_AC_TAGVAR(compiler, $1) \
6031
_LT_AC_TAGVAR(CC, $1) \
6032
_LT_AC_TAGVAR(LD, $1) \
6033
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
6034
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
6035
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
6036
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
6037
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
6038
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
6039
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
6040
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
6041
_LT_AC_TAGVAR(old_archive_cmds, $1) \
6042
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
6043
_LT_AC_TAGVAR(predep_objects, $1) \
6044
_LT_AC_TAGVAR(postdep_objects, $1) \
6045
_LT_AC_TAGVAR(predeps, $1) \
6046
_LT_AC_TAGVAR(postdeps, $1) \
6047
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
6048
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
6049
_LT_AC_TAGVAR(archive_cmds, $1) \
6050
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
6051
_LT_AC_TAGVAR(postinstall_cmds, $1) \
6052
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
6053
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
6054
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
6055
_LT_AC_TAGVAR(no_undefined_flag, $1) \
6056
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
6057
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
6058
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
6059
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
6060
_LT_AC_TAGVAR(hardcode_automatic, $1) \
6061
_LT_AC_TAGVAR(module_cmds, $1) \
6062
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
6063
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
6064
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
6065
_LT_AC_TAGVAR(exclude_expsyms, $1) \
6066
_LT_AC_TAGVAR(include_expsyms, $1); do
6069
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
6070
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
6071
_LT_AC_TAGVAR(archive_cmds, $1) | \
6072
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
6073
_LT_AC_TAGVAR(module_cmds, $1) | \
6074
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
6075
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
6076
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
6077
extract_expsyms_cmds | reload_cmds | finish_cmds | \
6078
postinstall_cmds | postuninstall_cmds | \
6079
old_postinstall_cmds | old_postuninstall_cmds | \
6080
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6081
# Double-quote double-evaled strings.
6082
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6085
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6091
*'\[$]0 --fallback-echo"')
6092
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
6097
[cfgfile="${ofile}T"
6098
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6100
AC_MSG_NOTICE([creating $ofile])],
6103
cat <<__EOF__ >> "$cfgfile"
6107
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6108
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6109
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6111
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
6112
# Free Software Foundation, Inc.
6114
# This file is part of GNU Libtool:
6115
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6117
# This program is free software; you can redistribute it and/or modify
6118
# it under the terms of the GNU General Public License as published by
6119
# the Free Software Foundation; either version 2 of the License, or
6120
# (at your option) any later version.
6122
# This program is distributed in the hope that it will be useful, but
6123
# WITHOUT ANY WARRANTY; without even the implied warranty of
6124
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6125
# General Public License for more details.
6127
# You should have received a copy of the GNU General Public License
6128
# along with this program; if not, write to the Free Software
6129
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6131
# As a special exception to the GNU General Public License, if you
6132
# distribute this file as part of a program that contains a
6133
# configuration script generated by Autoconf, you may include it under
6134
# the same distribution terms that you use for the rest of that program.
6136
# A sed program that does not truncate output.
6139
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6140
Xsed="$SED -e 1s/^X//"
6142
# The HP-UX ksh and POSIX shell print the target directory to stdout
6144
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6146
# The names of the tagged configurations supported by this script.
6149
# ### BEGIN LIBTOOL CONFIG],
6150
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
6152
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6154
# Shell to use when invoking shell scripts.
6157
# Whether or not to build shared libraries.
6158
build_libtool_libs=$enable_shared
6160
# Whether or not to build static libraries.
6161
build_old_libs=$enable_static
6163
# Whether or not to add -lc for building shared libraries.
6164
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
6166
# Whether or not to disallow shared libs when runtime libs are static
6167
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
6169
# Whether or not to optimize for fast installation.
6170
fast_install=$enable_fast_install
6173
host_alias=$host_alias
6178
build_alias=$build_alias
6182
# An echo program that does not interpret backslashes.
6187
AR_FLAGS=$lt_AR_FLAGS
6192
# LTCC compiler flags.
6193
LTCFLAGS=$lt_LTCFLAGS
6195
# A language-specific compiler.
6196
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
6198
# Is the compiler the GNU C compiler?
6199
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
6204
# The linker used to build libraries.
6205
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
6207
# Whether we need hard or soft links.
6210
# A BSD-compatible nm program.
6213
# A symbol stripping program
6216
# Used to examine libraries when file_magic_cmd begins "file"
6217
MAGIC_CMD=$MAGIC_CMD
6219
# Used on cygwin: DLL creation program.
6222
# Used on cygwin: object dumper.
6225
# Used on cygwin: assembler.
6228
# The name of the directory that contains temporary libtool files.
6231
# How to create reloadable object files.
6232
reload_flag=$lt_reload_flag
6233
reload_cmds=$lt_reload_cmds
6235
# How to pass a linker flag through the compiler.
6236
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6238
# Object file suffix (normally "o").
6241
# Old archive suffix (normally "a").
6244
# Shared library suffix (normally ".so").
6245
shrext_cmds='$shrext_cmds'
6247
# Executable file suffix (normally "").
6250
# Additional compiler flags for building library objects.
6251
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6254
# What is the maximum length of a command?
6255
max_cmd_len=$lt_cv_sys_max_cmd_len
6257
# Does compiler simultaneously support -c and -o options?
6258
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
6260
# Must we lock files when doing compilation?
6261
need_locks=$lt_need_locks
6263
# Do we need the lib prefix for modules?
6264
need_lib_prefix=$need_lib_prefix
6266
# Do we need a version for libraries?
6267
need_version=$need_version
6269
# Whether dlopen is supported.
6270
dlopen_support=$enable_dlopen
6272
# Whether dlopen of programs is supported.
6273
dlopen_self=$enable_dlopen_self
6275
# Whether dlopen of statically linked programs is supported.
6276
dlopen_self_static=$enable_dlopen_self_static
6278
# Compiler flag to prevent dynamic linking.
6279
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6281
# Compiler flag to turn off builtin functions.
6282
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6284
# Compiler flag to allow reflexive dlopens.
6285
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6287
# Compiler flag to generate shared objects directly from archives.
6288
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6290
# Compiler flag to generate thread-safe objects.
6291
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6293
# Library versioning type.
6294
version_type=$version_type
6296
# Format of library name prefix.
6297
libname_spec=$lt_libname_spec
6299
# List of archive names. First name is the real one, the rest are links.
6300
# The last name is the one that the linker finds with -lNAME.
6301
library_names_spec=$lt_library_names_spec
6303
# The coded name of the library, if different from the real name.
6304
soname_spec=$lt_soname_spec
6306
# Commands used to build and install an old-style archive.
6308
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6309
old_postinstall_cmds=$lt_old_postinstall_cmds
6310
old_postuninstall_cmds=$lt_old_postuninstall_cmds
6312
# Create an old-style archive from a shared archive.
6313
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6315
# Create a temporary old-style archive to link instead of a shared archive.
6316
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6318
# Commands used to build and install a shared archive.
6319
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6320
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6321
postinstall_cmds=$lt_postinstall_cmds
6322
postuninstall_cmds=$lt_postuninstall_cmds
6324
# Commands used to build a loadable module (assumed same as above if empty)
6325
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6326
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6328
# Commands to strip libraries.
6329
old_striplib=$lt_old_striplib
6330
striplib=$lt_striplib
6332
# Dependencies to place before the objects being linked to create a
6334
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6336
# Dependencies to place after the objects being linked to create a
6338
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6340
# Dependencies to place before the objects being linked to create a
6342
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6344
# Dependencies to place after the objects being linked to create a
6346
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6348
# The directories searched by this compiler when creating a shared
6350
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
6352
# The library search path used internally by the compiler when linking
6354
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6356
# Method to check whether dependent libraries are shared objects.
6357
deplibs_check_method=$lt_deplibs_check_method
6359
# Command to use when deplibs_check_method == file_magic.
6360
file_magic_cmd=$lt_file_magic_cmd
6362
# Flag that allows shared libraries with undefined symbols to be built.
6363
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6365
# Flag that forces no undefined symbols.
6366
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6368
# Commands used to finish a libtool library installation in a directory.
6369
finish_cmds=$lt_finish_cmds
6371
# Same as above, but a single script fragment to be evaled but not shown.
6372
finish_eval=$lt_finish_eval
6374
# Take the output of nm and produce a listing of raw symbols and C names.
6375
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6377
# Transform the output of nm in a proper C declaration
6378
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6380
# Transform the output of nm in a C name address pair
6381
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6383
# This is the shared library runtime path variable.
6384
runpath_var=$runpath_var
6386
# This is the shared library path variable.
6387
shlibpath_var=$shlibpath_var
6389
# Is shlibpath searched before the hard-coded library search path?
6390
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6392
# How to hardcode a shared library path into an executable.
6393
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6395
# Whether we should hardcode library paths into libraries.
6396
hardcode_into_libs=$hardcode_into_libs
6398
# Flag to hardcode \$libdir into a binary during linking.
6399
# This must work even if \$libdir does not exist.
6400
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6402
# If ld is used when linking, flag to hardcode \$libdir into
6403
# a binary during linking. This must work even if \$libdir does
6405
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6407
# Whether we need a single -rpath flag with a separated argument.
6408
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6410
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6412
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6414
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6416
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6418
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6419
# the resulting binary.
6420
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6422
# Set to yes if building a shared library automatically hardcodes DIR into the library
6423
# and all subsequent libraries and executables linked against it.
6424
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6426
# Variables whose values should be saved in libtool wrapper scripts and
6427
# restored at relink time.
6428
variables_saved_for_relink="$variables_saved_for_relink"
6430
# Whether libtool must link a program against all its dependency libraries.
6431
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6433
# Compile-time system search path for libraries
6434
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6436
# Run-time system search path for libraries
6437
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6439
# Fix the shell variable \$srcfile for the compiler.
6440
fix_srcfile_path=$lt_fix_srcfile_path
6442
# Set to yes if exported symbols are required.
6443
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6445
# The commands to list exported symbols.
6446
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6448
# The commands to extract the exported symbol list from a shared archive.
6449
extract_expsyms_cmds=$lt_extract_expsyms_cmds
6451
# Symbols that should not be listed in the preloaded symbols.
6452
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6454
# Symbols that must always be exported.
6455
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6458
[# ### END LIBTOOL CONFIG],
6459
[# ### END LIBTOOL TAG CONFIG: $tagname])
6466
cat <<\EOF >> "$cfgfile"
6468
# AIX sometimes has problems with the GCC collect2 program. For some
6469
# reason, if we set the COLLECT_NAMES environment variable, the problems
6470
# vanish in a puff of smoke.
6471
if test "X${COLLECT_NAMES+set}" != Xset; then
6473
export COLLECT_NAMES
6479
# We use sed instead of cat because bash on DJGPP gets confused if
6480
# if finds mixed CR/LF and LF-only lines. Since sed operates in
6481
# text mode, it properly converts lines to CR/LF. This bash problem
6482
# is reportedly fixed, but why not run on old versions too?
6483
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6485
mv -f "$cfgfile" "$ofile" || \
6486
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6490
# If there is no Makefile yet, we rely on a make rule to execute
6491
# `config.status --recheck' to rerun these tests and create the
6492
# libtool script then.
6493
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6494
if test -f "$ltmain_in"; then
6495
test -f Makefile && make "$ltmain"
6498
])# AC_LIBTOOL_CONFIG
6501
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6502
# -------------------------------------------
6503
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6504
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6506
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4162
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4163
dnl aclocal-1.4 backwards compatibility:
4164
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4167
# _LT_COMPILER_NO_RTTI([TAGNAME])
4168
# -------------------------------
4169
m4_defun([_LT_COMPILER_NO_RTTI],
4170
[m4_require([_LT_TAG_COMPILER])dnl
4172
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6508
4174
if test "$GCC" = yes; then
6509
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4175
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6511
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4177
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6512
4178
lt_cv_prog_compiler_rtti_exceptions,
6513
4179
[-fno-rtti -fno-exceptions], [],
6514
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4180
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6516
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6519
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6520
# ---------------------------------
6521
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6522
[AC_REQUIRE([AC_CANONICAL_HOST])
6523
AC_REQUIRE([LT_AC_PROG_SED])
6524
AC_REQUIRE([AC_PROG_NM])
6525
AC_REQUIRE([AC_OBJEXT])
4182
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4183
[Compiler flag to turn off builtin functions])
4184
])# _LT_COMPILER_NO_RTTI
4187
# _LT_CMD_GLOBAL_SYMBOLS
4188
# ----------------------
4189
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4190
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4191
AC_REQUIRE([AC_PROG_CC])dnl
4192
AC_REQUIRE([LT_PATH_NM])dnl
4193
AC_REQUIRE([LT_PATH_LD])dnl
4194
m4_require([_LT_DECL_SED])dnl
4195
m4_require([_LT_DECL_EGREP])dnl
4196
m4_require([_LT_TAG_COMPILER])dnl
6526
4198
# Check for command to grab the raw symbol name followed by C symbol from nm.
6527
4199
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6528
4200
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
7124
4852
# +Z the default
7127
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4855
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
7130
4858
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7131
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4859
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
7134
4862
irix5* | irix6* | nonstopux*)
7135
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4863
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7136
4864
# PIC (with -KPIC) is the default.
7137
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7141
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7142
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4865
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7145
4868
linux* | k*bsd*-gnu)
7146
4869
case $cc_basename in
7148
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7149
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7150
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4870
# old Intel for x86_64 which still supported -KPIC.
4872
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4873
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4874
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4876
# icc used to be incompatible with GCC.
4877
# ICC 10 doesn't accept -KPIC any more.
4879
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4880
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4881
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4883
# Lahey Fortran 8.1.
4885
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4886
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4887
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
7152
4889
pgcc* | pgf77* | pgf90* | pgf95*)
7153
4890
# Portland Group compilers (*not* the Pentium gcc compiler,
7154
4891
# which looks to be a dead project)
7155
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7156
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
7157
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4892
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4893
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4894
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7160
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4897
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7161
4898
# All Alpha code is PIC.
7162
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4899
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4902
# IBM XL C 8.0/Fortran 10.1 on PPC
4903
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4904
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4905
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
7165
case `$CC -V 2>&1 | sed 5q` in
4908
case `$CC -V 2>&1 | sed 5q` in
7168
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7169
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7170
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4911
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4912
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4913
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7173
4916
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7174
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7175
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7176
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4917
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4918
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4919
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4927
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4928
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4932
# QNX uses GNU C++, but need to define -shared option too, otherwise
4934
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
7183
4937
osf3* | osf4* | osf5*)
7184
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4938
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7185
4939
# All OSF/1 code is PIC.
7186
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4940
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7190
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4944
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
7194
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7195
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4948
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4949
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7196
4950
case $cc_basename in
7197
4951
f77* | f90* | f95*)
7198
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4952
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
7200
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4954
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
7205
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
7206
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
7207
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4959
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4960
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4961
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7210
4964
sysv4 | sysv4.2uw2* | sysv4.3*)
7211
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7212
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7213
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4965
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4966
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4967
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7217
4971
if test -d /usr/nec ;then
7218
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
7219
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4972
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4973
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7223
4977
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7224
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7225
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
7226
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4978
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4979
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4980
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7230
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
7231
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4984
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4985
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7235
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
7236
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4989
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4990
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
7240
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4994
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
7245
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5000
# For platforms which do not support PIC, -DPIC is meaningless:
5002
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5005
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5008
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5009
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5010
[How to pass a linker flag through the compiler])
7248
5013
# Check to make sure the PIC flag actually works.
7250
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
7251
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
7252
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
7253
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
7254
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5015
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5016
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5017
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5018
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5019
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
7256
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5021
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
7258
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7259
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5023
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5024
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
7262
# For platforms which do not support PIC, -DPIC is meaningless:
7264
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
7267
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5026
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5027
[Additional compiler flags for building library objects])
7272
5030
# Check to make sure the static flag actually works.
7274
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
7275
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
7276
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5032
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5033
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5034
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
7277
5035
$lt_tmp_static_flag,
7279
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7283
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
7284
# ------------------------------------
5037
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5038
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5039
[Compiler flag to prevent dynamic linking])
5040
])# _LT_COMPILER_PIC
5043
# _LT_LINKER_SHLIBS([TAGNAME])
5044
# ----------------------------
7285
5045
# See if the linker supports building shared libraries.
7286
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
7287
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5046
m4_defun([_LT_LINKER_SHLIBS],
5047
[AC_REQUIRE([LT_PATH_LD])dnl
5048
AC_REQUIRE([LT_PATH_NM])dnl
5049
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5050
m4_require([_LT_DECL_EGREP])dnl
5051
m4_require([_LT_DECL_SED])dnl
5052
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5053
m4_require([_LT_TAG_COMPILER])dnl
7288
5054
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7290
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5055
m4_if([$1], [CXX], [
5056
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7291
5057
case $host_os in
7293
5059
# If we're using GNU nm, then we don't want the "-C" option.
7294
5060
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7295
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7296
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5061
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5062
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7298
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5064
_LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7302
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
7305
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5068
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5070
cygwin* | mingw* | cegcc*)
5071
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5073
linux* | k*bsd*-gnu)
5074
_LT_TAGVAR(link_all_deplibs, $1)=no
7308
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5077
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7311
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5080
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7314
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7315
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7316
_LT_AC_TAGVAR(archive_cmds, $1)=
7317
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7318
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
7319
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
7320
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7321
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7322
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
7323
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7324
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7325
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7326
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7327
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7328
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7329
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7330
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7331
_LT_AC_TAGVAR(module_cmds, $1)=
7332
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7333
_LT_AC_TAGVAR(always_export_symbols, $1)=no
7334
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5083
_LT_TAGVAR(allow_undefined_flag, $1)=
5084
_LT_TAGVAR(always_export_symbols, $1)=no
5085
_LT_TAGVAR(archive_cmds, $1)=
5086
_LT_TAGVAR(archive_expsym_cmds, $1)=
5087
_LT_TAGVAR(compiler_needs_object, $1)=no
5088
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5089
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5090
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5091
_LT_TAGVAR(hardcode_automatic, $1)=no
5092
_LT_TAGVAR(hardcode_direct, $1)=no
5093
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5094
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5095
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5096
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5097
_LT_TAGVAR(hardcode_minus_L, $1)=no
5098
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5099
_LT_TAGVAR(inherit_rpath, $1)=no
5100
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5101
_LT_TAGVAR(module_cmds, $1)=
5102
_LT_TAGVAR(module_expsym_cmds, $1)=
5103
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5104
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5105
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5106
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7335
5107
# include_expsyms should be a list of space-separated symbols to be *always*
7336
5108
# included in the symbol list
7337
_LT_AC_TAGVAR(include_expsyms, $1)=
5109
_LT_TAGVAR(include_expsyms, $1)=
7338
5110
# exclude_expsyms can be an extended regexp of symbols to exclude
7339
5111
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7340
5112
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7341
5113
# as well as any symbol that contains `d'.
7342
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5114
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
7343
5115
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7344
5116
# platforms (ab)use it in PIC code, but their linkers get confused if
7345
5117
# the symbol is explicitly referenced. Since portable code cannot
7939
5713
irix5* | irix6* | nonstopux*)
7940
5714
if test "$GCC" = yes; then
7941
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5715
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5716
# Try to use the -exported_symbol ld option, if it does not
5717
# work, assume that -exports_file does not work either and
5718
# implicitly export all symbols.
5719
save_LDFLAGS="$LDFLAGS"
5720
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5721
AC_LINK_IFELSE(int foo(void) {},
5722
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5724
LDFLAGS="$save_LDFLAGS"
7943
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7944
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5726
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5727
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7946
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7947
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7948
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5729
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5730
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5731
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5732
_LT_TAGVAR(inherit_rpath, $1)=yes
5733
_LT_TAGVAR(link_all_deplibs, $1)=yes
7952
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7953
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5736
netbsd* | netbsdelf*-gnu)
5737
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5738
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7955
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5740
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7957
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7958
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7959
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5742
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5743
_LT_TAGVAR(hardcode_direct, $1)=yes
5744
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7963
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7964
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7965
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7966
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7967
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5748
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5749
_LT_TAGVAR(hardcode_direct, $1)=yes
5750
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5751
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5752
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7971
5759
if test -f /usr/libexec/ld.so; then
7972
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7973
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7974
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7975
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7976
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7977
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7978
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5760
_LT_TAGVAR(hardcode_direct, $1)=yes
5761
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5762
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5763
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5764
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5765
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5766
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5767
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7980
5769
case $host_os in
7981
5770
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7982
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7983
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5771
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5772
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7986
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7987
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5775
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5776
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7992
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5781
_LT_TAGVAR(ld_shlibs, $1)=no
7997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7998
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7999
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
8000
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8001
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5786
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5787
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5788
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5789
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5790
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8005
5794
if test "$GCC" = yes; then
8006
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8007
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5795
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5796
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8009
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8010
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5798
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5799
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8012
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8013
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5801
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5802
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5803
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8016
5806
osf4* | osf5*) # as osf3* with the addition of -msym flag
8017
5807
if test "$GCC" = yes; then
8018
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8019
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8020
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5808
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5809
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5810
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8022
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8023
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8024
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8025
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5812
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5813
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5814
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5815
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8027
5817
# Both c and cxx compiler support -rpath directly
8028
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5818
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8030
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5820
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5821
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
8034
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5825
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
8035
5826
if test "$GCC" = yes; then
8037
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8038
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8039
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5828
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5829
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5830
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8042
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8043
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8044
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5832
case `$CC -V 2>&1` in
5835
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5836
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5837
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5841
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5842
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5843
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8046
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8047
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5847
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5848
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8048
5849
case $host_os in
8049
5850
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
8051
5852
# The compiler driver will combine and reorder linker options,
8052
5853
# but understands `-z linker_flag'. GCC discards it without `$wl',
8053
5854
# but is careful enough not to reorder.
8054
# Supported since Solaris 2.6 (maybe 2.5.1?)
5855
# Supported since Solaris 2.6 (maybe 2.5.1?)
8055
5856
if test "$GCC" = yes; then
8056
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5857
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8058
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5859
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
8062
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5863
_LT_TAGVAR(link_all_deplibs, $1)=yes
8066
5867
if test "x$host_vendor" = xsequent; then
8067
5868
# Use $CC to link under sequent, because it throws in some extra .o
8068
5869
# files that make .init and .fini sections work.
8069
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5870
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8071
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5872
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8073
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
8074
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8075
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
8076
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5874
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5875
_LT_TAGVAR(hardcode_direct, $1)=yes
5876
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5877
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8080
5881
case $host_vendor in
8082
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5883
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5884
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
8086
5887
## LD is ld it makes a PLAMLIB
8087
5888
## CC just makes a GrossModule.
8088
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8089
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
8090
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5889
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5890
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5891
_LT_TAGVAR(hardcode_direct, $1)=no
8093
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8094
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5894
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5895
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
8097
5898
runpath_var='LD_RUN_PATH'
8098
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5899
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8102
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8104
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5903
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5904
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5905
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
8108
5909
if test -d /usr/nec; then
8109
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8110
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5910
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5911
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8111
5912
runpath_var=LD_RUN_PATH
8112
5913
hardcode_runpath_var=yes
8113
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5914
_LT_TAGVAR(ld_shlibs, $1)=yes
8117
5918
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
8118
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
8119
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8120
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5919
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5920
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5921
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
8121
5922
runpath_var='LD_RUN_PATH'
8123
5924
if test "$GCC" = yes; then
8124
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8125
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5925
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5926
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8127
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8128
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5928
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5929
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8197
6013
libobjs=conftest.$ac_objext
8199
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8200
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6015
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6016
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
8201
6017
compiler_flags=-v
8202
6018
linker_flags=-v
8204
6020
output_objdir=.
8205
6021
libname=conftest
8206
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
8207
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8208
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6022
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6023
_LT_TAGVAR(allow_undefined_flag, $1)=
6024
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
8210
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6026
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
8212
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6028
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
8214
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6030
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
8216
6032
cat conftest.err 1>&5
8219
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6035
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
8225
])# AC_LIBTOOL_PROG_LD_SHLIBS
8228
# _LT_AC_FILE_LTDLL_C
8229
# -------------------
8230
# Be careful that the start marker always follows a newline.
8231
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
8232
# /* ltdll.c starts here */
8233
# #define WIN32_LEAN_AND_MEAN
8234
# #include <windows.h>
8235
# #undef WIN32_LEAN_AND_MEAN
8236
# #include <stdio.h>
8238
# #ifndef __CYGWIN__
8239
# # ifdef __CYGWIN32__
8240
# # define __CYGWIN__ __CYGWIN32__
8244
# #ifdef __cplusplus
8247
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8248
# #ifdef __cplusplus
8253
# #include <cygwin/cygwin_dll.h>
8254
# DECLARE_CYGWIN_DLL( DllMain );
8256
# HINSTANCE __hDllInstance_base;
8259
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8261
# __hDllInstance_base = hInst;
8264
# /* ltdll.c ends here */
8265
])# _LT_AC_FILE_LTDLL_C
8268
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6042
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6043
[Whether or not to add -lc for building shared libraries])
6044
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6045
[enable_shared_with_static_runtimes], [0],
6046
[Whether or not to disallow shared libs when runtime libs are static])
6047
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6048
[Compiler flag to allow reflexive dlopens])
6049
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6050
[Compiler flag to generate shared objects directly from archives])
6051
_LT_TAGDECL([], [compiler_needs_object], [1],
6052
[Whether the compiler copes with passing no objects directly])
6053
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6054
[Create an old-style archive from a shared archive])
6055
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6056
[Create a temporary old-style archive to link instead of a shared archive])
6057
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6058
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6059
_LT_TAGDECL([], [module_cmds], [2],
6060
[Commands used to build a loadable module if different from building
6062
_LT_TAGDECL([], [module_expsym_cmds], [2])
6063
_LT_TAGDECL([], [with_gnu_ld], [1],
6064
[Whether we are building with GNU ld or not])
6065
_LT_TAGDECL([], [allow_undefined_flag], [1],
6066
[Flag that allows shared libraries with undefined symbols to be built])
6067
_LT_TAGDECL([], [no_undefined_flag], [1],
6068
[Flag that enforces no undefined symbols])
6069
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6070
[Flag to hardcode $libdir into a binary during linking.
6071
This must work even if $libdir does not exist])
6072
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6073
[[If ld is used when linking, flag to hardcode $libdir into a binary
6074
during linking. This must work even if $libdir does not exist]])
6075
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6076
[Whether we need a single "-rpath" flag with a separated argument])
6077
_LT_TAGDECL([], [hardcode_direct], [0],
6078
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6079
DIR into the resulting binary])
6080
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6081
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6082
DIR into the resulting binary and the resulting library dependency is
6083
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6084
library is relocated])
6085
_LT_TAGDECL([], [hardcode_minus_L], [0],
6086
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6087
into the resulting binary])
6088
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6089
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6090
into the resulting binary])
6091
_LT_TAGDECL([], [hardcode_automatic], [0],
6092
[Set to "yes" if building a shared library automatically hardcodes DIR
6093
into the library and all subsequent libraries and executables linked
6095
_LT_TAGDECL([], [inherit_rpath], [0],
6096
[Set to yes if linker adds runtime paths of dependent libraries
6097
to runtime path list])
6098
_LT_TAGDECL([], [link_all_deplibs], [0],
6099
[Whether libtool must link a program against all its dependency libraries])
6100
_LT_TAGDECL([], [fix_srcfile_path], [1],
6101
[Fix the shell variable $srcfile for the compiler])
6102
_LT_TAGDECL([], [always_export_symbols], [0],
6103
[Set to "yes" if exported symbols are required])
6104
_LT_TAGDECL([], [export_symbols_cmds], [2],
6105
[The commands to list exported symbols])
6106
_LT_TAGDECL([], [exclude_expsyms], [1],
6107
[Symbols that should not be listed in the preloaded symbols])
6108
_LT_TAGDECL([], [include_expsyms], [1],
6109
[Symbols that must always be exported])
6110
_LT_TAGDECL([], [prelink_cmds], [2],
6111
[Commands necessary for linking programs (against libraries) with templates])
6112
_LT_TAGDECL([], [file_list_spec], [1],
6113
[Specify filename containing input files])
6114
dnl FIXME: Not yet implemented
6115
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6116
dnl [Compiler flag to generate thread safe objects])
6117
])# _LT_LINKER_SHLIBS
6120
# _LT_LANG_C_CONFIG([TAG])
6121
# ------------------------
6122
# Ensure that the configuration variables for a C compiler are suitably
6123
# defined. These variables are subsequently used by _LT_CONFIG to write
6124
# the compiler configuration to `libtool'.
6125
m4_defun([_LT_LANG_C_CONFIG],
6126
[m4_require([_LT_DECL_EGREP])dnl
6130
# Source file extension for C test sources.
6133
# Object file extension for compiled C test sources.
6135
_LT_TAGVAR(objext, $1)=$objext
6137
# Code to be used in simple compile tests
6138
lt_simple_compile_test_code="int some_variable = 0;"
6140
# Code to be used in simple link tests
6141
lt_simple_link_test_code='int main(){return(0);}'
6144
# Save the default compiler, since it gets overwritten when the other
6145
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6146
compiler_DEFAULT=$CC
6148
# save warnings/boilerplate of simple test code
6149
_LT_COMPILER_BOILERPLATE
6150
_LT_LINKER_BOILERPLATE
6152
if test -n "$compiler"; then
6153
_LT_COMPILER_NO_RTTI($1)
6154
_LT_COMPILER_PIC($1)
6155
_LT_COMPILER_C_O($1)
6156
_LT_COMPILER_FILE_LOCKS($1)
6157
_LT_LINKER_SHLIBS($1)
6158
_LT_SYS_DYNAMIC_LINKER($1)
6159
_LT_LINKER_HARDCODE_LIBPATH($1)
6163
# Report which library types will actually be built
6164
AC_MSG_CHECKING([if libtool supports shared libraries])
6165
AC_MSG_RESULT([$can_build_shared])
6167
AC_MSG_CHECKING([whether to build shared libraries])
6168
test "$can_build_shared" = "no" && enable_shared=no
6170
# On AIX, shared libraries and static libraries use the same namespace, and
6171
# are all built from PIC.
6174
test "$enable_shared" = yes && enable_static=no
6175
if test -n "$RANLIB"; then
6176
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6177
postinstall_cmds='$RANLIB $lib'
6182
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6183
test "$enable_shared" = yes && enable_static=no
6187
AC_MSG_RESULT([$enable_shared])
6189
AC_MSG_CHECKING([whether to build static libraries])
6190
# Make sure either enable_shared or enable_static is yes.
6191
test "$enable_shared" = yes || enable_static=yes
6192
AC_MSG_RESULT([$enable_static])
6198
])# _LT_LANG_C_CONFIG
6203
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6204
# compiler, we have our own version here.
6205
m4_defun([_LT_PROG_CXX],
6207
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6209
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6210
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6211
(test "X$CXX" != "Xg++"))) ; then
6214
_lt_caught_CXX_error=yes
6216
popdef([AC_MSG_ERROR])
6219
dnl aclocal-1.4 backwards compatibility:
6220
dnl AC_DEFUN([_LT_PROG_CXX], [])
6223
# _LT_LANG_CXX_CONFIG([TAG])
6224
# --------------------------
6225
# Ensure that the configuration variables for a C++ compiler are suitably
6226
# defined. These variables are subsequently used by _LT_CONFIG to write
6227
# the compiler configuration to `libtool'.
6228
m4_defun([_LT_LANG_CXX_CONFIG],
6229
[AC_REQUIRE([_LT_PROG_CXX])dnl
6230
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6231
m4_require([_LT_DECL_EGREP])dnl
6234
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6235
_LT_TAGVAR(allow_undefined_flag, $1)=
6236
_LT_TAGVAR(always_export_symbols, $1)=no
6237
_LT_TAGVAR(archive_expsym_cmds, $1)=
6238
_LT_TAGVAR(compiler_needs_object, $1)=no
6239
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6240
_LT_TAGVAR(hardcode_direct, $1)=no
6241
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6242
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6243
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6244
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6245
_LT_TAGVAR(hardcode_minus_L, $1)=no
6246
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6247
_LT_TAGVAR(hardcode_automatic, $1)=no
6248
_LT_TAGVAR(inherit_rpath, $1)=no
6249
_LT_TAGVAR(module_cmds, $1)=
6250
_LT_TAGVAR(module_expsym_cmds, $1)=
6251
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6252
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6253
_LT_TAGVAR(no_undefined_flag, $1)=
6254
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6255
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6257
# Source file extension for C++ test sources.
6260
# Object file extension for compiled C++ test sources.
6262
_LT_TAGVAR(objext, $1)=$objext
6264
# No sense in running all these tests if we already determined that
6265
# the CXX compiler isn't working. Some variables (like enable_shared)
6266
# are currently assumed to apply to all compilers on this platform,
6267
# and will be corrupted by setting them based on a non-working compiler.
6268
if test "$_lt_caught_CXX_error" != yes; then
6269
# Code to be used in simple compile tests
6270
lt_simple_compile_test_code="int some_variable = 0;"
6272
# Code to be used in simple link tests
6273
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6275
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6278
# save warnings/boilerplate of simple test code
6279
_LT_COMPILER_BOILERPLATE
6280
_LT_LINKER_BOILERPLATE
6282
# Allow CC to be a program name with arguments.
6287
lt_save_with_gnu_ld=$with_gnu_ld
6288
lt_save_path_LD=$lt_cv_path_LD
6289
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6290
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6292
$as_unset lt_cv_prog_gnu_ld
6294
if test -n "${lt_cv_path_LDCXX+set}"; then
6295
lt_cv_path_LD=$lt_cv_path_LDCXX
6297
$as_unset lt_cv_path_LD
6299
test -z "${LDCXX+set}" || LD=$LDCXX
6302
_LT_TAGVAR(compiler, $1)=$CC
6303
_LT_CC_BASENAME([$compiler])
6305
if test -n "$compiler"; then
6306
# We don't want -fno-exception when compiling C++ code, so set the
6307
# no_builtin_flag separately
6308
if test "$GXX" = yes; then
6309
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6311
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6314
if test "$GXX" = yes; then
6315
# Set up default GNU C++ configuration
6319
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6320
# archiving commands below assume that GNU ld is being used.
6321
if test "$with_gnu_ld" = yes; then
6322
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6323
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6325
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6326
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6328
# If archive_cmds runs LD, not CC, wlarc should be empty
6329
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6330
# investigate it a little bit more. (MM)
6333
# ancient GNU ld didn't support --whole-archive et. al.
6334
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6335
$GREP 'no-whole-archive' > /dev/null; then
6336
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6338
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6344
# A generic and very simple default shared library creation
6345
# command for GNU C++ for the case where it uses the native
6346
# linker, instead of GNU ld. If possible, this setting should
6347
# overridden to take advantage of the native linker features on
6348
# the platform it is being used on.
6349
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6352
# Commands to make compiler produce verbose output that lists
6353
# what "hidden" libraries, object files and flags are used when
6354
# linking a shared library.
6355
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6363
# PORTME: fill in a description of your system's C++ link characteristics
6364
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6365
_LT_TAGVAR(ld_shlibs, $1)=yes
6368
# FIXME: insert proper C++ library support
6369
_LT_TAGVAR(ld_shlibs, $1)=no
6372
if test "$host_cpu" = ia64; then
6373
# On IA64, the linker does run time linking by default, so we don't
6374
# have to do anything special.
6375
aix_use_runtimelinking=no
6376
exp_sym_flag='-Bexport'
6379
aix_use_runtimelinking=no
6381
# Test if we are trying to use run time linking or normal
6382
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6383
# need to do runtime linking.
6384
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6385
for ld_flag in $LDFLAGS; do
6388
aix_use_runtimelinking=yes
6396
exp_sym_flag='-bexport'
6397
no_entry_flag='-bnoentry'
6400
# When large executables or shared objects are built, AIX ld can
6401
# have problems creating the table of contents. If linking a library
6402
# or program results in "error TOC overflow" add -mminimal-toc to
6403
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6404
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6406
_LT_TAGVAR(archive_cmds, $1)=''
6407
_LT_TAGVAR(hardcode_direct, $1)=yes
6408
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6409
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6410
_LT_TAGVAR(link_all_deplibs, $1)=yes
6411
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6413
if test "$GXX" = yes; then
6414
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6415
# We only want to do this on AIX 4.2 and lower, the check
6416
# below for broken collect2 doesn't work under 4.3+
6417
collect2name=`${CC} -print-prog-name=collect2`
6418
if test -f "$collect2name" &&
6419
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6421
# We have reworked collect2
6424
# We have old collect2
6425
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6426
# It fails to find uninstalled libraries when the uninstalled
6427
# path is not listed in the libpath. Setting hardcode_minus_L
6428
# to unsupported forces relinking
6429
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6430
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6431
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6434
shared_flag='-shared'
6435
if test "$aix_use_runtimelinking" = yes; then
6436
shared_flag="$shared_flag "'${wl}-G'
6440
if test "$host_cpu" = ia64; then
6441
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6442
# chokes on -Wl,-G. The following line is correct:
6445
if test "$aix_use_runtimelinking" = yes; then
6446
shared_flag='${wl}-G'
6448
shared_flag='${wl}-bM:SRE'
6453
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6454
# It seems that -bexpall does not export symbols beginning with
6455
# underscore (_), so it is better to generate a list of symbols to
6457
_LT_TAGVAR(always_export_symbols, $1)=yes
6458
if test "$aix_use_runtimelinking" = yes; then
6459
# Warning - without using the other runtime loading flags (-brtl),
6460
# -berok will link without error, but may produce a broken library.
6461
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6462
# Determine the default libpath from the value encoded in an empty
6464
_LT_SYS_MODULE_PATH_AIX
6465
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6467
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6469
if test "$host_cpu" = ia64; then
6470
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6471
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6472
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6474
# Determine the default libpath from the value encoded in an
6476
_LT_SYS_MODULE_PATH_AIX
6477
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6478
# Warning - without using the other run time loading flags,
6479
# -berok will link without error, but may produce a broken library.
6480
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6481
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6482
# Exported symbols can be pulled into shared objects from archives
6483
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6484
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6485
# This is similar to how AIX traditionally builds its shared
6487
_LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6493
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6494
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6495
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6496
# support --undefined. This deserves some investigation. FIXME
6497
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6499
_LT_TAGVAR(ld_shlibs, $1)=no
6504
case $cc_basename in
6506
# FIXME: insert proper C++ library support
6507
_LT_TAGVAR(ld_shlibs, $1)=no
6512
cygwin* | mingw* | pw32* | cegcc*)
6513
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6514
# as there is no search path for DLLs.
6515
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6516
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6517
_LT_TAGVAR(always_export_symbols, $1)=no
6518
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6520
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6521
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6522
# If the export-symbols file already is a .def file (1st line
6523
# is EXPORTS), use it as is; otherwise, prepend...
6524
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6525
cp $export_symbols $output_objdir/$soname.def;
6527
echo EXPORTS > $output_objdir/$soname.def;
6528
cat $export_symbols >> $output_objdir/$soname.def;
6530
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6532
_LT_TAGVAR(ld_shlibs, $1)=no
6535
darwin* | rhapsody*)
6536
_LT_DARWIN_LINKER_FEATURES($1)
6540
case $cc_basename in
6542
# FIXME: insert proper C++ library support
6543
_LT_TAGVAR(ld_shlibs, $1)=no
6546
# Green Hills C++ Compiler
6547
# FIXME: insert proper C++ library support
6548
_LT_TAGVAR(ld_shlibs, $1)=no
6551
# FIXME: insert proper C++ library support
6552
_LT_TAGVAR(ld_shlibs, $1)=no
6558
# C++ shared libraries reported to be fairly broken before
6560
_LT_TAGVAR(ld_shlibs, $1)=no
6564
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6567
freebsd* | dragonfly*)
6568
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6570
_LT_TAGVAR(ld_shlibs, $1)=yes
6577
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6578
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6579
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6580
_LT_TAGVAR(hardcode_direct, $1)=yes
6581
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6582
# but as the default
6583
# location of the library.
6585
case $cc_basename in
6587
# FIXME: insert proper C++ library support
6588
_LT_TAGVAR(ld_shlibs, $1)=no
6591
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6592
# Commands to make compiler produce verbose output that lists
6593
# what "hidden" libraries, object files and flags are used when
6594
# linking a shared library.
6596
# There doesn't appear to be a way to prevent this compiler from
6597
# explicitly linking system object files so we need to strip them
6598
# from the output so that they don't get included in the library
6600
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6603
if test "$GXX" = yes; then
6604
_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6606
# FIXME: insert proper C++ library support
6607
_LT_TAGVAR(ld_shlibs, $1)=no
6614
if test $with_gnu_ld = no; then
6615
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6616
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6622
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6628
_LT_TAGVAR(hardcode_direct, $1)=no
6629
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6632
_LT_TAGVAR(hardcode_direct, $1)=yes
6633
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6634
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6635
# but as the default
6636
# location of the library.
6640
case $cc_basename in
6642
# FIXME: insert proper C++ library support
6643
_LT_TAGVAR(ld_shlibs, $1)=no
6648
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6651
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6654
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6657
# Commands to make compiler produce verbose output that lists
6658
# what "hidden" libraries, object files and flags are used when
6659
# linking a shared library.
6661
# There doesn't appear to be a way to prevent this compiler from
6662
# explicitly linking system object files so we need to strip them
6663
# from the output so that they don't get included in the library
6665
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6668
if test "$GXX" = yes; then
6669
if test $with_gnu_ld = no; then
6672
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6675
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6678
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6683
# FIXME: insert proper C++ library support
6684
_LT_TAGVAR(ld_shlibs, $1)=no
6691
_LT_TAGVAR(hardcode_direct, $1)=no
6692
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6693
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6694
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6695
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6696
# Instead, shared libraries are loaded at an image base (0x10000000 by
6697
# default) and relocated if they conflict, which is a slow very memory
6698
# consuming and fragmenting process. To avoid this, we pick a random,
6699
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6700
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6701
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6702
_LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6705
case $cc_basename in
6708
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6710
# Archives containing C++ object files must be created using
6711
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6712
# necessary to make sure instantiated templates are included
6714
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6717
if test "$GXX" = yes; then
6718
if test "$with_gnu_ld" = no; then
6719
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6721
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6724
_LT_TAGVAR(link_all_deplibs, $1)=yes
6727
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6728
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6729
_LT_TAGVAR(inherit_rpath, $1)=yes
6732
linux* | k*bsd*-gnu)
6733
case $cc_basename in
6735
# Kuck and Associates, Inc. (KAI) C++ Compiler
6737
# KCC will only create a shared library if the output file
6738
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6739
# to its proper name (with version) after linking.
6740
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6741
_LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6742
# Commands to make compiler produce verbose output that lists
6743
# what "hidden" libraries, object files and flags are used when
6744
# linking a shared library.
6746
# There doesn't appear to be a way to prevent this compiler from
6747
# explicitly linking system object files so we need to strip them
6748
# from the output so that they don't get included in the library
6750
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6752
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6753
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6755
# Archives containing C++ object files must be created using
6756
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6757
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6762
# version 8.0 and above of icpc choke on multiply defined symbols
6763
# if we add $predep_objects and $postdep_objects, however 7.1 and
6764
# earlier do not add the objects themselves.
6765
case `$CC -V 2>&1` in
6767
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6768
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6770
*) # Version 8.0 or newer
6773
ia64*) tmp_idyn=' -i_dynamic';;
6775
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6776
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6779
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6780
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6781
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6782
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6785
# Portland Group C++ compiler
6787
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6788
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6790
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6791
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6792
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6794
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6795
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6797
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6799
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6800
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6801
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6803
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6804
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6806
*) # Version 6 will use weak symbols
6807
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6808
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6812
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6813
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6814
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6818
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6821
runpath_var=LD_RUN_PATH
6822
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6823
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6825
# Commands to make compiler produce verbose output that lists
6826
# what "hidden" libraries, object files and flags are used when
6827
# linking a shared library.
6829
# There doesn't appear to be a way to prevent this compiler from
6830
# explicitly linking system object files so we need to strip them
6831
# from the output so that they don't get included in the library
6833
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6836
# IBM XL 8.0 on PPC, with GNU ld
6837
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6838
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6839
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6840
if test "x$supports_anon_versioning" = xyes; then
6841
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6842
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6843
echo "local: *; };" >> $output_objdir/$libname.ver~
6844
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6848
case `$CC -V 2>&1 | sed 5q` in
6851
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6852
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6853
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
6854
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6855
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
6856
_LT_TAGVAR(compiler_needs_object, $1)=yes
6858
# Not sure whether something based on
6859
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6861
output_verbose_link_cmd='echo'
6863
# Archives containing C++ object files must be created using
6864
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6865
# necessary to make sure instantiated templates are included
6867
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6875
# FIXME: insert proper C++ library support
6876
_LT_TAGVAR(ld_shlibs, $1)=no
6880
# FIXME: insert proper C++ library support
6881
_LT_TAGVAR(ld_shlibs, $1)=no
6885
case $cc_basename in
6887
# FIXME: insert proper C++ library support
6888
_LT_TAGVAR(ld_shlibs, $1)=no
6891
# FIXME: insert proper C++ library support
6892
_LT_TAGVAR(ld_shlibs, $1)=no
6898
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6899
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6901
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6902
_LT_TAGVAR(hardcode_direct, $1)=yes
6903
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6905
# Workaround some broken pre-1.5 toolchains
6906
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6910
_LT_TAGVAR(ld_shlibs, $1)=yes
6914
# C++ shared libraries are fairly broken
6915
_LT_TAGVAR(ld_shlibs, $1)=no
6919
if test -f /usr/libexec/ld.so; then
6920
_LT_TAGVAR(hardcode_direct, $1)=yes
6921
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6922
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6923
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6924
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6925
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6926
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6927
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6928
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6930
output_verbose_link_cmd=echo
6932
_LT_TAGVAR(ld_shlibs, $1)=no
6936
osf3* | osf4* | osf5*)
6937
case $cc_basename in
6939
# Kuck and Associates, Inc. (KAI) C++ Compiler
6941
# KCC will only create a shared library if the output file
6942
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6943
# to its proper name (with version) after linking.
6944
_LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6946
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6947
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6949
# Archives containing C++ object files must be created using
6950
# the KAI C++ compiler.
6952
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6953
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6957
# Rational C++ 2.4.1
6958
# FIXME: insert proper C++ library support
6959
_LT_TAGVAR(ld_shlibs, $1)=no
6964
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6965
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6966
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6969
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6970
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6971
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6972
echo "-hidden">> $lib.exp~
6973
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6975
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6979
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6981
# Commands to make compiler produce verbose output that lists
6982
# what "hidden" libraries, object files and flags are used when
6983
# linking a shared library.
6985
# There doesn't appear to be a way to prevent this compiler from
6986
# explicitly linking system object files so we need to strip them
6987
# from the output so that they don't get included in the library
6989
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6992
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6993
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6996
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6999
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7003
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7004
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7006
# Commands to make compiler produce verbose output that lists
7007
# what "hidden" libraries, object files and flags are used when
7008
# linking a shared library.
7009
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7012
# FIXME: insert proper C++ library support
7013
_LT_TAGVAR(ld_shlibs, $1)=no
7020
# FIXME: insert proper C++ library support
7021
_LT_TAGVAR(ld_shlibs, $1)=no
7025
case $cc_basename in
7028
# FIXME: insert proper C++ library support
7029
_LT_TAGVAR(ld_shlibs, $1)=no
7033
# FIXME: insert proper C++ library support
7034
_LT_TAGVAR(ld_shlibs, $1)=no
7037
# FIXME: insert proper C++ library support
7038
_LT_TAGVAR(ld_shlibs, $1)=no
7044
case $cc_basename in
7046
# Sun C++ 4.2, 5.x and Centerline C++
7047
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7048
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7049
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7050
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7051
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7053
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7054
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7056
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7058
# The compiler driver will combine and reorder linker options,
7059
# but understands `-z linker_flag'.
7060
# Supported since Solaris 2.6 (maybe 2.5.1?)
7061
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7064
_LT_TAGVAR(link_all_deplibs, $1)=yes
7066
output_verbose_link_cmd='echo'
7068
# Archives containing C++ object files must be created using
7069
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7070
# necessary to make sure instantiated templates are included
7072
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7075
# Green Hills C++ Compiler
7076
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7078
# The C++ compiler must be used to create the archive.
7079
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7082
# GNU C++ compiler with Solaris linker
7083
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7084
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7085
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7086
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7087
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7088
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7090
# Commands to make compiler produce verbose output that lists
7091
# what "hidden" libraries, object files and flags are used when
7092
# linking a shared library.
7093
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7095
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7097
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7098
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7099
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7101
# Commands to make compiler produce verbose output that lists
7102
# what "hidden" libraries, object files and flags are used when
7103
# linking a shared library.
7104
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7107
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7109
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7111
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7119
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7120
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7121
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7122
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7123
runpath_var='LD_RUN_PATH'
7125
case $cc_basename in
7127
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7128
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7131
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7132
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7137
sysv5* | sco3.2v5* | sco5v6*)
7138
# Note: We can NOT use -z defs as we might desire, because we do not
7139
# link with -lc, and that would cause any symbols used from libc to
7140
# always be unresolved, which means just about no library would
7141
# ever link correctly. If we're not using GNU ld we use -z text
7142
# though, which does catch some bad symbols but isn't as heavy-handed
7144
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7145
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7146
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7147
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7148
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7149
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7150
_LT_TAGVAR(link_all_deplibs, $1)=yes
7151
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7152
runpath_var='LD_RUN_PATH'
7154
case $cc_basename in
7156
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7157
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7160
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7161
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7167
case $cc_basename in
7169
# NonStop-UX NCC 3.20
7170
# FIXME: insert proper C++ library support
7171
_LT_TAGVAR(ld_shlibs, $1)=no
7174
# FIXME: insert proper C++ library support
7175
_LT_TAGVAR(ld_shlibs, $1)=no
7181
# FIXME: insert proper C++ library support
7182
_LT_TAGVAR(ld_shlibs, $1)=no
7186
# FIXME: insert proper C++ library support
7187
_LT_TAGVAR(ld_shlibs, $1)=no
7191
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7192
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7194
_LT_TAGVAR(GCC, $1)="$GXX"
7195
_LT_TAGVAR(LD, $1)="$LD"
7198
## There is no encapsulation within the following macros, do not change
7199
## the running order or otherwise move them around unless you know exactly
7200
## what you are doing...
7201
_LT_SYS_HIDDEN_LIBDEPS($1)
7202
_LT_COMPILER_PIC($1)
7203
_LT_COMPILER_C_O($1)
7204
_LT_COMPILER_FILE_LOCKS($1)
7205
_LT_LINKER_SHLIBS($1)
7206
_LT_SYS_DYNAMIC_LINKER($1)
7207
_LT_LINKER_HARDCODE_LIBPATH($1)
7210
fi # test -n "$compiler"
7216
with_gnu_ld=$lt_save_with_gnu_ld
7217
lt_cv_path_LDCXX=$lt_cv_path_LD
7218
lt_cv_path_LD=$lt_save_path_LD
7219
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7220
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7221
fi # test "$_lt_caught_CXX_error" != yes
7224
])# _LT_LANG_CXX_CONFIG
7227
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
8269
7228
# ---------------------------------
8270
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
8274
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
8275
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8276
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8277
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8278
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8279
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
8280
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
8282
# This is just to silence aclocal about the macro not being used
8283
ifelse([AC_DISABLE_FAST_INSTALL])
8285
AC_DEFUN([LT_AC_PROG_GCJ],
8286
[AC_CHECK_TOOL(GCJ, gcj, no)
8287
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8291
AC_DEFUN([LT_AC_PROG_RC],
8292
[AC_CHECK_TOOL(RC, windres, no)
8296
# Cheap backport of AS_EXECUTABLE_P and required macros
8297
# from Autoconf 2.59; we should not use $as_executable_p directly.
8301
m4_ifndef([_AS_TEST_PREPARE],
8302
[m4_defun([_AS_TEST_PREPARE],
8303
[if test -x / >/dev/null 2>&1; then
8304
as_executable_p='test -x'
7229
# Figure out "hidden" library dependencies from verbose
7230
# compiler output when linking a shared library.
7231
# Parse the compiler output and extract the necessary
7232
# objects, libraries and library flags.
7233
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7234
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7235
# Dependencies to place before and after the object being linked:
7236
_LT_TAGVAR(predep_objects, $1)=
7237
_LT_TAGVAR(postdep_objects, $1)=
7238
_LT_TAGVAR(predeps, $1)=
7239
_LT_TAGVAR(postdeps, $1)=
7240
_LT_TAGVAR(compiler_lib_search_path, $1)=
7242
dnl we can't use the lt_simple_compile_test_code here,
7243
dnl because it contains code intended for an executable,
7244
dnl not a library. It's possible we should let each
7245
dnl tag define a new lt_????_link_test_code variable,
7246
dnl but it's only used here...
7247
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7249
void foo (void) { a = 0; }
7251
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7255
Foo (void) { a = 0; }
7260
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7268
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7276
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7279
public void bar (void) {
7285
dnl Parse the compiler output and extract the necessary
7286
dnl objects, libraries and library flags.
7287
if AC_TRY_EVAL(ac_compile); then
7288
# Parse the compiler output and extract the necessary
7289
# objects, libraries and library flags.
7291
# Sentinel used to keep track of whether or not we are before
7292
# the conftest object file.
7293
pre_test_object_deps_done=no
7295
for p in `eval "$output_verbose_link_cmd"`; do
7299
# Some compilers place space between "-{L,R}" and the path.
7301
if test $p = "-L" ||
7302
test $p = "-R"; then
7309
if test "$pre_test_object_deps_done" = no; then
7312
# Internal compiler library paths should come after those
7313
# provided the user. The postdeps already come after the
7314
# user supplied libs so there is no need to process them.
7315
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7316
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7318
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7321
# The "-l" case would never come before the object being
7322
# linked, so don't bother handling this case.
7325
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7326
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7328
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7334
# This assumes that the test object file only shows up
7335
# once in the compiler output.
7336
if test "$p" = "conftest.$objext"; then
7337
pre_test_object_deps_done=yes
7341
if test "$pre_test_object_deps_done" = no; then
7342
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7343
_LT_TAGVAR(predep_objects, $1)="$p"
7345
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7348
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7349
_LT_TAGVAR(postdep_objects, $1)="$p"
7351
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7356
*) ;; # Ignore the rest.
8306
as_executable_p='test -f'
8308
])])# _AS_TEST_PREPARE
8312
# Check whether a file is executable.
8313
m4_ifndef([AS_EXECUTABLE_P],
8314
[m4_defun([AS_EXECUTABLE_P],
8315
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
8316
$as_executable_p $1[]dnl
8317
])])# AS_EXECUTABLE_P
7364
echo "libtool.m4: error: problem compiling $1 test program"
7367
$RM -f confest.$objext
7369
# PORTME: override above test on systems where it is broken
7373
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7374
# hack all around it, let's just trust "g++" to DTRT.
7375
_LT_TAGVAR(predep_objects,$1)=
7376
_LT_TAGVAR(postdep_objects,$1)=
7377
_LT_TAGVAR(postdeps,$1)=
7381
case `$CC -V 2>&1 | sed 5q` in
7385
# The more standards-conforming stlport4 library is
7386
# incompatible with the Cstd library. Avoid specifying
7387
# it if it's in CXXFLAGS. Ignore libCrun as
7388
# -library=stlport4 depends on it.
7389
case " $CXX $CXXFLAGS " in
7390
*" -library=stlport4 "*)
7391
solaris_use_stlport4=yes
7395
if test "$solaris_use_stlport4" != yes; then
7396
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7403
case $cc_basename in
7405
# The more standards-conforming stlport4 library is
7406
# incompatible with the Cstd library. Avoid specifying
7407
# it if it's in CXXFLAGS. Ignore libCrun as
7408
# -library=stlport4 depends on it.
7409
case " $CXX $CXXFLAGS " in
7410
*" -library=stlport4 "*)
7411
solaris_use_stlport4=yes
7415
# Adding this requires a known-good setup of shared libraries for
7416
# Sun compiler versions before 5.6, else PIC objects from an old
7417
# archive will be linked into the output, leading to subtle bugs.
7418
if test "$solaris_use_stlport4" != yes; then
7419
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7427
case " $_LT_TAGVAR(postdeps, $1) " in
7428
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7430
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7431
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7432
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7434
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7435
[The directories searched by this compiler when creating a shared library])
7436
_LT_TAGDECL([], [predep_objects], [1],
7437
[Dependencies to place before and after the objects being linked to
7438
create a shared library])
7439
_LT_TAGDECL([], [postdep_objects], [1])
7440
_LT_TAGDECL([], [predeps], [1])
7441
_LT_TAGDECL([], [postdeps], [1])
7442
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7443
[The library search path used internally by the compiler when linking
7445
])# _LT_SYS_HIDDEN_LIBDEPS
7450
# Since AC_PROG_F77 is broken, in that it returns the empty string
7451
# if there is no fortran compiler, we have our own version here.
7452
m4_defun([_LT_PROG_F77],
7454
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7456
if test -z "$F77" || test "X$F77" = "Xno"; then
7459
popdef([AC_MSG_ERROR])
7462
dnl aclocal-1.4 backwards compatibility:
7463
dnl AC_DEFUN([_LT_PROG_F77], [])
7466
# _LT_LANG_F77_CONFIG([TAG])
7467
# --------------------------
7468
# Ensure that the configuration variables for a Fortran 77 compiler are
7469
# suitably defined. These variables are subsequently used by _LT_CONFIG
7470
# to write the compiler configuration to `libtool'.
7471
m4_defun([_LT_LANG_F77_CONFIG],
7472
[AC_REQUIRE([_LT_PROG_F77])dnl
7473
AC_LANG_PUSH(Fortran 77)
7475
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7476
_LT_TAGVAR(allow_undefined_flag, $1)=
7477
_LT_TAGVAR(always_export_symbols, $1)=no
7478
_LT_TAGVAR(archive_expsym_cmds, $1)=
7479
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7480
_LT_TAGVAR(hardcode_direct, $1)=no
7481
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7482
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7483
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7484
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7485
_LT_TAGVAR(hardcode_minus_L, $1)=no
7486
_LT_TAGVAR(hardcode_automatic, $1)=no
7487
_LT_TAGVAR(inherit_rpath, $1)=no
7488
_LT_TAGVAR(module_cmds, $1)=
7489
_LT_TAGVAR(module_expsym_cmds, $1)=
7490
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7491
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7492
_LT_TAGVAR(no_undefined_flag, $1)=
7493
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7494
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7496
# Source file extension for f77 test sources.
7499
# Object file extension for compiled f77 test sources.
7501
_LT_TAGVAR(objext, $1)=$objext
7503
# No sense in running all these tests if we already determined that
7504
# the F77 compiler isn't working. Some variables (like enable_shared)
7505
# are currently assumed to apply to all compilers on this platform,
7506
# and will be corrupted by setting them based on a non-working compiler.
7507
if test "$_lt_disable_F77" != yes; then
7508
# Code to be used in simple compile tests
7509
lt_simple_compile_test_code="\
7515
# Code to be used in simple link tests
7516
lt_simple_link_test_code="\
7521
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7524
# save warnings/boilerplate of simple test code
7525
_LT_COMPILER_BOILERPLATE
7526
_LT_LINKER_BOILERPLATE
7528
# Allow CC to be a program name with arguments.
7533
_LT_TAGVAR(compiler, $1)=$CC
7534
_LT_CC_BASENAME([$compiler])
7536
if test -n "$compiler"; then
7537
AC_MSG_CHECKING([if libtool supports shared libraries])
7538
AC_MSG_RESULT([$can_build_shared])
7540
AC_MSG_CHECKING([whether to build shared libraries])
7541
test "$can_build_shared" = "no" && enable_shared=no
7543
# On AIX, shared libraries and static libraries use the same namespace, and
7544
# are all built from PIC.
7547
test "$enable_shared" = yes && enable_static=no
7548
if test -n "$RANLIB"; then
7549
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7550
postinstall_cmds='$RANLIB $lib'
7554
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7555
test "$enable_shared" = yes && enable_static=no
7559
AC_MSG_RESULT([$enable_shared])
7561
AC_MSG_CHECKING([whether to build static libraries])
7562
# Make sure either enable_shared or enable_static is yes.
7563
test "$enable_shared" = yes || enable_static=yes
7564
AC_MSG_RESULT([$enable_static])
7566
_LT_TAGVAR(GCC, $1)="$G77"
7567
_LT_TAGVAR(LD, $1)="$LD"
7570
## There is no encapsulation within the following macros, do not change
7571
## the running order or otherwise move them around unless you know exactly
7572
## what you are doing...
7573
_LT_COMPILER_PIC($1)
7574
_LT_COMPILER_C_O($1)
7575
_LT_COMPILER_FILE_LOCKS($1)
7576
_LT_LINKER_SHLIBS($1)
7577
_LT_SYS_DYNAMIC_LINKER($1)
7578
_LT_LINKER_HARDCODE_LIBPATH($1)
7581
fi # test -n "$compiler"
7585
fi # test "$_lt_disable_F77" != yes
7588
])# _LT_LANG_F77_CONFIG
7593
# Since AC_PROG_FC is broken, in that it returns the empty string
7594
# if there is no fortran compiler, we have our own version here.
7595
m4_defun([_LT_PROG_FC],
7597
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7599
if test -z "$FC" || test "X$FC" = "Xno"; then
7602
popdef([AC_MSG_ERROR])
7605
dnl aclocal-1.4 backwards compatibility:
7606
dnl AC_DEFUN([_LT_PROG_FC], [])
7609
# _LT_LANG_FC_CONFIG([TAG])
7610
# -------------------------
7611
# Ensure that the configuration variables for a Fortran compiler are
7612
# suitably defined. These variables are subsequently used by _LT_CONFIG
7613
# to write the compiler configuration to `libtool'.
7614
m4_defun([_LT_LANG_FC_CONFIG],
7615
[AC_REQUIRE([_LT_PROG_FC])dnl
7616
AC_LANG_PUSH(Fortran)
7618
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7619
_LT_TAGVAR(allow_undefined_flag, $1)=
7620
_LT_TAGVAR(always_export_symbols, $1)=no
7621
_LT_TAGVAR(archive_expsym_cmds, $1)=
7622
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7623
_LT_TAGVAR(hardcode_direct, $1)=no
7624
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7625
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7626
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7627
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7628
_LT_TAGVAR(hardcode_minus_L, $1)=no
7629
_LT_TAGVAR(hardcode_automatic, $1)=no
7630
_LT_TAGVAR(inherit_rpath, $1)=no
7631
_LT_TAGVAR(module_cmds, $1)=
7632
_LT_TAGVAR(module_expsym_cmds, $1)=
7633
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7634
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7635
_LT_TAGVAR(no_undefined_flag, $1)=
7636
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7637
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7639
# Source file extension for fc test sources.
7640
ac_ext=${ac_fc_srcext-f}
7642
# Object file extension for compiled fc test sources.
7644
_LT_TAGVAR(objext, $1)=$objext
7646
# No sense in running all these tests if we already determined that
7647
# the FC compiler isn't working. Some variables (like enable_shared)
7648
# are currently assumed to apply to all compilers on this platform,
7649
# and will be corrupted by setting them based on a non-working compiler.
7650
if test "$_lt_disable_FC" != yes; then
7651
# Code to be used in simple compile tests
7652
lt_simple_compile_test_code="\
7658
# Code to be used in simple link tests
7659
lt_simple_link_test_code="\
7664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7667
# save warnings/boilerplate of simple test code
7668
_LT_COMPILER_BOILERPLATE
7669
_LT_LINKER_BOILERPLATE
7671
# Allow CC to be a program name with arguments.
7676
GCC=$ac_cv_fc_compiler_gnu
7678
_LT_TAGVAR(compiler, $1)=$CC
7679
_LT_CC_BASENAME([$compiler])
7681
if test -n "$compiler"; then
7682
AC_MSG_CHECKING([if libtool supports shared libraries])
7683
AC_MSG_RESULT([$can_build_shared])
7685
AC_MSG_CHECKING([whether to build shared libraries])
7686
test "$can_build_shared" = "no" && enable_shared=no
7688
# On AIX, shared libraries and static libraries use the same namespace, and
7689
# are all built from PIC.
7692
test "$enable_shared" = yes && enable_static=no
7693
if test -n "$RANLIB"; then
7694
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7695
postinstall_cmds='$RANLIB $lib'
7699
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7700
test "$enable_shared" = yes && enable_static=no
7704
AC_MSG_RESULT([$enable_shared])
7706
AC_MSG_CHECKING([whether to build static libraries])
7707
# Make sure either enable_shared or enable_static is yes.
7708
test "$enable_shared" = yes || enable_static=yes
7709
AC_MSG_RESULT([$enable_static])
7711
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7712
_LT_TAGVAR(LD, $1)="$LD"
7715
## There is no encapsulation within the following macros, do not change
7716
## the running order or otherwise move them around unless you know exactly
7717
## what you are doing...
7718
_LT_SYS_HIDDEN_LIBDEPS($1)
7719
_LT_COMPILER_PIC($1)
7720
_LT_COMPILER_C_O($1)
7721
_LT_COMPILER_FILE_LOCKS($1)
7722
_LT_LINKER_SHLIBS($1)
7723
_LT_SYS_DYNAMIC_LINKER($1)
7724
_LT_LINKER_HARDCODE_LIBPATH($1)
7727
fi # test -n "$compiler"
7731
fi # test "$_lt_disable_FC" != yes
7734
])# _LT_LANG_FC_CONFIG
7737
# _LT_LANG_GCJ_CONFIG([TAG])
7738
# --------------------------
7739
# Ensure that the configuration variables for the GNU Java Compiler compiler
7740
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7741
# to write the compiler configuration to `libtool'.
7742
m4_defun([_LT_LANG_GCJ_CONFIG],
7743
[AC_REQUIRE([LT_PROG_GCJ])dnl
7746
# Source file extension for Java test sources.
7749
# Object file extension for compiled Java test sources.
7751
_LT_TAGVAR(objext, $1)=$objext
7753
# Code to be used in simple compile tests
7754
lt_simple_compile_test_code="class foo {}"
7756
# Code to be used in simple link tests
7757
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7759
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7762
# save warnings/boilerplate of simple test code
7763
_LT_COMPILER_BOILERPLATE
7764
_LT_LINKER_BOILERPLATE
7766
# Allow CC to be a program name with arguments.
7772
_LT_TAGVAR(compiler, $1)=$CC
7773
_LT_TAGVAR(LD, $1)="$LD"
7774
_LT_CC_BASENAME([$compiler])
7776
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7777
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7779
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7781
if test -n "$compiler"; then
7782
_LT_COMPILER_NO_RTTI($1)
7783
_LT_COMPILER_PIC($1)
7784
_LT_COMPILER_C_O($1)
7785
_LT_COMPILER_FILE_LOCKS($1)
7786
_LT_LINKER_SHLIBS($1)
7787
_LT_LINKER_HARDCODE_LIBPATH($1)
7796
])# _LT_LANG_GCJ_CONFIG
7799
# _LT_LANG_RC_CONFIG([TAG])
7800
# -------------------------
7801
# Ensure that the configuration variables for the Windows resource compiler
7802
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7803
# to write the compiler configuration to `libtool'.
7804
m4_defun([_LT_LANG_RC_CONFIG],
7805
[AC_REQUIRE([LT_PROG_RC])dnl
7808
# Source file extension for RC test sources.
7811
# Object file extension for compiled RC test sources.
7813
_LT_TAGVAR(objext, $1)=$objext
7815
# Code to be used in simple compile tests
7816
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7818
# Code to be used in simple link tests
7819
lt_simple_link_test_code="$lt_simple_compile_test_code"
7821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7824
# save warnings/boilerplate of simple test code
7825
_LT_COMPILER_BOILERPLATE
7826
_LT_LINKER_BOILERPLATE
7828
# Allow CC to be a program name with arguments.
7834
_LT_TAGVAR(compiler, $1)=$CC
7835
_LT_CC_BASENAME([$compiler])
7836
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7838
if test -n "$compiler"; then
7846
])# _LT_LANG_RC_CONFIG
7851
AC_DEFUN([LT_PROG_GCJ],
7852
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7853
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7854
[AC_CHECK_TOOL(GCJ, gcj,)
7855
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7856
AC_SUBST(GCJFLAGS)])])[]dnl
7860
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7861
dnl aclocal-1.4 backwards compatibility:
7862
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7867
AC_DEFUN([LT_PROG_RC],
7868
[AC_CHECK_TOOL(RC, windres,)
7872
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7873
dnl aclocal-1.4 backwards compatibility:
7874
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7879
# If we don't have a new enough Autoconf to choose the best grep
7880
# available, choose the one first in the user's PATH.
7881
m4_defun([_LT_DECL_EGREP],
7882
[AC_REQUIRE([AC_PROG_EGREP])dnl
7883
AC_REQUIRE([AC_PROG_FGREP])dnl
7884
test -z "$GREP" && GREP=grep
7885
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7886
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7887
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7888
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7895
# If we don't have a new enough Autoconf to choose the best objdump
7896
# available, choose the one first in the user's PATH.
7897
m4_defun([_LT_DECL_OBJDUMP],
7898
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7899
test -z "$OBJDUMP" && OBJDUMP=objdump
7900
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7907
# Check for a fully-functional sed program, that truncates
7908
# as few characters as possible. Prefer GNU sed if found.
7909
m4_defun([_LT_DECL_SED],
7911
test -z "$SED" && SED=sed
7912
Xsed="$SED -e 1s/^X//"
7913
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7914
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7915
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7918
m4_ifndef([AC_PROG_SED], [
8319
7919
# NOTE: This macro has been submitted for inclusion into #
8320
7920
# GNU Autoconf as AC_PROG_SED. When it is available in #
8321
7921
# a released version of Autoconf we should remove this #
8322
7922
# macro and use it instead. #
8325
# Check for a fully-functional sed program, that truncates
8326
# as few characters as possible. Prefer GNU sed if found.
8327
AC_DEFUN([LT_AC_PROG_SED],
7924
m4_defun([AC_PROG_SED],
8328
7925
[AC_MSG_CHECKING([for a sed that does not truncate output])
8329
7926
AC_CACHE_VAL(lt_cv_path_SED,
8330
7927
[# Loop through the user's path and test for sed and gsed.
8377
7974
SED=$lt_cv_path_SED
8378
7975
AC_SUBST([SED])
8379
7976
AC_MSG_RESULT([$SED])
7981
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7982
dnl aclocal-1.4 backwards compatibility:
7983
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7986
# _LT_CHECK_SHELL_FEATURES
7987
# ------------------------
7988
# Find out whether the shell is Bourne or XSI compatible,
7989
# or has some other useful features.
7990
m4_defun([_LT_CHECK_SHELL_FEATURES],
7991
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7992
# Try some XSI features
7995
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7997
&& eval 'test $(( 1 + 1 )) -eq 2 \
7998
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8000
AC_MSG_RESULT([$xsi_shell])
8001
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8003
AC_MSG_CHECKING([whether the shell understands "+="])
8005
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8007
&& lt_shell_append=yes
8008
AC_MSG_RESULT([$lt_shell_append])
8009
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8011
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8016
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8018
# test EBCDIC or ASCII
8019
case `echo X|tr X '\101'` in
8020
A) # ASCII based system
8021
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8022
lt_SP2NL='tr \040 \012'
8023
lt_NL2SP='tr \015\012 \040\040'
8025
*) # EBCDIC based system
8026
lt_SP2NL='tr \100 \n'
8027
lt_NL2SP='tr \r\n \100\100'
8030
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8031
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8032
])# _LT_CHECK_SHELL_FEATURES
8035
# _LT_PROG_XSI_SHELLFNS
8036
# ---------------------
8037
# Bourne and XSI compatible variants of some useful shell functions.
8038
m4_defun([_LT_PROG_XSI_SHELLFNS],
8041
cat << \_LT_EOF >> "$cfgfile"
8043
# func_dirname file append nondir_replacement
8044
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8045
# otherwise set result to NONDIR_REPLACEMENT.
8049
*/*) func_dirname_result="${1%/*}${2}" ;;
8050
* ) func_dirname_result="${3}" ;;
8054
# func_basename file
8057
func_basename_result="${1##*/}"
8060
# func_dirname_and_basename file append nondir_replacement
8061
# perform func_basename and func_dirname in a single function
8063
# dirname: Compute the dirname of FILE. If nonempty,
8064
# add APPEND to the result, otherwise set result
8065
# to NONDIR_REPLACEMENT.
8066
# value returned in "$func_dirname_result"
8067
# basename: Compute filename of FILE.
8068
# value retuned in "$func_basename_result"
8069
# Implementation must be kept synchronized with func_dirname
8070
# and func_basename. For efficiency, we do not delegate to
8071
# those functions but instead duplicate the functionality here.
8072
func_dirname_and_basename ()
8075
*/*) func_dirname_result="${1%/*}${2}" ;;
8076
* ) func_dirname_result="${3}" ;;
8078
func_basename_result="${1##*/}"
8081
# func_stripname prefix suffix name
8082
# strip PREFIX and SUFFIX off of NAME.
8083
# PREFIX and SUFFIX must not contain globbing or regex special
8084
# characters, hashes, percent signs, but SUFFIX may contain a leading
8085
# dot (in which case that matches only a dot).
8088
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8089
# positional parameters, so assign one to ordinary parameter first.
8090
func_stripname_result=${3}
8091
func_stripname_result=${func_stripname_result#"${1}"}
8092
func_stripname_result=${func_stripname_result%"${2}"}
8098
func_opt_split_opt=${1%%=*}
8099
func_opt_split_arg=${1#*=}
8106
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8107
*) func_lo2o_result=${1} ;;
8111
# func_xform libobj-or-source
8114
func_xform_result=${1%.*}.lo
8117
# func_arith arithmetic-term...
8120
func_arith_result=$(( $[*] ))
8124
# STRING may not start with a hyphen.
8127
func_len_result=${#1}
8132
*) # Bourne compatible functions.
8133
cat << \_LT_EOF >> "$cfgfile"
8135
# func_dirname file append nondir_replacement
8136
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8137
# otherwise set result to NONDIR_REPLACEMENT.
8140
# Extract subdirectory from the argument.
8141
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8142
if test "X$func_dirname_result" = "X${1}"; then
8143
func_dirname_result="${3}"
8145
func_dirname_result="$func_dirname_result${2}"
8149
# func_basename file
8152
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8155
dnl func_dirname_and_basename
8156
dnl A portable version of this function is already defined in general.m4sh
8157
dnl so there is no need for it here.
8159
# func_stripname prefix suffix name
8160
# strip PREFIX and SUFFIX off of NAME.
8161
# PREFIX and SUFFIX must not contain globbing or regex special
8162
# characters, hashes, percent signs, but SUFFIX may contain a leading
8163
# dot (in which case that matches only a dot).
8164
# func_strip_suffix prefix name
8168
.*) func_stripname_result=`$ECHO "X${3}" \
8169
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8170
*) func_stripname_result=`$ECHO "X${3}" \
8171
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8176
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8177
my_sed_long_arg='1s/^-[[^=]]*=//'
8182
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8183
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8189
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8192
# func_xform libobj-or-source
8195
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8198
# func_arith arithmetic-term...
8201
func_arith_result=`expr "$[@]"`
8205
# STRING may not start with a hyphen.
8208
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8214
case $lt_shell_append in
8216
cat << \_LT_EOF >> "$cfgfile"
8218
# func_append var value
8219
# Append VALUE to the end of shell variable VAR.
8227
cat << \_LT_EOF >> "$cfgfile"
8229
# func_append var value
8230
# Append VALUE to the end of shell variable VAR.
8233
eval "$[1]=\$$[1]\$[2]"
8241
# Helper functions for option handling. -*- Autoconf -*-
8243
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8244
# Written by Gary V. Vaughan, 2004
8246
# This file is free software; the Free Software Foundation gives
8247
# unlimited permission to copy and/or distribute it, with or without
8248
# modifications, as long as this notice is preserved.
8250
# serial 6 ltoptions.m4
8252
# This is to help aclocal find these macros, as it can't see m4_define.
8253
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8256
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8257
# ------------------------------------------
8258
m4_define([_LT_MANGLE_OPTION],
8259
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8262
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8263
# ---------------------------------------
8264
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8265
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8267
m4_define([_LT_SET_OPTION],
8268
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8269
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8270
_LT_MANGLE_DEFUN([$1], [$2]),
8271
[m4_warning([Unknown $1 option `$2'])])[]dnl
8275
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8276
# ------------------------------------------------------------
8277
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8278
m4_define([_LT_IF_OPTION],
8279
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8282
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8283
# -------------------------------------------------------
8284
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8286
m4_define([_LT_UNLESS_OPTIONS],
8287
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8288
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8289
[m4_define([$0_found])])])[]dnl
8290
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8295
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8296
# ----------------------------------------
8297
# OPTION-LIST is a space-separated list of Libtool options associated
8298
# with MACRO-NAME. If any OPTION has a matching handler declared with
8299
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8300
# the unknown option and exit.
8301
m4_defun([_LT_SET_OPTIONS],
8303
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8304
[_LT_SET_OPTION([$1], _LT_Option)])
8306
m4_if([$1],[LT_INIT],[
8308
dnl Simply set some default values (i.e off) if boolean options were not
8310
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8312
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8315
dnl If no reference was made to various pairs of opposing options, then
8316
dnl we run the default mode handler for the pair. For example, if neither
8317
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8318
dnl archives by default:
8319
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8320
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8321
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8322
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8323
[_LT_ENABLE_FAST_INSTALL])
8329
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8330
# -----------------------------------------
8331
m4_define([_LT_MANGLE_DEFUN],
8332
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8335
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8336
# -----------------------------------------------
8337
m4_define([LT_OPTION_DEFINE],
8338
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8339
])# LT_OPTION_DEFINE
8344
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8347
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8348
[_LT_SET_OPTION([LT_INIT], [dlopen])
8349
AC_DIAGNOSE([obsolete],
8350
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8351
put the `dlopen' option into LT_INIT's first parameter.])
8354
dnl aclocal-1.4 backwards compatibility:
8355
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8360
# Declare package support for building win32 dll's.
8361
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8362
[enable_win32_dll=yes
8365
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8366
AC_CHECK_TOOL(AS, as, false)
8367
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8368
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8372
test -z "$AS" && AS=as
8373
_LT_DECL([], [AS], [0], [Assembler program])dnl
8375
test -z "$DLLTOOL" && DLLTOOL=dlltool
8376
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8378
test -z "$OBJDUMP" && OBJDUMP=objdump
8379
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8382
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8383
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8384
_LT_SET_OPTION([LT_INIT], [win32-dll])
8385
AC_DIAGNOSE([obsolete],
8386
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8387
put the `win32-dll' option into LT_INIT's first parameter.])
8390
dnl aclocal-1.4 backwards compatibility:
8391
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8394
# _LT_ENABLE_SHARED([DEFAULT])
8395
# ----------------------------
8396
# implement the --enable-shared flag, and supports the `shared' and
8397
# `disable-shared' LT_INIT options.
8398
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8399
m4_define([_LT_ENABLE_SHARED],
8400
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8401
AC_ARG_ENABLE([shared],
8402
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8403
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8404
[p=${PACKAGE-default}
8406
yes) enable_shared=yes ;;
8407
no) enable_shared=no ;;
8410
# Look at the argument we got. We use all the common list separators.
8411
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8412
for pkg in $enableval; do
8414
if test "X$pkg" = "X$p"; then
8421
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8423
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8424
[Whether or not to build shared libraries])
8425
])# _LT_ENABLE_SHARED
8427
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8428
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8431
AC_DEFUN([AC_ENABLE_SHARED],
8432
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8435
AC_DEFUN([AC_DISABLE_SHARED],
8436
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8439
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8440
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8442
dnl aclocal-1.4 backwards compatibility:
8443
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8444
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8448
# _LT_ENABLE_STATIC([DEFAULT])
8449
# ----------------------------
8450
# implement the --enable-static flag, and support the `static' and
8451
# `disable-static' LT_INIT options.
8452
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8453
m4_define([_LT_ENABLE_STATIC],
8454
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8455
AC_ARG_ENABLE([static],
8456
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8457
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8458
[p=${PACKAGE-default}
8460
yes) enable_static=yes ;;
8461
no) enable_static=no ;;
8464
# Look at the argument we got. We use all the common list separators.
8465
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8466
for pkg in $enableval; do
8468
if test "X$pkg" = "X$p"; then
8475
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8477
_LT_DECL([build_old_libs], [enable_static], [0],
8478
[Whether or not to build static libraries])
8479
])# _LT_ENABLE_STATIC
8481
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8482
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8485
AC_DEFUN([AC_ENABLE_STATIC],
8486
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8489
AC_DEFUN([AC_DISABLE_STATIC],
8490
[_LT_SET_OPTION([LT_INIT], [disable-static])
8493
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8494
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8496
dnl aclocal-1.4 backwards compatibility:
8497
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8498
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8502
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8503
# ----------------------------------
8504
# implement the --enable-fast-install flag, and support the `fast-install'
8505
# and `disable-fast-install' LT_INIT options.
8506
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8507
m4_define([_LT_ENABLE_FAST_INSTALL],
8508
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8509
AC_ARG_ENABLE([fast-install],
8510
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8511
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8512
[p=${PACKAGE-default}
8514
yes) enable_fast_install=yes ;;
8515
no) enable_fast_install=no ;;
8517
enable_fast_install=no
8518
# Look at the argument we got. We use all the common list separators.
8519
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8520
for pkg in $enableval; do
8522
if test "X$pkg" = "X$p"; then
8523
enable_fast_install=yes
8529
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8531
_LT_DECL([fast_install], [enable_fast_install], [0],
8532
[Whether or not to optimize for fast installation])dnl
8533
])# _LT_ENABLE_FAST_INSTALL
8535
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8536
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8539
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8540
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8541
AC_DIAGNOSE([obsolete],
8542
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8543
the `fast-install' option into LT_INIT's first parameter.])
8546
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8547
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8548
AC_DIAGNOSE([obsolete],
8549
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8550
the `disable-fast-install' option into LT_INIT's first parameter.])
8553
dnl aclocal-1.4 backwards compatibility:
8554
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8555
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8558
# _LT_WITH_PIC([MODE])
8559
# --------------------
8560
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8562
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8563
m4_define([_LT_WITH_PIC],
8565
[AS_HELP_STRING([--with-pic],
8566
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8567
[pic_mode="$withval"],
8570
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8572
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8575
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8576
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8579
AU_DEFUN([AC_LIBTOOL_PICMODE],
8580
[_LT_SET_OPTION([LT_INIT], [pic-only])
8581
AC_DIAGNOSE([obsolete],
8582
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8583
put the `pic-only' option into LT_INIT's first parameter.])
8586
dnl aclocal-1.4 backwards compatibility:
8587
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8590
m4_define([_LTDL_MODE], [])
8591
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8592
[m4_define([_LTDL_MODE], [nonrecursive])])
8593
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8594
[m4_define([_LTDL_MODE], [recursive])])
8595
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8596
[m4_define([_LTDL_MODE], [subproject])])
8598
m4_define([_LTDL_TYPE], [])
8599
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8600
[m4_define([_LTDL_TYPE], [installable])])
8601
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8602
[m4_define([_LTDL_TYPE], [convenience])])
8604
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8606
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8607
# Written by Gary V. Vaughan, 2004
8609
# This file is free software; the Free Software Foundation gives
8610
# unlimited permission to copy and/or distribute it, with or without
8611
# modifications, as long as this notice is preserved.
8613
# serial 6 ltsugar.m4
8615
# This is to help aclocal find these macros, as it can't see m4_define.
8616
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8619
# lt_join(SEP, ARG1, [ARG2...])
8620
# -----------------------------
8621
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8622
# associated separator.
8623
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8624
# versions in m4sugar had bugs.
8625
m4_define([lt_join],
8626
[m4_if([$#], [1], [],
8628
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8629
m4_define([_lt_join],
8630
[m4_if([$#$2], [2], [],
8631
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8637
# Manipulate m4 lists.
8638
# These macros are necessary as long as will still need to support
8639
# Autoconf-2.59 which quotes differently.
8640
m4_define([lt_car], [[$1]])
8642
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8644
[m4_dquote(m4_shift($@))])])
8645
m4_define([lt_unquote], $1)
8648
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8649
# ------------------------------------------
8650
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8651
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8652
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8653
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8654
# than defined and empty).
8656
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8657
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8658
m4_define([lt_append],
8660
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8664
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8665
# ----------------------------------------------------------
8666
# Produce a SEP delimited list of all paired combinations of elements of
8667
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8668
# has the form PREFIXmINFIXSUFFIXn.
8669
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8670
m4_define([lt_combine],
8671
[m4_if(m4_eval([$# > 3]), [1],
8672
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8673
[[m4_foreach([_Lt_prefix], [$2],
8674
[m4_foreach([_Lt_suffix],
8675
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8676
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8679
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8680
# -----------------------------------------------------------------------
8681
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8682
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8683
m4_define([lt_if_append_uniq],
8685
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8686
[lt_append([$1], [$2], [$3])$4],
8688
[lt_append([$1], [$2], [$3])$4])])
8691
# lt_dict_add(DICT, KEY, VALUE)
8692
# -----------------------------
8693
m4_define([lt_dict_add],
8694
[m4_define([$1($2)], [$3])])
8697
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8698
# --------------------------------------------
8699
m4_define([lt_dict_add_subkey],
8700
[m4_define([$1($2:$3)], [$4])])
8703
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8704
# ----------------------------------
8705
m4_define([lt_dict_fetch],
8707
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8708
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8711
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8712
# -----------------------------------------------------------------
8713
m4_define([lt_if_dict_fetch],
8714
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8719
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8720
# --------------------------------------------------------------
8721
m4_define([lt_dict_filter],
8722
[m4_if([$5], [], [],
8723
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8724
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8725
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8728
# ltversion.m4 -- version numbers -*- Autoconf -*-
8730
# Copyright (C) 2004 Free Software Foundation, Inc.
8731
# Written by Scott James Remnant, 2004
8733
# This file is free software; the Free Software Foundation gives
8734
# unlimited permission to copy and/or distribute it, with or without
8735
# modifications, as long as this notice is preserved.
8737
# Generated from ltversion.in.
8739
# serial 3012 ltversion.m4
8740
# This file is part of GNU Libtool
8742
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8743
m4_define([LT_PACKAGE_REVISION], [1.3012])
8745
AC_DEFUN([LTVERSION_VERSION],
8746
[macro_version='2.2.6'
8747
macro_revision='1.3012'
8748
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8749
_LT_DECL(, macro_revision, 0)
8752
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8754
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8755
# Written by Scott James Remnant, 2004.
8757
# This file is free software; the Free Software Foundation gives
8758
# unlimited permission to copy and/or distribute it, with or without
8759
# modifications, as long as this notice is preserved.
8761
# serial 4 lt~obsolete.m4
8763
# These exist entirely to fool aclocal when bootstrapping libtool.
8765
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8766
# which have later been changed to m4_define as they aren't part of the
8767
# exported API, or moved to Autoconf or Automake where they belong.
8769
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8770
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8771
# using a macro with the same name in our local m4/libtool.m4 it'll
8772
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8773
# and doesn't know about Autoconf macros at all.)
8775
# So we provide this file, which has a silly filename so it's always
8776
# included after everything else. This provides aclocal with the
8777
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8778
# because those macros already exist, or will be overwritten later.
8779
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8781
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8782
# Yes, that means every name once taken will need to remain here until
8783
# we give up compatibility with versions before 1.7, at which point
8784
# we need to keep only those names which we still refer to.
8786
# This is to help aclocal find these macros, as it can't see m4_define.
8787
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8789
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8790
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8791
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8792
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8793
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8794
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8795
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8796
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8797
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8798
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8799
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8800
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8801
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8802
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8803
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8804
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8805
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8806
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8807
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8808
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8809
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8810
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8811
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8812
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8813
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8814
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8815
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8816
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8817
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8818
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8819
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8820
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8821
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8822
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8823
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8824
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8825
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8826
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8827
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8828
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8829
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8830
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8831
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8832
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8833
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8834
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8835
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8836
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8837
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8838
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8839
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8840
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8841
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8842
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8843
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8382
8845
# nls.m4 serial 3 (gettext-0.15)
8383
8846
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8568
9033
])# PKG_CHECK_MODULES
9035
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9037
# This file is free software; the Free Software Foundation
9038
# gives unlimited permission to copy and/or distribute it,
9039
# with or without modifications, as long as this notice is preserved.
9041
# AM_AUTOMAKE_VERSION(VERSION)
9042
# ----------------------------
9043
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9044
# generated from the m4 files accompanying Automake X.Y.
9045
# (This private macro should not be called outside this file.)
9046
AC_DEFUN([AM_AUTOMAKE_VERSION],
9047
[am__api_version='1.10'
9048
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9049
dnl require some minimum version. Point them to the right macro.
9050
m4_if([$1], [1.10.2], [],
9051
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9054
# _AM_AUTOCONF_VERSION(VERSION)
9055
# -----------------------------
9056
# aclocal traces this macro to find the Autoconf version.
9057
# This is a private macro too. Using m4_define simplifies
9058
# the logic in aclocal, which can simply ignore this definition.
9059
m4_define([_AM_AUTOCONF_VERSION], [])
9061
# AM_SET_CURRENT_AUTOMAKE_VERSION
9062
# -------------------------------
9063
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9064
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9065
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9066
[AM_AUTOMAKE_VERSION([1.10.2])dnl
9067
m4_ifndef([AC_AUTOCONF_VERSION],
9068
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9069
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9071
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9073
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9075
# This file is free software; the Free Software Foundation
9076
# gives unlimited permission to copy and/or distribute it,
9077
# with or without modifications, as long as this notice is preserved.
9079
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9080
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9081
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9083
# Of course, Automake must honor this variable whenever it calls a
9084
# tool from the auxiliary directory. The problem is that $srcdir (and
9085
# therefore $ac_aux_dir as well) can be either absolute or relative,
9086
# depending on how configure is run. This is pretty annoying, since
9087
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9088
# source directory, any form will work fine, but in subdirectories a
9089
# relative path needs to be adjusted first.
9091
# $ac_aux_dir/missing
9092
# fails when called from a subdirectory if $ac_aux_dir is relative
9093
# $top_srcdir/$ac_aux_dir/missing
9094
# fails if $ac_aux_dir is absolute,
9095
# fails when called from a subdirectory in a VPATH build with
9096
# a relative $ac_aux_dir
9098
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9099
# are both prefixed by $srcdir. In an in-source build this is usually
9100
# harmless because $srcdir is `.', but things will broke when you
9101
# start a VPATH build or use an absolute $srcdir.
9103
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9104
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9105
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9106
# and then we would define $MISSING as
9107
# MISSING="\${SHELL} $am_aux_dir/missing"
9108
# This will work as long as MISSING is not called from configure, because
9109
# unfortunately $(top_srcdir) has no meaning in configure.
9110
# However there are other variables, like CC, which are often used in
9111
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9113
# Another solution, used here, is to always expand $ac_aux_dir to an
9114
# absolute PATH. The drawback is that using absolute paths prevent a
9115
# configured tree to be moved without reconfiguration.
9117
AC_DEFUN([AM_AUX_DIR_EXPAND],
9118
[dnl Rely on autoconf to set up CDPATH properly.
9119
AC_PREREQ([2.50])dnl
9120
# expand $ac_aux_dir to an absolute path
9121
am_aux_dir=`cd $ac_aux_dir && pwd`
9124
# AM_CONDITIONAL -*- Autoconf -*-
9126
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
9127
# Free Software Foundation, Inc.
9129
# This file is free software; the Free Software Foundation
9130
# gives unlimited permission to copy and/or distribute it,
9131
# with or without modifications, as long as this notice is preserved.
9135
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9136
# -------------------------------------
9137
# Define a conditional.
9138
AC_DEFUN([AM_CONDITIONAL],
9140
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9141
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9142
AC_SUBST([$1_TRUE])dnl
9143
AC_SUBST([$1_FALSE])dnl
9144
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9145
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9153
AC_CONFIG_COMMANDS_PRE(
9154
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9155
AC_MSG_ERROR([[conditional "$1" was never defined.
9156
Usually this means the macro was only invoked conditionally.]])
9159
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
9160
# Free Software Foundation, Inc.
9162
# This file is free software; the Free Software Foundation
9163
# gives unlimited permission to copy and/or distribute it,
9164
# with or without modifications, as long as this notice is preserved.
9168
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9169
# written in clear, in which case automake, when reading aclocal.m4,
9170
# will think it sees a *use*, and therefore will trigger all it's
9171
# C support machinery. Also note that it means that autoscan, seeing
9172
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9175
# _AM_DEPENDENCIES(NAME)
9176
# ----------------------
9177
# See how the compiler implements dependency checking.
9178
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9179
# We try a few techniques and use that to set a single cache variable.
9181
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9182
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9183
# dependency, and given that the user is not expected to run this macro,
9184
# just rely on AC_PROG_CC.
9185
AC_DEFUN([_AM_DEPENDENCIES],
9186
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9187
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9188
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9189
AC_REQUIRE([AM_DEP_TRACK])dnl
9191
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9192
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9193
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9194
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9195
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9196
[depcc="$$1" am_compiler_list=])
9198
AC_CACHE_CHECK([dependency style of $depcc],
9199
[am_cv_$1_dependencies_compiler_type],
9200
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9201
# We make a subdir and do the tests there. Otherwise we can end up
9202
# making bogus files that we don't know about and never remove. For
9203
# instance it was reported that on HP-UX the gcc test will end up
9204
# making a dummy file named `D' -- because `-MD' means `put the output
9207
# Copy depcomp to subdir because otherwise we won't find it if we're
9208
# using a relative directory.
9209
cp "$am_depcomp" conftest.dir
9211
# We will build objects and dependencies in a subdirectory because
9212
# it helps to detect inapplicable dependency modes. For instance
9213
# both Tru64's cc and ICC support -MD to output dependencies as a
9214
# side effect of compilation, but ICC will put the dependencies in
9215
# the current directory while Tru64 will put them in the object
9219
am_cv_$1_dependencies_compiler_type=none
9220
if test "$am_compiler_list" = ""; then
9221
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9223
for depmode in $am_compiler_list; do
9224
# Setup a source with many dependencies, because some compilers
9225
# like to wrap large dependency lists on column 80 (with \), and
9226
# we should not choose a depcomp mode which is confused by this.
9228
# We need to recreate these files for each test, as the compiler may
9229
# overwrite some of them when testing with obscure command lines.
9230
# This happens at least with the AIX C compiler.
9232
for i in 1 2 3 4 5 6; do
9233
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9234
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9235
# Solaris 8's {/usr,}/bin/sh.
9236
touch sub/conftst$i.h
9238
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9242
# after this tag, mechanisms are not by side-effect, so they'll
9243
# only be used when explicitly requested
9244
if test "x$enable_dependency_tracking" = xyes; then
9252
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9253
# mode. It turns out that the SunPro C++ compiler does not properly
9254
# handle `-M -o', and we need to detect this.
9255
if depmode=$depmode \
9256
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
9257
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9258
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
9259
>/dev/null 2>conftest.err &&
9260
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9261
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9262
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
9263
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9264
# icc doesn't choke on unknown options, it will just issue warnings
9265
# or remarks (even with -Werror). So we grep stderr for any message
9266
# that says an option was ignored or not supported.
9267
# When given -MP, icc 7.0 and 7.1 complain thusly:
9268
# icc: Command line warning: ignoring option '-M'; no argument required
9269
# The diagnosis changed in icc 8.0:
9270
# icc: Command line remark: option '-MP' not supported
9271
if (grep 'ignoring option' conftest.err ||
9272
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9273
am_cv_$1_dependencies_compiler_type=$depmode
9282
am_cv_$1_dependencies_compiler_type=none
9285
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9286
AM_CONDITIONAL([am__fastdep$1], [
9287
test "x$enable_dependency_tracking" != xno \
9288
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9294
# Choose a directory name for dependency files.
9295
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9296
AC_DEFUN([AM_SET_DEPDIR],
9297
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9298
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9304
AC_DEFUN([AM_DEP_TRACK],
9305
[AC_ARG_ENABLE(dependency-tracking,
9306
[ --disable-dependency-tracking speeds up one-time build
9307
--enable-dependency-tracking do not reject slow dependency extractors])
9308
if test "x$enable_dependency_tracking" != xno; then
9309
am_depcomp="$ac_aux_dir/depcomp"
9312
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9313
AC_SUBST([AMDEPBACKSLASH])dnl
9314
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9317
# Generate code to set up dependency tracking. -*- Autoconf -*-
9319
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9320
# Free Software Foundation, Inc.
9322
# This file is free software; the Free Software Foundation
9323
# gives unlimited permission to copy and/or distribute it,
9324
# with or without modifications, as long as this notice is preserved.
9328
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9329
# ------------------------------
9330
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9331
[# Autoconf 2.62 quotes --file arguments for eval, but not when files
9332
# are listed without --file. Let's play safe and only enable the eval
9333
# if we detect the quoting.
9334
case $CONFIG_FILES in
9335
*\'*) eval set x "$CONFIG_FILES" ;;
9336
*) set x $CONFIG_FILES ;;
9341
# Strip MF so we end up with the name of the file.
9342
mf=`echo "$mf" | sed -e 's/:.*$//'`
9343
# Check whether this is an Automake generated Makefile or not.
9344
# We used to match only the files named `Makefile.in', but
9345
# some people rename them; so instead we look at the file content.
9346
# Grep'ing the first line is not enough: some people post-process
9347
# each Makefile.in and add a new line on top of each file to say so.
9348
# Grep'ing the whole file is not good either: AIX grep has a line
9349
# limit of 2048, but all sed's we know have understand at least 4000.
9350
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9351
dirpart=`AS_DIRNAME("$mf")`
9355
# Extract the definition of DEPDIR, am__include, and am__quote
9356
# from the Makefile without running `make'.
9357
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9358
test -z "$DEPDIR" && continue
9359
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9360
test -z "am__include" && continue
9361
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9362
# When using ansi2knr, U may be empty or an underscore; expand it
9363
U=`sed -n 's/^U = //p' < "$mf"`
9364
# Find all dependency output files, they are included files with
9365
# $(DEPDIR) in their names. We invoke sed twice because it is the
9366
# simplest approach to changing $(DEPDIR) to its actual value in the
9368
for file in `sed -n "
9369
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9370
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9371
# Make sure the directory exists.
9372
test -f "$dirpart/$file" && continue
9373
fdir=`AS_DIRNAME(["$file"])`
9374
AS_MKDIR_P([$dirpart/$fdir])
9375
# echo "creating $dirpart/$file"
9376
echo '# dummy' > "$dirpart/$file"
9379
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9382
# AM_OUTPUT_DEPENDENCY_COMMANDS
9383
# -----------------------------
9384
# This macro should only be invoked once -- use via AC_REQUIRE.
9386
# This code is only required when automatic dependency tracking
9387
# is enabled. FIXME. This creates each `.P' file that we will
9388
# need in order to bootstrap the dependency handling code.
9389
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9390
[AC_CONFIG_COMMANDS([depfiles],
9391
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9392
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9395
# Do all the work for Automake. -*- Autoconf -*-
9397
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9398
# 2005, 2006, 2008 Free Software Foundation, Inc.
9400
# This file is free software; the Free Software Foundation
9401
# gives unlimited permission to copy and/or distribute it,
9402
# with or without modifications, as long as this notice is preserved.
9406
# This macro actually does too much. Some checks are only needed if
9407
# your package does certain things. But this isn't really a big deal.
9409
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9410
# AM_INIT_AUTOMAKE([OPTIONS])
9411
# -----------------------------------------------
9412
# The call with PACKAGE and VERSION arguments is the old style
9413
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9414
# and VERSION should now be passed to AC_INIT and removed from
9415
# the call to AM_INIT_AUTOMAKE.
9416
# We support both call styles for the transition. After
9417
# the next Automake release, Autoconf can make the AC_INIT
9418
# arguments mandatory, and then we can depend on a new Autoconf
9419
# release and drop the old call support.
9420
AC_DEFUN([AM_INIT_AUTOMAKE],
9421
[AC_PREREQ([2.60])dnl
9422
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9423
dnl the ones we care about.
9424
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9425
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9426
AC_REQUIRE([AC_PROG_INSTALL])dnl
9427
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9428
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9429
# is not polluted with repeated "-I."
9430
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9431
# test to see if srcdir already configured
9432
if test -f $srcdir/config.status; then
9433
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9437
# test whether we have cygpath
9438
if test -z "$CYGPATH_W"; then
9439
if (cygpath --version) >/dev/null 2>/dev/null; then
9440
CYGPATH_W='cygpath -w'
9445
AC_SUBST([CYGPATH_W])
9447
# Define the identity of the package.
9448
dnl Distinguish between old-style and new-style calls.
9450
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9451
AC_SUBST([PACKAGE], [$1])dnl
9452
AC_SUBST([VERSION], [$2])],
9453
[_AM_SET_OPTIONS([$1])dnl
9454
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9455
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9456
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9457
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9458
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9460
_AM_IF_OPTION([no-define],,
9461
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9462
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9464
# Some tools Automake needs.
9465
AC_REQUIRE([AM_SANITY_CHECK])dnl
9466
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9467
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9468
AM_MISSING_PROG(AUTOCONF, autoconf)
9469
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9470
AM_MISSING_PROG(AUTOHEADER, autoheader)
9471
AM_MISSING_PROG(MAKEINFO, makeinfo)
9473
AM_PROG_INSTALL_STRIP
9474
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9475
# We need awk for the "check" target. The system "awk" is bad on
9477
AC_REQUIRE([AC_PROG_AWK])dnl
9478
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9479
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9480
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9481
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9482
[_AM_PROG_TAR([v7])])])
9483
_AM_IF_OPTION([no-dependencies],,
9484
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9485
[_AM_DEPENDENCIES(CC)],
9486
[define([AC_PROG_CC],
9487
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9488
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9489
[_AM_DEPENDENCIES(CXX)],
9490
[define([AC_PROG_CXX],
9491
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9492
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9493
[_AM_DEPENDENCIES(OBJC)],
9494
[define([AC_PROG_OBJC],
9495
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9500
# When config.status generates a header, we must update the stamp-h file.
9501
# This file resides in the same directory as the config header
9502
# that is generated. The stamp files are numbered to have different names.
9504
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9505
# loop where config.status creates the headers, so we can generate
9506
# our stamp files there.
9507
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9508
[# Compute $1's index in $config_headers.
9511
for _am_header in $config_headers :; do
9513
$_am_arg | $_am_arg:* )
9516
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9519
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9521
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9523
# This file is free software; the Free Software Foundation
9524
# gives unlimited permission to copy and/or distribute it,
9525
# with or without modifications, as long as this notice is preserved.
9527
# AM_PROG_INSTALL_SH
9528
# ------------------
9529
# Define $install_sh.
9530
AC_DEFUN([AM_PROG_INSTALL_SH],
9531
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9532
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
9533
AC_SUBST(install_sh)])
9535
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9537
# This file is free software; the Free Software Foundation
9538
# gives unlimited permission to copy and/or distribute it,
9539
# with or without modifications, as long as this notice is preserved.
9543
# Check whether the underlying file-system supports filenames
9544
# with a leading dot. For instance MS-DOS doesn't.
9545
AC_DEFUN([AM_SET_LEADING_DOT],
9546
[rm -rf .tst 2>/dev/null
9547
mkdir .tst 2>/dev/null
9548
if test -d .tst; then
9553
rmdir .tst 2>/dev/null
9554
AC_SUBST([am__leading_dot])])
9556
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9559
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
9560
# Free Software Foundation, Inc.
9562
# This file is free software; the Free Software Foundation
9563
# gives unlimited permission to copy and/or distribute it,
9564
# with or without modifications, as long as this notice is preserved.
9568
AC_DEFUN([AM_MAINTAINER_MODE],
9569
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
9570
dnl maintainer-mode is disabled by default
9571
AC_ARG_ENABLE(maintainer-mode,
9572
[ --enable-maintainer-mode enable make rules and dependencies not useful
9573
(and sometimes confusing) to the casual installer],
9574
USE_MAINTAINER_MODE=$enableval,
9575
USE_MAINTAINER_MODE=no)
9576
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9577
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
9578
MAINT=$MAINTAINER_MODE_TRUE
9583
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9585
# Check to see how 'make' treats includes. -*- Autoconf -*-
9587
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
9589
# This file is free software; the Free Software Foundation
9590
# gives unlimited permission to copy and/or distribute it,
9591
# with or without modifications, as long as this notice is preserved.
9597
# Check to see how make treats includes.
9598
AC_DEFUN([AM_MAKE_INCLUDE],
9599
[am_make=${MAKE-make}
9600
cat > confinc << 'END'
9605
# If we don't find an include directive, just comment out the code.
9606
AC_MSG_CHECKING([for style of include used by $am_make])
9610
# First try GNU make style include.
9611
echo "include confinc" > confmf
9612
# We grep out `Entering directory' and `Leaving directory'
9613
# messages which can occur if `w' ends up in MAKEFLAGS.
9614
# In particular we don't look at `^make:' because GNU make might
9615
# be invoked under some other name (usually "gmake"), in which
9616
# case it prints its new name instead of `make'.
9617
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
9622
# Now try BSD make style include.
9623
if test "$am__include" = "#"; then
9624
echo '.include "confinc"' > confmf
9625
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
9626
am__include=.include
9631
AC_SUBST([am__include])
9632
AC_SUBST([am__quote])
9633
AC_MSG_RESULT([$_am_result])
9634
rm -f confinc confmf
9637
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9639
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
9640
# Free Software Foundation, Inc.
9642
# This file is free software; the Free Software Foundation
9643
# gives unlimited permission to copy and/or distribute it,
9644
# with or without modifications, as long as this notice is preserved.
9648
# AM_MISSING_PROG(NAME, PROGRAM)
9649
# ------------------------------
9650
AC_DEFUN([AM_MISSING_PROG],
9651
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9652
$1=${$1-"${am_missing_run}$2"}
9656
# AM_MISSING_HAS_RUN
9657
# ------------------
9658
# Define MISSING if not defined so far and test if it supports --run.
9659
# If it does, set am_missing_run to use it, otherwise, to nothing.
9660
AC_DEFUN([AM_MISSING_HAS_RUN],
9661
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9662
AC_REQUIRE_AUX_FILE([missing])dnl
9663
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
9664
# Use eval to expand $SHELL
9665
if eval "$MISSING --run true"; then
9666
am_missing_run="$MISSING --run "
9669
AC_MSG_WARN([`missing' script is too old or missing])
9673
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9675
# This file is free software; the Free Software Foundation
9676
# gives unlimited permission to copy and/or distribute it,
9677
# with or without modifications, as long as this notice is preserved.
9681
# Check for `mkdir -p'.
9682
AC_DEFUN([AM_PROG_MKDIR_P],
9683
[AC_PREREQ([2.60])dnl
9684
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9685
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9686
dnl while keeping a definition of mkdir_p for backward compatibility.
9687
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9688
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9689
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9690
dnl adjustment using top_builddir (which is defined more often than
9692
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9694
[[\\/$]]* | ?:[[\\/]]*) ;;
9695
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9699
# Helper functions for option handling. -*- Autoconf -*-
9701
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9703
# This file is free software; the Free Software Foundation
9704
# gives unlimited permission to copy and/or distribute it,
9705
# with or without modifications, as long as this notice is preserved.
9709
# _AM_MANGLE_OPTION(NAME)
9710
# -----------------------
9711
AC_DEFUN([_AM_MANGLE_OPTION],
9712
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9714
# _AM_SET_OPTION(NAME)
9715
# ------------------------------
9716
# Set option NAME. Presently that only means defining a flag for this option.
9717
AC_DEFUN([_AM_SET_OPTION],
9718
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9720
# _AM_SET_OPTIONS(OPTIONS)
9721
# ----------------------------------
9722
# OPTIONS is a space-separated list of Automake options.
9723
AC_DEFUN([_AM_SET_OPTIONS],
9724
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9726
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9727
# -------------------------------------------
9728
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9729
AC_DEFUN([_AM_IF_OPTION],
9730
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9732
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9734
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9735
# Free Software Foundation, Inc.
9737
# This file is free software; the Free Software Foundation
9738
# gives unlimited permission to copy and/or distribute it,
9739
# with or without modifications, as long as this notice is preserved.
9745
AC_DEFUN([AM_SANITY_CHECK],
9746
[AC_MSG_CHECKING([whether build environment is sane])
9749
echo timestamp > conftest.file
9750
# Do `set' in a subshell so we don't clobber the current shell's
9751
# arguments. Must try -L first in case configure is actually a
9752
# symlink; some systems play weird games with the mod time of symlinks
9753
# (eg FreeBSD returns the mod time of the symlink's containing
9756
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
9757
if test "$[*]" = "X"; then
9759
set X `ls -t $srcdir/configure conftest.file`
9762
if test "$[*]" != "X $srcdir/configure conftest.file" \
9763
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
9765
# If neither matched, then we have a broken ls. This can happen
9766
# if, for instance, CONFIG_SHELL is bash and it inherits a
9767
# broken ls alias from the environment. This has actually
9768
# happened. Such a system could not be considered "sane".
9769
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9770
alias in your environment])
9773
test "$[2]" = conftest.file
9779
AC_MSG_ERROR([newly created file is older than distributed files!
9780
Check your system clock])
9782
AC_MSG_RESULT(yes)])
9784
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9786
# This file is free software; the Free Software Foundation
9787
# gives unlimited permission to copy and/or distribute it,
9788
# with or without modifications, as long as this notice is preserved.
9790
# AM_PROG_INSTALL_STRIP
9791
# ---------------------
9792
# One issue with vendor `install' (even GNU) is that you can't
9793
# specify the program used to strip binaries. This is especially
9794
# annoying in cross-compiling environments, where the build's strip
9795
# is unlikely to handle the host's binaries.
9796
# Fortunately install-sh will honor a STRIPPROG variable, so we
9797
# always use install-sh in `make install-strip', and initialize
9798
# STRIPPROG with the value of the STRIP variable (set by the user).
9799
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9800
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9801
# Installed binaries are usually stripped using `strip' when the user
9802
# run `make install-strip'. However `strip' might not be the right
9803
# tool to use in cross-compilation environments, therefore Automake
9804
# will honor the `STRIP' environment variable to overrule this program.
9805
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9806
if test "$cross_compiling" != no; then
9807
AC_CHECK_TOOL([STRIP], [strip], :)
9809
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9810
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9812
# Copyright (C) 2006 Free Software Foundation, Inc.
9814
# This file is free software; the Free Software Foundation
9815
# gives unlimited permission to copy and/or distribute it,
9816
# with or without modifications, as long as this notice is preserved.
9818
# _AM_SUBST_NOTMAKE(VARIABLE)
9819
# ---------------------------
9820
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9821
# This macro is traced by Automake.
9822
AC_DEFUN([_AM_SUBST_NOTMAKE])
9824
# Check how to create a tarball. -*- Autoconf -*-
9826
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9828
# This file is free software; the Free Software Foundation
9829
# gives unlimited permission to copy and/or distribute it,
9830
# with or without modifications, as long as this notice is preserved.
9834
# _AM_PROG_TAR(FORMAT)
9835
# --------------------
9836
# Check how to create a tarball in format FORMAT.
9837
# FORMAT should be one of `v7', `ustar', or `pax'.
9839
# Substitute a variable $(am__tar) that is a command
9840
# writing to stdout a FORMAT-tarball containing the directory
9842
# tardir=directory && $(am__tar) > result.tar
9844
# Substitute a variable $(am__untar) that extract such
9845
# a tarball read from stdin.
9846
# $(am__untar) < result.tar
9847
AC_DEFUN([_AM_PROG_TAR],
9848
[# Always define AMTAR for backward compatibility.
9849
AM_MISSING_PROG([AMTAR], [tar])
9851
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9852
[m4_case([$1], [ustar],, [pax],,
9853
[m4_fatal([Unknown tar format])])
9854
AC_MSG_CHECKING([how to create a $1 tar archive])
9855
# Loop over all known methods to create a tar archive until one works.
9856
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9857
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9858
# Do not fold the above two line into one, because Tru64 sh and
9859
# Solaris sh will not grok spaces in the rhs of `-'.
9860
for _am_tool in $_am_tools
9864
for _am_tar in tar gnutar gtar;
9866
AM_RUN_LOG([$_am_tar --version]) && break
9868
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9869
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9870
am__untar="$_am_tar -xf -"
9873
# Must skip GNU tar: if it does not support --format= it doesn't create
9874
# ustar tarball either.
9875
(tar --version) >/dev/null 2>&1 && continue
9876
am__tar='tar chf - "$$tardir"'
9877
am__tar_='tar chf - "$tardir"'
9878
am__untar='tar xf -'
9881
am__tar='pax -L -x $1 -w "$$tardir"'
9882
am__tar_='pax -L -x $1 -w "$tardir"'
9886
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9887
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9888
am__untar='cpio -i -H $1 -d'
9897
# If the value was cached, stop now. We just wanted to have am__tar
9898
# and am__untar set.
9899
test -n "${am_cv_prog_tar_$1}" && break
9901
# tar/untar a dummy directory, and stop if the command works
9904
echo GrepMe > conftest.dir/file
9905
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9907
if test -s conftest.tar; then
9908
AM_RUN_LOG([$am__untar <conftest.tar])
9909
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9914
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9915
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9917
AC_SUBST([am__untar])