1
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
# Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
# Do all the work for Automake. -*- Autoconf -*-
16
# This macro actually does too much some checks are only needed if
17
# your package does certain things. But this isn't really a big deal.
19
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
20
# Free Software Foundation, Inc.
22
# This program is free software; you can redistribute it and/or modify
23
# it under the terms of the GNU General Public License as published by
24
# the Free Software Foundation; either version 2, or (at your option)
27
# This program is distributed in the hope that it will be useful,
28
# but WITHOUT ANY WARRANTY; without even the implied warranty of
29
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
# GNU General Public License for more details.
32
# You should have received a copy of the GNU General Public License
33
# along with this program; if not, write to the Free Software
34
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
42
# the ones we care about.
43
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
45
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
46
# AM_INIT_AUTOMAKE([OPTIONS])
47
# -----------------------------------------------
48
# The call with PACKAGE and VERSION arguments is the old style
49
# call (pre autoconf-2.50), which is being phased out. PACKAGE
50
# and VERSION should now be passed to AC_INIT and removed from
51
# the call to AM_INIT_AUTOMAKE.
52
# We support both call styles for the transition. After
53
# the next Automake release, Autoconf can make the AC_INIT
54
# arguments mandatory, and then we can depend on a new Autoconf
55
# release and drop the old call support.
56
AC_DEFUN([AM_INIT_AUTOMAKE],
57
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
58
AC_REQUIRE([AC_PROG_INSTALL])dnl
59
# test to see if srcdir already configured
60
if test "`cd $srcdir && pwd`" != "`pwd`" &&
61
test -f $srcdir/config.status; then
62
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
65
# test whether we have cygpath
66
if test -z "$CYGPATH_W"; then
67
if (cygpath --version) >/dev/null 2>/dev/null; then
68
CYGPATH_W='cygpath -w'
75
# Define the identity of the package.
76
dnl Distinguish between old-style and new-style calls.
78
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
79
AC_SUBST([PACKAGE], [$1])dnl
80
AC_SUBST([VERSION], [$2])],
81
[_AM_SET_OPTIONS([$1])dnl
82
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
83
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
85
_AM_IF_OPTION([no-define],,
86
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
87
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
89
# Some tools Automake needs.
90
AC_REQUIRE([AM_SANITY_CHECK])dnl
91
AC_REQUIRE([AC_ARG_PROGRAM])dnl
92
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
93
AM_MISSING_PROG(AUTOCONF, autoconf)
94
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
95
AM_MISSING_PROG(AUTOHEADER, autoheader)
96
AM_MISSING_PROG(MAKEINFO, makeinfo)
97
AM_MISSING_PROG(AMTAR, tar)
100
# We need awk for the "check" target. The system "awk" is bad on
102
AC_REQUIRE([AC_PROG_AWK])dnl
103
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
104
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
106
_AM_IF_OPTION([no-dependencies],,
107
[AC_PROVIDE_IFELSE([AC_PROG_CC],
108
[_AM_DEPENDENCIES(CC)],
109
[define([AC_PROG_CC],
110
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
111
AC_PROVIDE_IFELSE([AC_PROG_CXX],
112
[_AM_DEPENDENCIES(CXX)],
113
[define([AC_PROG_CXX],
114
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
119
# When config.status generates a header, we must update the stamp-h file.
120
# This file resides in the same directory as the config header
121
# that is generated. The stamp files are numbered to have different names.
123
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
124
# loop where config.status creates the headers, so we can generate
125
# our stamp files there.
126
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
127
[# Compute $1's index in $config_headers.
129
for _am_header in $config_headers :; do
134
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
137
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
139
# Copyright 2002 Free Software Foundation, Inc.
141
# This program is free software; you can redistribute it and/or modify
142
# it under the terms of the GNU General Public License as published by
143
# the Free Software Foundation; either version 2, or (at your option)
146
# This program is distributed in the hope that it will be useful,
147
# but WITHOUT ANY WARRANTY; without even the implied warranty of
148
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
149
# GNU General Public License for more details.
151
# You should have received a copy of the GNU General Public License
152
# along with this program; if not, write to the Free Software
153
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
155
# AM_AUTOMAKE_VERSION(VERSION)
156
# ----------------------------
157
# Automake X.Y traces this macro to ensure aclocal.m4 has been
158
# generated from the m4 files accompanying Automake X.Y.
159
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
161
# AM_SET_CURRENT_AUTOMAKE_VERSION
162
# -------------------------------
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
[AM_AUTOMAKE_VERSION([1.7.9])])
168
# Helper functions for option handling. -*- Autoconf -*-
170
# Copyright 2001, 2002 Free Software Foundation, Inc.
172
# This program is free software; you can redistribute it and/or modify
173
# it under the terms of the GNU General Public License as published by
174
# the Free Software Foundation; either version 2, or (at your option)
177
# This program is distributed in the hope that it will be useful,
178
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
180
# GNU General Public License for more details.
182
# You should have received a copy of the GNU General Public License
183
# along with this program; if not, write to the Free Software
184
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
189
# _AM_MANGLE_OPTION(NAME)
190
# -----------------------
191
AC_DEFUN([_AM_MANGLE_OPTION],
192
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
194
# _AM_SET_OPTION(NAME)
195
# ------------------------------
196
# Set option NAME. Presently that only means defining a flag for this option.
197
AC_DEFUN([_AM_SET_OPTION],
198
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
200
# _AM_SET_OPTIONS(OPTIONS)
201
# ----------------------------------
202
# OPTIONS is a space-separated list of Automake options.
203
AC_DEFUN([_AM_SET_OPTIONS],
204
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
206
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
207
# -------------------------------------------
208
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
209
AC_DEFUN([_AM_IF_OPTION],
210
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
213
# Check to make sure that the build environment is sane.
216
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
218
# This program is free software; you can redistribute it and/or modify
219
# it under the terms of the GNU General Public License as published by
220
# the Free Software Foundation; either version 2, or (at your option)
223
# This program is distributed in the hope that it will be useful,
224
# but WITHOUT ANY WARRANTY; without even the implied warranty of
225
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
226
# GNU General Public License for more details.
228
# You should have received a copy of the GNU General Public License
229
# along with this program; if not, write to the Free Software
230
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
237
AC_DEFUN([AM_SANITY_CHECK],
238
[AC_MSG_CHECKING([whether build environment is sane])
241
echo timestamp > conftest.file
242
# Do `set' in a subshell so we don't clobber the current shell's
243
# arguments. Must try -L first in case configure is actually a
244
# symlink; some systems play weird games with the mod time of symlinks
245
# (eg FreeBSD returns the mod time of the symlink's containing
248
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
249
if test "$[*]" = "X"; then
251
set X `ls -t $srcdir/configure conftest.file`
254
if test "$[*]" != "X $srcdir/configure conftest.file" \
255
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
257
# If neither matched, then we have a broken ls. This can happen
258
# if, for instance, CONFIG_SHELL is bash and it inherits a
259
# broken ls alias from the environment. This has actually
260
# happened. Such a system could not be considered "sane".
261
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
262
alias in your environment])
265
test "$[2]" = conftest.file
271
AC_MSG_ERROR([newly created file is older than distributed files!
272
Check your system clock])
279
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
281
# This program is free software; you can redistribute it and/or modify
282
# it under the terms of the GNU General Public License as published by
283
# the Free Software Foundation; either version 2, or (at your option)
286
# This program is distributed in the hope that it will be useful,
287
# but WITHOUT ANY WARRANTY; without even the implied warranty of
288
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
289
# GNU General Public License for more details.
291
# You should have received a copy of the GNU General Public License
292
# along with this program; if not, write to the Free Software
293
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
298
# AM_MISSING_PROG(NAME, PROGRAM)
299
# ------------------------------
300
AC_DEFUN([AM_MISSING_PROG],
301
[AC_REQUIRE([AM_MISSING_HAS_RUN])
302
$1=${$1-"${am_missing_run}$2"}
308
# Define MISSING if not defined so far and test if it supports --run.
309
# If it does, set am_missing_run to use it, otherwise, to nothing.
310
AC_DEFUN([AM_MISSING_HAS_RUN],
311
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
312
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
313
# Use eval to expand $SHELL
314
if eval "$MISSING --run true"; then
315
am_missing_run="$MISSING --run "
318
AC_MSG_WARN([`missing' script is too old or missing])
324
# Copyright 2001 Free Software Foundation, Inc.
326
# This program is free software; you can redistribute it and/or modify
327
# it under the terms of the GNU General Public License as published by
328
# the Free Software Foundation; either version 2, or (at your option)
331
# This program is distributed in the hope that it will be useful,
332
# but WITHOUT ANY WARRANTY; without even the implied warranty of
333
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
334
# GNU General Public License for more details.
336
# You should have received a copy of the GNU General Public License
337
# along with this program; if not, write to the Free Software
338
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
341
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
342
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
343
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
345
# Of course, Automake must honor this variable whenever it calls a
346
# tool from the auxiliary directory. The problem is that $srcdir (and
347
# therefore $ac_aux_dir as well) can be either absolute or relative,
348
# depending on how configure is run. This is pretty annoying, since
349
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
350
# source directory, any form will work fine, but in subdirectories a
351
# relative path needs to be adjusted first.
353
# $ac_aux_dir/missing
354
# fails when called from a subdirectory if $ac_aux_dir is relative
355
# $top_srcdir/$ac_aux_dir/missing
356
# fails if $ac_aux_dir is absolute,
357
# fails when called from a subdirectory in a VPATH build with
358
# a relative $ac_aux_dir
360
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
361
# are both prefixed by $srcdir. In an in-source build this is usually
362
# harmless because $srcdir is `.', but things will broke when you
363
# start a VPATH build or use an absolute $srcdir.
365
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
366
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
367
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
368
# and then we would define $MISSING as
369
# MISSING="\${SHELL} $am_aux_dir/missing"
370
# This will work as long as MISSING is not called from configure, because
371
# unfortunately $(top_srcdir) has no meaning in configure.
372
# However there are other variables, like CC, which are often used in
373
# configure, and could therefore not use this "fixed" $ac_aux_dir.
375
# Another solution, used here, is to always expand $ac_aux_dir to an
376
# absolute PATH. The drawback is that using absolute paths prevent a
377
# configured tree to be moved without reconfiguration.
379
# Rely on autoconf to set up CDPATH properly.
382
AC_DEFUN([AM_AUX_DIR_EXPAND], [
383
# expand $ac_aux_dir to an absolute path
384
am_aux_dir=`cd $ac_aux_dir && pwd`
389
# Define $install_sh.
391
# Copyright 2001 Free Software Foundation, Inc.
393
# This program is free software; you can redistribute it and/or modify
394
# it under the terms of the GNU General Public License as published by
395
# the Free Software Foundation; either version 2, or (at your option)
398
# This program is distributed in the hope that it will be useful,
399
# but WITHOUT ANY WARRANTY; without even the implied warranty of
400
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
401
# GNU General Public License for more details.
403
# You should have received a copy of the GNU General Public License
404
# along with this program; if not, write to the Free Software
405
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
408
AC_DEFUN([AM_PROG_INSTALL_SH],
409
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
410
install_sh=${install_sh-"$am_aux_dir/install-sh"}
411
AC_SUBST(install_sh)])
413
# AM_PROG_INSTALL_STRIP
415
# Copyright 2001 Free Software Foundation, Inc.
417
# This program is free software; you can redistribute it and/or modify
418
# it under the terms of the GNU General Public License as published by
419
# the Free Software Foundation; either version 2, or (at your option)
422
# This program is distributed in the hope that it will be useful,
423
# but WITHOUT ANY WARRANTY; without even the implied warranty of
424
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
425
# GNU General Public License for more details.
427
# You should have received a copy of the GNU General Public License
428
# along with this program; if not, write to the Free Software
429
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
432
# One issue with vendor `install' (even GNU) is that you can't
433
# specify the program used to strip binaries. This is especially
434
# annoying in cross-compiling environments, where the build's strip
435
# is unlikely to handle the host's binaries.
436
# Fortunately install-sh will honor a STRIPPROG variable, so we
437
# always use install-sh in `make install-strip', and initialize
438
# STRIPPROG with the value of the STRIP variable (set by the user).
439
AC_DEFUN([AM_PROG_INSTALL_STRIP],
440
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
441
# Installed binaries are usually stripped using `strip' when the user
442
# run `make install-strip'. However `strip' might not be the right
443
# tool to use in cross-compilation environments, therefore Automake
444
# will honor the `STRIP' environment variable to overrule this program.
445
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
446
if test "$cross_compiling" != no; then
447
AC_CHECK_TOOL([STRIP], [strip], :)
449
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
450
AC_SUBST([INSTALL_STRIP_PROGRAM])])
453
# Copyright (C) 2003 Free Software Foundation, Inc.
455
# This program is free software; you can redistribute it and/or modify
456
# it under the terms of the GNU General Public License as published by
457
# the Free Software Foundation; either version 2, or (at your option)
460
# This program is distributed in the hope that it will be useful,
461
# but WITHOUT ANY WARRANTY; without even the implied warranty of
462
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
463
# GNU General Public License for more details.
465
# You should have received a copy of the GNU General Public License
466
# along with this program; if not, write to the Free Software
467
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
472
# Check whether the underlying file-system supports filenames
473
# with a leading dot. For instance MS-DOS doesn't.
474
AC_DEFUN([AM_SET_LEADING_DOT],
475
[rm -rf .tst 2>/dev/null
476
mkdir .tst 2>/dev/null
477
if test -d .tst; then
482
rmdir .tst 2>/dev/null
483
AC_SUBST([am__leading_dot])])
485
# serial 5 -*- Autoconf -*-
487
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
489
# This program is free software; you can redistribute it and/or modify
490
# it under the terms of the GNU General Public License as published by
491
# the Free Software Foundation; either version 2, or (at your option)
494
# This program is distributed in the hope that it will be useful,
495
# but WITHOUT ANY WARRANTY; without even the implied warranty of
496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
497
# GNU General Public License for more details.
499
# You should have received a copy of the GNU General Public License
500
# along with this program; if not, write to the Free Software
501
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
505
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
506
# written in clear, in which case automake, when reading aclocal.m4,
507
# will think it sees a *use*, and therefore will trigger all it's
508
# C support machinery. Also note that it means that autoscan, seeing
509
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
513
# _AM_DEPENDENCIES(NAME)
514
# ----------------------
515
# See how the compiler implements dependency checking.
516
# NAME is "CC", "CXX", "GCJ", or "OBJC".
517
# We try a few techniques and use that to set a single cache variable.
519
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
520
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
521
# dependency, and given that the user is not expected to run this macro,
522
# just rely on AC_PROG_CC.
523
AC_DEFUN([_AM_DEPENDENCIES],
524
[AC_REQUIRE([AM_SET_DEPDIR])dnl
525
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
526
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
527
AC_REQUIRE([AM_DEP_TRACK])dnl
529
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
530
[$1], CXX, [depcc="$CXX" am_compiler_list=],
531
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
532
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
533
[depcc="$$1" am_compiler_list=])
535
AC_CACHE_CHECK([dependency style of $depcc],
536
[am_cv_$1_dependencies_compiler_type],
537
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
538
# We make a subdir and do the tests there. Otherwise we can end up
539
# making bogus files that we don't know about and never remove. For
540
# instance it was reported that on HP-UX the gcc test will end up
541
# making a dummy file named `D' -- because `-MD' means `put the output
544
# Copy depcomp to subdir because otherwise we won't find it if we're
545
# using a relative directory.
546
cp "$am_depcomp" conftest.dir
548
# We will build objects and dependencies in a subdirectory because
549
# it helps to detect inapplicable dependency modes. For instance
550
# both Tru64's cc and ICC support -MD to output dependencies as a
551
# side effect of compilation, but ICC will put the dependencies in
552
# the current directory while Tru64 will put them in the object
556
am_cv_$1_dependencies_compiler_type=none
557
if test "$am_compiler_list" = ""; then
558
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
560
for depmode in $am_compiler_list; do
561
# Setup a source with many dependencies, because some compilers
562
# like to wrap large dependency lists on column 80 (with \), and
563
# we should not choose a depcomp mode which is confused by this.
565
# We need to recreate these files for each test, as the compiler may
566
# overwrite some of them when testing with obscure command lines.
567
# This happens at least with the AIX C compiler.
569
for i in 1 2 3 4 5 6; do
570
echo '#include "conftst'$i'.h"' >> sub/conftest.c
573
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
577
# after this tag, mechanisms are not by side-effect, so they'll
578
# only be used when explicitly requested
579
if test "x$enable_dependency_tracking" = xyes; then
587
# We check with `-c' and `-o' for the sake of the "dashmstdout"
588
# mode. It turns out that the SunPro C++ compiler does not properly
589
# handle `-M -o', and we need to detect this.
590
if depmode=$depmode \
591
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
592
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
593
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
594
>/dev/null 2>conftest.err &&
595
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
596
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
597
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
598
# icc doesn't choke on unknown options, it will just issue warnings
599
# (even with -Werror). So we grep stderr for any message
600
# that says an option was ignored.
601
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
602
am_cv_$1_dependencies_compiler_type=$depmode
611
am_cv_$1_dependencies_compiler_type=none
614
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
615
AM_CONDITIONAL([am__fastdep$1], [
616
test "x$enable_dependency_tracking" != xno \
617
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
623
# Choose a directory name for dependency files.
624
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
625
AC_DEFUN([AM_SET_DEPDIR],
626
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
627
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
633
AC_DEFUN([AM_DEP_TRACK],
634
[AC_ARG_ENABLE(dependency-tracking,
635
[ --disable-dependency-tracking Speeds up one-time builds
636
--enable-dependency-tracking Do not reject slow dependency extractors])
637
if test "x$enable_dependency_tracking" != xno; then
638
am_depcomp="$ac_aux_dir/depcomp"
641
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
642
AC_SUBST([AMDEPBACKSLASH])
645
# Generate code to set up dependency tracking. -*- Autoconf -*-
647
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
649
# This program is free software; you can redistribute it and/or modify
650
# it under the terms of the GNU General Public License as published by
651
# the Free Software Foundation; either version 2, or (at your option)
654
# This program is distributed in the hope that it will be useful,
655
# but WITHOUT ANY WARRANTY; without even the implied warranty of
656
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
657
# GNU General Public License for more details.
659
# You should have received a copy of the GNU General Public License
660
# along with this program; if not, write to the Free Software
661
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
666
# _AM_OUTPUT_DEPENDENCY_COMMANDS
667
# ------------------------------
668
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
669
[for mf in $CONFIG_FILES; do
670
# Strip MF so we end up with the name of the file.
671
mf=`echo "$mf" | sed -e 's/:.*$//'`
672
# Check whether this is an Automake generated Makefile or not.
673
# We used to match only the files named `Makefile.in', but
674
# some people rename them; so instead we look at the file content.
675
# Grep'ing the first line is not enough: some people post-process
676
# each Makefile.in and add a new line on top of each file to say so.
677
# So let's grep whole file.
678
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
679
dirpart=`AS_DIRNAME("$mf")`
683
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
684
# Extract the definition of DEP_FILES from the Makefile without
686
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
687
test -z "$DEPDIR" && continue
688
# When using ansi2knr, U may be empty or an underscore; expand it
689
U=`sed -n -e '/^U = / s///p' < "$mf"`
690
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
691
# We invoke sed twice because it is the simplest approach to
692
# changing $(DEPDIR) to its actual value in the expansion.
693
for file in `sed -n -e '
694
/^DEP_FILES = .*\\\\$/ {
703
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
704
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
705
# Make sure the directory exists.
706
test -f "$dirpart/$file" && continue
707
fdir=`AS_DIRNAME(["$file"])`
708
AS_MKDIR_P([$dirpart/$fdir])
709
# echo "creating $dirpart/$file"
710
echo '# dummy' > "$dirpart/$file"
713
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
716
# AM_OUTPUT_DEPENDENCY_COMMANDS
717
# -----------------------------
718
# This macro should only be invoked once -- use via AC_REQUIRE.
720
# This code is only required when automatic dependency tracking
721
# is enabled. FIXME. This creates each `.P' file that we will
722
# need in order to bootstrap the dependency handling code.
723
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
724
[AC_CONFIG_COMMANDS([depfiles],
725
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
726
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
729
# Check to see how 'make' treats includes. -*- Autoconf -*-
731
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
733
# This program is free software; you can redistribute it and/or modify
734
# it under the terms of the GNU General Public License as published by
735
# the Free Software Foundation; either version 2, or (at your option)
738
# This program is distributed in the hope that it will be useful,
739
# but WITHOUT ANY WARRANTY; without even the implied warranty of
740
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
741
# GNU General Public License for more details.
743
# You should have received a copy of the GNU General Public License
744
# along with this program; if not, write to the Free Software
745
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
752
# Check to see how make treats includes.
753
AC_DEFUN([AM_MAKE_INCLUDE],
754
[am_make=${MAKE-make}
755
cat > confinc << 'END'
760
# If we don't find an include directive, just comment out the code.
761
AC_MSG_CHECKING([for style of include used by $am_make])
765
# First try GNU make style include.
766
echo "include confinc" > confmf
767
# We grep out `Entering directory' and `Leaving directory'
768
# messages which can occur if `w' ends up in MAKEFLAGS.
769
# In particular we don't look at `^make:' because GNU make might
770
# be invoked under some other name (usually "gmake"), in which
771
# case it prints its new name instead of `make'.
772
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
777
# Now try BSD make style include.
778
if test "$am__include" = "#"; then
779
echo '.include "confinc"' > confmf
780
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
786
AC_SUBST([am__include])
787
AC_SUBST([am__quote])
788
AC_MSG_RESULT([$_am_result])
792
# AM_CONDITIONAL -*- Autoconf -*-
794
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
796
# This program is free software; you can redistribute it and/or modify
797
# it under the terms of the GNU General Public License as published by
798
# the Free Software Foundation; either version 2, or (at your option)
801
# This program is distributed in the hope that it will be useful,
802
# but WITHOUT ANY WARRANTY; without even the implied warranty of
803
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
804
# GNU General Public License for more details.
806
# You should have received a copy of the GNU General Public License
807
# along with this program; if not, write to the Free Software
808
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
815
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
816
# -------------------------------------
817
# Define a conditional.
818
AC_DEFUN([AM_CONDITIONAL],
819
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
820
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
830
AC_CONFIG_COMMANDS_PRE(
831
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
832
AC_MSG_ERROR([conditional "$1" was never defined.
833
Usually this means the macro was only invoked conditionally.])
836
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
838
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
840
# This program is free software; you can redistribute it and/or modify
841
# it under the terms of the GNU General Public License as published by
842
# the Free Software Foundation; either version 2, or (at your option)
845
# This program is distributed in the hope that it will be useful,
846
# but WITHOUT ANY WARRANTY; without even the implied warranty of
847
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
848
# GNU General Public License for more details.
850
# You should have received a copy of the GNU General Public License
851
# along with this program; if not, write to the Free Software
852
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
859
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
860
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
862
# Add --enable-maintainer-mode option to configure.
865
# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
867
# This program is free software; you can redistribute it and/or modify
868
# it under the terms of the GNU General Public License as published by
869
# the Free Software Foundation; either version 2, or (at your option)
872
# This program is distributed in the hope that it will be useful,
873
# but WITHOUT ANY WARRANTY; without even the implied warranty of
874
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
875
# GNU General Public License for more details.
877
# You should have received a copy of the GNU General Public License
878
# along with this program; if not, write to the Free Software
879
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
884
AC_DEFUN([AM_MAINTAINER_MODE],
885
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
886
dnl maintainer-mode is disabled by default
887
AC_ARG_ENABLE(maintainer-mode,
888
[ --enable-maintainer-mode enable make rules and dependencies not useful
889
(and sometimes confusing) to the casual installer],
890
USE_MAINTAINER_MODE=$enableval,
891
USE_MAINTAINER_MODE=no)
892
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
893
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
894
MAINT=$MAINTAINER_MODE_TRUE
899
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
901
# isc-posix.m4 serial 2 (gettext-0.11.2)
902
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
903
dnl This file is free software, distributed under the terms of the GNU
904
dnl General Public License. As a special exception to the GNU General
905
dnl Public License, this file may be distributed as part of a program
906
dnl that contains a configuration script generated by Autoconf, under
907
dnl the same distribution terms as the rest of that program.
909
# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
911
# This test replaces the one in autoconf.
912
# Currently this macro should have the same name as the autoconf macro
913
# because gettext's gettext.m4 (distributed in the automake package)
914
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
915
# give these diagnostics:
916
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
917
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
919
undefine([AC_ISC_POSIX])
921
AC_DEFUN([AC_ISC_POSIX],
923
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
924
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
928
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
930
# serial 47 AC_PROG_LIBTOOL
933
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
934
# -----------------------------------------------------------
935
# If this macro is not defined by Autoconf, define it here.
936
m4_ifdef([AC_PROVIDE_IFELSE],
938
[m4_define([AC_PROVIDE_IFELSE],
939
[m4_ifdef([AC_PROVIDE_$1],
945
AC_DEFUN([AC_PROG_LIBTOOL],
946
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
947
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
948
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
949
AC_PROVIDE_IFELSE([AC_PROG_CXX],
951
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
953
dnl And a similar setup for Fortran 77 support
954
AC_PROVIDE_IFELSE([AC_PROG_F77],
956
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
959
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
960
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
961
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
962
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
964
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
966
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
968
[ifdef([AC_PROG_GCJ],
969
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
970
ifdef([A][M_PROG_GCJ],
971
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
972
ifdef([LT_AC_PROG_GCJ],
973
[define([LT_AC_PROG_GCJ],
974
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
975
])])# AC_PROG_LIBTOOL
980
AC_DEFUN([_AC_PROG_LIBTOOL],
981
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
982
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
983
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
984
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
986
# This can be used to rebuild libtool when needed
987
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
989
# Always use our own libtool.
990
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
993
# Prevent multiple expansion
994
define([AC_PROG_LIBTOOL], [])
1000
AC_DEFUN([AC_LIBTOOL_SETUP],
1002
AC_REQUIRE([AC_ENABLE_SHARED])dnl
1003
AC_REQUIRE([AC_ENABLE_STATIC])dnl
1004
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1005
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1006
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1007
AC_REQUIRE([AC_PROG_CC])dnl
1008
AC_REQUIRE([AC_PROG_LD])dnl
1009
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1010
AC_REQUIRE([AC_PROG_NM])dnl
1012
AC_REQUIRE([AC_PROG_LN_S])dnl
1013
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1014
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1015
AC_REQUIRE([AC_OBJEXT])dnl
1016
AC_REQUIRE([AC_EXEEXT])dnl
1019
AC_LIBTOOL_SYS_MAX_CMD_LEN
1020
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1023
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1024
_LT_AC_PROG_ECHO_BACKSLASH
1028
# AIX sometimes has problems with the GCC collect2 program. For some
1029
# reason, if we set the COLLECT_NAMES environment variable, the problems
1030
# vanish in a puff of smoke.
1031
if test "X${COLLECT_NAMES+set}" != Xset; then
1033
export COLLECT_NAMES
1038
# Sed substitution that helps us do robust quoting. It backslashifies
1039
# metacharacters that are still active within double-quoted strings.
1040
Xsed='sed -e s/^X//'
1041
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1043
# Same as above, but do not quote variable references.
1044
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1046
# Sed substitution to delay expansion of an escaped shell variable in a
1047
# double_quote_subst'ed string.
1048
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1050
# Sed substitution to avoid accidental globbing in evaled expressions
1051
no_glob_subst='s/\*/\\\*/g'
1057
default_ofile=libtool
1058
can_build_shared=yes
1060
# All known linkers require a `.a' archive for static linking (except M$VC,
1061
# which needs '.lib').
1063
ltmain="$ac_aux_dir/ltmain.sh"
1064
ofile="$default_ofile"
1065
with_gnu_ld="$lt_cv_prog_gnu_ld"
1067
AC_CHECK_TOOL(AR, ar, false)
1068
AC_CHECK_TOOL(RANLIB, ranlib, :)
1069
AC_CHECK_TOOL(STRIP, strip, :)
1072
old_CFLAGS="$CFLAGS"
1074
# Set sane defaults for various variables
1075
test -z "$AR" && AR=ar
1076
test -z "$AR_FLAGS" && AR_FLAGS=cru
1077
test -z "$AS" && AS=as
1078
test -z "$CC" && CC=cc
1079
test -z "$LTCC" && LTCC=$CC
1080
test -z "$DLLTOOL" && DLLTOOL=dlltool
1081
test -z "$LD" && LD=ld
1082
test -z "$LN_S" && LN_S="ln -s"
1083
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1084
test -z "$NM" && NM=nm
1085
test -z "$SED" && SED=sed
1086
test -z "$OBJDUMP" && OBJDUMP=objdump
1087
test -z "$RANLIB" && RANLIB=:
1088
test -z "$STRIP" && STRIP=:
1089
test -z "$ac_objext" && ac_objext=o
1091
# Determine commands to create old-style static archives.
1092
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1093
old_postinstall_cmds='chmod 644 $oldlib'
1094
old_postuninstall_cmds=
1096
if test -n "$RANLIB"; then
1099
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1102
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1105
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1108
# Only perform the check for file, if the check method requires it
1109
case $deplibs_check_method in
1111
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1117
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1118
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1119
enable_win32_dll=yes, enable_win32_dll=no)
1121
AC_ARG_ENABLE([libtool-lock],
1122
[AC_HELP_STRING([--disable-libtool-lock],
1123
[avoid locking (might break parallel builds)])])
1124
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1127
[AC_HELP_STRING([--with-pic],
1128
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1129
[pic_mode="$withval"],
1131
test -z "$pic_mode" && pic_mode=default
1133
# Use C for the default configuration in the libtool script
1135
AC_LIBTOOL_LANG_C_CONFIG
1137
])# AC_LIBTOOL_SETUP
1140
# _LT_AC_SYS_COMPILER
1141
# -------------------
1142
AC_DEFUN([_LT_AC_SYS_COMPILER],
1143
[AC_REQUIRE([AC_PROG_CC])dnl
1145
# If no C compiler was specified, use CC.
1148
# Allow CC to be a program name with arguments.
1150
])# _LT_AC_SYS_COMPILER
1153
# _LT_AC_SYS_LIBPATH_AIX
1154
# ----------------------
1155
# Links a minimal program and checks the executable
1156
# for the system default hardcoded library path. In most cases,
1157
# this is /usr/lib:/lib, but when the MPI compilers are used
1158
# the location of the communication and MPI libs are included too.
1159
# If we don't find anything, use the default library path according
1160
# to the aix ld manual.
1161
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1162
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1163
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1165
# Check for a 64-bit object if we didn't find anything.
1166
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1168
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1169
])# _LT_AC_SYS_LIBPATH_AIX
1172
# _LT_AC_SHELL_INIT(ARG)
1173
# ----------------------
1174
AC_DEFUN([_LT_AC_SHELL_INIT],
1175
[ifdef([AC_DIVERSION_NOTICE],
1176
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1177
[AC_DIVERT_PUSH(NOTICE)])
1180
])# _LT_AC_SHELL_INIT
1183
# _LT_AC_PROG_ECHO_BACKSLASH
1184
# --------------------------
1185
# Add some code to the start of the generated configure script which
1186
# will find an echo command which doesn't interpret backslashes.
1187
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1188
[_LT_AC_SHELL_INIT([
1189
# Check that we are running under the correct shell.
1190
SHELL=${CONFIG_SHELL-/bin/sh}
1194
# Remove one level of quotation (which was required for Make).
1195
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1200
if test "X[$]1" = X--no-reexec; then
1201
# Discard the --no-reexec flag, and continue.
1203
elif test "X[$]1" = X--fallback-echo; then
1204
# Avoid inline document here, it may be left over
1206
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1207
# Yippee, $echo works!
1210
# Restart under the correct shell.
1211
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1214
if test "X[$]1" = X--fallback-echo; then
1215
# used as fallback echo
1223
# The HP-UX ksh and POSIX shell print the target directory to stdout
1225
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
1227
if test -z "$ECHO"; then
1228
if test "X${echo_test_string+set}" != Xset; then
1229
# find a string as large as possible, as long as the shell can cope with it
1230
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1231
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1232
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
1233
echo_test_string="`eval $cmd`" &&
1234
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1241
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1242
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1243
test "X$echo_testing_string" = "X$echo_test_string"; then
1246
# The Solaris, AIX, and Digital Unix default echo programs unquote
1247
# backslashes. This makes it impossible to quote backslashes using
1248
# echo "$something" | sed 's/\\/\\\\/g'
1250
# So, first we look for a working echo in the user's PATH.
1252
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1253
for dir in $PATH /usr/ucb; do
1255
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1256
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1257
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1258
test "X$echo_testing_string" = "X$echo_test_string"; then
1265
if test "X$echo" = Xecho; then
1266
# We didn't find a better echo, so look for alternatives.
1267
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1268
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1269
test "X$echo_testing_string" = "X$echo_test_string"; then
1270
# This shell has a builtin print -r that does the trick.
1272
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1273
test "X$CONFIG_SHELL" != X/bin/ksh; then
1274
# If we have ksh, try running configure again with it.
1275
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1276
export ORIGINAL_CONFIG_SHELL
1277
CONFIG_SHELL=/bin/ksh
1279
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1283
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1284
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1285
test "X$echo_testing_string" = "X$echo_test_string"; then
1286
# Cool, printf works
1288
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1289
test "X$echo_testing_string" = 'X\t' &&
1290
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1291
test "X$echo_testing_string" = "X$echo_test_string"; then
1292
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1294
SHELL="$CONFIG_SHELL"
1296
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1297
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1298
test "X$echo_testing_string" = 'X\t' &&
1299
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1300
test "X$echo_testing_string" = "X$echo_test_string"; then
1301
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1303
# maybe with a smaller string...
1306
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1307
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1314
if test "$prev" != 'sed 50q "[$]0"'; then
1315
echo_test_string=`eval $prev`
1316
export echo_test_string
1317
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1319
# Oops. We lost completely, so just stick with echo.
1328
# Copy echo and quote the copy suitably for passing to libtool from
1329
# the Makefile, instead of quoting the original, which is used later.
1331
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1332
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1336
])])# _LT_AC_PROG_ECHO_BACKSLASH
1341
AC_DEFUN([_LT_AC_LOCK],
1342
[AC_ARG_ENABLE([libtool-lock],
1343
[AC_HELP_STRING([--disable-libtool-lock],
1344
[avoid locking (might break parallel builds)])])
1345
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1347
# Some flags need to be propagated to the compiler or linker for good
1351
# Find out which ABI we are using.
1352
echo 'int i;' > conftest.$ac_ext
1353
if AC_TRY_EVAL(ac_compile); then
1354
case `/usr/bin/file conftest.$ac_objext` in
1366
# Find out which ABI we are using.
1367
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1368
if AC_TRY_EVAL(ac_compile); then
1369
if test "$lt_cv_prog_gnu_ld" = yes; then
1370
case `/usr/bin/file conftest.$ac_objext` in
1372
LD="${LD-ld} -melf32bsmip"
1375
LD="${LD-ld} -melf32bmipn32"
1378
LD="${LD-ld} -melf64bmip"
1382
case `/usr/bin/file conftest.$ac_objext` in
1398
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1399
# Find out which ABI we are using.
1400
echo 'int i;' > conftest.$ac_ext
1401
if AC_TRY_EVAL(ac_compile); then
1402
case "`/usr/bin/file conftest.o`" in
1406
LD="${LD-ld} -m elf_i386"
1408
ppc64-*linux*|powerpc64-*linux*)
1409
LD="${LD-ld} -m elf32ppclinux"
1412
LD="${LD-ld} -m elf_s390"
1415
LD="${LD-ld} -m elf32_sparc"
1422
LD="${LD-ld} -m elf_x86_64"
1424
ppc*-*linux*|powerpc*-*linux*)
1425
LD="${LD-ld} -m elf64ppc"
1428
LD="${LD-ld} -m elf64_s390"
1431
LD="${LD-ld} -m elf64_sparc"
1441
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1442
SAVE_CFLAGS="$CFLAGS"
1443
CFLAGS="$CFLAGS -belf"
1444
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1446
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1448
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1449
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1450
CFLAGS="$SAVE_CFLAGS"
1453
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1454
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1455
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1456
AC_CHECK_TOOL(AS, as, false)
1457
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1462
need_locks="$enable_libtool_lock"
1467
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1468
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1469
# ----------------------------------------------------------------
1470
# Check whether the given compiler option works
1471
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1472
[AC_REQUIRE([LT_AC_PROG_SED])
1473
AC_CACHE_CHECK([$1], [$2],
1475
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1476
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1477
lt_compiler_flag="$3"
1478
# Insert the option either (1) after the last *FLAGS variable, or
1479
# (2) before a word containing "conftest.", or (3) at the end.
1480
# Note that $ac_compile itself does not contain backslashes and begins
1481
# with a dollar sign (not a hyphen), so the echo should work correctly.
1482
# The option is referenced via a variable to avoid confusing sed.
1483
lt_compile=`echo "$ac_compile" | $SED \
1484
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1485
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1486
-e 's:$: $lt_compiler_flag:'`
1487
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1488
(eval "$lt_compile" 2>conftest.err)
1490
cat conftest.err >&AS_MESSAGE_LOG_FD
1491
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1492
if (exit $ac_status) && test -s "$ac_outfile"; then
1493
# The compiler can only warn and ignore the option if not recognized
1494
# So say no if there are warnings
1495
if test ! -s conftest.err; then
1502
if test x"[$]$2" = xyes; then
1503
ifelse([$5], , :, [$5])
1505
ifelse([$6], , :, [$6])
1507
])# AC_LIBTOOL_COMPILER_OPTION
1510
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1511
# [ACTION-SUCCESS], [ACTION-FAILURE])
1512
# ------------------------------------------------------------
1513
# Check whether the given compiler option works
1514
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1515
[AC_CACHE_CHECK([$1], [$2],
1517
save_LDFLAGS="$LDFLAGS"
1518
LDFLAGS="$LDFLAGS $3"
1519
printf "$lt_simple_link_test_code" > conftest.$ac_ext
1520
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1521
# The compiler can only warn and ignore the option if not recognized
1522
# So say no if there are warnings
1523
if test -s conftest.err; then
1524
# Append any errors to the config.log.
1525
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1531
LDFLAGS="$save_LDFLAGS"
1534
if test x"[$]$2" = xyes; then
1535
ifelse([$4], , :, [$4])
1537
ifelse([$5], , :, [$5])
1539
])# AC_LIBTOOL_LINKER_OPTION
1542
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1543
# --------------------------
1544
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1545
[# find the maximum length of command line arguments
1546
AC_MSG_CHECKING([the maximum length of command line arguments])
1547
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1553
# On DJGPP, this test can blow up pretty badly due to problems in libc
1554
# (any single argument exceeding 2000 bytes causes a buffer overrun
1555
# during glob expansion). Even if it were fixed, the result of this
1556
# check would be larger than it should be.
1557
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1561
# Under GNU Hurd, this test is not required because there is
1562
# no limit to the length of command line arguments.
1563
# Libtool will interpret -1 as no limit whatsoever
1564
lt_cv_sys_max_cmd_len=-1;
1568
# On Win9x/ME, this test blows up -- it succeeds, but takes
1569
# about 5 minutes as the teststring grows exponentially.
1570
# Worse, since 9x/ME are not pre-emptively multitasking,
1571
# you end up with a "frozen" computer, even though with patience
1572
# the test eventually succeeds (with a max line length of 256k).
1573
# Instead, let's just punt: use the minimum linelength reported by
1574
# all of the supported platforms: 8192 (on NT/2K/XP).
1575
lt_cv_sys_max_cmd_len=8192;
1579
# On AmigaOS with pdksh, this test takes hours, literally.
1580
# So we just punt and use a minimum line length of 8192.
1581
lt_cv_sys_max_cmd_len=8192;
1585
# If test is not a shell built-in, we'll probably end up computing a
1586
# maximum length that is only half of the actual maximum length, but
1588
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1589
= "XX$testring") >/dev/null 2>&1 &&
1590
new_result=`expr "X$testring" : ".*" 2>&1` &&
1591
lt_cv_sys_max_cmd_len=$new_result &&
1592
test $i != 17 # 1/2 MB should be enough
1595
testring=$testring$testring
1598
# Add a significant safety factor because C++ compilers can tack on massive
1599
# amounts of additional arguments before passing them to the linker.
1600
# It appears as though 1/2 is a usable value.
1601
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1605
if test -n $lt_cv_sys_max_cmd_len ; then
1606
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1610
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1613
# _LT_AC_CHECK_DLFCN
1614
# --------------------
1615
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1616
[AC_CHECK_HEADERS(dlfcn.h)dnl
1617
])# _LT_AC_CHECK_DLFCN
1620
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1621
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1622
# ------------------------------------------------------------------
1623
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1624
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1625
if test "$cross_compiling" = yes; then :
1628
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1629
lt_status=$lt_dlunknown
1630
cat > conftest.$ac_ext <<EOF
1631
[#line __oline__ "configure"
1632
#include "confdefs.h"
1641
# define LT_DLGLOBAL RTLD_GLOBAL
1644
# define LT_DLGLOBAL DL_GLOBAL
1646
# define LT_DLGLOBAL 0
1650
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1651
find out it does not work in some platform. */
1652
#ifndef LT_DLLAZY_OR_NOW
1654
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1657
# define LT_DLLAZY_OR_NOW DL_LAZY
1660
# define LT_DLLAZY_OR_NOW RTLD_NOW
1663
# define LT_DLLAZY_OR_NOW DL_NOW
1665
# define LT_DLLAZY_OR_NOW 0
1673
extern "C" void exit (int);
1676
void fnord() { int i=42;}
1679
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1680
int status = $lt_dlunknown;
1684
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1685
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1686
/* dlclose (self); */
1692
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1693
(./conftest; exit; ) 2>/dev/null
1696
x$lt_dlno_uscore) $1 ;;
1697
x$lt_dlneed_uscore) $2 ;;
1698
x$lt_unknown|x*) $3 ;;
1701
# compilation failed
1706
])# _LT_AC_TRY_DLOPEN_SELF
1709
# AC_LIBTOOL_DLOPEN_SELF
1710
# -------------------
1711
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1712
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1713
if test "x$enable_dlopen" != xyes; then
1714
enable_dlopen=unknown
1715
enable_dlopen_self=unknown
1716
enable_dlopen_self_static=unknown
1723
lt_cv_dlopen="load_add_on"
1725
lt_cv_dlopen_self=yes
1729
lt_cv_dlopen="LoadLibrary"
1734
lt_cv_dlopen="dlopen"
1739
# if libdl is installed we need to link against it
1740
AC_CHECK_LIB([dl], [dlopen],
1741
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1744
lt_cv_dlopen_self=yes
1749
AC_CHECK_FUNC([shl_load],
1750
[lt_cv_dlopen="shl_load"],
1751
[AC_CHECK_LIB([dld], [shl_load],
1752
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1753
[AC_CHECK_FUNC([dlopen],
1754
[lt_cv_dlopen="dlopen"],
1755
[AC_CHECK_LIB([dl], [dlopen],
1756
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1757
[AC_CHECK_LIB([svld], [dlopen],
1758
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1759
[AC_CHECK_LIB([dld], [dld_link],
1760
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1769
if test "x$lt_cv_dlopen" != xno; then
1775
case $lt_cv_dlopen in
1777
save_CPPFLAGS="$CPPFLAGS"
1778
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1780
save_LDFLAGS="$LDFLAGS"
1781
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1784
LIBS="$lt_cv_dlopen_libs $LIBS"
1786
AC_CACHE_CHECK([whether a program can dlopen itself],
1787
lt_cv_dlopen_self, [dnl
1788
_LT_AC_TRY_DLOPEN_SELF(
1789
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1790
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1793
if test "x$lt_cv_dlopen_self" = xyes; then
1794
LDFLAGS="$LDFLAGS $link_static_flag"
1795
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1796
lt_cv_dlopen_self_static, [dnl
1797
_LT_AC_TRY_DLOPEN_SELF(
1798
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1799
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1803
CPPFLAGS="$save_CPPFLAGS"
1804
LDFLAGS="$save_LDFLAGS"
1809
case $lt_cv_dlopen_self in
1810
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1811
*) enable_dlopen_self=unknown ;;
1814
case $lt_cv_dlopen_self_static in
1815
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1816
*) enable_dlopen_self_static=unknown ;;
1819
])# AC_LIBTOOL_DLOPEN_SELF
1822
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1823
# ---------------------------------
1824
# Check to see if options -c and -o are simultaneously supported by compiler
1825
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1826
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1827
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1828
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1829
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1830
$rm -r conftest 2>/dev/null
1834
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1836
lt_compiler_flag="-o out/conftest2.$ac_objext"
1837
# Insert the option either (1) after the last *FLAGS variable, or
1838
# (2) before a word containing "conftest.", or (3) at the end.
1839
# Note that $ac_compile itself does not contain backslashes and begins
1840
# with a dollar sign (not a hyphen), so the echo should work correctly.
1841
lt_compile=`echo "$ac_compile" | $SED \
1842
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
1843
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1844
-e 's:$: $lt_compiler_flag:'`
1845
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1846
(eval "$lt_compile" 2>out/conftest.err)
1848
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1849
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1850
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1852
# The compiler can only warn and ignore the option if not recognized
1853
# So say no if there are warnings
1854
if test ! -s out/conftest.err; then
1855
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1860
# SGI C++ compiler will create directory out/ii_files/ for
1861
# template instantiation
1862
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1863
$rm out/* && rmdir out
1868
])# AC_LIBTOOL_PROG_CC_C_O
1871
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1872
# -----------------------------------------
1873
# Check to see if we can do hard links to lock some files if needed
1874
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1875
[AC_REQUIRE([_LT_AC_LOCK])dnl
1877
hard_links="nottested"
1878
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1879
# do not overwrite the value of need_locks provided by the user
1880
AC_MSG_CHECKING([if we can lock with hard links])
1883
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1885
ln conftest.a conftest.b 2>&5 || hard_links=no
1886
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1887
AC_MSG_RESULT([$hard_links])
1888
if test "$hard_links" = no; then
1889
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1895
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1900
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1901
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1902
[rm -f .libs 2>/dev/null
1903
mkdir .libs 2>/dev/null
1904
if test -d .libs; then
1907
# MS-DOS does not allow filenames that begin with a dot.
1910
rmdir .libs 2>/dev/null])
1911
objdir=$lt_cv_objdir
1912
])# AC_LIBTOOL_OBJDIR
1915
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1916
# ----------------------------------------------
1917
# Check hardcoding attributes.
1918
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1919
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1920
_LT_AC_TAGVAR(hardcode_action, $1)=
1921
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1922
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
1923
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
1925
# We can hardcode non-existant directories.
1926
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1927
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1928
# have to relink, otherwise we might link with an installed library
1929
# when we should be linking with a yet-to-be-installed one
1930
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1931
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1932
# Linking always hardcodes the temporary library directory.
1933
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1935
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1936
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1939
# We cannot hardcode anything, or else we can only hardcode existing
1941
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1943
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1945
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1946
# Fast installation is not supported
1947
enable_fast_install=no
1948
elif test "$shlibpath_overrides_runpath" = yes ||
1949
test "$enable_shared" = no; then
1950
# Fast installation is not necessary
1951
enable_fast_install=needless
1953
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1956
# AC_LIBTOOL_SYS_LIB_STRIP
1957
# ------------------------
1958
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1961
AC_MSG_CHECKING([whether stripping libraries is possible])
1962
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1963
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1964
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1965
AC_MSG_RESULT([yes])
1967
# FIXME - insert some real tests, host_os isn't really good enough
1970
if test -n "$STRIP" ; then
1971
striplib="$STRIP -x"
1972
AC_MSG_RESULT([yes])
1982
])# AC_LIBTOOL_SYS_LIB_STRIP
1985
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1986
# -----------------------------
1987
# PORTME Fill in your ld.so characteristics
1988
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1989
[AC_MSG_CHECKING([dynamic linker characteristics])
1991
libname_spec='lib$name'
1999
shlibpath_overrides_runpath=unknown
2001
dynamic_linker="$host_os ld.so"
2002
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2003
if test "$GCC" = yes; then
2004
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2005
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2006
# if the path contains ";" then we assume it to be the separator
2007
# otherwise default to the standard path separator (i.e. ":") - it is
2008
# assumed that no part of a normal pathname contains ";" but that should
2009
# okay in the real world where ";" in dirpaths is itself problematic.
2010
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2012
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2015
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2017
need_lib_prefix=unknown
2018
hardcode_into_libs=no
2020
# when you set need_version to no, make sure it does not cause -set_version
2021
# flags to be left without arguments
2022
need_version=unknown
2027
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2028
shlibpath_var=LIBPATH
2030
# AIX 3 has no versioning support, so we append a major version to the name.
2031
soname_spec='${libname}${release}${shared_ext}$major'
2038
hardcode_into_libs=yes
2039
if test "$host_cpu" = ia64; then
2040
# AIX 5 supports IA64
2041
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2042
shlibpath_var=LD_LIBRARY_PATH
2044
# With GCC up to 2.95.x, collect2 would create an import file
2045
# for dependence libraries. The import file would start with
2046
# the line `#! .'. This would cause the generated library to
2047
# depend on `.', always an invalid library. This was fixed in
2048
# development snapshots of GCC prior to 3.0.
2050
aix4 | aix4.[[01]] | aix4.[[01]].*)
2051
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2053
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2060
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2061
# soname into executable. Probably we can add versioning support to
2062
# collect2, so additional links can be useful in future.
2063
if test "$aix_use_runtimelinking" = yes; then
2064
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2065
# instead of lib<name>.a to let people know that these are not
2066
# typical AIX shared libraries.
2067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2069
# We preserve .a as extension for shared libraries through AIX4.2
2070
# and later when we are not doing run time linking.
2071
library_names_spec='${libname}${release}.a $libname.a'
2072
soname_spec='${libname}${release}${shared_ext}$major'
2074
shlibpath_var=LIBPATH
2079
library_names_spec='$libname.ixlibrary $libname.a'
2080
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2081
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2085
library_names_spec='${libname}${shared_ext}'
2086
dynamic_linker="$host_os ld.so"
2087
shlibpath_var=LIBRARY_PATH
2093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2094
soname_spec='${libname}${release}${shared_ext}$major'
2095
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2096
shlibpath_var=LD_LIBRARY_PATH
2097
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2098
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2099
# the default ld.so.conf also contains /usr/contrib/lib and
2100
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2101
# libtool to hard-code these into programs
2104
cygwin* | mingw* | pw32*)
2105
version_type=windows
2110
case $GCC,$host_os in
2111
yes,cygwin* | yes,mingw* | yes,pw32*)
2112
library_names_spec='$libname.dll.a'
2113
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2114
postinstall_cmds='base_file=`basename \${file}`~
2115
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2116
dldir=$destdir/`dirname \$dlpath`~
2117
test -d \$dldir || mkdir -p \$dldir~
2118
$install_prog $dir/$dlname \$dldir/$dlname'
2119
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2120
dlpath=$dir/\$dldll~
2122
shlibpath_overrides_runpath=yes
2126
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2127
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2128
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2131
# MinGW DLLs use traditional 'lib' prefix
2132
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2133
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2134
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2135
# It is most probably a Windows format PATH printed by
2136
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2137
# path with ; separators, and with drive letters. We can handle the
2138
# drive letters (cygwin fileutils understands them), so leave them,
2139
# especially as we might pass files found there to a mingw objdump,
2140
# which wouldn't understand a cygwinified path. Ahh.
2141
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2143
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2147
# pw32 DLLs use 'pw' prefix rather than 'lib'
2148
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
2154
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2157
dynamic_linker='Win32 ld.exe'
2158
# FIXME: first we should search . and the directory the executable is in
2162
darwin* | rhapsody*)
2163
dynamic_linker="$host_os dyld"
2167
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2168
soname_spec='${libname}${release}${major}$shared_ext'
2169
shlibpath_overrides_runpath=yes
2170
shlibpath_var=DYLD_LIBRARY_PATH
2171
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
2172
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2173
if test "$GCC" = yes; then
2174
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2176
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2178
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2186
soname_spec='${libname}${release}${shared_ext}$major'
2187
shlibpath_var=LD_LIBRARY_PATH
2198
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2199
soname_spec='${libname}${release}${shared_ext}$major'
2200
shlibpath_var=LD_LIBRARY_PATH
2201
shlibpath_overrides_runpath=no
2202
hardcode_into_libs=yes
2203
dynamic_linker='GNU ld.so'
2207
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2208
version_type=freebsd-$objformat
2209
case $version_type in
2211
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2216
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2220
shlibpath_var=LD_LIBRARY_PATH
2223
shlibpath_overrides_runpath=yes
2225
freebsd3.[01]* | freebsdelf3.[01]*)
2226
shlibpath_overrides_runpath=yes
2227
hardcode_into_libs=yes
2230
shlibpath_overrides_runpath=no
2231
hardcode_into_libs=yes
2240
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2241
soname_spec='${libname}${release}${shared_ext}$major'
2242
shlibpath_var=LD_LIBRARY_PATH
2243
hardcode_into_libs=yes
2246
hpux9* | hpux10* | hpux11*)
2247
# Give a soname corresponding to the major version so that dld.sl refuses to
2248
# link against other versions.
2255
hardcode_into_libs=yes
2256
dynamic_linker="$host_os dld.so"
2257
shlibpath_var=LD_LIBRARY_PATH
2258
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2259
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2260
soname_spec='${libname}${release}${shared_ext}$major'
2261
if test "X$HPUX_IA64_MODE" = X32; then
2262
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2264
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2266
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2270
hardcode_into_libs=yes
2271
dynamic_linker="$host_os dld.sl"
2272
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2273
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2274
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2275
soname_spec='${libname}${release}${shared_ext}$major'
2276
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2277
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2281
dynamic_linker="$host_os dld.sl"
2282
shlibpath_var=SHLIB_PATH
2283
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2285
soname_spec='${libname}${release}${shared_ext}$major'
2288
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2289
postinstall_cmds='chmod 555 $lib'
2292
irix5* | irix6* | nonstopux*)
2294
nonstopux*) version_type=nonstopux ;;
2296
if test "$lt_cv_prog_gnu_ld" = yes; then
2304
soname_spec='${libname}${release}${shared_ext}$major'
2305
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2307
irix5* | nonstopux*)
2311
case $LD in # libtool.m4 will add one of these switches to LD
2312
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2313
libsuff= shlibsuff= libmagic=32-bit;;
2314
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2315
libsuff=32 shlibsuff=N32 libmagic=N32;;
2316
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2317
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2318
*) libsuff= shlibsuff= libmagic=never-match;;
2322
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2323
shlibpath_overrides_runpath=no
2324
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2325
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2326
hardcode_into_libs=yes
2329
# No shared lib support for Linux oldld, aout, or coff.
2330
linux*oldld* | linux*aout* | linux*coff*)
2334
# This must be Linux ELF.
2339
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2340
soname_spec='${libname}${release}${shared_ext}$major'
2341
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2342
shlibpath_var=LD_LIBRARY_PATH
2343
shlibpath_overrides_runpath=no
2344
# This implies no fast_install, which is unacceptable.
2345
# Some rework will be needed to allow for fast_install
2346
# before this can be enabled.
2347
hardcode_into_libs=yes
2349
# Append ld.so.conf contents to the search path
2350
if test -f /etc/ld.so.conf; then
2351
ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
2352
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
2355
# We used to test for /lib/ld.so.1 and disable shared libraries on
2356
# powerpc, because MkLinux only supported shared libraries with the
2357
# GNU dynamic linker. Since this was broken with cross compilers,
2358
# most powerpc-linux boxes support dynamic linking these days and
2359
# people can always --disable-shared, the test was removed, and we
2360
# assume the GNU/Linux dynamic linker is in use.
2361
dynamic_linker='GNU/Linux ld.so'
2368
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2369
soname_spec='${libname}${release}${shared_ext}$major'
2370
shlibpath_var=LD_LIBRARY_PATH
2371
shlibpath_overrides_runpath=no
2372
hardcode_into_libs=yes
2373
dynamic_linker='GNU ld.so'
2380
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2382
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2383
dynamic_linker='NetBSD (a.out) ld.so'
2385
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2386
soname_spec='${libname}${release}${shared_ext}$major'
2387
dynamic_linker='NetBSD ld.elf_so'
2389
shlibpath_var=LD_LIBRARY_PATH
2390
shlibpath_overrides_runpath=yes
2391
hardcode_into_libs=yes
2396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2397
shlibpath_var=LD_LIBRARY_PATH
2398
shlibpath_overrides_runpath=yes
2405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2406
soname_spec='${libname}${release}${shared_ext}$major'
2407
shlibpath_var=LD_LIBRARY_PATH
2408
shlibpath_overrides_runpath=yes
2415
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2416
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2417
shlibpath_var=LD_LIBRARY_PATH
2418
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2420
openbsd2.[[89]] | openbsd2.[[89]].*)
2421
shlibpath_overrides_runpath=no
2424
shlibpath_overrides_runpath=yes
2428
shlibpath_overrides_runpath=yes
2433
libname_spec='$name'
2436
library_names_spec='$libname${shared_ext} $libname.a'
2437
dynamic_linker='OS/2 ld.exe'
2438
shlibpath_var=LIBPATH
2441
osf3* | osf4* | osf5*)
2445
soname_spec='${libname}${release}${shared_ext}$major'
2446
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2447
shlibpath_var=LD_LIBRARY_PATH
2448
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2449
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2454
soname_spec='${libname}${release}${shared_ext}$major'
2455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2456
shlibpath_var=LD_LIBRARY_PATH
2463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2464
soname_spec='${libname}${release}${shared_ext}$major'
2465
shlibpath_var=LD_LIBRARY_PATH
2466
shlibpath_overrides_runpath=yes
2467
hardcode_into_libs=yes
2468
# ldd complains unless libraries are executable
2469
postinstall_cmds='chmod +x $lib'
2474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2475
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2476
shlibpath_var=LD_LIBRARY_PATH
2477
shlibpath_overrides_runpath=yes
2478
if test "$with_gnu_ld" = yes; then
2484
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2487
soname_spec='${libname}${release}${shared_ext}$major'
2488
shlibpath_var=LD_LIBRARY_PATH
2489
case $host_vendor in
2491
shlibpath_overrides_runpath=no
2493
export_dynamic_flag_spec='${wl}-Blargedynsym'
2494
runpath_var=LD_RUN_PATH
2502
shlibpath_overrides_runpath=no
2503
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2509
if test -d /usr/nec ;then
2511
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2512
soname_spec='$libname${shared_ext}.$major'
2513
shlibpath_var=LD_LIBRARY_PATH
2519
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2520
soname_spec='${libname}${release}${shared_ext}$major'
2521
shlibpath_var=LD_LIBRARY_PATH
2528
AC_MSG_RESULT([$dynamic_linker])
2529
test "$dynamic_linker" = no && can_build_shared=no
2530
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2535
AC_DEFUN([_LT_AC_TAGCONFIG],
2536
[AC_ARG_WITH([tags],
2537
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2538
[include additional configurations @<:@automatic@:>@])],
2539
[tagnames="$withval"])
2541
if test -f "$ltmain" && test -n "$tagnames"; then
2542
if test ! -f "${ofile}"; then
2543
AC_MSG_WARN([output file `$ofile' does not exist])
2546
if test -z "$LTCC"; then
2547
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2548
if test -z "$LTCC"; then
2549
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2551
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2555
# Extract list of available tagged configurations in $ofile.
2556
# Note that this assumes the entire list is on one line.
2557
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2559
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2560
for tagname in $tagnames; do
2562
# Check whether tagname contains only valid characters
2563
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2565
*) AC_MSG_ERROR([invalid tag name: $tagname])
2569
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2571
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2574
# Update the list of available tags.
2575
if test -n "$tagname"; then
2576
echo appending configuration tag \"$tagname\" to $ofile
2580
if test -n "$CXX" && test "X$CXX" != "Xno"; then
2581
AC_LIBTOOL_LANG_CXX_CONFIG
2588
if test -n "$F77" && test "X$F77" != "Xno"; then
2589
AC_LIBTOOL_LANG_F77_CONFIG
2596
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2597
AC_LIBTOOL_LANG_GCJ_CONFIG
2604
AC_LIBTOOL_LANG_RC_CONFIG
2608
AC_MSG_ERROR([Unsupported tag name: $tagname])
2612
# Append the new tag name to the list of available tags.
2613
if test -n "$tagname" ; then
2614
available_tags="$available_tags $tagname"
2620
# Now substitute the updated list of available tags.
2621
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2622
mv "${ofile}T" "$ofile"
2626
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2629
])# _LT_AC_TAGCONFIG
2634
# enable checks for dlopen support
2635
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2636
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2637
])# AC_LIBTOOL_DLOPEN
2640
# AC_LIBTOOL_WIN32_DLL
2641
# --------------------
2642
# declare package support for building win32 dll's
2643
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2644
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2645
])# AC_LIBTOOL_WIN32_DLL
2648
# AC_ENABLE_SHARED([DEFAULT])
2649
# ---------------------------
2650
# implement the --enable-shared flag
2651
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2652
AC_DEFUN([AC_ENABLE_SHARED],
2653
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2654
AC_ARG_ENABLE([shared],
2655
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2656
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2657
[p=${PACKAGE-default}
2659
yes) enable_shared=yes ;;
2660
no) enable_shared=no ;;
2663
# Look at the argument we got. We use all the common list separators.
2664
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2665
for pkg in $enableval; do
2667
if test "X$pkg" = "X$p"; then
2674
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2675
])# AC_ENABLE_SHARED
2680
#- set the default shared flag to --disable-shared
2681
AC_DEFUN([AC_DISABLE_SHARED],
2682
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2683
AC_ENABLE_SHARED(no)
2684
])# AC_DISABLE_SHARED
2687
# AC_ENABLE_STATIC([DEFAULT])
2688
# ---------------------------
2689
# implement the --enable-static flag
2690
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2691
AC_DEFUN([AC_ENABLE_STATIC],
2692
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2693
AC_ARG_ENABLE([static],
2694
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2695
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2696
[p=${PACKAGE-default}
2698
yes) enable_static=yes ;;
2699
no) enable_static=no ;;
2702
# Look at the argument we got. We use all the common list separators.
2703
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2704
for pkg in $enableval; do
2706
if test "X$pkg" = "X$p"; then
2713
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2714
])# AC_ENABLE_STATIC
2719
# set the default static flag to --disable-static
2720
AC_DEFUN([AC_DISABLE_STATIC],
2721
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2722
AC_ENABLE_STATIC(no)
2723
])# AC_DISABLE_STATIC
2726
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2727
# ---------------------------------
2728
# implement the --enable-fast-install flag
2729
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2730
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2731
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2732
AC_ARG_ENABLE([fast-install],
2733
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2734
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2735
[p=${PACKAGE-default}
2737
yes) enable_fast_install=yes ;;
2738
no) enable_fast_install=no ;;
2740
enable_fast_install=no
2741
# Look at the argument we got. We use all the common list separators.
2742
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2743
for pkg in $enableval; do
2745
if test "X$pkg" = "X$p"; then
2746
enable_fast_install=yes
2752
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2753
])# AC_ENABLE_FAST_INSTALL
2756
# AC_DISABLE_FAST_INSTALL
2757
# -----------------------
2758
# set the default to --disable-fast-install
2759
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2760
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2761
AC_ENABLE_FAST_INSTALL(no)
2762
])# AC_DISABLE_FAST_INSTALL
2765
# AC_LIBTOOL_PICMODE([MODE])
2766
# --------------------------
2767
# implement the --with-pic flag
2768
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2769
AC_DEFUN([AC_LIBTOOL_PICMODE],
2770
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2771
pic_mode=ifelse($#,1,$1,default)
2772
])# AC_LIBTOOL_PICMODE
2777
# This is predefined starting with Autoconf 2.54, so this conditional
2778
# definition can be removed once we require Autoconf 2.54 or later.
2779
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2780
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2781
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2782
then ac_cv_prog_egrep='grep -E'
2783
else ac_cv_prog_egrep='egrep'
2785
EGREP=$ac_cv_prog_egrep
2790
# AC_PATH_TOOL_PREFIX
2791
# -------------------
2792
# find a file program which can recognise shared library
2793
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2794
[AC_REQUIRE([AC_PROG_EGREP])dnl
2795
AC_MSG_CHECKING([for $1])
2796
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2798
[[\\/*] | ?:[\\/]*])
2799
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2802
lt_save_MAGIC_CMD="$MAGIC_CMD"
2803
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2804
dnl $ac_dummy forces splitting on constant user-supplied paths.
2805
dnl POSIX.2 word splitting is done only on the output of word expansions,
2806
dnl not every word. This closes a longstanding sh security hole.
2807
ac_dummy="ifelse([$2], , $PATH, [$2])"
2808
for ac_dir in $ac_dummy; do
2810
test -z "$ac_dir" && ac_dir=.
2811
if test -f $ac_dir/$1; then
2812
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2813
if test -n "$file_magic_test_file"; then
2814
case $deplibs_check_method in
2816
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2817
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2818
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2819
$EGREP "$file_magic_regex" > /dev/null; then
2824
*** Warning: the command libtool uses to detect shared libraries,
2825
*** $file_magic_cmd, produces output that libtool cannot recognize.
2826
*** The result is that libtool may fail to recognize shared libraries
2827
*** as such. This will affect the creation of libtool libraries that
2828
*** depend on shared libraries, but programs linked with such libtool
2829
*** libraries will work regardless of this problem. Nevertheless, you
2830
*** may want to report the problem to your system manager and/or to
2831
*** bug-libtool@gnu.org
2841
MAGIC_CMD="$lt_save_MAGIC_CMD"
2844
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2845
if test -n "$MAGIC_CMD"; then
2846
AC_MSG_RESULT($MAGIC_CMD)
2850
])# AC_PATH_TOOL_PREFIX
2855
# find a file program which can recognise a shared library
2856
AC_DEFUN([AC_PATH_MAGIC],
2857
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2858
if test -z "$lt_cv_path_MAGIC_CMD"; then
2859
if test -n "$ac_tool_prefix"; then
2860
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2870
# find the pathname to the GNU or non-GNU linker
2871
AC_DEFUN([AC_PROG_LD],
2872
[AC_ARG_WITH([gnu-ld],
2873
[AC_HELP_STRING([--with-gnu-ld],
2874
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2875
[test "$withval" = no || with_gnu_ld=yes],
2877
AC_REQUIRE([LT_AC_PROG_SED])dnl
2878
AC_REQUIRE([AC_PROG_CC])dnl
2879
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2880
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2882
if test "$GCC" = yes; then
2883
# Check if gcc -print-prog-name=ld gives a path.
2884
AC_MSG_CHECKING([for ld used by $CC])
2887
# gcc leaves a trailing carriage return which upsets mingw
2888
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2890
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2893
# Accept absolute paths.
2894
[[\\/]]* | ?:[[\\/]]*)
2895
re_direlt='/[[^/]][[^/]]*/\.\./'
2896
# Canonicalize the pathname of ld
2897
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2898
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2899
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2901
test -z "$LD" && LD="$ac_prog"
2904
# If it fails, then pretend we aren't using GCC.
2908
# If it is relative, then search for the first ld in PATH.
2912
elif test "$with_gnu_ld" = yes; then
2913
AC_MSG_CHECKING([for GNU ld])
2915
AC_MSG_CHECKING([for non-GNU ld])
2917
AC_CACHE_VAL(lt_cv_path_LD,
2918
[if test -z "$LD"; then
2919
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2920
for ac_dir in $PATH; do
2922
test -z "$ac_dir" && ac_dir=.
2923
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2924
lt_cv_path_LD="$ac_dir/$ac_prog"
2925
# Check to see if the program is GNU ld. I'd rather use --version,
2926
# but apparently some GNU ld's only accept -v.
2927
# Break only if it was the GNU/non-GNU ld that we prefer.
2928
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2929
*GNU* | *'with BFD'*)
2930
test "$with_gnu_ld" != no && break
2933
test "$with_gnu_ld" != yes && break
2940
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2943
if test -n "$LD"; then
2948
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2955
AC_DEFUN([AC_PROG_LD_GNU],
2956
[AC_REQUIRE([AC_PROG_EGREP])dnl
2957
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2958
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2959
case `$LD -v 2>&1 </dev/null` in
2960
*GNU* | *'with BFD'*)
2961
lt_cv_prog_gnu_ld=yes
2964
lt_cv_prog_gnu_ld=no
2967
with_gnu_ld=$lt_cv_prog_gnu_ld
2971
# AC_PROG_LD_RELOAD_FLAG
2972
# ----------------------
2973
# find reload flag for linker
2974
# -- PORTME Some linkers may need a different reload flag.
2975
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2976
[AC_CACHE_CHECK([for $LD option to reload object files],
2977
lt_cv_ld_reload_flag,
2978
[lt_cv_ld_reload_flag='-r'])
2979
reload_flag=$lt_cv_ld_reload_flag
2980
case $reload_flag in
2982
*) reload_flag=" $reload_flag" ;;
2984
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2985
])# AC_PROG_LD_RELOAD_FLAG
2988
# AC_DEPLIBS_CHECK_METHOD
2989
# -----------------------
2990
# how to check for library dependencies
2991
# -- PORTME fill in with the dynamic library characteristics
2992
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2993
[AC_CACHE_CHECK([how to recognise dependent libraries],
2994
lt_cv_deplibs_check_method,
2995
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2996
lt_cv_file_magic_test_file=
2997
lt_cv_deplibs_check_method='unknown'
2998
# Need to set the preceding variable on all platforms that support
2999
# interlibrary dependencies.
3000
# 'none' -- dependencies not supported.
3001
# `unknown' -- same as none, but documents that we really don't know.
3002
# 'pass_all' -- all dependencies passed with no checks.
3003
# 'test_compile' -- check by making test program.
3004
# 'file_magic [[regex]]' -- check by looking for files in library path
3005
# which responds to the $file_magic_cmd with a given extended regex.
3006
# If you have `file' or equivalent on your system and you're not sure
3007
# whether `pass_all' will *always* work, you probably want this one.
3011
lt_cv_deplibs_check_method=pass_all
3015
lt_cv_deplibs_check_method=pass_all
3019
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3020
lt_cv_file_magic_cmd='/usr/bin/file -L'
3021
lt_cv_file_magic_test_file=/shlib/libc.so
3025
# win32_libid is a shell function defined in ltmain.sh
3026
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3027
lt_cv_file_magic_cmd='win32_libid'
3031
# Base MSYS/MinGW do not provide the 'file' command needed by
3032
# win32_libid shell function, so use a weaker test based on 'objdump'.
3033
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3034
lt_cv_file_magic_cmd='$OBJDUMP -f'
3037
darwin* | rhapsody*)
3038
lt_cv_deplibs_check_method=pass_all
3041
freebsd* | kfreebsd*-gnu)
3042
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3045
# Not sure whether the presence of OpenBSD here was a mistake.
3046
# Let's accept both of them until this is cleared up.
3047
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3048
lt_cv_file_magic_cmd=/usr/bin/file
3049
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3053
lt_cv_deplibs_check_method=pass_all
3058
lt_cv_deplibs_check_method=pass_all
3061
hpux10.20* | hpux11*)
3062
lt_cv_file_magic_cmd=/usr/bin/file
3065
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3066
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3069
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3070
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3073
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3074
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3079
irix5* | irix6* | nonstopux*)
3081
*-32|*"-32 ") libmagic=32-bit;;
3082
*-n32|*"-n32 ") libmagic=N32;;
3083
*-64|*"-64 ") libmagic=64-bit;;
3084
*) libmagic=never-match;;
3086
lt_cv_deplibs_check_method=pass_all
3089
# This must be Linux ELF.
3092
alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3093
lt_cv_deplibs_check_method=pass_all ;;
3095
# glibc up to 2.1.1 does not perform some relocations on ARM
3096
# this will be overridden with pass_all, but let us keep it just in case
3097
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3099
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3100
lt_cv_deplibs_check_method=pass_all
3104
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3105
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3107
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3112
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3113
lt_cv_file_magic_cmd=/usr/bin/file
3114
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3118
lt_cv_deplibs_check_method=unknown
3122
lt_cv_file_magic_cmd=/usr/bin/file
3123
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3124
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3125
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3127
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3131
osf3* | osf4* | osf5*)
3132
lt_cv_deplibs_check_method=pass_all
3136
lt_cv_deplibs_check_method=pass_all
3140
lt_cv_deplibs_check_method=pass_all
3143
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3144
case $host_vendor in
3146
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3147
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3150
lt_cv_deplibs_check_method=pass_all
3153
lt_cv_file_magic_cmd='/bin/file'
3154
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3157
lt_cv_file_magic_cmd='/bin/file'
3158
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3159
lt_cv_file_magic_test_file=/lib/libc.so
3162
lt_cv_deplibs_check_method=pass_all
3167
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3168
lt_cv_deplibs_check_method=pass_all
3172
file_magic_cmd=$lt_cv_file_magic_cmd
3173
deplibs_check_method=$lt_cv_deplibs_check_method
3174
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3175
])# AC_DEPLIBS_CHECK_METHOD
3180
# find the pathname to a BSD-compatible name lister
3181
AC_DEFUN([AC_PROG_NM],
3182
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3183
[if test -n "$NM"; then
3184
# Let the user override the test.
3187
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3188
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3190
test -z "$ac_dir" && ac_dir=.
3191
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3192
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3193
# Check to see if the nm accepts a BSD-compat flag.
3194
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3195
# nm: unknown option "B" ignored
3196
# Tru64's nm complains that /dev/null is an invalid object file
3197
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3198
*/dev/null* | *'Invalid file or object type'*)
3199
lt_cv_path_NM="$tmp_nm -B"
3203
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3205
lt_cv_path_NM="$tmp_nm -p"
3209
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3210
continue # so that we can try to find one that supports BSD flags
3217
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3225
# check for math library
3226
AC_DEFUN([AC_CHECK_LIBM],
3227
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3230
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3231
# These system don't have libm, or don't need it
3234
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3235
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3238
AC_CHECK_LIB(m, cos, LIBM="-lm")
3244
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3245
# -----------------------------------
3246
# sets LIBLTDL to the link flags for the libltdl convenience library and
3247
# LTDLINCL to the include flags for the libltdl header and adds
3248
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3249
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3250
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3251
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3252
# '${top_srcdir}/' (note the single quotes!). If your package is not
3253
# flat and you're not using automake, define top_builddir and
3254
# top_srcdir appropriately in the Makefiles.
3255
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3256
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3257
case $enable_ltdl_convenience in
3258
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3259
"") enable_ltdl_convenience=yes
3260
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3262
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3263
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3264
# For backwards non-gettext consistent compatibility...
3266
])# AC_LIBLTDL_CONVENIENCE
3269
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3270
# -----------------------------------
3271
# sets LIBLTDL to the link flags for the libltdl installable library and
3272
# LTDLINCL to the include flags for the libltdl header and adds
3273
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3274
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3275
# DIRECTORY is not provided and an installed libltdl is not found, it is
3276
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3277
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3278
# quotes!). If your package is not flat and you're not using automake,
3279
# define top_builddir and top_srcdir appropriately in the Makefiles.
3280
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3281
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3282
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3283
AC_CHECK_LIB(ltdl, lt_dlinit,
3284
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3285
[if test x"$enable_ltdl_install" = xno; then
3286
AC_MSG_WARN([libltdl not installed, but installation disabled])
3288
enable_ltdl_install=yes
3291
if test x"$enable_ltdl_install" = x"yes"; then
3292
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3293
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3294
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3296
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3300
# For backwards non-gettext consistent compatibility...
3302
])# AC_LIBLTDL_INSTALLABLE
3307
# enable support for C++ libraries
3308
AC_DEFUN([AC_LIBTOOL_CXX],
3309
[AC_REQUIRE([_LT_AC_LANG_CXX])
3315
AC_DEFUN([_LT_AC_LANG_CXX],
3316
[AC_REQUIRE([AC_PROG_CXX])
3317
AC_REQUIRE([AC_PROG_CXXCPP])
3318
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3324
# enable support for Fortran 77 libraries
3325
AC_DEFUN([AC_LIBTOOL_F77],
3326
[AC_REQUIRE([_LT_AC_LANG_F77])
3332
AC_DEFUN([_LT_AC_LANG_F77],
3333
[AC_REQUIRE([AC_PROG_F77])
3334
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3340
# enable support for GCJ libraries
3341
AC_DEFUN([AC_LIBTOOL_GCJ],
3342
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3348
AC_DEFUN([_LT_AC_LANG_GCJ],
3349
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3350
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3351
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3352
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3353
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3354
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3355
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3361
# enable support for Windows resource files
3362
AC_DEFUN([AC_LIBTOOL_RC],
3363
[AC_REQUIRE([LT_AC_PROG_RC])
3364
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3368
# AC_LIBTOOL_LANG_C_CONFIG
3369
# ------------------------
3370
# Ensure that the configuration vars for the C compiler are
3371
# suitably defined. Those variables are subsequently used by
3372
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3373
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3374
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3378
# Source file extension for C test sources.
3381
# Object file extension for compiled C test sources.
3383
_LT_AC_TAGVAR(objext, $1)=$objext
3385
# Code to be used in simple compile tests
3386
lt_simple_compile_test_code="int some_variable = 0;\n"
3388
# Code to be used in simple link tests
3389
lt_simple_link_test_code='int main(){return(0);}\n'
3394
# Check for any special shared library compilation flags.
3396
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3397
if test "$GCC" = no; then
3400
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3404
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3405
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3406
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3408
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3409
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3415
# Check to make sure the static flag actually works.
3417
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3418
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3419
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3421
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3424
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3425
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3426
AC_LIBTOOL_PROG_CC_C_O($1)
3427
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3428
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3429
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3430
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3431
AC_LIBTOOL_SYS_LIB_STRIP
3432
AC_LIBTOOL_DLOPEN_SELF($1)
3434
# Report which librarie types wil actually be built
3435
AC_MSG_CHECKING([if libtool supports shared libraries])
3436
AC_MSG_RESULT([$can_build_shared])
3438
AC_MSG_CHECKING([whether to build shared libraries])
3439
test "$can_build_shared" = "no" && enable_shared=no
3441
# On AIX, shared libraries and static libraries use the same namespace, and
3442
# are all built from PIC.
3445
test "$enable_shared" = yes && enable_static=no
3446
if test -n "$RANLIB"; then
3447
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3448
postinstall_cmds='$RANLIB $lib'
3453
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3454
test "$enable_shared" = yes && enable_static=no
3457
darwin* | rhapsody*)
3458
if test "$GCC" = yes; then
3459
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3461
rhapsody* | darwin1.[[012]])
3462
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3465
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3466
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3468
case ${MACOSX_DEPLOYMENT_TARGET} in
3470
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3473
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3479
output_verbose_link_cmd='echo'
3480
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3481
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3482
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3483
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3484
_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}'
3485
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3486
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3487
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3488
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3489
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3491
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3495
AC_MSG_RESULT([$enable_shared])
3497
AC_MSG_CHECKING([whether to build static libraries])
3498
# Make sure either enable_shared or enable_static is yes.
3499
test "$enable_shared" = yes || enable_static=yes
3500
AC_MSG_RESULT([$enable_static])
3502
AC_LIBTOOL_CONFIG($1)
3506
])# AC_LIBTOOL_LANG_C_CONFIG
3509
# AC_LIBTOOL_LANG_CXX_CONFIG
3510
# --------------------------
3511
# Ensure that the configuration vars for the C compiler are
3512
# suitably defined. Those variables are subsequently used by
3513
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3514
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3515
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3517
AC_REQUIRE([AC_PROG_CXX])
3518
AC_REQUIRE([AC_PROG_CXXCPP])
3520
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3521
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3522
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3523
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3524
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3525
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3526
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3527
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3528
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3529
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3530
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3531
_LT_AC_TAGVAR(module_cmds, $1)=
3532
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3533
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3534
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3535
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3536
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3537
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3539
# Dependencies to place before and after the object being linked:
3540
_LT_AC_TAGVAR(predep_objects, $1)=
3541
_LT_AC_TAGVAR(postdep_objects, $1)=
3542
_LT_AC_TAGVAR(predeps, $1)=
3543
_LT_AC_TAGVAR(postdeps, $1)=
3544
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3546
# Source file extension for C++ test sources.
3549
# Object file extension for compiled C++ test sources.
3551
_LT_AC_TAGVAR(objext, $1)=$objext
3553
# Code to be used in simple compile tests
3554
lt_simple_compile_test_code="int some_variable = 0;\n"
3556
# Code to be used in simple link tests
3557
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3559
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3562
# Allow CC to be a program name with arguments.
3567
lt_save_with_gnu_ld=$with_gnu_ld
3568
lt_save_path_LD=$lt_cv_path_LD
3569
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3570
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3572
unset lt_cv_prog_gnu_ld
3574
if test -n "${lt_cv_path_LDCXX+set}"; then
3575
lt_cv_path_LD=$lt_cv_path_LDCXX
3579
test -z "${LDCXX+set}" || LD=$LDCXX
3582
_LT_AC_TAGVAR(compiler, $1)=$CC
3583
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3585
# We don't want -fno-exception wen compiling C++ code, so set the
3586
# no_builtin_flag separately
3587
if test "$GXX" = yes; then
3588
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3590
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3593
if test "$GXX" = yes; then
3594
# Set up default GNU C++ configuration
3598
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3599
# archiving commands below assume that GNU ld is being used.
3600
if test "$with_gnu_ld" = yes; then
3601
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3602
_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'
3604
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3605
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3607
# If archive_cmds runs LD, not CC, wlarc should be empty
3608
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3609
# investigate it a little bit more. (MM)
3612
# ancient GNU ld didn't support --whole-archive et. al.
3613
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3614
grep 'no-whole-archive' > /dev/null; then
3615
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3617
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3623
# A generic and very simple default shared library creation
3624
# command for GNU C++ for the case where it uses the native
3625
# linker, instead of GNU ld. If possible, this setting should
3626
# overridden to take advantage of the native linker features on
3627
# the platform it is being used on.
3628
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3631
# Commands to make compiler produce verbose output that lists
3632
# what "hidden" libraries, object files and flags are used when
3633
# linking a shared library.
3634
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3642
# PORTME: fill in a description of your system's C++ link characteristics
3643
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3644
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3647
# FIXME: insert proper C++ library support
3648
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3651
if test "$host_cpu" = ia64; then
3652
# On IA64, the linker does run time linking by default, so we don't
3653
# have to do anything special.
3654
aix_use_runtimelinking=no
3655
exp_sym_flag='-Bexport'
3658
aix_use_runtimelinking=no
3660
# Test if we are trying to use run time linking or normal
3661
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3662
# need to do runtime linking.
3663
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3664
for ld_flag in $LDFLAGS; do
3667
aix_use_runtimelinking=yes
3674
exp_sym_flag='-bexport'
3675
no_entry_flag='-bnoentry'
3678
# When large executables or shared objects are built, AIX ld can
3679
# have problems creating the table of contents. If linking a library
3680
# or program results in "error TOC overflow" add -mminimal-toc to
3681
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3682
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3684
_LT_AC_TAGVAR(archive_cmds, $1)=''
3685
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3686
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3687
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3689
if test "$GXX" = yes; then
3690
case $host_os in aix4.[012]|aix4.[012].*)
3691
# We only want to do this on AIX 4.2 and lower, the check
3692
# below for broken collect2 doesn't work under 4.3+
3693
collect2name=`${CC} -print-prog-name=collect2`
3694
if test -f "$collect2name" && \
3695
strings "$collect2name" | grep resolve_lib_name >/dev/null
3697
# We have reworked collect2
3698
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3700
# We have old collect2
3701
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3702
# It fails to find uninstalled libraries when the uninstalled
3703
# path is not listed in the libpath. Setting hardcode_minus_L
3704
# to unsupported forces relinking
3705
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3706
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3707
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3710
shared_flag='-shared'
3713
if test "$host_cpu" = ia64; then
3714
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3715
# chokes on -Wl,-G. The following line is correct:
3718
if test "$aix_use_runtimelinking" = yes; then
3719
shared_flag='${wl}-G'
3721
shared_flag='${wl}-bM:SRE'
3726
# It seems that -bexpall does not export symbols beginning with
3727
# underscore (_), so it is better to generate a list of symbols to export.
3728
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3729
if test "$aix_use_runtimelinking" = yes; then
3730
# Warning - without using the other runtime loading flags (-brtl),
3731
# -berok will link without error, but may produce a broken library.
3732
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3733
# Determine the default libpath from the value encoded in an empty executable.
3734
_LT_AC_SYS_LIBPATH_AIX
3735
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3737
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3739
if test "$host_cpu" = ia64; then
3740
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3741
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3742
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
3744
# Determine the default libpath from the value encoded in an empty executable.
3745
_LT_AC_SYS_LIBPATH_AIX
3746
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3747
# Warning - without using the other run time loading flags,
3748
# -berok will link without error, but may produce a broken library.
3749
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3750
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3751
# -bexpall does not export symbols beginning with underscore (_)
3752
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3753
# Exported symbols can be pulled into shared objects from archives
3754
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3755
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3756
# This is similar to how AIX traditionally builds it's shared libraries.
3757
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3762
case $cc_basename in
3764
# FIXME: insert proper C++ library support
3765
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3770
cygwin* | mingw* | pw32*)
3771
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3772
# as there is no search path for DLLs.
3773
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3774
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3775
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3776
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3778
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3779
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3780
# If the export-symbols file already is a .def file (1st line
3781
# is EXPORTS), use it as is; otherwise, prepend...
3782
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3783
cp $export_symbols $output_objdir/$soname.def;
3785
echo EXPORTS > $output_objdir/$soname.def;
3786
cat $export_symbols >> $output_objdir/$soname.def;
3788
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3790
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3794
darwin* | rhapsody*)
3795
if test "$GXX" = yes; then
3796
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3798
rhapsody* | darwin1.[[012]])
3799
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3802
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3803
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3805
case ${MACOSX_DEPLOYMENT_TARGET} in
3807
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3810
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3816
lt_int_apple_cc_single_mod=no
3817
output_verbose_link_cmd='echo'
3818
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3819
lt_int_apple_cc_single_mod=yes
3821
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3822
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3824
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
3826
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3828
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3829
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3830
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3832
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3834
_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}'
3835
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3836
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3837
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3838
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3839
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3841
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3846
case $cc_basename in
3848
# FIXME: insert proper C++ library support
3849
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3852
# Green Hills C++ Compiler
3853
# FIXME: insert proper C++ library support
3854
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3857
# FIXME: insert proper C++ library support
3858
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3863
# C++ shared libraries reported to be fairly broken before switch to ELF
3864
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3867
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3869
freebsd* | kfreebsd*-gnu)
3870
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3872
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3877
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3878
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3879
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3880
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3881
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3882
# but as the default
3883
# location of the library.
3885
case $cc_basename in
3887
# FIXME: insert proper C++ library support
3888
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3891
_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'
3892
# Commands to make compiler produce verbose output that lists
3893
# what "hidden" libraries, object files and flags are used when
3894
# linking a shared library.
3896
# There doesn't appear to be a way to prevent this compiler from
3897
# explicitly linking system object files so we need to strip them
3898
# from the output so that they don't get included in the library
3900
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 $list'
3903
if test "$GXX" = yes; then
3904
_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'
3906
# FIXME: insert proper C++ library support
3907
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3913
if test $with_gnu_ld = no; then
3916
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3917
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3918
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3921
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3925
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3926
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3932
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3933
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3936
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3937
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3938
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3939
# but as the default
3940
# location of the library.
3943
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3944
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3945
# but as the default
3946
# location of the library.
3950
case $cc_basename in
3952
# FIXME: insert proper C++ library support
3953
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3958
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3961
_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'
3964
# Commands to make compiler produce verbose output that lists
3965
# what "hidden" libraries, object files and flags are used when
3966
# linking a shared library.
3968
# There doesn't appear to be a way to prevent this compiler from
3969
# explicitly linking system object files so we need to strip them
3970
# from the output so that they don't get included in the library
3972
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'
3975
if test "$GXX" = yes; then
3976
if test $with_gnu_ld = no; then
3979
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3982
_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'
3987
# FIXME: insert proper C++ library support
3988
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3994
case $cc_basename in
3997
_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 ${objdir}/so_locations -o $lib'
3999
# Archives containing C++ object files must be created using
4000
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4001
# necessary to make sure instantiated templates are included
4003
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4006
if test "$GXX" = yes; then
4007
if test "$with_gnu_ld" = no; then
4008
_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}${objdir}/so_locations -o $lib'
4010
_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'
4013
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4016
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4017
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4020
case $cc_basename in
4022
# Kuck and Associates, Inc. (KAI) C++ Compiler
4024
# KCC will only create a shared library if the output file
4025
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4026
# to its proper name (with version) after linking.
4027
_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'
4028
_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'
4029
# Commands to make compiler produce verbose output that lists
4030
# what "hidden" libraries, object files and flags are used when
4031
# linking a shared library.
4033
# There doesn't appear to be a way to prevent this compiler from
4034
# explicitly linking system object files so we need to strip them
4035
# from the output so that they don't get included in the library
4037
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'
4039
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4040
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4042
# Archives containing C++ object files must be created using
4043
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4044
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4049
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4050
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4051
_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'
4052
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4053
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4054
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4058
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4059
_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'
4061
runpath_var=LD_RUN_PATH
4062
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4063
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4065
# Commands to make compiler produce verbose output that lists
4066
# what "hidden" libraries, object files and flags are used when
4067
# linking a shared library.
4069
# There doesn't appear to be a way to prevent this compiler from
4070
# explicitly linking system object files so we need to strip them
4071
# from the output so that they don't get included in the library
4073
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'
4078
# FIXME: insert proper C++ library support
4079
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4082
# FIXME: insert proper C++ library support
4083
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4086
case $cc_basename in
4088
# FIXME: insert proper C++ library support
4089
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4092
# FIXME: insert proper C++ library support
4093
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4098
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4099
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4101
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4102
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4103
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4105
# Workaround some broken pre-1.5 toolchains
4106
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4109
case $cc_basename in
4111
# Kuck and Associates, Inc. (KAI) C++ Compiler
4113
# KCC will only create a shared library if the output file
4114
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4115
# to its proper name (with version) after linking.
4116
_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'
4118
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4119
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4121
# Archives containing C++ object files must be created using
4122
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4123
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4127
# Rational C++ 2.4.1
4128
# FIXME: insert proper C++ library support
4129
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4132
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4133
_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 ${objdir}/so_locations -o $lib'
4135
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4136
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4138
# Commands to make compiler produce verbose output that lists
4139
# what "hidden" libraries, object files and flags are used when
4140
# linking a shared library.
4142
# There doesn't appear to be a way to prevent this compiler from
4143
# explicitly linking system object files so we need to strip them
4144
# from the output so that they don't get included in the library
4146
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'
4149
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4150
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4151
_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}${objdir}/so_locations -o $lib'
4153
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4154
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4156
# Commands to make compiler produce verbose output that lists
4157
# what "hidden" libraries, object files and flags are used when
4158
# linking a shared library.
4159
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4162
# FIXME: insert proper C++ library support
4163
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4169
case $cc_basename in
4171
# Kuck and Associates, Inc. (KAI) C++ Compiler
4173
# KCC will only create a shared library if the output file
4174
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4175
# to its proper name (with version) after linking.
4176
_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'
4178
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4179
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4181
# Archives containing C++ object files must be created using
4182
# the KAI C++ compiler.
4183
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4186
# Rational C++ 2.4.1
4187
# FIXME: insert proper C++ library support
4188
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4191
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4192
_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 ${objdir}/so_locations -o $lib'
4193
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4194
echo "-hidden">> $lib.exp~
4195
$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 $objdir/so_locations -o $lib~
4198
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4199
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4201
# Commands to make compiler produce verbose output that lists
4202
# what "hidden" libraries, object files and flags are used when
4203
# linking a shared library.
4205
# There doesn't appear to be a way to prevent this compiler from
4206
# explicitly linking system object files so we need to strip them
4207
# from the output so that they don't get included in the library
4209
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'
4212
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4213
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4214
_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}${objdir}/so_locations -o $lib'
4216
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4217
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4219
# Commands to make compiler produce verbose output that lists
4220
# what "hidden" libraries, object files and flags are used when
4221
# linking a shared library.
4222
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4225
# FIXME: insert proper C++ library support
4226
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4232
# FIXME: insert proper C++ library support
4233
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4236
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4237
case $cc_basename in
4239
# FIXME: insert proper C++ library support
4240
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4243
# FIXME: insert proper C++ library support
4244
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4249
case $cc_basename in
4252
# FIXME: insert proper C++ library support
4253
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4257
# FIXME: insert proper C++ library support
4258
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4261
# FIXME: insert proper C++ library support
4262
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4267
case $cc_basename in
4269
# Sun C++ 4.2, 5.x and Centerline C++
4270
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4271
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4272
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4273
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4275
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4276
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4278
solaris2.[0-5] | solaris2.[0-5].*) ;;
4280
# The C++ compiler is used as linker so we must use $wl
4281
# flag to pass the commands to the underlying system
4283
# Supported since Solaris 2.6 (maybe 2.5.1?)
4284
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4287
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4289
# Commands to make compiler produce verbose output that lists
4290
# what "hidden" libraries, object files and flags are used when
4291
# linking a shared library.
4293
# There doesn't appear to be a way to prevent this compiler from
4294
# explicitly linking system object files so we need to strip them
4295
# from the output so that they don't get included in the library
4297
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4299
# Archives containing C++ object files must be created using
4300
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4301
# necessary to make sure instantiated templates are included
4303
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4306
# Green Hills C++ Compiler
4307
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4309
# The C++ compiler must be used to create the archive.
4310
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4313
# GNU C++ compiler with Solaris linker
4314
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4315
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4316
if $CC --version | grep -v '^2\.7' > /dev/null; then
4317
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4318
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4319
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4321
# Commands to make compiler produce verbose output that lists
4322
# what "hidden" libraries, object files and flags are used when
4323
# linking a shared library.
4324
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4326
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4328
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4329
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4330
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4332
# Commands to make compiler produce verbose output that lists
4333
# what "hidden" libraries, object files and flags are used when
4334
# linking a shared library.
4335
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4338
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4343
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4344
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4347
case $cc_basename in
4349
# NonStop-UX NCC 3.20
4350
# FIXME: insert proper C++ library support
4351
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4354
# FIXME: insert proper C++ library support
4355
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4360
# FIXME: insert proper C++ library support
4361
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4364
# FIXME: insert proper C++ library support
4365
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4368
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4369
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4371
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4372
_LT_AC_TAGVAR(LD, $1)="$LD"
4374
AC_LIBTOOL_POSTDEP_PREDEP($1)
4375
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4376
AC_LIBTOOL_PROG_CC_C_O($1)
4377
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4378
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4379
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4380
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4381
AC_LIBTOOL_SYS_LIB_STRIP
4382
AC_LIBTOOL_DLOPEN_SELF($1)
4384
AC_LIBTOOL_CONFIG($1)
4391
with_gnu_ldcxx=$with_gnu_ld
4392
with_gnu_ld=$lt_save_with_gnu_ld
4393
lt_cv_path_LDCXX=$lt_cv_path_LD
4394
lt_cv_path_LD=$lt_save_path_LD
4395
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4396
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4397
])# AC_LIBTOOL_LANG_CXX_CONFIG
4399
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4400
# ------------------------
4401
# Figure out "hidden" library dependencies from verbose
4402
# compiler output when linking a shared library.
4403
# Parse the compiler output and extract the necessary
4404
# objects, libraries and library flags.
4405
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4406
dnl we can't use the lt_simple_compile_test_code here,
4407
dnl because it contains code intended for an executable,
4408
dnl not a library. It's possible we should let each
4409
dnl tag define a new lt_????_link_test_code variable,
4410
dnl but it's only used here...
4411
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4413
void foo (void) { a = 0; }
4415
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4419
Foo (void) { a = 0; }
4424
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4432
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4435
public void bar (void) {
4441
dnl Parse the compiler output and extract the necessary
4442
dnl objects, libraries and library flags.
4443
if AC_TRY_EVAL(ac_compile); then
4444
# Parse the compiler output and extract the necessary
4445
# objects, libraries and library flags.
4447
# Sentinel used to keep track of whether or not we are before
4448
# the conftest object file.
4449
pre_test_object_deps_done=no
4451
# The `*' in the case matches for architectures that use `case' in
4452
# $output_verbose_cmd can trigger glob expansion during the loop
4453
# eval without this substitution.
4454
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4456
for p in `eval $output_verbose_link_cmd`; do
4460
# Some compilers place space between "-{L,R}" and the path.
4463
|| test $p = "-R"; then
4470
if test "$pre_test_object_deps_done" = no; then
4473
# Internal compiler library paths should come after those
4474
# provided the user. The postdeps already come after the
4475
# user supplied libs so there is no need to process them.
4476
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4477
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4479
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4482
# The "-l" case would never come before the object being
4483
# linked, so don't bother handling this case.
4486
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4487
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4489
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4495
# This assumes that the test object file only shows up
4496
# once in the compiler output.
4497
if test "$p" = "conftest.$objext"; then
4498
pre_test_object_deps_done=yes
4502
if test "$pre_test_object_deps_done" = no; then
4503
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4504
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4506
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4509
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4510
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4512
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4517
*) ;; # Ignore the rest.
4525
echo "libtool.m4: error: problem compiling $1 test program"
4528
$rm -f confest.$objext
4530
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4531
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4533
])# AC_LIBTOOL_POSTDEP_PREDEP
4535
# AC_LIBTOOL_LANG_F77_CONFIG
4536
# ------------------------
4537
# Ensure that the configuration vars for the C compiler are
4538
# suitably defined. Those variables are subsequently used by
4539
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4540
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4541
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4542
[AC_REQUIRE([AC_PROG_F77])
4543
AC_LANG_PUSH(Fortran 77)
4545
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4546
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4547
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4548
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4549
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4550
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4551
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4552
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4553
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4554
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4555
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4556
_LT_AC_TAGVAR(module_cmds, $1)=
4557
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4558
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4559
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4560
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4561
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4562
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4564
# Source file extension for f77 test sources.
4567
# Object file extension for compiled f77 test sources.
4569
_LT_AC_TAGVAR(objext, $1)=$objext
4571
# Code to be used in simple compile tests
4572
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4574
# Code to be used in simple link tests
4575
lt_simple_link_test_code=" program t\n end\n"
4577
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4580
# Allow CC to be a program name with arguments.
4584
_LT_AC_TAGVAR(compiler, $1)=$CC
4585
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4587
AC_MSG_CHECKING([if libtool supports shared libraries])
4588
AC_MSG_RESULT([$can_build_shared])
4590
AC_MSG_CHECKING([whether to build shared libraries])
4591
test "$can_build_shared" = "no" && enable_shared=no
4593
# On AIX, shared libraries and static libraries use the same namespace, and
4594
# are all built from PIC.
4597
test "$enable_shared" = yes && enable_static=no
4598
if test -n "$RANLIB"; then
4599
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4600
postinstall_cmds='$RANLIB $lib'
4604
test "$enable_shared" = yes && enable_static=no
4607
AC_MSG_RESULT([$enable_shared])
4609
AC_MSG_CHECKING([whether to build static libraries])
4610
# Make sure either enable_shared or enable_static is yes.
4611
test "$enable_shared" = yes || enable_static=yes
4612
AC_MSG_RESULT([$enable_static])
4614
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4616
_LT_AC_TAGVAR(GCC, $1)="$G77"
4617
_LT_AC_TAGVAR(LD, $1)="$LD"
4619
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4620
AC_LIBTOOL_PROG_CC_C_O($1)
4621
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4622
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4623
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4624
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4625
AC_LIBTOOL_SYS_LIB_STRIP
4628
AC_LIBTOOL_CONFIG($1)
4632
])# AC_LIBTOOL_LANG_F77_CONFIG
4635
# AC_LIBTOOL_LANG_GCJ_CONFIG
4636
# --------------------------
4637
# Ensure that the configuration vars for the C compiler are
4638
# suitably defined. Those variables are subsequently used by
4639
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4640
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4641
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4644
# Source file extension for Java test sources.
4647
# Object file extension for compiled Java test sources.
4649
_LT_AC_TAGVAR(objext, $1)=$objext
4651
# Code to be used in simple compile tests
4652
lt_simple_compile_test_code="class foo {}\n"
4654
# Code to be used in simple link tests
4655
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4657
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4660
# Allow CC to be a program name with arguments.
4664
_LT_AC_TAGVAR(compiler, $1)=$CC
4666
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4667
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4669
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4670
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4671
AC_LIBTOOL_PROG_CC_C_O($1)
4672
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4673
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4674
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4675
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4676
AC_LIBTOOL_SYS_LIB_STRIP
4677
AC_LIBTOOL_DLOPEN_SELF($1)
4679
AC_LIBTOOL_CONFIG($1)
4683
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4686
# AC_LIBTOOL_LANG_RC_CONFIG
4687
# --------------------------
4688
# Ensure that the configuration vars for the Windows resource compiler are
4689
# suitably defined. Those variables are subsequently used by
4690
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4691
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4692
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4695
# Source file extension for RC test sources.
4698
# Object file extension for compiled RC test sources.
4700
_LT_AC_TAGVAR(objext, $1)=$objext
4702
# Code to be used in simple compile tests
4703
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4705
# Code to be used in simple link tests
4706
lt_simple_link_test_code="$lt_simple_compile_test_code"
4708
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4711
# Allow CC to be a program name with arguments.
4715
_LT_AC_TAGVAR(compiler, $1)=$CC
4716
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4718
AC_LIBTOOL_CONFIG($1)
4722
])# AC_LIBTOOL_LANG_RC_CONFIG
4725
# AC_LIBTOOL_CONFIG([TAGNAME])
4726
# ----------------------------
4727
# If TAGNAME is not passed, then create an initial libtool script
4728
# with a default configuration from the untagged config vars. Otherwise
4729
# add code to config.status for appending the configuration named by
4730
# TAGNAME from the matching tagged config vars.
4731
AC_DEFUN([AC_LIBTOOL_CONFIG],
4732
[# The else clause should only fire when bootstrapping the
4733
# libtool distribution, otherwise you forgot to ship ltmain.sh
4734
# with your package, and you will get complaints that there are
4735
# no rules to generate ltmain.sh.
4736
if test -f "$ltmain"; then
4737
# See if we are running on zsh, and set the options which allow our commands through
4738
# without removal of \ escapes.
4739
if test -n "${ZSH_VERSION+set}" ; then
4740
setopt NO_GLOB_SUBST
4742
# Now quote all the things that may contain metacharacters while being
4743
# careful not to overquote the AC_SUBSTed values. We take copies of the
4744
# variables and quote the copies for generation of the libtool script.
4745
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4747
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4748
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4749
deplibs_check_method reload_flag reload_cmds need_locks \
4750
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4751
lt_cv_sys_global_symbol_to_c_name_address \
4752
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4753
old_postinstall_cmds old_postuninstall_cmds \
4754
_LT_AC_TAGVAR(compiler, $1) \
4755
_LT_AC_TAGVAR(CC, $1) \
4756
_LT_AC_TAGVAR(LD, $1) \
4757
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4758
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4759
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4760
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4761
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4762
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4763
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4764
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4765
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4766
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4767
_LT_AC_TAGVAR(predep_objects, $1) \
4768
_LT_AC_TAGVAR(postdep_objects, $1) \
4769
_LT_AC_TAGVAR(predeps, $1) \
4770
_LT_AC_TAGVAR(postdeps, $1) \
4771
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4772
_LT_AC_TAGVAR(archive_cmds, $1) \
4773
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4774
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4775
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4776
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4777
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4778
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4779
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4780
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4781
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4782
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4783
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4784
_LT_AC_TAGVAR(module_cmds, $1) \
4785
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4786
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4787
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4788
_LT_AC_TAGVAR(include_expsyms, $1); do
4791
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4792
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4793
_LT_AC_TAGVAR(archive_cmds, $1) | \
4794
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4795
_LT_AC_TAGVAR(module_cmds, $1) | \
4796
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4797
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4798
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4799
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4800
postinstall_cmds | postuninstall_cmds | \
4801
old_postinstall_cmds | old_postuninstall_cmds | \
4802
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4803
# Double-quote double-evaled strings.
4804
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4807
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4813
*'\[$]0 --fallback-echo"')
4814
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4819
[cfgfile="${ofile}T"
4820
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4822
AC_MSG_NOTICE([creating $ofile])],
4825
cat <<__EOF__ >> "$cfgfile"
4829
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4830
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4831
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4833
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4834
# Free Software Foundation, Inc.
4836
# This file is part of GNU Libtool:
4837
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4839
# This program is free software; you can redistribute it and/or modify
4840
# it under the terms of the GNU General Public License as published by
4841
# the Free Software Foundation; either version 2 of the License, or
4842
# (at your option) any later version.
4844
# This program is distributed in the hope that it will be useful, but
4845
# WITHOUT ANY WARRANTY; without even the implied warranty of
4846
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4847
# General Public License for more details.
4849
# You should have received a copy of the GNU General Public License
4850
# along with this program; if not, write to the Free Software
4851
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4853
# As a special exception to the GNU General Public License, if you
4854
# distribute this file as part of a program that contains a
4855
# configuration script generated by Autoconf, you may include it under
4856
# the same distribution terms that you use for the rest of that program.
4858
# A sed program that does not truncate output.
4861
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4862
Xsed="$SED -e s/^X//"
4864
# The HP-UX ksh and POSIX shell print the target directory to stdout
4866
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4868
# The names of the tagged configurations supported by this script.
4871
# ### BEGIN LIBTOOL CONFIG],
4872
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4874
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4876
# Shell to use when invoking shell scripts.
4879
# Whether or not to build shared libraries.
4880
build_libtool_libs=$enable_shared
4882
# Whether or not to build static libraries.
4883
build_old_libs=$enable_static
4885
# Whether or not to add -lc for building shared libraries.
4886
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4888
# Whether or not to disallow shared libs when runtime libs are static
4889
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4891
# Whether or not to optimize for fast installation.
4892
fast_install=$enable_fast_install
4895
host_alias=$host_alias
4898
# An echo program that does not interpret backslashes.
4903
AR_FLAGS=$lt_AR_FLAGS
4908
# A language-specific compiler.
4909
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4911
# Is the compiler the GNU C compiler?
4912
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4917
# The linker used to build libraries.
4918
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4920
# Whether we need hard or soft links.
4923
# A BSD-compatible nm program.
4926
# A symbol stripping program
4929
# Used to examine libraries when file_magic_cmd begins "file"
4930
MAGIC_CMD=$MAGIC_CMD
4932
# Used on cygwin: DLL creation program.
4935
# Used on cygwin: object dumper.
4938
# Used on cygwin: assembler.
4941
# The name of the directory that contains temporary libtool files.
4944
# How to create reloadable object files.
4945
reload_flag=$lt_reload_flag
4946
reload_cmds=$lt_reload_cmds
4948
# How to pass a linker flag through the compiler.
4949
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4951
# Object file suffix (normally "o").
4954
# Old archive suffix (normally "a").
4957
# Shared library suffix (normally ".so").
4960
# Executable file suffix (normally "").
4963
# Additional compiler flags for building library objects.
4964
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4967
# What is the maximum length of a command?
4968
max_cmd_len=$lt_cv_sys_max_cmd_len
4970
# Does compiler simultaneously support -c and -o options?
4971
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4973
# Must we lock files when doing compilation ?
4974
need_locks=$lt_need_locks
4976
# Do we need the lib prefix for modules?
4977
need_lib_prefix=$need_lib_prefix
4979
# Do we need a version for libraries?
4980
need_version=$need_version
4982
# Whether dlopen is supported.
4983
dlopen_support=$enable_dlopen
4985
# Whether dlopen of programs is supported.
4986
dlopen_self=$enable_dlopen_self
4988
# Whether dlopen of statically linked programs is supported.
4989
dlopen_self_static=$enable_dlopen_self_static
4991
# Compiler flag to prevent dynamic linking.
4992
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4994
# Compiler flag to turn off builtin functions.
4995
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4997
# Compiler flag to allow reflexive dlopens.
4998
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5000
# Compiler flag to generate shared objects directly from archives.
5001
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5003
# Compiler flag to generate thread-safe objects.
5004
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5006
# Library versioning type.
5007
version_type=$version_type
5009
# Format of library name prefix.
5010
libname_spec=$lt_libname_spec
5012
# List of archive names. First name is the real one, the rest are links.
5013
# The last name is the one that the linker finds with -lNAME.
5014
library_names_spec=$lt_library_names_spec
5016
# The coded name of the library, if different from the real name.
5017
soname_spec=$lt_soname_spec
5019
# Commands used to build and install an old-style archive.
5021
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5022
old_postinstall_cmds=$lt_old_postinstall_cmds
5023
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5025
# Create an old-style archive from a shared archive.
5026
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5028
# Create a temporary old-style archive to link instead of a shared archive.
5029
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5031
# Commands used to build and install a shared archive.
5032
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5033
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5034
postinstall_cmds=$lt_postinstall_cmds
5035
postuninstall_cmds=$lt_postuninstall_cmds
5037
# Commands used to build a loadable module (assumed same as above if empty)
5038
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5039
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5041
# Commands to strip libraries.
5042
old_striplib=$lt_old_striplib
5043
striplib=$lt_striplib
5045
# Dependencies to place before the objects being linked to create a
5047
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5049
# Dependencies to place after the objects being linked to create a
5051
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5053
# Dependencies to place before the objects being linked to create a
5055
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5057
# Dependencies to place after the objects being linked to create a
5059
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5061
# The library search path used internally by the compiler when linking
5063
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5065
# Method to check whether dependent libraries are shared objects.
5066
deplibs_check_method=$lt_deplibs_check_method
5068
# Command to use when deplibs_check_method == file_magic.
5069
file_magic_cmd=$lt_file_magic_cmd
5071
# Flag that allows shared libraries with undefined symbols to be built.
5072
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5074
# Flag that forces no undefined symbols.
5075
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5077
# Commands used to finish a libtool library installation in a directory.
5078
finish_cmds=$lt_finish_cmds
5080
# Same as above, but a single script fragment to be evaled but not shown.
5081
finish_eval=$lt_finish_eval
5083
# Take the output of nm and produce a listing of raw symbols and C names.
5084
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5086
# Transform the output of nm in a proper C declaration
5087
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5089
# Transform the output of nm in a C name address pair
5090
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5092
# This is the shared library runtime path variable.
5093
runpath_var=$runpath_var
5095
# This is the shared library path variable.
5096
shlibpath_var=$shlibpath_var
5098
# Is shlibpath searched before the hard-coded library search path?
5099
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5101
# How to hardcode a shared library path into an executable.
5102
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5104
# Whether we should hardcode library paths into libraries.
5105
hardcode_into_libs=$hardcode_into_libs
5107
# Flag to hardcode \$libdir into a binary during linking.
5108
# This must work even if \$libdir does not exist.
5109
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5111
# If ld is used when linking, flag to hardcode \$libdir into
5112
# a binary during linking. This must work even if \$libdir does
5114
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5116
# Whether we need a single -rpath flag with a separated argument.
5117
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5119
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5121
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5123
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5125
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5127
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5128
# the resulting binary.
5129
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5131
# Set to yes if building a shared library automatically hardcodes DIR into the library
5132
# and all subsequent libraries and executables linked against it.
5133
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5135
# Variables whose values should be saved in libtool wrapper scripts and
5136
# restored at relink time.
5137
variables_saved_for_relink="$variables_saved_for_relink"
5139
# Whether libtool must link a program against all its dependency libraries.
5140
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5142
# Compile-time system search path for libraries
5143
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5145
# Run-time system search path for libraries
5146
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5148
# Fix the shell variable \$srcfile for the compiler.
5149
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5151
# Set to yes if exported symbols are required.
5152
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5154
# The commands to list exported symbols.
5155
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5157
# The commands to extract the exported symbol list from a shared archive.
5158
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5160
# Symbols that should not be listed in the preloaded symbols.
5161
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5163
# Symbols that must always be exported.
5164
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5167
[# ### END LIBTOOL CONFIG],
5168
[# ### END LIBTOOL TAG CONFIG: $tagname])
5175
cat <<\EOF >> "$cfgfile"
5177
# AIX sometimes has problems with the GCC collect2 program. For some
5178
# reason, if we set the COLLECT_NAMES environment variable, the problems
5179
# vanish in a puff of smoke.
5180
if test "X${COLLECT_NAMES+set}" != Xset; then
5182
export COLLECT_NAMES
5188
# We use sed instead of cat because bash on DJGPP gets confused if
5189
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5190
# text mode, it properly converts lines to CR/LF. This bash problem
5191
# is reportedly fixed, but why not run on old versions too?
5192
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5194
mv -f "$cfgfile" "$ofile" || \
5195
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5199
# If there is no Makefile yet, we rely on a make rule to execute
5200
# `config.status --recheck' to rerun these tests and create the
5201
# libtool script then.
5202
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5203
if test -f "$ltmain_in"; then
5204
test -f Makefile && make "$ltmain"
5207
])# AC_LIBTOOL_CONFIG
5210
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5211
# -------------------------------------------
5212
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5213
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5215
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5217
if test "$GCC" = yes; then
5218
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5220
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5221
lt_cv_prog_compiler_rtti_exceptions,
5222
[-fno-rtti -fno-exceptions], [],
5223
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5225
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5228
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5229
# ---------------------------------
5230
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5231
[AC_REQUIRE([AC_CANONICAL_HOST])
5232
AC_REQUIRE([AC_PROG_NM])
5233
AC_REQUIRE([AC_OBJEXT])
5234
# Check for command to grab the raw symbol name followed by C symbol from nm.
5235
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5236
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5238
# These are sane defaults that work on at least a few old systems.
5239
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5241
# Character class describing NM global symbol codes.
5242
symcode='[[BCDEGRST]]'
5244
# Regexp to match symbols that can be accessed directly from C.
5245
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5247
# Transform the above into a raw symbol and a C symbol.
5248
symxfrm='\1 \2\3 \3'
5250
# Transform an extracted symbol line into a proper C declaration
5251
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5253
# Transform an extracted symbol line into symbol name and symbol address
5254
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5256
# Define system-specific variables.
5261
cygwin* | mingw* | pw32*)
5262
symcode='[[ABCDGISTW]]'
5264
hpux*) # Its linker distinguishes data from code symbols
5265
if test "$host_cpu" = ia64; then
5266
symcode='[[ABCDEGRST]]'
5268
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5269
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5272
symcode='[[BCDEGRST]]'
5275
symcode='[[BCDEGQRST]]'
5281
symcode='[[DFNSTU]]'
5285
# Handle CRLF in mingw tool chain
5289
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5293
# If we're using GNU nm, then use its standard symbol codes.
5294
case `$NM -V 2>&1` in
5295
*GNU* | *'with BFD'*)
5296
symcode='[[ABCDGIRSTW]]' ;;
5299
# Try without a prefix undercore, then with it.
5300
for ac_symprfx in "" "_"; do
5302
# Write the raw and C identifiers.
5303
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5305
# Check to see that the pipe works correctly.
5309
cat > conftest.$ac_ext <<EOF
5314
void nm_test_func(){}
5318
int main(){nm_test_var='a';nm_test_func();return(0);}
5321
if AC_TRY_EVAL(ac_compile); then
5322
# Now try to grab the symbols.
5324
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5325
# Try sorting and uniquifying the output.
5326
if sort "$nlist" | uniq > "$nlist"T; then
5327
mv -f "$nlist"T "$nlist"
5332
# Make sure that we snagged all the symbols we need.
5333
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5334
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5335
cat <<EOF > conftest.$ac_ext
5341
# Now generate the symbol file.
5342
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5344
cat <<EOF >> conftest.$ac_ext
5345
#if defined (__STDC__) && __STDC__
5346
# define lt_ptr_t void *
5348
# define lt_ptr_t char *
5352
/* The mapping between symbol names and symbols. */
5357
lt_preloaded_symbols[[]] =
5360
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5361
cat <<\EOF >> conftest.$ac_ext
5369
# Now try linking the two files.
5370
mv conftest.$ac_objext conftstm.$ac_objext
5371
lt_save_LIBS="$LIBS"
5372
lt_save_CFLAGS="$CFLAGS"
5373
LIBS="conftstm.$ac_objext"
5374
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5375
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5378
LIBS="$lt_save_LIBS"
5379
CFLAGS="$lt_save_CFLAGS"
5381
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5384
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5387
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5390
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5391
cat conftest.$ac_ext >&5
5393
rm -f conftest* conftst*
5395
# Do not use the global_symbol_pipe unless it works.
5396
if test "$pipe_works" = yes; then
5399
lt_cv_sys_global_symbol_pipe=
5403
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5404
lt_cv_sys_global_symbol_to_cdecl=
5406
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5407
AC_MSG_RESULT(failed)
5411
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5414
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5415
# ---------------------------------------
5416
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5417
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5418
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5419
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5421
AC_MSG_CHECKING([for $compiler option to produce PIC])
5423
# C++ specific cases for pic, static, wl, etc.
5424
if test "$GXX" = yes; then
5425
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5426
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5430
# All AIX code is PIC.
5431
if test "$host_cpu" = ia64; then
5432
# AIX 5 now supports IA64 processor
5433
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5437
# FIXME: we need at least 68020 code to build shared libraries, but
5438
# adding the `-m68020' flag to GCC prevents building anything better,
5440
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5442
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5443
# PIC is the default for these OSes.
5445
mingw* | os2* | pw32*)
5446
# This hack is so that the source file can tell whether it is being
5447
# built for inclusion in a dll (and should export symbols for example).
5448
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5450
darwin* | rhapsody*)
5451
# PIC is the default on this platform
5452
# Common symbols not allowed in MH_DYLIB files
5453
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5456
# DJGPP does not support shared libraries at all
5457
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5460
if test -d /usr/nec; then
5461
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5465
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5471
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5476
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5482
# All AIX code is PIC.
5483
if test "$host_cpu" = ia64; then
5484
# AIX 5 now supports IA64 processor
5485
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5487
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5491
case $cc_basename in
5493
# Green Hills C++ Compiler
5494
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5499
case $cc_basename in
5501
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5504
# Green Hills C++ Compiler
5505
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5511
freebsd* | kfreebsd*-gnu)
5512
# FreeBSD uses GNU C++
5514
hpux9* | hpux10* | hpux11*)
5515
case $cc_basename in
5517
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5518
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5519
if test "$host_cpu" != ia64; then
5520
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5524
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5525
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5531
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5539
irix5* | irix6* | nonstopux*)
5540
case $cc_basename in
5542
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5543
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5544
# CC pic flag -KPIC is the default.
5551
case $cc_basename in
5554
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5555
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5559
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5560
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5561
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5565
# Make sure the PIC flag is empty. It appears that all Alpha
5566
# Linux and Compaq Tru64 Unix objects are PIC.
5567
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5568
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5579
case $cc_basename in
5581
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5589
osf3* | osf4* | osf5*)
5590
case $cc_basename in
5592
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5595
# Rational C++ 2.4.1
5596
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5599
# Digital/Compaq C++
5600
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5601
# Make sure the PIC flag is empty. It appears that all Alpha
5602
# Linux and Compaq Tru64 Unix objects are PIC.
5603
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5604
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5613
case $cc_basename in
5615
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5622
case $cc_basename in
5624
# Sun C++ 4.2, 5.x and Centerline C++
5625
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5626
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5627
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5630
# Green Hills C++ Compiler
5631
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5638
case $cc_basename in
5641
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5642
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5646
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5653
case $cc_basename in
5655
# NonStop-UX NCC 3.20
5656
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5667
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5673
if test "$GCC" = yes; then
5674
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5675
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5679
# All AIX code is PIC.
5680
if test "$host_cpu" = ia64; then
5681
# AIX 5 now supports IA64 processor
5682
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5687
# FIXME: we need at least 68020 code to build shared libraries, but
5688
# adding the `-m68020' flag to GCC prevents building anything better,
5690
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5693
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5694
# PIC is the default for these OSes.
5697
mingw* | pw32* | os2*)
5698
# This hack is so that the source file can tell whether it is being
5699
# built for inclusion in a dll (and should export symbols for example).
5700
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5703
darwin* | rhapsody*)
5704
# PIC is the default on this platform
5705
# Common symbols not allowed in MH_DYLIB files
5706
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5710
# Just because we use GCC doesn't mean we suddenly get shared libraries
5711
# on systems that don't support them.
5712
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5717
if test -d /usr/nec; then
5718
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5723
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5730
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5736
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5740
# PORTME Check for flag to pass linker flags through the system compiler.
5743
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5744
if test "$host_cpu" = ia64; then
5745
# AIX 5 now supports IA64 processor
5746
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5748
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5752
mingw* | pw32* | os2*)
5753
# This hack is so that the source file can tell whether it is being
5754
# built for inclusion in a dll (and should export symbols for example).
5755
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5758
hpux9* | hpux10* | hpux11*)
5759
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5760
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5767
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5770
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5771
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5774
irix5* | irix6* | nonstopux*)
5775
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5776
# PIC (with -KPIC) is the default.
5777
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5781
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5782
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5788
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5789
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5790
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5793
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5794
# All Alpha code is PIC.
5795
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5800
osf3* | osf4* | osf5*)
5801
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5802
# All OSF/1 code is PIC.
5803
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5807
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5808
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5812
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5813
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5814
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5818
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5819
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5820
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5823
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5824
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5825
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5826
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5830
if test -d /usr/nec ;then
5831
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5832
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5837
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5838
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5842
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5847
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5850
# Check to make sure the PIC flag actually works.
5852
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5853
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5854
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5855
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5856
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5858
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5860
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5861
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5864
# For platforms which do not support PIC, -DPIC is meaningless:
5866
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5869
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5875
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5876
# ------------------------------------
5877
# See if the linker supports building shared libraries.
5878
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5879
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5881
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5884
# If we're using GNU nm, then we don't want the "-C" option.
5885
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5886
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5887
_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'
5889
_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'
5893
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5896
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5899
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5904
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5905
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5906
_LT_AC_TAGVAR(archive_cmds, $1)=
5907
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5908
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5909
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5910
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5911
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5912
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5913
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5914
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5915
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5916
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5917
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5918
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5919
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5920
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5921
_LT_AC_TAGVAR(module_cmds, $1)=
5922
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5923
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5924
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5925
# include_expsyms should be a list of space-separated symbols to be *always*
5926
# included in the symbol list
5927
_LT_AC_TAGVAR(include_expsyms, $1)=
5928
# exclude_expsyms can be an extended regexp of symbols to exclude
5929
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5930
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5931
# as well as any symbol that contains `d'.
5932
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5933
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5934
# platforms (ab)use it in PIC code, but their linkers get confused if
5935
# the symbol is explicitly referenced. Since portable code cannot
5936
# rely on this symbol name, it's probably fine to never include it in
5937
# preloaded symbol tables.
5938
extract_expsyms_cmds=
5941
cygwin* | mingw* | pw32*)
5942
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5943
# When not using gcc, we currently assume that we are using
5944
# Microsoft Visual C++.
5945
if test "$GCC" != yes; then
5954
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5955
if test "$with_gnu_ld" = yes; then
5956
# If archive_cmds runs LD, not CC, wlarc should be empty
5959
# See if GNU ld supports shared libraries.
5961
aix3* | aix4* | aix5*)
5962
# On AIX/PPC, the GNU linker is very broken
5963
if test "$host_cpu" != ia64; then
5964
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5967
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5968
*** to be unable to reliably create shared libraries on AIX.
5969
*** Therefore, libtool is disabling shared libraries support. If you
5970
*** really care for shared libraries, you may want to modify your PATH
5971
*** so that a non-GNU linker is found, and then restart.
5978
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5979
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5980
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5982
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5983
# that the semantics of dynamic libraries on AmigaOS, at least up
5984
# to version 4, is to share data among multiple programs linked
5985
# with the same dynamic library. Since this doesn't match the
5986
# behavior of shared libraries on other platforms, we can't use
5988
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5992
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5993
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5994
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5995
# support --undefined. This deserves some investigation. FIXME
5996
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5998
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6002
cygwin* | mingw* | pw32*)
6003
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6004
# as there is no search path for DLLs.
6005
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6006
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6007
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6008
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6009
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6011
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6012
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6013
# If the export-symbols file already is a .def file (1st line
6014
# is EXPORTS), use it as is; otherwise, prepend...
6015
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6016
cp $export_symbols $output_objdir/$soname.def;
6018
echo EXPORTS > $output_objdir/$soname.def;
6019
cat $export_symbols >> $output_objdir/$soname.def;
6021
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6028
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6029
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6032
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6033
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6038
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6039
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6042
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6043
*** create shared libraries on Solaris systems. Therefore, libtool
6044
*** is disabling shared libraries support. We urge you to upgrade GNU
6045
*** binutils to release 2.9.1 or newer. Another option is to modify
6046
*** your PATH or compiler configuration so that the native linker is
6047
*** used, and then restart.
6050
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6051
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6052
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6054
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6059
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6061
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6062
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6066
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6067
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6068
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6069
supports_anon_versioning=no
6070
case `$LD -v 2>/dev/null` in
6071
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6072
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6073
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6074
*\ 2.11.*) ;; # other 2.11 versions
6075
*) supports_anon_versioning=yes ;;
6077
if test $supports_anon_versioning = yes; then
6078
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6079
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6080
$echo "local: *; };" >> $output_objdir/$libname.ver~
6081
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6083
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6086
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6091
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6092
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6093
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6095
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6100
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6101
runpath_var=LD_RUN_PATH
6102
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6103
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6104
# ancient GNU ld didn't support --whole-archive et. al.
6105
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6106
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6108
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6112
# PORTME fill in a description of your system's linker (not GNU ld)
6115
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6116
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6117
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6118
# Note: this linker hardcodes the directories in LIBPATH if there
6119
# are no directories specified by -L.
6120
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6121
if test "$GCC" = yes && test -z "$link_static_flag"; then
6122
# Neither direct hardcoding nor static linking is supported with a
6124
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6129
if test "$host_cpu" = ia64; then
6130
# On IA64, the linker does run time linking by default, so we don't
6131
# have to do anything special.
6132
aix_use_runtimelinking=no
6133
exp_sym_flag='-Bexport'
6136
# If we're using GNU nm, then we don't want the "-C" option.
6137
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6138
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6139
_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'
6141
_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'
6143
aix_use_runtimelinking=no
6145
# Test if we are trying to use run time linking or normal
6146
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6147
# need to do runtime linking.
6148
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6149
for ld_flag in $LDFLAGS; do
6150
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6151
aix_use_runtimelinking=yes
6157
exp_sym_flag='-bexport'
6158
no_entry_flag='-bnoentry'
6161
# When large executables or shared objects are built, AIX ld can
6162
# have problems creating the table of contents. If linking a library
6163
# or program results in "error TOC overflow" add -mminimal-toc to
6164
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6165
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6167
_LT_AC_TAGVAR(archive_cmds, $1)=''
6168
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6169
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6170
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6172
if test "$GCC" = yes; then
6173
case $host_os in aix4.[012]|aix4.[012].*)
6174
# We only want to do this on AIX 4.2 and lower, the check
6175
# below for broken collect2 doesn't work under 4.3+
6176
collect2name=`${CC} -print-prog-name=collect2`
6177
if test -f "$collect2name" && \
6178
strings "$collect2name" | grep resolve_lib_name >/dev/null
6180
# We have reworked collect2
6181
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6183
# We have old collect2
6184
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6185
# It fails to find uninstalled libraries when the uninstalled
6186
# path is not listed in the libpath. Setting hardcode_minus_L
6187
# to unsupported forces relinking
6188
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6189
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6190
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6193
shared_flag='-shared'
6196
if test "$host_cpu" = ia64; then
6197
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6198
# chokes on -Wl,-G. The following line is correct:
6201
if test "$aix_use_runtimelinking" = yes; then
6202
shared_flag='${wl}-G'
6204
shared_flag='${wl}-bM:SRE'
6209
# It seems that -bexpall does not export symbols beginning with
6210
# underscore (_), so it is better to generate a list of symbols to export.
6211
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6212
if test "$aix_use_runtimelinking" = yes; then
6213
# Warning - without using the other runtime loading flags (-brtl),
6214
# -berok will link without error, but may produce a broken library.
6215
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6216
# Determine the default libpath from the value encoded in an empty executable.
6217
_LT_AC_SYS_LIBPATH_AIX
6218
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6219
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6221
if test "$host_cpu" = ia64; then
6222
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6223
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6224
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6226
# Determine the default libpath from the value encoded in an empty executable.
6227
_LT_AC_SYS_LIBPATH_AIX
6228
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6229
# Warning - without using the other run time loading flags,
6230
# -berok will link without error, but may produce a broken library.
6231
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6232
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6233
# -bexpall does not export symbols beginning with underscore (_)
6234
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6235
# Exported symbols can be pulled into shared objects from archives
6236
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6237
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6238
# This is similar to how AIX traditionally builds it's shared libraries.
6239
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6245
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6246
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6247
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6248
# see comment about different semantics on the GNU ld section
6249
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6253
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6256
cygwin* | mingw* | pw32*)
6257
# When not using gcc, we currently assume that we are using
6258
# Microsoft Visual C++.
6259
# hardcode_libdir_flag_spec is actually meaningless, as there is
6260
# no search path for DLLs.
6261
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6262
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6263
# Tell ltmain to make .lib files, not .a files.
6265
# Tell ltmain to make .dll files, not .so files.
6267
# FIXME: Setting linknames here is a bad hack.
6268
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6269
# The linker will automatically build a .lib file if we build a DLL.
6270
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6271
# FIXME: Should let the user specify the lib program.
6272
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6273
fix_srcfile_path='`cygpath -w "$srcfile"`'
6274
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6277
darwin* | rhapsody*)
6278
if test "$GXX" = yes ; then
6279
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6281
rhapsody* | darwin1.[[012]])
6282
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6285
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6286
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6288
case ${MACOSX_DEPLOYMENT_TARGET} in
6290
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6293
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6299
lt_int_apple_cc_single_mod=no
6300
output_verbose_link_cmd='echo'
6301
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6302
lt_int_apple_cc_single_mod=yes
6304
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6305
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6307
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
6309
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6310
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6311
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6312
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6314
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6316
_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}'
6317
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6318
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6319
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6320
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6321
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6323
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6328
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6329
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6330
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6334
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6337
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6338
# support. Future versions do this automatically, but an explicit c++rt0.o
6339
# does not break anything, and helps significantly (at the cost of a little
6342
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6343
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6344
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6345
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6348
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6350
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6351
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6352
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6353
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6356
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6357
freebsd* | kfreebsd*-gnu)
6358
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6359
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6360
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6361
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6365
if test "$GCC" = yes; then
6366
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6368
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6370
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6371
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6372
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6374
# hardcode_minus_L: Not really in the search PATH,
6375
# but as the default location of the library.
6376
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6377
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6381
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6384
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6387
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6393
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6396
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6400
if test "$with_gnu_ld" = no; then
6403
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6405
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6406
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6407
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6410
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6411
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6412
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6414
# hardcode_minus_L: Not really in the search PATH,
6415
# but as the default location of the library.
6416
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6419
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6420
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6421
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6422
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6424
# hardcode_minus_L: Not really in the search PATH,
6425
# but as the default location of the library.
6426
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6432
irix5* | irix6* | nonstopux*)
6433
if test "$GCC" = yes; then
6434
_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'
6436
_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'
6437
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6439
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6440
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6441
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6445
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6446
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6448
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6450
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6451
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6452
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6456
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6457
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6458
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6459
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6460
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6464
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6465
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6466
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6467
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6468
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6469
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6472
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6473
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6474
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6477
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6478
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6485
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6486
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6487
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6488
_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'
6489
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6493
if test "$GCC" = yes; then
6494
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6495
_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'
6497
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6498
_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'
6500
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6501
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6504
osf4* | osf5*) # as osf3* with the addition of -msym flag
6505
if test "$GCC" = yes; then
6506
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6507
_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'
6508
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6510
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6511
_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'
6512
_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~
6513
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6515
# Both c and cxx compiler support -rpath directly
6516
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6518
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6522
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6523
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6524
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6525
runpath_var=LD_RUN_PATH
6526
hardcode_runpath_var=yes
6530
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6531
if test "$GCC" = yes; then
6532
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6533
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6534
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6536
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6537
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6538
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6540
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6541
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6543
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6544
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6545
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6547
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6551
if test "x$host_vendor" = xsequent; then
6552
# Use $CC to link under sequent, because it throws in some extra .o
6553
# files that make .init and .fini sections work.
6554
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6556
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6558
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6559
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6560
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6561
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6565
case $host_vendor in
6567
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6568
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6571
## LD is ld it makes a PLAMLIB
6572
## CC just makes a GrossModule.
6573
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6574
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6575
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6578
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6579
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6582
runpath_var='LD_RUN_PATH'
6583
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6587
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6588
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6589
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6593
if test -d /usr/nec; then
6594
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6595
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6596
runpath_var=LD_RUN_PATH
6597
hardcode_runpath_var=yes
6598
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6603
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6604
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6605
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6606
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6607
hardcode_runpath_var=yes
6608
runpath_var=LD_RUN_PATH
6611
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6612
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6613
if test "$GCC" = yes; then
6614
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6616
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6618
runpath_var='LD_RUN_PATH'
6619
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6623
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6624
# $CC -shared without GNU ld will not create a library from C++
6625
# object files and a static libstdc++, better avoid it by now
6626
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6627
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6628
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6629
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6630
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6631
runpath_var='LD_RUN_PATH'
6635
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6636
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6637
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6641
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6646
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6647
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6649
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6650
if test "$GCC" = yes; then
6651
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6655
# Do we need to explicitly link libc?
6657
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6659
# Assume -lc should be added
6660
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6662
if test "$enable_shared" = yes && test "$GCC" = yes; then
6663
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6665
# FIXME: we may have to deal with multi-command sequences.
6668
# Test whether the compiler implicitly links with -lc since on some
6669
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6670
# to ld, don't add -lc before -lgcc.
6671
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6673
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6675
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6678
libobjs=conftest.$ac_objext
6680
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6686
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6687
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6688
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6690
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6692
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6694
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6696
cat conftest.err 1>&5
6699
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6705
])# AC_LIBTOOL_PROG_LD_SHLIBS
6708
# _LT_AC_FILE_LTDLL_C
6709
# -------------------
6710
# Be careful that the start marker always follows a newline.
6711
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6712
# /* ltdll.c starts here */
6713
# #define WIN32_LEAN_AND_MEAN
6714
# #include <windows.h>
6715
# #undef WIN32_LEAN_AND_MEAN
6716
# #include <stdio.h>
6718
# #ifndef __CYGWIN__
6719
# # ifdef __CYGWIN32__
6720
# # define __CYGWIN__ __CYGWIN32__
6724
# #ifdef __cplusplus
6727
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6728
# #ifdef __cplusplus
6733
# #include <cygwin/cygwin_dll.h>
6734
# DECLARE_CYGWIN_DLL( DllMain );
6736
# HINSTANCE __hDllInstance_base;
6739
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6741
# __hDllInstance_base = hInst;
6744
# /* ltdll.c ends here */
6745
])# _LT_AC_FILE_LTDLL_C
6748
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6749
# ---------------------------------
6750
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6754
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6755
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6756
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6757
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6758
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6759
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6760
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6762
# This is just to silence aclocal about the macro not being used
6763
ifelse([AC_DISABLE_FAST_INSTALL])
6765
AC_DEFUN([LT_AC_PROG_GCJ],
6766
[AC_CHECK_TOOL(GCJ, gcj, no)
6767
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6771
AC_DEFUN([LT_AC_PROG_RC],
6772
[AC_CHECK_TOOL(RC, windres, no)
6775
# NOTE: This macro has been submitted for inclusion into #
6776
# GNU Autoconf as AC_PROG_SED. When it is available in #
6777
# a released version of Autoconf we should remove this #
6778
# macro and use it instead. #
6781
# Check for a fully-functional sed program, that truncates
6782
# as few characters as possible. Prefer GNU sed if found.
6783
AC_DEFUN([LT_AC_PROG_SED],
6784
[AC_MSG_CHECKING([for a sed that does not truncate output])
6785
AC_CACHE_VAL(lt_cv_path_SED,
6786
[# Loop through the user's path and test for sed and gsed.
6787
# Then use that list of sed's as ones to test for truncation.
6788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792
test -z "$as_dir" && as_dir=.
6793
for lt_ac_prog in sed gsed; do
6794
for ac_exec_ext in '' $ac_executable_extensions; do
6795
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6796
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6803
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6804
# along with /bin/sed that truncates output.
6805
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6806
test ! -f $lt_ac_sed && break
6807
cat /dev/null > conftest.in
6809
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6810
# Check for GNU sed and select it if it is found.
6811
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6812
lt_cv_path_SED=$lt_ac_sed
6816
cat conftest.in conftest.in >conftest.tmp
6817
mv conftest.tmp conftest.in
6818
cp conftest.in conftest.nl
6820
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6821
cmp -s conftest.out conftest.nl || break
6822
# 10000 chars as input seems more than enough
6823
test $lt_ac_count -gt 10 && break
6824
lt_ac_count=`expr $lt_ac_count + 1`
6825
if test $lt_ac_count -gt $lt_ac_max; then
6826
lt_ac_max=$lt_ac_count
6827
lt_cv_path_SED=$lt_ac_sed
6833
AC_MSG_RESULT([$SED])
6837
# Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
6839
# This program is free software; you can redistribute it and/or modify
6840
# it under the terms of the GNU General Public License as published by
6841
# the Free Software Foundation; either version 2, or (at your option)
6842
# any later version.
6844
# This program is distributed in the hope that it will be useful,
6845
# but WITHOUT ANY WARRANTY; without even the implied warranty of
6846
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6847
# GNU General Public License for more details.
6849
# You should have received a copy of the GNU General Public License
6850
# along with this program; if not, write to the Free Software
6851
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
6856
# @defmac AC_PROG_CC_STDC
6857
# @maindex PROG_CC_STDC
6859
# If the C compiler in not in ANSI C mode by default, try to add an option
6860
# to output variable @code{CC} to make it so. This macro tries various
6861
# options that select ANSI C on some system or another. It considers the
6862
# compiler to be in ANSI C mode if it handles function prototypes correctly.
6864
# If you use this macro, you should check after calling it whether the C
6865
# compiler has been set to accept ANSI C; if not, the shell variable
6866
# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
6867
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
6868
# program @code{ansi2knr}, which comes with Ghostscript.
6871
AC_DEFUN([AM_PROG_CC_STDC],
6872
[AC_REQUIRE([AC_PROG_CC])
6873
AC_BEFORE([$0], [AC_C_INLINE])
6874
AC_BEFORE([$0], [AC_C_CONST])
6875
dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
6876
dnl a magic option to avoid problems with ANSI preprocessor commands
6878
dnl FIXME: can't do this because then AC_AIX won't work due to a
6879
dnl circular dependency.
6880
dnl AC_BEFORE([$0], [AC_PROG_CPP])
6881
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
6882
AC_CACHE_VAL(am_cv_prog_cc_stdc,
6883
[am_cv_prog_cc_stdc=no
6885
# Don't try gcc -ansi; that turns off useful extensions and
6886
# breaks some systems' header files.
6887
# AIX -qlanglvl=ansi
6888
# Ultrix and OSF/1 -std1
6889
# HP-UX 10.20 and later -Ae
6890
# HP-UX older versions -Aa -D_HPUX_SOURCE
6891
# SVR4 -Xc -D__EXTENSIONS__
6892
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6894
CC="$ac_save_CC $ac_arg"
6896
[#include <stdarg.h>
6898
#include <sys/types.h>
6899
#include <sys/stat.h>
6900
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6901
struct buf { int x; };
6902
FILE * (*rcsopen) (struct buf *, struct stat *, int);
6903
static char *e (p, i)
6909
static char *f (char * (*g) (char **, int), char **p, ...)
6914
s = g (p, va_arg (v,int));
6918
int test (int i, double x);
6919
struct s1 {int (*f) (int a);};
6920
struct s2 {int (*f) (double a);};
6921
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6925
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6927
[am_cv_prog_cc_stdc="$ac_arg"; break])
6931
if test -z "$am_cv_prog_cc_stdc"; then
6932
AC_MSG_RESULT([none needed])
6934
AC_MSG_RESULT([$am_cv_prog_cc_stdc])
6936
case "x$am_cv_prog_cc_stdc" in
6938
*) CC="$CC $am_cv_prog_cc_stdc" ;;
6942
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
6945
dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
6946
dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
6947
dnl also defines GSTUFF_PKG_ERRORS on error
6948
AC_DEFUN(PKG_CHECK_MODULES, [
6951
if test -z "$PKG_CONFIG"; then
6952
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
6955
if test "$PKG_CONFIG" = "no" ; then
6956
echo "*** The pkg-config script could not be found. Make sure it is"
6957
echo "*** in your path, or set the PKG_CONFIG environment variable"
6958
echo "*** to the full path to pkg-config."
6959
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
6961
PKG_CONFIG_MIN_VERSION=0.9.0
6962
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6963
AC_MSG_CHECKING(for $2)
6965
if $PKG_CONFIG --exists "$2" ; then
6969
AC_MSG_CHECKING($1_CFLAGS)
6970
$1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
6971
AC_MSG_RESULT($$1_CFLAGS)
6973
AC_MSG_CHECKING($1_LIBS)
6974
$1_LIBS=`$PKG_CONFIG --libs "$2"`
6975
AC_MSG_RESULT($$1_LIBS)
6979
## If we have a custom action on failure, don't print errors, but
6980
## do set a variable so people can do so.
6981
$1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6982
ifelse([$4], ,echo $$1_PKG_ERRORS,)
6988
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6989
echo "*** See http://www.freedesktop.org/software/pkgconfig"
6993
if test $succeeded = yes; then
6994
ifelse([$3], , :, [$3])
6996
ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
7002
# Configure paths for GLIB
7003
# Owen Taylor 1997-2001
7005
dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
7006
dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject or
7007
dnl gthread is specified in MODULES, pass to pkg-config
7009
AC_DEFUN([AM_PATH_GLIB_2_0],
7011
dnl Get the cflags and libraries from pkg-config
7013
AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
7014
, enable_glibtest=yes)
7016
pkg_config_args=glib-2.0
7021
pkg_config_args="$pkg_config_args gmodule-2.0"
7024
pkg_config_args="$pkg_config_args gobject-2.0"
7027
pkg_config_args="$pkg_config_args gthread-2.0"
7032
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7036
if test x$PKG_CONFIG != xno ; then
7037
if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
7040
echo *** pkg-config too old; version 0.7 or better required.
7048
min_glib_version=ifelse([$1], ,2.0.0,$1)
7049
AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
7051
if test x$PKG_CONFIG != xno ; then
7052
## don't try to run the test against uninstalled libtool libs
7053
if $PKG_CONFIG --uninstalled $pkg_config_args; then
7054
echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7058
if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7065
if test x"$no_glib" = x ; then
7066
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7067
GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7068
GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7070
GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7071
GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7072
glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7073
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
7074
glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7075
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
7076
glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7077
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
7078
if test "x$enable_glibtest" = "xyes" ; then
7079
ac_save_CFLAGS="$CFLAGS"
7080
ac_save_LIBS="$LIBS"
7081
CFLAGS="$CFLAGS $GLIB_CFLAGS"
7082
LIBS="$GLIB_LIBS $LIBS"
7084
dnl Now check if the installed GLIB is sufficiently new. (Also sanity
7085
dnl checks the results of pkg-config to some extent)
7096
int major, minor, micro;
7099
system ("touch conf.glibtest");
7101
/* HP/UX 9 (%@#!) writes to sscanf strings */
7102
tmp_version = g_strdup("$min_glib_version");
7103
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7104
printf("%s, bad version string\n", "$min_glib_version");
7108
if ((glib_major_version != $glib_config_major_version) ||
7109
(glib_minor_version != $glib_config_minor_version) ||
7110
(glib_micro_version != $glib_config_micro_version))
7112
printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7113
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7114
glib_major_version, glib_minor_version, glib_micro_version);
7115
printf ("*** was found! If pkg-config was correct, then it is best\n");
7116
printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7117
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7118
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7119
printf("*** required on your system.\n");
7120
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7121
printf("*** to point to the correct configuration files\n");
7123
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7124
(glib_minor_version != GLIB_MINOR_VERSION) ||
7125
(glib_micro_version != GLIB_MICRO_VERSION))
7127
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7128
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7129
printf("*** library (version %d.%d.%d)\n",
7130
glib_major_version, glib_minor_version, glib_micro_version);
7134
if ((glib_major_version > major) ||
7135
((glib_major_version == major) && (glib_minor_version > minor)) ||
7136
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7142
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
7143
glib_major_version, glib_minor_version, glib_micro_version);
7144
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
7145
major, minor, micro);
7146
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7148
printf("*** If you have already installed a sufficiently new version, this error\n");
7149
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7150
printf("*** being found. The easiest way to fix this is to remove the old version\n");
7151
printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7152
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7153
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7154
printf("*** so that the correct libraries are found at run-time))\n");
7159
],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7160
CFLAGS="$ac_save_CFLAGS"
7161
LIBS="$ac_save_LIBS"
7164
if test "x$no_glib" = x ; then
7165
AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
7166
ifelse([$2], , :, [$2])
7169
if test "$PKG_CONFIG" = "no" ; then
7170
echo "*** A new enough version of pkg-config was not found."
7171
echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7173
if test -f conf.glibtest ; then
7176
echo "*** Could not run GLIB test program, checking why..."
7177
ac_save_CFLAGS="$CFLAGS"
7178
ac_save_LIBS="$LIBS"
7179
CFLAGS="$CFLAGS $GLIB_CFLAGS"
7180
LIBS="$LIBS $GLIB_LIBS"
7184
], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
7185
[ echo "*** The test program compiled, but did not run. This usually means"
7186
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7187
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7188
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7189
echo "*** to the installed location Also, make sure you have run ldconfig if that"
7190
echo "*** is required on your system"
7192
echo "*** If you have an old version installed, it is best to remove it, although"
7193
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
7194
[ echo "*** The test program failed to compile or link. See the file config.log for the"
7195
echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
7196
CFLAGS="$ac_save_CFLAGS"
7197
LIBS="$ac_save_LIBS"
7205
ifelse([$3], , :, [$3])
7207
AC_SUBST(GLIB_CFLAGS)
7209
AC_SUBST(GLIB_GENMARSHAL)
7210
AC_SUBST(GOBJECT_QUERY)
7211
AC_SUBST(GLIB_MKENUMS)
7215
# Configure paths for GTK+
7216
# Owen Taylor 1997-2001
7218
dnl AM_PATH_GTK_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
7219
dnl Test for GTK+, and define GTK_CFLAGS and GTK_LIBS, if gthread is specified in MODULES,
7220
dnl pass to pkg-config
7222
AC_DEFUN([AM_PATH_GTK_2_0],
7224
dnl Get the cflags and libraries from pkg-config
7226
AC_ARG_ENABLE(gtktest, [ --disable-gtktest do not try to compile and run a test GTK+ program],
7227
, enable_gtktest=yes)
7229
pkg_config_args=gtk+-2.0
7234
pkg_config_args="$pkg_config_args gthread-2.0"
7241
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
7243
if test x$PKG_CONFIG != xno ; then
7244
if pkg-config --atleast-pkgconfig-version 0.7 ; then
7247
echo "*** pkg-config too old; version 0.7 or better required."
7255
min_gtk_version=ifelse([$1], ,2.0.0,$1)
7256
AC_MSG_CHECKING(for GTK+ - version >= $min_gtk_version)
7258
if test x$PKG_CONFIG != xno ; then
7259
## don't try to run the test against uninstalled libtool libs
7260
if $PKG_CONFIG --uninstalled $pkg_config_args; then
7261
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7265
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7272
if test x"$no_gtk" = x ; then
7273
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7274
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7275
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7276
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
7277
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7278
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
7279
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7280
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
7281
if test "x$enable_gtktest" = "xyes" ; then
7282
ac_save_CFLAGS="$CFLAGS"
7283
ac_save_LIBS="$LIBS"
7284
CFLAGS="$CFLAGS $GTK_CFLAGS"
7285
LIBS="$GTK_LIBS $LIBS"
7287
dnl Now check if the installed GTK+ is sufficiently new. (Also sanity
7288
dnl checks the results of pkg-config to some extent)
7292
#include <gtk/gtk.h>
7299
int major, minor, micro;
7302
system ("touch conf.gtktest");
7304
/* HP/UX 9 (%@#!) writes to sscanf strings */
7305
tmp_version = g_strdup("$min_gtk_version");
7306
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7307
printf("%s, bad version string\n", "$min_gtk_version");
7311
if ((gtk_major_version != $gtk_config_major_version) ||
7312
(gtk_minor_version != $gtk_config_minor_version) ||
7313
(gtk_micro_version != $gtk_config_micro_version))
7315
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7316
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7317
gtk_major_version, gtk_minor_version, gtk_micro_version);
7318
printf ("*** was found! If pkg-config was correct, then it is best\n");
7319
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7320
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7321
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7322
printf("*** required on your system.\n");
7323
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7324
printf("*** to point to the correct configuration files\n");
7326
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7327
(gtk_minor_version != GTK_MINOR_VERSION) ||
7328
(gtk_micro_version != GTK_MICRO_VERSION))
7330
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7331
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7332
printf("*** library (version %d.%d.%d)\n",
7333
gtk_major_version, gtk_minor_version, gtk_micro_version);
7337
if ((gtk_major_version > major) ||
7338
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7339
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7345
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7346
gtk_major_version, gtk_minor_version, gtk_micro_version);
7347
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7348
major, minor, micro);
7349
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7351
printf("*** If you have already installed a sufficiently new version, this error\n");
7352
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7353
printf("*** being found. The easiest way to fix this is to remove the old version\n");
7354
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7355
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7356
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7357
printf("*** so that the correct libraries are found at run-time))\n");
7362
],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
7363
CFLAGS="$ac_save_CFLAGS"
7364
LIBS="$ac_save_LIBS"
7367
if test "x$no_gtk" = x ; then
7368
AC_MSG_RESULT(yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version))
7369
ifelse([$2], , :, [$2])
7372
if test "$PKG_CONFIG" = "no" ; then
7373
echo "*** A new enough version of pkg-config was not found."
7374
echo "*** See http://pkgconfig.sourceforge.net"
7376
if test -f conf.gtktest ; then
7379
echo "*** Could not run GTK+ test program, checking why..."
7380
ac_save_CFLAGS="$CFLAGS"
7381
ac_save_LIBS="$LIBS"
7382
CFLAGS="$CFLAGS $GTK_CFLAGS"
7383
LIBS="$LIBS $GTK_LIBS"
7385
#include <gtk/gtk.h>
7387
], [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
7388
[ echo "*** The test program compiled, but did not run. This usually means"
7389
echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7390
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7391
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7392
echo "*** to the installed location Also, make sure you have run ldconfig if that"
7393
echo "*** is required on your system"
7395
echo "*** If you have an old version installed, it is best to remove it, although"
7396
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
7397
[ echo "*** The test program failed to compile or link. See the file config.log for the"
7398
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."])
7399
CFLAGS="$ac_save_CFLAGS"
7400
LIBS="$ac_save_LIBS"
7405
ifelse([$3], , :, [$3])
7407
AC_SUBST(GTK_CFLAGS)