263
# Do all the work for Automake. This macro actually does too much --
264
# some checks are only needed if your package does certain things.
265
# But this isn't really a big deal.
270
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
264
# Do all the work for Automake. -*- Autoconf -*-
266
# This macro actually does too much some checks are only needed if
267
# your package does certain things. But this isn't really a big deal.
269
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
270
# Free Software Foundation, Inc.
272
# This program is free software; you can redistribute it and/or modify
273
# it under the terms of the GNU General Public License as published by
274
# the Free Software Foundation; either version 2, or (at your option)
277
# This program is distributed in the hope that it will be useful,
278
# but WITHOUT ANY WARRANTY; without even the implied warranty of
279
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
280
# GNU General Public License for more details.
282
# You should have received a copy of the GNU General Public License
283
# along with this program; if not, write to the Free Software
284
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
291
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
292
# the ones we care about.
293
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
295
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
296
# AM_INIT_AUTOMAKE([OPTIONS])
297
# -----------------------------------------------
298
# The call with PACKAGE and VERSION arguments is the old style
299
# call (pre autoconf-2.50), which is being phased out. PACKAGE
300
# and VERSION should now be passed to AC_INIT and removed from
301
# the call to AM_INIT_AUTOMAKE.
302
# We support both call styles for the transition. After
303
# the next Automake release, Autoconf can make the AC_INIT
304
# arguments mandatory, and then we can depend on a new Autoconf
305
# release and drop the old call support.
272
306
AC_DEFUN([AM_INIT_AUTOMAKE],
273
[AC_REQUIRE([AC_PROG_INSTALL])
278
dnl test to see if srcdir already configured
279
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
307
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
308
AC_REQUIRE([AC_PROG_INSTALL])dnl
309
# test to see if srcdir already configured
310
if test "`cd $srcdir && pwd`" != "`pwd`" &&
311
test -f $srcdir/config.status; then
280
312
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
283
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
284
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
285
AC_REQUIRE([AM_SANITY_CHECK])
286
AC_REQUIRE([AC_ARG_PROGRAM])
287
dnl FIXME This is truly gross.
288
missing_dir=`cd $ac_aux_dir && pwd`
289
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
290
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
291
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
292
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
293
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
294
AC_REQUIRE([AC_PROG_MAKE_SET])])
315
# test whether we have cygpath
316
if test -z "$CYGPATH_W"; then
317
if (cygpath --version) >/dev/null 2>/dev/null; then
318
CYGPATH_W='cygpath -w'
323
AC_SUBST([CYGPATH_W])
325
# Define the identity of the package.
326
dnl Distinguish between old-style and new-style calls.
328
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
329
AC_SUBST([PACKAGE], [$1])dnl
330
AC_SUBST([VERSION], [$2])],
331
[_AM_SET_OPTIONS([$1])dnl
332
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
333
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
335
_AM_IF_OPTION([no-define],,
336
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
337
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
339
# Some tools Automake needs.
340
AC_REQUIRE([AM_SANITY_CHECK])dnl
341
AC_REQUIRE([AC_ARG_PROGRAM])dnl
342
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
343
AM_MISSING_PROG(AUTOCONF, autoconf)
344
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
345
AM_MISSING_PROG(AUTOHEADER, autoheader)
346
AM_MISSING_PROG(MAKEINFO, makeinfo)
347
AM_MISSING_PROG(AMTAR, tar)
349
AM_PROG_INSTALL_STRIP
350
# We need awk for the "check" target. The system "awk" is bad on
352
AC_REQUIRE([AC_PROG_AWK])dnl
353
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
354
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
356
_AM_IF_OPTION([no-dependencies],,
357
[AC_PROVIDE_IFELSE([AC_PROG_CC],
358
[_AM_DEPENDENCIES(CC)],
359
[define([AC_PROG_CC],
360
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
361
AC_PROVIDE_IFELSE([AC_PROG_CXX],
362
[_AM_DEPENDENCIES(CXX)],
363
[define([AC_PROG_CXX],
364
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
369
# When config.status generates a header, we must update the stamp-h file.
370
# This file resides in the same directory as the config header
371
# that is generated. The stamp files are numbered to have different names.
373
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
374
# loop where config.status creates the headers, so we can generate
375
# our stamp files there.
376
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
377
[# Compute $1's index in $config_headers.
379
for _am_header in $config_headers :; do
384
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
387
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
389
# Copyright 2002 Free Software Foundation, Inc.
391
# This program is free software; you can redistribute it and/or modify
392
# it under the terms of the GNU General Public License as published by
393
# the Free Software Foundation; either version 2, or (at your option)
396
# This program is distributed in the hope that it will be useful,
397
# but WITHOUT ANY WARRANTY; without even the implied warranty of
398
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
399
# GNU General Public License for more details.
401
# You should have received a copy of the GNU General Public License
402
# along with this program; if not, write to the Free Software
403
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
405
# AM_AUTOMAKE_VERSION(VERSION)
406
# ----------------------------
407
# Automake X.Y traces this macro to ensure aclocal.m4 has been
408
# generated from the m4 files accompanying Automake X.Y.
409
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
411
# AM_SET_CURRENT_AUTOMAKE_VERSION
412
# -------------------------------
413
# Call AM_AUTOMAKE_VERSION so it can be traced.
414
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
415
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
416
[AM_AUTOMAKE_VERSION([1.7.9])])
418
# Helper functions for option handling. -*- Autoconf -*-
420
# Copyright 2001, 2002 Free Software Foundation, Inc.
422
# This program is free software; you can redistribute it and/or modify
423
# it under the terms of the GNU General Public License as published by
424
# the Free Software Foundation; either version 2, or (at your option)
427
# This program is distributed in the hope that it will be useful,
428
# but WITHOUT ANY WARRANTY; without even the implied warranty of
429
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
430
# GNU General Public License for more details.
432
# You should have received a copy of the GNU General Public License
433
# along with this program; if not, write to the Free Software
434
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
439
# _AM_MANGLE_OPTION(NAME)
440
# -----------------------
441
AC_DEFUN([_AM_MANGLE_OPTION],
442
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
444
# _AM_SET_OPTION(NAME)
445
# ------------------------------
446
# Set option NAME. Presently that only means defining a flag for this option.
447
AC_DEFUN([_AM_SET_OPTION],
448
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
450
# _AM_SET_OPTIONS(OPTIONS)
451
# ----------------------------------
452
# OPTIONS is a space-separated list of Automake options.
453
AC_DEFUN([_AM_SET_OPTIONS],
454
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
456
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
457
# -------------------------------------------
458
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
459
AC_DEFUN([_AM_IF_OPTION],
460
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
297
463
# Check to make sure that the build environment is sane.
466
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
468
# This program is free software; you can redistribute it and/or modify
469
# it under the terms of the GNU General Public License as published by
470
# the Free Software Foundation; either version 2, or (at your option)
473
# This program is distributed in the hope that it will be useful,
474
# but WITHOUT ANY WARRANTY; without even the implied warranty of
475
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
476
# GNU General Public License for more details.
478
# You should have received a copy of the GNU General Public License
479
# along with this program; if not, write to the Free Software
480
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
300
487
AC_DEFUN([AM_SANITY_CHECK],
301
488
[AC_MSG_CHECKING([whether build environment is sane])
304
echo timestamp > conftestfile
491
echo timestamp > conftest.file
305
492
# Do `set' in a subshell so we don't clobber the current shell's
306
493
# arguments. Must try -L first in case configure is actually a
307
494
# symlink; some systems play weird games with the mod time of symlinks
308
495
# (eg FreeBSD returns the mod time of the symlink's containing
311
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
312
if test "[$]*" = "X"; then
498
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
499
if test "$[*]" = "X"; then
313
500
# -L didn't work.
314
set X `ls -t $srcdir/configure conftestfile`
501
set X `ls -t $srcdir/configure conftest.file`
316
if test "[$]*" != "X $srcdir/configure conftestfile" \
317
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
504
if test "$[*]" != "X $srcdir/configure conftest.file" \
505
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
319
507
# If neither matched, then we have a broken ls. This can happen
320
508
# if, for instance, CONFIG_SHELL is bash and it inherits a
333
521
AC_MSG_ERROR([newly created file is older than distributed files!
334
522
Check your system clock])
337
524
AC_MSG_RESULT(yes)])
339
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
340
dnl The program must properly implement --version.
529
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
531
# This program is free software; you can redistribute it and/or modify
532
# it under the terms of the GNU General Public License as published by
533
# the Free Software Foundation; either version 2, or (at your option)
536
# This program is distributed in the hope that it will be useful,
537
# but WITHOUT ANY WARRANTY; without even the implied warranty of
538
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
539
# GNU General Public License for more details.
541
# You should have received a copy of the GNU General Public License
542
# along with this program; if not, write to the Free Software
543
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
548
# AM_MISSING_PROG(NAME, PROGRAM)
549
# ------------------------------
341
550
AC_DEFUN([AM_MISSING_PROG],
342
[AC_MSG_CHECKING(for working $2)
343
# Run test in a subshell; some versions of sh will print an error if
344
# an executable is not found, even if stderr is redirected.
345
# Redirect stdin to placate older versions of autoconf. Sigh.
346
if ($2 --version) < /dev/null > /dev/null 2>&1; then
351
AC_MSG_RESULT(missing)
551
[AC_REQUIRE([AM_MISSING_HAS_RUN])
552
$1=${$1-"${am_missing_run}$2"}
355
# isc-posix.m4 serial 1 (gettext-0.10.40)
558
# Define MISSING if not defined so far and test if it supports --run.
559
# If it does, set am_missing_run to use it, otherwise, to nothing.
560
AC_DEFUN([AM_MISSING_HAS_RUN],
561
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
562
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
563
# Use eval to expand $SHELL
564
if eval "$MISSING --run true"; then
565
am_missing_run="$MISSING --run "
568
AC_MSG_WARN([`missing' script is too old or missing])
574
# Copyright 2001 Free Software Foundation, Inc.
576
# This program is free software; you can redistribute it and/or modify
577
# it under the terms of the GNU General Public License as published by
578
# the Free Software Foundation; either version 2, or (at your option)
581
# This program is distributed in the hope that it will be useful,
582
# but WITHOUT ANY WARRANTY; without even the implied warranty of
583
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
584
# GNU General Public License for more details.
586
# You should have received a copy of the GNU General Public License
587
# along with this program; if not, write to the Free Software
588
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
591
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
592
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
593
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
595
# Of course, Automake must honor this variable whenever it calls a
596
# tool from the auxiliary directory. The problem is that $srcdir (and
597
# therefore $ac_aux_dir as well) can be either absolute or relative,
598
# depending on how configure is run. This is pretty annoying, since
599
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
600
# source directory, any form will work fine, but in subdirectories a
601
# relative path needs to be adjusted first.
603
# $ac_aux_dir/missing
604
# fails when called from a subdirectory if $ac_aux_dir is relative
605
# $top_srcdir/$ac_aux_dir/missing
606
# fails if $ac_aux_dir is absolute,
607
# fails when called from a subdirectory in a VPATH build with
608
# a relative $ac_aux_dir
610
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
611
# are both prefixed by $srcdir. In an in-source build this is usually
612
# harmless because $srcdir is `.', but things will broke when you
613
# start a VPATH build or use an absolute $srcdir.
615
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
616
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
617
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
618
# and then we would define $MISSING as
619
# MISSING="\${SHELL} $am_aux_dir/missing"
620
# This will work as long as MISSING is not called from configure, because
621
# unfortunately $(top_srcdir) has no meaning in configure.
622
# However there are other variables, like CC, which are often used in
623
# configure, and could therefore not use this "fixed" $ac_aux_dir.
625
# Another solution, used here, is to always expand $ac_aux_dir to an
626
# absolute PATH. The drawback is that using absolute paths prevent a
627
# configured tree to be moved without reconfiguration.
629
# Rely on autoconf to set up CDPATH properly.
632
AC_DEFUN([AM_AUX_DIR_EXPAND], [
633
# expand $ac_aux_dir to an absolute path
634
am_aux_dir=`cd $ac_aux_dir && pwd`
639
# Define $install_sh.
641
# Copyright 2001 Free Software Foundation, Inc.
643
# This program is free software; you can redistribute it and/or modify
644
# it under the terms of the GNU General Public License as published by
645
# the Free Software Foundation; either version 2, or (at your option)
648
# This program is distributed in the hope that it will be useful,
649
# but WITHOUT ANY WARRANTY; without even the implied warranty of
650
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
651
# GNU General Public License for more details.
653
# You should have received a copy of the GNU General Public License
654
# along with this program; if not, write to the Free Software
655
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
658
AC_DEFUN([AM_PROG_INSTALL_SH],
659
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
660
install_sh=${install_sh-"$am_aux_dir/install-sh"}
661
AC_SUBST(install_sh)])
663
# AM_PROG_INSTALL_STRIP
665
# Copyright 2001 Free Software Foundation, Inc.
667
# This program is free software; you can redistribute it and/or modify
668
# it under the terms of the GNU General Public License as published by
669
# the Free Software Foundation; either version 2, or (at your option)
672
# This program is distributed in the hope that it will be useful,
673
# but WITHOUT ANY WARRANTY; without even the implied warranty of
674
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
675
# GNU General Public License for more details.
677
# You should have received a copy of the GNU General Public License
678
# along with this program; if not, write to the Free Software
679
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
682
# One issue with vendor `install' (even GNU) is that you can't
683
# specify the program used to strip binaries. This is especially
684
# annoying in cross-compiling environments, where the build's strip
685
# is unlikely to handle the host's binaries.
686
# Fortunately install-sh will honor a STRIPPROG variable, so we
687
# always use install-sh in `make install-strip', and initialize
688
# STRIPPROG with the value of the STRIP variable (set by the user).
689
AC_DEFUN([AM_PROG_INSTALL_STRIP],
690
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
691
# Installed binaries are usually stripped using `strip' when the user
692
# run `make install-strip'. However `strip' might not be the right
693
# tool to use in cross-compilation environments, therefore Automake
694
# will honor the `STRIP' environment variable to overrule this program.
695
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
696
if test "$cross_compiling" != no; then
697
AC_CHECK_TOOL([STRIP], [strip], :)
699
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
700
AC_SUBST([INSTALL_STRIP_PROGRAM])])
703
# Copyright (C) 2003 Free Software Foundation, Inc.
705
# This program is free software; you can redistribute it and/or modify
706
# it under the terms of the GNU General Public License as published by
707
# the Free Software Foundation; either version 2, or (at your option)
710
# This program is distributed in the hope that it will be useful,
711
# but WITHOUT ANY WARRANTY; without even the implied warranty of
712
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
713
# GNU General Public License for more details.
715
# You should have received a copy of the GNU General Public License
716
# along with this program; if not, write to the Free Software
717
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
722
# Check whether the underlying file-system supports filenames
723
# with a leading dot. For instance MS-DOS doesn't.
724
AC_DEFUN([AM_SET_LEADING_DOT],
725
[rm -rf .tst 2>/dev/null
726
mkdir .tst 2>/dev/null
727
if test -d .tst; then
732
rmdir .tst 2>/dev/null
733
AC_SUBST([am__leading_dot])])
735
# serial 5 -*- Autoconf -*-
737
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
739
# This program is free software; you can redistribute it and/or modify
740
# it under the terms of the GNU General Public License as published by
741
# the Free Software Foundation; either version 2, or (at your option)
744
# This program is distributed in the hope that it will be useful,
745
# but WITHOUT ANY WARRANTY; without even the implied warranty of
746
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
747
# GNU General Public License for more details.
749
# You should have received a copy of the GNU General Public License
750
# along with this program; if not, write to the Free Software
751
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
755
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
756
# written in clear, in which case automake, when reading aclocal.m4,
757
# will think it sees a *use*, and therefore will trigger all it's
758
# C support machinery. Also note that it means that autoscan, seeing
759
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
763
# _AM_DEPENDENCIES(NAME)
764
# ----------------------
765
# See how the compiler implements dependency checking.
766
# NAME is "CC", "CXX", "GCJ", or "OBJC".
767
# We try a few techniques and use that to set a single cache variable.
769
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
770
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
771
# dependency, and given that the user is not expected to run this macro,
772
# just rely on AC_PROG_CC.
773
AC_DEFUN([_AM_DEPENDENCIES],
774
[AC_REQUIRE([AM_SET_DEPDIR])dnl
775
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
776
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
777
AC_REQUIRE([AM_DEP_TRACK])dnl
779
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
780
[$1], CXX, [depcc="$CXX" am_compiler_list=],
781
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
782
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
783
[depcc="$$1" am_compiler_list=])
785
AC_CACHE_CHECK([dependency style of $depcc],
786
[am_cv_$1_dependencies_compiler_type],
787
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
788
# We make a subdir and do the tests there. Otherwise we can end up
789
# making bogus files that we don't know about and never remove. For
790
# instance it was reported that on HP-UX the gcc test will end up
791
# making a dummy file named `D' -- because `-MD' means `put the output
794
# Copy depcomp to subdir because otherwise we won't find it if we're
795
# using a relative directory.
796
cp "$am_depcomp" conftest.dir
798
# We will build objects and dependencies in a subdirectory because
799
# it helps to detect inapplicable dependency modes. For instance
800
# both Tru64's cc and ICC support -MD to output dependencies as a
801
# side effect of compilation, but ICC will put the dependencies in
802
# the current directory while Tru64 will put them in the object
806
am_cv_$1_dependencies_compiler_type=none
807
if test "$am_compiler_list" = ""; then
808
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
810
for depmode in $am_compiler_list; do
811
# Setup a source with many dependencies, because some compilers
812
# like to wrap large dependency lists on column 80 (with \), and
813
# we should not choose a depcomp mode which is confused by this.
815
# We need to recreate these files for each test, as the compiler may
816
# overwrite some of them when testing with obscure command lines.
817
# This happens at least with the AIX C compiler.
819
for i in 1 2 3 4 5 6; do
820
echo '#include "conftst'$i'.h"' >> sub/conftest.c
823
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
827
# after this tag, mechanisms are not by side-effect, so they'll
828
# only be used when explicitly requested
829
if test "x$enable_dependency_tracking" = xyes; then
837
# We check with `-c' and `-o' for the sake of the "dashmstdout"
838
# mode. It turns out that the SunPro C++ compiler does not properly
839
# handle `-M -o', and we need to detect this.
840
if depmode=$depmode \
841
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
842
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
843
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
844
>/dev/null 2>conftest.err &&
845
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
846
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
847
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
848
# icc doesn't choke on unknown options, it will just issue warnings
849
# (even with -Werror). So we grep stderr for any message
850
# that says an option was ignored.
851
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
852
am_cv_$1_dependencies_compiler_type=$depmode
861
am_cv_$1_dependencies_compiler_type=none
864
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
865
AM_CONDITIONAL([am__fastdep$1], [
866
test "x$enable_dependency_tracking" != xno \
867
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
873
# Choose a directory name for dependency files.
874
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
875
AC_DEFUN([AM_SET_DEPDIR],
876
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
877
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
883
AC_DEFUN([AM_DEP_TRACK],
884
[AC_ARG_ENABLE(dependency-tracking,
885
[ --disable-dependency-tracking Speeds up one-time builds
886
--enable-dependency-tracking Do not reject slow dependency extractors])
887
if test "x$enable_dependency_tracking" != xno; then
888
am_depcomp="$ac_aux_dir/depcomp"
891
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
892
AC_SUBST([AMDEPBACKSLASH])
895
# Generate code to set up dependency tracking. -*- Autoconf -*-
897
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
899
# This program is free software; you can redistribute it and/or modify
900
# it under the terms of the GNU General Public License as published by
901
# the Free Software Foundation; either version 2, or (at your option)
904
# This program is distributed in the hope that it will be useful,
905
# but WITHOUT ANY WARRANTY; without even the implied warranty of
906
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
907
# GNU General Public License for more details.
909
# You should have received a copy of the GNU General Public License
910
# along with this program; if not, write to the Free Software
911
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
916
# _AM_OUTPUT_DEPENDENCY_COMMANDS
917
# ------------------------------
918
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
919
[for mf in $CONFIG_FILES; do
920
# Strip MF so we end up with the name of the file.
921
mf=`echo "$mf" | sed -e 's/:.*$//'`
922
# Check whether this is an Automake generated Makefile or not.
923
# We used to match only the files named `Makefile.in', but
924
# some people rename them; so instead we look at the file content.
925
# Grep'ing the first line is not enough: some people post-process
926
# each Makefile.in and add a new line on top of each file to say so.
927
# So let's grep whole file.
928
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
929
dirpart=`AS_DIRNAME("$mf")`
933
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
934
# Extract the definition of DEP_FILES from the Makefile without
936
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
937
test -z "$DEPDIR" && continue
938
# When using ansi2knr, U may be empty or an underscore; expand it
939
U=`sed -n -e '/^U = / s///p' < "$mf"`
940
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
941
# We invoke sed twice because it is the simplest approach to
942
# changing $(DEPDIR) to its actual value in the expansion.
943
for file in `sed -n -e '
944
/^DEP_FILES = .*\\\\$/ {
953
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
954
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
955
# Make sure the directory exists.
956
test -f "$dirpart/$file" && continue
957
fdir=`AS_DIRNAME(["$file"])`
958
AS_MKDIR_P([$dirpart/$fdir])
959
# echo "creating $dirpart/$file"
960
echo '# dummy' > "$dirpart/$file"
963
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
966
# AM_OUTPUT_DEPENDENCY_COMMANDS
967
# -----------------------------
968
# This macro should only be invoked once -- use via AC_REQUIRE.
970
# This code is only required when automatic dependency tracking
971
# is enabled. FIXME. This creates each `.P' file that we will
972
# need in order to bootstrap the dependency handling code.
973
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
974
[AC_CONFIG_COMMANDS([depfiles],
975
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
976
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
979
# Check to see how 'make' treats includes. -*- Autoconf -*-
981
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
983
# This program is free software; you can redistribute it and/or modify
984
# it under the terms of the GNU General Public License as published by
985
# the Free Software Foundation; either version 2, or (at your option)
988
# This program is distributed in the hope that it will be useful,
989
# but WITHOUT ANY WARRANTY; without even the implied warranty of
990
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
991
# GNU General Public License for more details.
993
# You should have received a copy of the GNU General Public License
994
# along with this program; if not, write to the Free Software
995
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1002
# Check to see how make treats includes.
1003
AC_DEFUN([AM_MAKE_INCLUDE],
1004
[am_make=${MAKE-make}
1005
cat > confinc << 'END'
1010
# If we don't find an include directive, just comment out the code.
1011
AC_MSG_CHECKING([for style of include used by $am_make])
1015
# First try GNU make style include.
1016
echo "include confinc" > confmf
1017
# We grep out `Entering directory' and `Leaving directory'
1018
# messages which can occur if `w' ends up in MAKEFLAGS.
1019
# In particular we don't look at `^make:' because GNU make might
1020
# be invoked under some other name (usually "gmake"), in which
1021
# case it prints its new name instead of `make'.
1022
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1027
# Now try BSD make style include.
1028
if test "$am__include" = "#"; then
1029
echo '.include "confinc"' > confmf
1030
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1031
am__include=.include
1036
AC_SUBST([am__include])
1037
AC_SUBST([am__quote])
1038
AC_MSG_RESULT([$_am_result])
1039
rm -f confinc confmf
1042
# AM_CONDITIONAL -*- Autoconf -*-
1044
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1046
# This program is free software; you can redistribute it and/or modify
1047
# it under the terms of the GNU General Public License as published by
1048
# the Free Software Foundation; either version 2, or (at your option)
1049
# any later version.
1051
# This program is distributed in the hope that it will be useful,
1052
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1053
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1054
# GNU General Public License for more details.
1056
# You should have received a copy of the GNU General Public License
1057
# along with this program; if not, write to the Free Software
1058
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1065
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1066
# -------------------------------------
1067
# Define a conditional.
1068
AC_DEFUN([AM_CONDITIONAL],
1069
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1070
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1072
AC_SUBST([$1_FALSE])
1080
AC_CONFIG_COMMANDS_PRE(
1081
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1082
AC_MSG_ERROR([conditional "$1" was never defined.
1083
Usually this means the macro was only invoked conditionally.])
1086
# isc-posix.m4 serial 2 (gettext-0.11.2)
356
1087
dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
357
1088
dnl This file is free software, distributed under the terms of the GNU
358
1089
dnl General Public License. As a special exception to the GNU General
1075
2005
])# AC_LIBTOOL_DLOPEN_SELF
1077
AC_DEFUN([_LT_AC_LTCONFIG_HACK],
1078
[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
1079
# Sed substitution that helps us do robust quoting. It backslashifies
1080
# metacharacters that are still active within double-quoted strings.
1081
Xsed='sed -e s/^X//'
1082
sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
1084
# Same as above, but do not quote variable references.
1085
double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
1087
# Sed substitution to delay expansion of an escaped shell variable in a
1088
# double_quote_subst'ed string.
1089
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1095
default_ofile=libtool
1096
can_build_shared=yes
1098
# All known linkers require a `.a' archive for static linking (except M$VC,
1099
# which needs '.lib').
1101
ltmain="$ac_aux_dir/ltmain.sh"
1102
ofile="$default_ofile"
1103
with_gnu_ld="$lt_cv_prog_gnu_ld"
1104
need_locks="$enable_libtool_lock"
1107
old_CFLAGS="$CFLAGS"
1109
# Set sane defaults for various variables
1110
test -z "$AR" && AR=ar
1111
test -z "$AR_FLAGS" && AR_FLAGS=cru
1112
test -z "$AS" && AS=as
1113
test -z "$CC" && CC=cc
1114
test -z "$DLLTOOL" && DLLTOOL=dlltool
1115
test -z "$LD" && LD=ld
1116
test -z "$LN_S" && LN_S="ln -s"
1117
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1118
test -z "$NM" && NM=nm
1119
test -z "$OBJDUMP" && OBJDUMP=objdump
1120
test -z "$RANLIB" && RANLIB=:
1121
test -z "$STRIP" && STRIP=:
1122
test -z "$ac_objext" && ac_objext=o
1124
if test x"$host" != x"$build"; then
1125
ac_tool_prefix=${host_alias}-
1130
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
1133
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
1138
# AIX sometimes has problems with the GCC collect2 program. For some
1139
# reason, if we set the COLLECT_NAMES environment variable, the problems
1140
# vanish in a puff of smoke.
1141
if test "X${COLLECT_NAMES+set}" != Xset; then
1143
export COLLECT_NAMES
1148
# Determine commands to create old-style static archives.
1149
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1150
old_postinstall_cmds='chmod 644 $oldlib'
1151
old_postuninstall_cmds=
1153
if test -n "$RANLIB"; then
1156
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1159
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1162
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1165
# Allow CC to be a program name with arguments.
1169
AC_MSG_CHECKING([for objdir])
1170
rm -f .libs 2>/dev/null
1171
mkdir .libs 2>/dev/null
1172
if test -d .libs; then
1175
# MS-DOS does not allow filenames that begin with a dot.
1178
rmdir .libs 2>/dev/null
1179
AC_MSG_RESULT($objdir)
1183
[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
1184
pic_mode="$withval", pic_mode=default)
1185
test -z "$pic_mode" && pic_mode=default
1187
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
1188
# in isolation, and that seeing it set (from the cache) indicates that
1189
# the associated values are set (in the cache) correctly too.
1190
AC_MSG_CHECKING([for $compiler option to produce PIC])
1191
AC_CACHE_VAL(lt_cv_prog_cc_pic,
1192
[ lt_cv_prog_cc_pic=
1193
lt_cv_prog_cc_shlib=
1195
lt_cv_prog_cc_static=
1196
lt_cv_prog_cc_no_builtin=
1197
lt_cv_prog_cc_can_build_shared=$can_build_shared
1199
if test "$GCC" = yes; then
1200
lt_cv_prog_cc_wl='-Wl,'
1201
lt_cv_prog_cc_static='-static'
1205
# Below there is a dirty hack to force normal static linking with -ldl
1206
# The problem is because libdl dynamically linked with both libc and
1207
# libC (AIX C++ library), which obviously doesn't included in libraries
1208
# list by gcc. This cause undefined symbols with -static flags.
1209
# This hack allows C programs to be linked with "-static -ldl", but
1210
# not sure about C++ programs.
1211
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
1214
# FIXME: we need at least 68020 code to build shared libraries, but
1215
# adding the `-m68020' flag to GCC prevents building anything better,
1217
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
1219
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
1220
# PIC is the default for these OSes.
1222
darwin* | rhapsody*)
1223
# PIC is the default on this platform
1224
# Common symbols not allowed in MH_DYLIB files
1225
lt_cv_prog_cc_pic='-fno-common'
1227
cygwin* | mingw* | pw32* | os2*)
1228
# This hack is so that the source file can tell whether it is being
1229
# built for inclusion in a dll (and should export symbols for example).
1230
lt_cv_prog_cc_pic='-DDLL_EXPORT'
1233
if test -d /usr/nec; then
1234
lt_cv_prog_cc_pic=-Kconform_pic
1238
lt_cv_prog_cc_pic='-fPIC'
1242
# PORTME Check for PIC flags for the system compiler.
1244
aix3* | aix4* | aix5*)
1245
lt_cv_prog_cc_wl='-Wl,'
1246
# All AIX code is PIC.
1247
if test "$host_cpu" = ia64; then
1248
# AIX 5 now supports IA64 processor
1249
lt_cv_prog_cc_static='-Bstatic'
1251
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
1255
hpux9* | hpux10* | hpux11*)
1256
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
1257
lt_cv_prog_cc_wl='-Wl,'
1258
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
1259
lt_cv_prog_cc_pic='+Z'
1263
lt_cv_prog_cc_wl='-Wl,'
1264
lt_cv_prog_cc_static='-non_shared'
1265
# PIC (with -KPIC) is the default.
1268
cygwin* | mingw* | pw32* | os2*)
1269
# This hack is so that the source file can tell whether it is being
1270
# built for inclusion in a dll (and should export symbols for example).
1271
lt_cv_prog_cc_pic='-DDLL_EXPORT'
1275
lt_cv_prog_cc_pic='-KPIC'
1276
lt_cv_prog_cc_static='-Bstatic'
1279
osf3* | osf4* | osf5*)
1280
# All OSF/1 code is PIC.
1281
lt_cv_prog_cc_wl='-Wl,'
1282
lt_cv_prog_cc_static='-non_shared'
1286
lt_cv_prog_cc_pic='-Kpic'
1287
lt_cv_prog_cc_static='-dn'
1288
lt_cv_prog_cc_shlib='-belf'
1292
lt_cv_prog_cc_pic='-KPIC'
1293
lt_cv_prog_cc_static='-Bstatic'
1294
lt_cv_prog_cc_wl='-Wl,'
1298
lt_cv_prog_cc_pic='-PIC'
1299
lt_cv_prog_cc_static='-Bstatic'
1300
lt_cv_prog_cc_wl='-Qoption ld '
1303
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1304
lt_cv_prog_cc_pic='-KPIC'
1305
lt_cv_prog_cc_static='-Bstatic'
1306
if test "x$host_vendor" = xsni; then
1307
lt_cv_prog_cc_wl='-LD'
1309
lt_cv_prog_cc_wl='-Wl,'
1314
lt_cv_prog_cc_pic='-pic'
1315
lt_cv_prog_cc_static='-Bstatic'
1319
if test -d /usr/nec ;then
1320
lt_cv_prog_cc_pic='-Kconform_pic'
1321
lt_cv_prog_cc_static='-Bstatic'
1326
lt_cv_prog_cc_can_build_shared=no
1331
if test -z "$lt_cv_prog_cc_pic"; then
1332
AC_MSG_RESULT([none])
1334
AC_MSG_RESULT([$lt_cv_prog_cc_pic])
1336
# Check to make sure the pic_flag actually works.
1337
AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
1338
AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
1339
save_CFLAGS="$CFLAGS"
1340
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
1341
AC_TRY_COMPILE([], [], [dnl
1343
hpux9* | hpux10* | hpux11*)
1344
# On HP-UX, both CC and GCC only warn that PIC is supported... then
1345
# they create non-PIC objects. So, if there were any warnings, we
1346
# assume that PIC is not supported.
1347
if test -s conftest.err; then
1348
lt_cv_prog_cc_pic_works=no
1350
lt_cv_prog_cc_pic_works=yes
1354
lt_cv_prog_cc_pic_works=yes
1358
lt_cv_prog_cc_pic_works=no
1360
CFLAGS="$save_CFLAGS"
1363
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
1365
lt_cv_prog_cc_can_build_shared=no
1367
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
1370
AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
1373
# Check for any special shared library compilation flags.
1374
if test -n "$lt_cv_prog_cc_shlib"; then
1375
AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
1376
if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
1378
AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
1379
lt_cv_prog_cc_can_build_shared=no
1383
AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
1384
AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
1385
lt_cv_prog_cc_static_works=no
1386
save_LDFLAGS="$LDFLAGS"
1387
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
1388
AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
1389
LDFLAGS="$save_LDFLAGS"
1392
# Belt *and* braces to stop my trousers falling down:
1393
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
1394
AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
1396
pic_flag="$lt_cv_prog_cc_pic"
1397
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
1398
wl="$lt_cv_prog_cc_wl"
1399
link_static_flag="$lt_cv_prog_cc_static"
1400
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
1401
can_build_shared="$lt_cv_prog_cc_can_build_shared"
1404
# Check to see if options -o and -c are simultaneously supported by compiler
1405
AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
1406
AC_CACHE_VAL([lt_cv_compiler_c_o], [
1407
$rm -r conftest 2>/dev/null
1410
echo "int some_variable = 0;" > conftest.$ac_ext
1412
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1413
# that will create temporary files in the current directory regardless of
1414
# the output directory. Thus, making CWD read-only will cause this test
1415
# to fail, enabling locking or at least warning the user not to do parallel
1418
save_CFLAGS="$CFLAGS"
1419
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
1421
if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
1422
# The compiler can only warn and ignore the option if not recognized
1423
# So say no if there are warnings
1424
if test -s out/conftest.err; then
1425
lt_cv_compiler_c_o=no
1427
lt_cv_compiler_c_o=yes
1430
# Append any errors to the config.log.
1431
cat out/conftest.err 1>&AC_FD_CC
1432
lt_cv_compiler_c_o=no
1434
CFLAGS="$save_CFLAGS"
1440
$rm -r conftest 2>/dev/null
1442
compiler_c_o=$lt_cv_compiler_c_o
1443
AC_MSG_RESULT([$compiler_c_o])
1445
if test x"$compiler_c_o" = x"yes"; then
1446
# Check to see if we can write to a .lo
1447
AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
1448
AC_CACHE_VAL([lt_cv_compiler_o_lo], [
1449
lt_cv_compiler_o_lo=no
1450
save_CFLAGS="$CFLAGS"
1451
CFLAGS="$CFLAGS -c -o conftest.lo"
1452
save_objext="$ac_objext"
1454
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1455
# The compiler can only warn and ignore the option if not recognized
1456
# So say no if there are warnings
1457
if test -s conftest.err; then
1458
lt_cv_compiler_o_lo=no
1460
lt_cv_compiler_o_lo=yes
1463
ac_objext="$save_objext"
1464
CFLAGS="$save_CFLAGS"
1466
compiler_o_lo=$lt_cv_compiler_o_lo
1467
AC_MSG_RESULT([$compiler_o_lo])
2008
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2009
# ---------------------------------
2010
# Check to see if options -c and -o are simultaneously supported by compiler
2011
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2012
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2013
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2014
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2015
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2016
$rm -r conftest 2>/dev/null
2020
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2022
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2023
# that will create temporary files in the current directory regardless of
2024
# the output directory. Thus, making CWD read-only will cause this test
2025
# to fail, enabling locking or at least warning the user not to do parallel
2029
lt_compiler_flag="-o out/conftest2.$ac_objext"
2030
# Insert the option either (1) after the last *FLAGS variable, or
2031
# (2) before a word containing "conftest.", or (3) at the end.
2032
# Note that $ac_compile itself does not contain backslashes and begins
2033
# with a dollar sign (not a hyphen), so the echo should work correctly.
2034
lt_compile=`echo "$ac_compile" | $SED \
2035
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2036
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2037
-e 's:$: $lt_compiler_flag:'`
2038
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2039
(eval "$lt_compile" 2>out/conftest.err)
2041
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2042
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2043
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2045
# The compiler can only warn and ignore the option if not recognized
2046
# So say no if there are warnings
2047
if test ! -s out/conftest.err; then
2048
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2053
# SGI C++ compiler will create directory out/ii_files/ for
2054
# template instantiation
2055
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2056
$rm out/* && rmdir out
2061
])# AC_LIBTOOL_PROG_CC_C_O
2064
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2065
# -----------------------------------------
1472
2066
# Check to see if we can do hard links to lock some files if needed
2067
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2068
[AC_REQUIRE([_LT_AC_LOCK])dnl
1473
2070
hard_links="nottested"
1474
if test "$compiler_c_o" = no && test "$need_locks" != no; then
2071
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1475
2072
# do not overwrite the value of need_locks provided by the user
1476
2073
AC_MSG_CHECKING([if we can lock with hard links])
1482
2079
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1483
2080
AC_MSG_RESULT([$hard_links])
1484
2081
if test "$hard_links" = no; then
1485
AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
2082
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1486
2083
need_locks=warn
1492
if test "$GCC" = yes; then
1493
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
1494
AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
1495
echo "int some_variable = 0;" > conftest.$ac_ext
1496
save_CFLAGS="$CFLAGS"
1497
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
1498
compiler_rtti_exceptions=no
1499
AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
1500
# The compiler can only warn and ignore the option if not recognized
1501
# So say no if there are warnings
1502
if test -s conftest.err; then
1503
compiler_rtti_exceptions=no
1505
compiler_rtti_exceptions=yes
1508
CFLAGS="$save_CFLAGS"
1509
AC_MSG_RESULT([$compiler_rtti_exceptions])
1511
if test "$compiler_rtti_exceptions" = "yes"; then
1512
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
1514
no_builtin_flag=' -fno-builtin'
1518
# See if the linker supports building shared libraries.
1519
AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
1521
allow_undefined_flag=
1523
need_lib_prefix=unknown
1524
need_version=unknown
1525
# when you set need_version to no, make sure it does not cause -set_version
1526
# flags to be left without arguments
1528
archive_expsym_cmds=
1529
old_archive_from_new_cmds=
1530
old_archive_from_expsyms_cmds=
1531
export_dynamic_flag_spec=
1532
whole_archive_flag_spec=
1533
thread_safe_flag_spec=
1534
hardcode_into_libs=no
1535
hardcode_libdir_flag_spec=
1536
hardcode_libdir_separator=
1539
hardcode_shlibpath_var=unsupported
1541
link_all_deplibs=unknown
1542
always_export_symbols=no
1543
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
1544
# include_expsyms should be a list of space-separated symbols to be *always*
1545
# included in the symbol list
1547
# exclude_expsyms can be an egrep regular expression of symbols to exclude
1548
# it will be wrapped by ` (' and `)$', so one must not match beginning or
1549
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1550
# as well as any symbol that contains `d'.
1551
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
1552
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1553
# platforms (ab)use it in PIC code, but their linkers get confused if
1554
# the symbol is explicitly referenced. Since portable code cannot
1555
# rely on this symbol name, it's probably fine to never include it in
1556
# preloaded symbol tables.
1557
extract_expsyms_cmds=
1560
cygwin* | mingw* | pw32*)
1561
# FIXME: the MSVC++ port hasn't been tested in a loooong time
1562
# When not using gcc, we currently assume that we are using
1563
# Microsoft Visual C++.
1564
if test "$GCC" != yes; then
1574
if test "$with_gnu_ld" = yes; then
1575
# If archive_cmds runs LD, not CC, wlarc should be empty
1578
# See if GNU ld supports shared libraries.
1580
aix3* | aix4* | aix5*)
1581
# On AIX, the GNU linker is very broken
1582
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
1586
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1587
*** to be unable to reliably create shared libraries on AIX.
1588
*** Therefore, libtool is disabling shared libraries support. If you
1589
*** really care for shared libraries, you may want to modify your PATH
1590
*** so that a non-GNU linker is found, and then restart.
1596
archive_cmds='$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)'
1597
hardcode_libdir_flag_spec='-L$libdir'
1598
hardcode_minus_L=yes
1600
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1601
# that the semantics of dynamic libraries on AmigaOS, at least up
1602
# to version 4, is to share data among multiple programs linked
1603
# with the same dynamic library. Since this doesn't match the
1604
# behavior of shared libraries on other platforms, we can use
1610
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1611
allow_undefined_flag=unsupported
1612
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1613
# support --undefined. This deserves some investigation. FIXME
1614
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1620
cygwin* | mingw* | pw32*)
1621
# hardcode_libdir_flag_spec is actually meaningless, as there is
1622
# no search path for DLLs.
1623
hardcode_libdir_flag_spec='-L$libdir'
1624
allow_undefined_flag=unsupported
1625
always_export_symbols=yes
1627
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
1628
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
1629
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
1630
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
1631
else $CC -o impgen impgen.c ; fi)~
1632
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
1634
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
1636
# cygwin and mingw dlls have different entry points and sets of symbols
1638
# FIXME: what about values for MSVC?
1639
dll_entry=__cygwin_dll_entry@12
1640
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
1644
dll_entry=_DllMainCRTStartup@12
1645
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
1649
# mingw and cygwin differ, and it's simplest to just exclude the union
1650
# of the two symbol sets.
1651
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
1653
# recent cygwin and mingw systems supply a stub DllMain which the user
1654
# can override, but on older systems we have to supply one (in ltdll.c)
1655
if test "x$lt_cv_need_dllmain" = "xyes"; then
1656
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
1657
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
1658
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
1664
# Extract the symbol export list from an `--export-all' def file,
1665
# then regenerate the def file from the symbol export list, so that
1666
# the compiled dll only exports the symbol export list.
1667
# Be careful not to strip the DATA tag left be newer dlltools.
1668
export_symbols_cmds="$ltdll_cmds"'
1669
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
1670
sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
1672
# If the export-symbols file already is a .def file (1st line
1673
# is EXPORTS), use it as is.
1674
# If DATA tags from a recent dlltool are present, honour them!
1675
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
1676
cp $export_symbols $output_objdir/$soname-def;
1678
echo EXPORTS > $output_objdir/$soname-def;
1680
cat $export_symbols | while read symbol; do
1683
2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
1684
*) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
1686
_lt_hint=`expr 1 + \$_lt_hint`;
1690
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1691
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
1692
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
1693
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
1694
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
1698
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1699
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1702
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1703
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1708
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
1712
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1713
*** create shared libraries on Solaris systems. Therefore, libtool
1714
*** is disabling shared libraries support. We urge you to upgrade GNU
1715
*** binutils to release 2.9.1 or newer. Another option is to modify
1716
*** your PATH or compiler configuration so that the native linker is
1717
*** used, and then restart.
1720
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1721
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1722
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1729
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1732
hardcode_shlibpath_var=no
1736
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1737
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1738
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1745
if test "$ld_shlibs" = yes; then
1746
runpath_var=LD_RUN_PATH
1747
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
1748
export_dynamic_flag_spec='${wl}--export-dynamic'
1750
cygwin* | mingw* | pw32*)
1751
# dlltool doesn't understand --whole-archive et. al.
1752
whole_archive_flag_spec=
1755
# ancient GNU ld didn't support --whole-archive et. al.
1756
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
1757
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1759
whole_archive_flag_spec=
2088
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2093
AC_DEFUN([AC_LIBTOOL_OBJDIR],
2094
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2095
[rm -f .libs 2>/dev/null
2096
mkdir .libs 2>/dev/null
2097
if test -d .libs; then
1765
# PORTME fill in a description of your system's linker (not GNU ld)
1768
allow_undefined_flag=unsupported
1769
always_export_symbols=yes
1770
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1771
# Note: this linker hardcodes the directories in LIBPATH if there
1772
# are no directories specified by -L.
1773
hardcode_minus_L=yes
1774
if test "$GCC" = yes && test -z "$link_static_flag"; then
1775
# Neither direct hardcoding nor static linking is supported with a
1777
hardcode_direct=unsupported
1782
if test "$host_cpu" = ia64; then
1783
# On IA64, the linker does run time linking by default, so we don't
1784
# have to do anything special.
1785
aix_use_runtimelinking=no
1786
exp_sym_flag='-Bexport'
1789
aix_use_runtimelinking=no
1791
# Test if we are trying to use run time linking or normal
1792
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
1793
# need to do runtime linking.
1794
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
1795
for ld_flag in $LDFLAGS; do
1796
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1797
aix_use_runtimelinking=yes
1803
exp_sym_flag='-bexport'
1804
no_entry_flag='-bnoentry'
1807
# When large executables or shared objects are built, AIX ld can
1808
# have problems creating the table of contents. If linking a library
1809
# or program results in "error TOC overflow" add -mminimal-toc to
1810
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1811
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1815
hardcode_libdir_separator=':'
1816
if test "$GCC" = yes; then
1817
case $host_os in aix4.[[012]]|aix4.[[012]].*)
1818
collect2name=`${CC} -print-prog-name=collect2`
1819
if test -f "$collect2name" && \
1820
strings "$collect2name" | grep resolve_lib_name >/dev/null
1822
# We have reworked collect2
1825
# We have old collect2
1826
hardcode_direct=unsupported
1827
# It fails to find uninstalled libraries when the uninstalled
1828
# path is not listed in the libpath. Setting hardcode_minus_L
1829
# to unsupported forces relinking
1830
hardcode_minus_L=yes
1831
hardcode_libdir_flag_spec='-L$libdir'
1832
hardcode_libdir_separator=
1836
shared_flag='-shared'
1839
if test "$host_cpu" = ia64; then
1840
shared_flag='${wl}-G'
1842
if test "$aix_use_runtimelinking" = yes; then
1843
shared_flag='${wl}-G'
1845
shared_flag='${wl}-bM:SRE'
1850
# It seems that -bexpall can do strange things, so it is better to
1851
# generate a list of symbols to export.
1852
always_export_symbols=yes
1853
if test "$aix_use_runtimelinking" = yes; then
1854
# Warning - without using the other runtime loading flags (-brtl),
1855
# -berok will link without error, but may produce a broken library.
1856
allow_undefined_flag='-berok'
1857
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
1858
archive_expsym_cmds="\$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"
1860
if test "$host_cpu" = ia64; then
1861
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
1862
allow_undefined_flag="-z nodefs"
1863
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1865
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
1866
# Warning - without using the other run time loading flags,
1867
# -berok will link without error, but may produce a broken library.
1868
allow_undefined_flag='${wl}-berok'
1869
# This is a bit strange, but is similar to how AIX traditionally builds
1870
# it's shared libraries.
1871
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
1877
archive_cmds='$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)'
1878
hardcode_libdir_flag_spec='-L$libdir'
1879
hardcode_minus_L=yes
1880
# see comment about different semantics on the GNU ld section
1884
cygwin* | mingw* | pw32*)
1885
# When not using gcc, we currently assume that we are using
1886
# Microsoft Visual C++.
1887
# hardcode_libdir_flag_spec is actually meaningless, as there is
1888
# no search path for DLLs.
1889
hardcode_libdir_flag_spec=' '
1890
allow_undefined_flag=unsupported
1891
# Tell ltmain to make .lib files, not .a files.
1893
# FIXME: Setting linknames here is a bad hack.
1894
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
1895
# The linker will automatically build a .lib file if we build a DLL.
1896
old_archive_from_new_cmds='true'
1897
# FIXME: Should let the user specify the lib program.
1898
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
1899
fix_srcfile_path='`cygpath -w "$srcfile"`'
1902
darwin* | rhapsody*)
1904
rhapsody* | darwin1.[[012]])
1905
allow_undefined_flag='-undefined suppress'
1908
allow_undefined_flag='-flat_namespace -undefined suppress'
1911
# FIXME: Relying on posixy $() will cause problems for
1912
# cross-compilation, but unfortunately the echo tests do not
1913
# yet detect zsh echo's removal of \ escapes.
1914
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
1915
# We need to add '_' to the symbols in $export_symbols first
1916
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
1918
hardcode_shlibpath_var=no
1919
whole_archive_flag_spec='-all_load $convenience'
1926
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1927
# support. Future versions do this automatically, but an explicit c++rt0.o
1928
# does not break anything, and helps significantly (at the cost of a little
1931
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1932
hardcode_libdir_flag_spec='-R$libdir'
1934
hardcode_shlibpath_var=no
1937
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
1939
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1941
hardcode_minus_L=yes
1942
hardcode_shlibpath_var=no
1945
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1947
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1948
hardcode_libdir_flag_spec='-R$libdir'
1950
hardcode_shlibpath_var=no
1953
hpux9* | hpux10* | hpux11*)
1955
hpux9*) archive_cmds='$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' ;;
1956
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
1958
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1959
hardcode_libdir_separator=:
1961
hardcode_minus_L=yes # Not in the search PATH, but as the default
1962
# location of the library.
1963
export_dynamic_flag_spec='${wl}-E'
1967
if test "$GCC" = yes; then
1968
archive_cmds='$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'
1970
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1972
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1973
hardcode_libdir_separator=:
1974
link_all_deplibs=yes
1978
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1979
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1981
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1983
hardcode_libdir_flag_spec='-R$libdir'
1985
hardcode_shlibpath_var=no
1989
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1991
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1992
hardcode_libdir_separator=:
1993
hardcode_shlibpath_var=no
1998
hardcode_shlibpath_var=no
1999
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2000
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2001
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2002
export_dynamic_flag_spec='${wl}-E'
2005
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
2006
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
2007
hardcode_libdir_flag_spec='-R$libdir'
2010
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
2011
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
2018
hardcode_libdir_flag_spec='-L$libdir'
2019
hardcode_minus_L=yes
2020
allow_undefined_flag=unsupported
2021
archive_cmds='$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'
2022
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
2026
if test "$GCC" = yes; then
2027
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2028
archive_cmds='$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'
2030
allow_undefined_flag=' -expect_unresolved \*'
2031
archive_cmds='$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'
2033
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2034
hardcode_libdir_separator=:
2037
osf4* | osf5*) # as osf3* with the addition of -msym flag
2038
if test "$GCC" = yes; then
2039
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
2040
archive_cmds='$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'
2041
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
2043
allow_undefined_flag=' -expect_unresolved \*'
2044
archive_cmds='$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'
2045
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
2046
$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'
2048
#Both c and cxx compiler support -rpath directly
2049
hardcode_libdir_flag_spec='-rpath $libdir'
2051
hardcode_libdir_separator=:
2055
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2056
hardcode_shlibpath_var=no
2057
runpath_var=LD_RUN_PATH
2058
hardcode_runpath_var=yes
2059
export_dynamic_flag_spec='${wl}-Bexport'
2063
# gcc --version < 3.0 without binutils cannot create self contained
2064
# shared libraries reliably, requiring libgcc.a to resolve some of
2065
# the object symbols generated in some cases. Libraries that use
2066
# assert need libgcc.a to resolve __eprintf, for example. Linking
2067
# a copy of libgcc.a into every shared library to guarantee resolving
2068
# such symbols causes other problems: According to Tim Van Holder
2069
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
2070
# (to the application) exception stack for one thing.
2071
no_undefined_flag=' -z defs'
2072
if test "$GCC" = yes; then
2073
case `$CC --version 2>/dev/null` in
2077
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
2078
*** create self contained shared libraries on Solaris systems, without
2079
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
2080
*** -no-undefined support, which will at least allow you to build shared
2081
*** libraries. However, you may find that when you link such libraries
2082
*** into an application without using GCC, you have to manually add
2083
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
2084
*** upgrade to a newer version of GCC. Another option is to rebuild your
2085
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
2092
# $CC -shared without GNU ld will not create a library from C++
2093
# object files and a static libstdc++, better avoid it by now
2094
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2095
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2096
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2097
hardcode_libdir_flag_spec='-R$libdir'
2098
hardcode_shlibpath_var=no
2100
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
2101
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
2102
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
2104
link_all_deplibs=yes
2108
if test "x$host_vendor" = xsequent; then
2109
# Use $CC to link under sequent, because it throws in some extra .o
2110
# files that make .init and .fini sections work.
2111
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
2113
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
2115
hardcode_libdir_flag_spec='-L$libdir'
2117
hardcode_minus_L=yes
2118
hardcode_shlibpath_var=no
2122
if test "x$host_vendor" = xsno; then
2123
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
2124
hardcode_direct=yes # is this really true???
2126
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2127
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
2129
runpath_var='LD_RUN_PATH'
2130
hardcode_shlibpath_var=no
2134
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2135
hardcode_shlibpath_var=no
2136
export_dynamic_flag_spec='-Bexport'
2140
no_undefined_flag=' -z text'
2141
# $CC -shared without GNU ld will not create a library from C++
2142
# object files and a static libstdc++, better avoid it by now
2143
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
2144
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
2145
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
2146
hardcode_libdir_flag_spec=
2147
hardcode_shlibpath_var=no
2148
runpath_var='LD_RUN_PATH'
2152
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2153
hardcode_libdir_flag_spec='-L$libdir'
2154
hardcode_shlibpath_var=no
2158
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2159
hardcode_libdir_flag_spec='-L$libdir'
2160
hardcode_shlibpath_var=no
2164
if test -d /usr/nec; then
2165
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
2166
hardcode_shlibpath_var=no
2167
runpath_var=LD_RUN_PATH
2168
hardcode_runpath_var=yes
2174
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
2177
hardcode_shlibpath_var=no
2178
hardcode_runpath_var=yes
2179
runpath_var=LD_RUN_PATH
2182
sysv5uw7* | unixware7*)
2183
no_undefined_flag='${wl}-z ${wl}text'
2184
if test "$GCC" = yes; then
2185
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2187
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
2189
runpath_var='LD_RUN_PATH'
2190
hardcode_shlibpath_var=no
2100
# MS-DOS does not allow filenames that begin with a dot.
2198
AC_MSG_RESULT([$ld_shlibs])
2199
test "$ld_shlibs" = no && can_build_shared=no
2103
rmdir .libs 2>/dev/null])
2104
objdir=$lt_cv_objdir
2105
])# AC_LIBTOOL_OBJDIR
2108
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2109
# ----------------------------------------------
2201
2110
# Check hardcoding attributes.
2202
AC_MSG_CHECKING([how to hardcode library paths into programs])
2204
if test -n "$hardcode_libdir_flag_spec" || \
2205
test -n "$runpath_var"; then
2111
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2112
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2113
_LT_AC_TAGVAR(hardcode_action, $1)=
2114
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2115
test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2116
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2207
2118
# We can hardcode non-existant directories.
2208
if test "$hardcode_direct" != no &&
2119
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2209
2120
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2210
2121
# have to relink, otherwise we might link with an installed library
2211
2122
# when we should be linking with a yet-to-be-installed one
2212
## test "$hardcode_shlibpath_var" != no &&
2213
test "$hardcode_minus_L" != no; then
2123
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2124
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2214
2125
# Linking always hardcodes the temporary library directory.
2215
hardcode_action=relink
2126
_LT_AC_TAGVAR(hardcode_action, $1)=relink
2217
2128
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2218
hardcode_action=immediate
2129
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
2221
2132
# We cannot hardcode anything, or else we can only hardcode existing
2223
hardcode_action=unsupported
2225
AC_MSG_RESULT([$hardcode_action])
2134
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2136
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2138
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2139
# Fast installation is not supported
2140
enable_fast_install=no
2141
elif test "$shlibpath_overrides_runpath" = yes ||
2142
test "$enable_shared" = no; then
2143
# Fast installation is not necessary
2144
enable_fast_install=needless
2146
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2149
# AC_LIBTOOL_SYS_LIB_STRIP
2150
# ------------------------
2151
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2229
2154
AC_MSG_CHECKING([whether stripping libraries is possible])
2230
2155
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2607
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2608
soname_spec='${libname}${release}.so$major'
2609
shlibpath_var=LD_LIBRARY_PATH
2616
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
2617
soname_spec='${libname}${release}.so$major'
2618
shlibpath_var=LD_LIBRARY_PATH
2622
2702
if test -d /usr/nec ;then
2623
2703
version_type=linux
2624
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
2625
soname_spec='$libname.so.$major'
2704
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2705
soname_spec='$libname${shared_ext}.$major'
2626
2706
shlibpath_var=LD_LIBRARY_PATH
2712
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2713
soname_spec='${libname}${release}${shared_ext}$major'
2714
shlibpath_var=LD_LIBRARY_PATH
2631
2718
dynamic_linker=no
2634
2721
AC_MSG_RESULT([$dynamic_linker])
2635
2722
test "$dynamic_linker" = no && can_build_shared=no
2637
# Report the final consequences.
2723
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2728
AC_DEFUN([_LT_AC_TAGCONFIG],
2729
[AC_ARG_WITH([tags],
2730
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2731
[include additional configurations @<:@automatic@:>@])],
2732
[tagnames="$withval"])
2734
if test -f "$ltmain" && test -n "$tagnames"; then
2735
if test ! -f "${ofile}"; then
2736
AC_MSG_WARN([output file `$ofile' does not exist])
2739
if test -z "$LTCC"; then
2740
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2741
if test -z "$LTCC"; then
2742
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2744
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2748
# Extract list of available tagged configurations in $ofile.
2749
# Note that this assumes the entire list is on one line.
2750
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2752
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2753
for tagname in $tagnames; do
2755
# Check whether tagname contains only valid characters
2756
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2758
*) AC_MSG_ERROR([invalid tag name: $tagname])
2762
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2764
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2767
# Update the list of available tags.
2768
if test -n "$tagname"; then
2769
echo appending configuration tag \"$tagname\" to $ofile
2773
if test -n "$CXX" && test "X$CXX" != "Xno"; then
2774
AC_LIBTOOL_LANG_CXX_CONFIG
2781
if test -n "$F77" && test "X$F77" != "Xno"; then
2782
AC_LIBTOOL_LANG_F77_CONFIG
2789
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2790
AC_LIBTOOL_LANG_GCJ_CONFIG
2797
AC_LIBTOOL_LANG_RC_CONFIG
2801
AC_MSG_ERROR([Unsupported tag name: $tagname])
2805
# Append the new tag name to the list of available tags.
2806
if test -n "$tagname" ; then
2807
available_tags="$available_tags $tagname"
2813
# Now substitute the updated list of available tags.
2814
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2815
mv "${ofile}T" "$ofile"
2819
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2822
])# _LT_AC_TAGCONFIG
2827
# enable checks for dlopen support
2828
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2829
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2830
])# AC_LIBTOOL_DLOPEN
2833
# AC_LIBTOOL_WIN32_DLL
2834
# --------------------
2835
# declare package support for building win32 dll's
2836
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2837
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2838
])# AC_LIBTOOL_WIN32_DLL
2841
# AC_ENABLE_SHARED([DEFAULT])
2842
# ---------------------------
2843
# implement the --enable-shared flag
2844
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2845
AC_DEFUN([AC_ENABLE_SHARED],
2846
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2847
AC_ARG_ENABLE([shared],
2848
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2849
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2850
[p=${PACKAGE-default}
2852
yes) enable_shared=yes ;;
2853
no) enable_shared=no ;;
2856
# Look at the argument we got. We use all the common list separators.
2857
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2858
for pkg in $enableval; do
2860
if test "X$pkg" = "X$p"; then
2867
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2868
])# AC_ENABLE_SHARED
2873
#- set the default shared flag to --disable-shared
2874
AC_DEFUN([AC_DISABLE_SHARED],
2875
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2876
AC_ENABLE_SHARED(no)
2877
])# AC_DISABLE_SHARED
2880
# AC_ENABLE_STATIC([DEFAULT])
2881
# ---------------------------
2882
# implement the --enable-static flag
2883
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2884
AC_DEFUN([AC_ENABLE_STATIC],
2885
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2886
AC_ARG_ENABLE([static],
2887
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2888
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2889
[p=${PACKAGE-default}
2891
yes) enable_static=yes ;;
2892
no) enable_static=no ;;
2895
# Look at the argument we got. We use all the common list separators.
2896
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2897
for pkg in $enableval; do
2899
if test "X$pkg" = "X$p"; then
2906
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2907
])# AC_ENABLE_STATIC
2912
# set the default static flag to --disable-static
2913
AC_DEFUN([AC_DISABLE_STATIC],
2914
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2915
AC_ENABLE_STATIC(no)
2916
])# AC_DISABLE_STATIC
2919
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2920
# ---------------------------------
2921
# implement the --enable-fast-install flag
2922
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2923
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2924
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2925
AC_ARG_ENABLE([fast-install],
2926
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2927
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2928
[p=${PACKAGE-default}
2930
yes) enable_fast_install=yes ;;
2931
no) enable_fast_install=no ;;
2933
enable_fast_install=no
2934
# Look at the argument we got. We use all the common list separators.
2935
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2936
for pkg in $enableval; do
2938
if test "X$pkg" = "X$p"; then
2939
enable_fast_install=yes
2945
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2946
])# AC_ENABLE_FAST_INSTALL
2949
# AC_DISABLE_FAST_INSTALL
2950
# -----------------------
2951
# set the default to --disable-fast-install
2952
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2953
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2954
AC_ENABLE_FAST_INSTALL(no)
2955
])# AC_DISABLE_FAST_INSTALL
2958
# AC_LIBTOOL_PICMODE([MODE])
2959
# --------------------------
2960
# implement the --with-pic flag
2961
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2962
AC_DEFUN([AC_LIBTOOL_PICMODE],
2963
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2964
pic_mode=ifelse($#,1,$1,default)
2965
])# AC_LIBTOOL_PICMODE
2970
# This is predefined starting with Autoconf 2.54, so this conditional
2971
# definition can be removed once we require Autoconf 2.54 or later.
2972
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2973
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2974
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2975
then ac_cv_prog_egrep='grep -E'
2976
else ac_cv_prog_egrep='egrep'
2978
EGREP=$ac_cv_prog_egrep
2983
# AC_PATH_TOOL_PREFIX
2984
# -------------------
2985
# find a file program which can recognise shared library
2986
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2987
[AC_REQUIRE([AC_PROG_EGREP])dnl
2988
AC_MSG_CHECKING([for $1])
2989
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2991
[[\\/*] | ?:[\\/]*])
2992
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2995
lt_save_MAGIC_CMD="$MAGIC_CMD"
2996
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2997
dnl $ac_dummy forces splitting on constant user-supplied paths.
2998
dnl POSIX.2 word splitting is done only on the output of word expansions,
2999
dnl not every word. This closes a longstanding sh security hole.
3000
ac_dummy="ifelse([$2], , $PATH, [$2])"
3001
for ac_dir in $ac_dummy; do
3003
test -z "$ac_dir" && ac_dir=.
3004
if test -f $ac_dir/$1; then
3005
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3006
if test -n "$file_magic_test_file"; then
3007
case $deplibs_check_method in
3009
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3010
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3011
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3012
$EGREP "$file_magic_regex" > /dev/null; then
3017
*** Warning: the command libtool uses to detect shared libraries,
3018
*** $file_magic_cmd, produces output that libtool cannot recognize.
3019
*** The result is that libtool may fail to recognize shared libraries
3020
*** as such. This will affect the creation of libtool libraries that
3021
*** depend on shared libraries, but programs linked with such libtool
3022
*** libraries will work regardless of this problem. Nevertheless, you
3023
*** may want to report the problem to your system manager and/or to
3024
*** bug-libtool@gnu.org
3034
MAGIC_CMD="$lt_save_MAGIC_CMD"
3037
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3038
if test -n "$MAGIC_CMD"; then
3039
AC_MSG_RESULT($MAGIC_CMD)
3043
])# AC_PATH_TOOL_PREFIX
3048
# find a file program which can recognise a shared library
3049
AC_DEFUN([AC_PATH_MAGIC],
3050
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3051
if test -z "$lt_cv_path_MAGIC_CMD"; then
3052
if test -n "$ac_tool_prefix"; then
3053
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3063
# find the pathname to the GNU or non-GNU linker
3064
AC_DEFUN([AC_PROG_LD],
3065
[AC_ARG_WITH([gnu-ld],
3066
[AC_HELP_STRING([--with-gnu-ld],
3067
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3068
[test "$withval" = no || with_gnu_ld=yes],
3070
AC_REQUIRE([LT_AC_PROG_SED])dnl
3071
AC_REQUIRE([AC_PROG_CC])dnl
3072
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3073
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3075
if test "$GCC" = yes; then
3076
# Check if gcc -print-prog-name=ld gives a path.
3077
AC_MSG_CHECKING([for ld used by $CC])
3080
# gcc leaves a trailing carriage return which upsets mingw
3081
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3083
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3086
# Accept absolute paths.
3087
[[\\/]]* | ?:[[\\/]]*)
3088
re_direlt='/[[^/]][[^/]]*/\.\./'
3089
# Canonicalize the pathname of ld
3090
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3091
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3092
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3094
test -z "$LD" && LD="$ac_prog"
3097
# If it fails, then pretend we aren't using GCC.
3101
# If it is relative, then search for the first ld in PATH.
3105
elif test "$with_gnu_ld" = yes; then
3106
AC_MSG_CHECKING([for GNU ld])
3108
AC_MSG_CHECKING([for non-GNU ld])
3110
AC_CACHE_VAL(lt_cv_path_LD,
3111
[if test -z "$LD"; then
3112
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3113
for ac_dir in $PATH; do
3115
test -z "$ac_dir" && ac_dir=.
3116
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3117
lt_cv_path_LD="$ac_dir/$ac_prog"
3118
# Check to see if the program is GNU ld. I'd rather use --version,
3119
# but apparently some GNU ld's only accept -v.
3120
# Break only if it was the GNU/non-GNU ld that we prefer.
3121
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3122
*GNU* | *'with BFD'*)
3123
test "$with_gnu_ld" != no && break
3126
test "$with_gnu_ld" != yes && break
3133
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3136
if test -n "$LD"; then
3141
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3148
AC_DEFUN([AC_PROG_LD_GNU],
3149
[AC_REQUIRE([AC_PROG_EGREP])dnl
3150
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3151
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3152
case `$LD -v 2>&1 </dev/null` in
3153
*GNU* | *'with BFD'*)
3154
lt_cv_prog_gnu_ld=yes
3157
lt_cv_prog_gnu_ld=no
3160
with_gnu_ld=$lt_cv_prog_gnu_ld
3164
# AC_PROG_LD_RELOAD_FLAG
3165
# ----------------------
3166
# find reload flag for linker
3167
# -- PORTME Some linkers may need a different reload flag.
3168
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3169
[AC_CACHE_CHECK([for $LD option to reload object files],
3170
lt_cv_ld_reload_flag,
3171
[lt_cv_ld_reload_flag='-r'])
3172
reload_flag=$lt_cv_ld_reload_flag
3173
case $reload_flag in
3175
*) reload_flag=" $reload_flag" ;;
3177
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3178
])# AC_PROG_LD_RELOAD_FLAG
3181
# AC_DEPLIBS_CHECK_METHOD
3182
# -----------------------
3183
# how to check for library dependencies
3184
# -- PORTME fill in with the dynamic library characteristics
3185
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3186
[AC_CACHE_CHECK([how to recognise dependent libraries],
3187
lt_cv_deplibs_check_method,
3188
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3189
lt_cv_file_magic_test_file=
3190
lt_cv_deplibs_check_method='unknown'
3191
# Need to set the preceding variable on all platforms that support
3192
# interlibrary dependencies.
3193
# 'none' -- dependencies not supported.
3194
# `unknown' -- same as none, but documents that we really don't know.
3195
# 'pass_all' -- all dependencies passed with no checks.
3196
# 'test_compile' -- check by making test program.
3197
# 'file_magic [[regex]]' -- check by looking for files in library path
3198
# which responds to the $file_magic_cmd with a given extended regex.
3199
# If you have `file' or equivalent on your system and you're not sure
3200
# whether `pass_all' will *always* work, you probably want this one.
3204
lt_cv_deplibs_check_method=pass_all
3208
lt_cv_deplibs_check_method=pass_all
3212
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3213
lt_cv_file_magic_cmd='/usr/bin/file -L'
3214
lt_cv_file_magic_test_file=/shlib/libc.so
3218
# win32_libid is a shell function defined in ltmain.sh
3219
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3220
lt_cv_file_magic_cmd='win32_libid'
3224
# Base MSYS/MinGW do not provide the 'file' command needed by
3225
# win32_libid shell function, so use a weaker test based on 'objdump'.
3226
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3227
lt_cv_file_magic_cmd='$OBJDUMP -f'
3230
darwin* | rhapsody*)
3231
lt_cv_deplibs_check_method=pass_all
3234
freebsd* | kfreebsd*-gnu)
3235
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3238
# Not sure whether the presence of OpenBSD here was a mistake.
3239
# Let's accept both of them until this is cleared up.
3240
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3241
lt_cv_file_magic_cmd=/usr/bin/file
3242
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3246
lt_cv_deplibs_check_method=pass_all
3251
lt_cv_deplibs_check_method=pass_all
3254
hpux10.20* | hpux11*)
3255
lt_cv_file_magic_cmd=/usr/bin/file
3258
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3259
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3262
[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]']
3263
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3266
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3267
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3272
irix5* | irix6* | nonstopux*)
3274
*-32|*"-32 ") libmagic=32-bit;;
3275
*-n32|*"-n32 ") libmagic=N32;;
3276
*-64|*"-64 ") libmagic=64-bit;;
3277
*) libmagic=never-match;;
3279
lt_cv_deplibs_check_method=pass_all
3282
# This must be Linux ELF.
3284
lt_cv_deplibs_check_method=pass_all
3288
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3289
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3291
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3296
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3297
lt_cv_file_magic_cmd=/usr/bin/file
3298
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3302
lt_cv_deplibs_check_method=unknown
3306
lt_cv_file_magic_cmd=/usr/bin/file
3307
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3308
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3309
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3311
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3315
osf3* | osf4* | osf5*)
3316
lt_cv_deplibs_check_method=pass_all
3320
lt_cv_deplibs_check_method=pass_all
3324
lt_cv_deplibs_check_method=pass_all
3327
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3328
case $host_vendor in
3330
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]]'
3331
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3334
lt_cv_deplibs_check_method=pass_all
3337
lt_cv_file_magic_cmd='/bin/file'
3338
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3341
lt_cv_file_magic_cmd='/bin/file'
3342
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3343
lt_cv_file_magic_test_file=/lib/libc.so
3346
lt_cv_deplibs_check_method=pass_all
3351
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
3352
lt_cv_deplibs_check_method=pass_all
3356
file_magic_cmd=$lt_cv_file_magic_cmd
3357
deplibs_check_method=$lt_cv_deplibs_check_method
3358
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3359
])# AC_DEPLIBS_CHECK_METHOD
3364
# find the pathname to a BSD-compatible name lister
3365
AC_DEFUN([AC_PROG_NM],
3366
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3367
[if test -n "$NM"; then
3368
# Let the user override the test.
3371
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3372
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3374
test -z "$ac_dir" && ac_dir=.
3375
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3376
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3377
# Check to see if the nm accepts a BSD-compat flag.
3378
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3379
# nm: unknown option "B" ignored
3380
# Tru64's nm complains that /dev/null is an invalid object file
3381
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3382
*/dev/null* | *'Invalid file or object type'*)
3383
lt_cv_path_NM="$tmp_nm -B"
3387
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3389
lt_cv_path_NM="$tmp_nm -p"
3393
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3394
continue # so that we can try to find one that supports BSD flags
3401
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3409
# check for math library
3410
AC_DEFUN([AC_CHECK_LIBM],
3411
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3414
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3415
# These system don't have libm, or don't need it
3418
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3419
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3422
AC_CHECK_LIB(m, cos, LIBM="-lm")
3428
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3429
# -----------------------------------
3430
# sets LIBLTDL to the link flags for the libltdl convenience library and
3431
# LTDLINCL to the include flags for the libltdl header and adds
3432
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
3433
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3434
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
3435
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
3436
# '${top_srcdir}/' (note the single quotes!). If your package is not
3437
# flat and you're not using automake, define top_builddir and
3438
# top_srcdir appropriately in the Makefiles.
3439
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3440
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3441
case $enable_ltdl_convenience in
3442
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3443
"") enable_ltdl_convenience=yes
3444
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3446
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3447
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3448
# For backwards non-gettext consistent compatibility...
3450
])# AC_LIBLTDL_CONVENIENCE
3453
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3454
# -----------------------------------
3455
# sets LIBLTDL to the link flags for the libltdl installable library and
3456
# LTDLINCL to the include flags for the libltdl header and adds
3457
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
3458
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
3459
# DIRECTORY is not provided and an installed libltdl is not found, it is
3460
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
3461
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
3462
# quotes!). If your package is not flat and you're not using automake,
3463
# define top_builddir and top_srcdir appropriately in the Makefiles.
3464
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3465
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3466
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3467
AC_CHECK_LIB(ltdl, lt_dlinit,
3468
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3469
[if test x"$enable_ltdl_install" = xno; then
3470
AC_MSG_WARN([libltdl not installed, but installation disabled])
3472
enable_ltdl_install=yes
3475
if test x"$enable_ltdl_install" = x"yes"; then
3476
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3477
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3478
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3480
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3484
# For backwards non-gettext consistent compatibility...
3486
])# AC_LIBLTDL_INSTALLABLE
3491
# enable support for C++ libraries
3492
AC_DEFUN([AC_LIBTOOL_CXX],
3493
[AC_REQUIRE([_LT_AC_LANG_CXX])
3499
AC_DEFUN([_LT_AC_LANG_CXX],
3500
[AC_REQUIRE([AC_PROG_CXX])
3501
AC_REQUIRE([AC_PROG_CXXCPP])
3502
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3508
# enable support for Fortran 77 libraries
3509
AC_DEFUN([AC_LIBTOOL_F77],
3510
[AC_REQUIRE([_LT_AC_LANG_F77])
3516
AC_DEFUN([_LT_AC_LANG_F77],
3517
[AC_REQUIRE([AC_PROG_F77])
3518
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3524
# enable support for GCJ libraries
3525
AC_DEFUN([AC_LIBTOOL_GCJ],
3526
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3532
AC_DEFUN([_LT_AC_LANG_GCJ],
3533
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3534
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3535
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3536
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3537
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3538
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3539
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3545
# enable support for Windows resource files
3546
AC_DEFUN([AC_LIBTOOL_RC],
3547
[AC_REQUIRE([LT_AC_PROG_RC])
3548
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3552
# AC_LIBTOOL_LANG_C_CONFIG
3553
# ------------------------
3554
# Ensure that the configuration vars for the C compiler are
3555
# suitably defined. Those variables are subsequently used by
3556
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3557
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3558
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3562
# Source file extension for C test sources.
3565
# Object file extension for compiled C test sources.
3567
_LT_AC_TAGVAR(objext, $1)=$objext
3569
# Code to be used in simple compile tests
3570
lt_simple_compile_test_code="int some_variable = 0;\n"
3572
# Code to be used in simple link tests
3573
lt_simple_link_test_code='int main(){return(0);}\n'
3578
# Check for any special shared library compilation flags.
3580
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3581
if test "$GCC" = no; then
3584
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3588
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3589
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3590
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3592
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3593
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3599
# Check to make sure the static flag actually works.
3601
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3602
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3603
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3605
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3608
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3609
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3610
AC_LIBTOOL_PROG_CC_C_O($1)
3611
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3612
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3613
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3614
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3615
AC_LIBTOOL_SYS_LIB_STRIP
3616
AC_LIBTOOL_DLOPEN_SELF($1)
3618
# Report which librarie types wil actually be built
2638
3619
AC_MSG_CHECKING([if libtool supports shared libraries])
2639
3620
AC_MSG_RESULT([$can_build_shared])
2657
3638
test "$enable_shared" = yes && enable_static=no
2661
AC_MSG_RESULT([$enable_shared])
2663
AC_MSG_CHECKING([whether to build static libraries])
2664
# Make sure either enable_shared or enable_static is yes.
2665
test "$enable_shared" = yes || enable_static=yes
2666
AC_MSG_RESULT([$enable_static])
2668
if test "$hardcode_action" = relink; then
2669
# Fast installation is not supported
2670
enable_fast_install=no
2671
elif test "$shlibpath_overrides_runpath" = yes ||
2672
test "$enable_shared" = no; then
2673
# Fast installation is not necessary
2674
enable_fast_install=needless
2677
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2678
if test "$GCC" = yes; then
2679
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2682
AC_LIBTOOL_DLOPEN_SELF
2684
if test "$enable_shared" = yes && test "$GCC" = yes; then
2685
case $archive_cmds in
2687
# FIXME: we may have to deal with multi-command sequences.
2690
# Test whether the compiler implicitly links with -lc since on some
2691
# systems, -lgcc has to come before -lc. If gcc already passes -lc
2692
# to ld, don't add -lc before -lgcc.
2693
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
2694
AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
2696
echo 'static int dummy;' > conftest.$ac_ext
2698
if AC_TRY_EVAL(ac_compile); then
2701
libobjs=conftest.$ac_objext
2703
wl=$lt_cv_prog_cc_wl
2709
save_allow_undefined_flag=$allow_undefined_flag
2710
allow_undefined_flag=
2711
if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
2713
lt_cv_archive_cmds_need_lc=no
2715
lt_cv_archive_cmds_need_lc=yes
2717
allow_undefined_flag=$save_allow_undefined_flag
2719
cat conftest.err 1>&5
2721
AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
2725
need_lc=${lt_cv_archive_cmds_need_lc-yes}
2727
# The second clause should only fire when bootstrapping the
3641
darwin* | rhapsody*)
3642
if test "$GCC" = yes; then
3643
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3645
rhapsody* | darwin1.[[012]])
3646
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3649
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3650
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3652
case ${MACOSX_DEPLOYMENT_TARGET} in
3654
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3657
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3663
output_verbose_link_cmd='echo'
3664
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3665
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3666
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3667
_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}'
3668
_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}'
3669
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3670
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3671
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3672
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3673
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3675
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3679
AC_MSG_RESULT([$enable_shared])
3681
AC_MSG_CHECKING([whether to build static libraries])
3682
# Make sure either enable_shared or enable_static is yes.
3683
test "$enable_shared" = yes || enable_static=yes
3684
AC_MSG_RESULT([$enable_static])
3686
AC_LIBTOOL_CONFIG($1)
3690
])# AC_LIBTOOL_LANG_C_CONFIG
3693
# AC_LIBTOOL_LANG_CXX_CONFIG
3694
# --------------------------
3695
# Ensure that the configuration vars for the C compiler are
3696
# suitably defined. Those variables are subsequently used by
3697
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3698
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3699
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3701
AC_REQUIRE([AC_PROG_CXX])
3702
AC_REQUIRE([AC_PROG_CXXCPP])
3704
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3705
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3706
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3707
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3708
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3709
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3710
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3711
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3712
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3713
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3714
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3715
_LT_AC_TAGVAR(module_cmds, $1)=
3716
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3717
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3718
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3719
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3720
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3721
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3723
# Dependencies to place before and after the object being linked:
3724
_LT_AC_TAGVAR(predep_objects, $1)=
3725
_LT_AC_TAGVAR(postdep_objects, $1)=
3726
_LT_AC_TAGVAR(predeps, $1)=
3727
_LT_AC_TAGVAR(postdeps, $1)=
3728
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3730
# Source file extension for C++ test sources.
3733
# Object file extension for compiled C++ test sources.
3735
_LT_AC_TAGVAR(objext, $1)=$objext
3737
# Code to be used in simple compile tests
3738
lt_simple_compile_test_code="int some_variable = 0;\n"
3740
# Code to be used in simple link tests
3741
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
3743
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3746
# Allow CC to be a program name with arguments.
3751
lt_save_with_gnu_ld=$with_gnu_ld
3752
lt_save_path_LD=$lt_cv_path_LD
3753
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3754
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3756
unset lt_cv_prog_gnu_ld
3758
if test -n "${lt_cv_path_LDCXX+set}"; then
3759
lt_cv_path_LD=$lt_cv_path_LDCXX
3763
test -z "${LDCXX+set}" || LD=$LDCXX
3766
_LT_AC_TAGVAR(compiler, $1)=$CC
3767
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
3769
# We don't want -fno-exception wen compiling C++ code, so set the
3770
# no_builtin_flag separately
3771
if test "$GXX" = yes; then
3772
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3774
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3777
if test "$GXX" = yes; then
3778
# Set up default GNU C++ configuration
3782
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3783
# archiving commands below assume that GNU ld is being used.
3784
if test "$with_gnu_ld" = yes; then
3785
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3786
_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'
3788
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3789
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3791
# If archive_cmds runs LD, not CC, wlarc should be empty
3792
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3793
# investigate it a little bit more. (MM)
3796
# ancient GNU ld didn't support --whole-archive et. al.
3797
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3798
grep 'no-whole-archive' > /dev/null; then
3799
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3801
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3807
# A generic and very simple default shared library creation
3808
# command for GNU C++ for the case where it uses the native
3809
# linker, instead of GNU ld. If possible, this setting should
3810
# overridden to take advantage of the native linker features on
3811
# the platform it is being used on.
3812
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3815
# Commands to make compiler produce verbose output that lists
3816
# what "hidden" libraries, object files and flags are used when
3817
# linking a shared library.
3818
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3826
# PORTME: fill in a description of your system's C++ link characteristics
3827
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3828
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3831
# FIXME: insert proper C++ library support
3832
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3835
if test "$host_cpu" = ia64; then
3836
# On IA64, the linker does run time linking by default, so we don't
3837
# have to do anything special.
3838
aix_use_runtimelinking=no
3839
exp_sym_flag='-Bexport'
3842
aix_use_runtimelinking=no
3844
# Test if we are trying to use run time linking or normal
3845
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3846
# need to do runtime linking.
3847
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3848
for ld_flag in $LDFLAGS; do
3851
aix_use_runtimelinking=yes
3858
exp_sym_flag='-bexport'
3859
no_entry_flag='-bnoentry'
3862
# When large executables or shared objects are built, AIX ld can
3863
# have problems creating the table of contents. If linking a library
3864
# or program results in "error TOC overflow" add -mminimal-toc to
3865
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3866
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3868
_LT_AC_TAGVAR(archive_cmds, $1)=''
3869
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3870
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3871
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3873
if test "$GXX" = yes; then
3874
case $host_os in aix4.[012]|aix4.[012].*)
3875
# We only want to do this on AIX 4.2 and lower, the check
3876
# below for broken collect2 doesn't work under 4.3+
3877
collect2name=`${CC} -print-prog-name=collect2`
3878
if test -f "$collect2name" && \
3879
strings "$collect2name" | grep resolve_lib_name >/dev/null
3881
# We have reworked collect2
3882
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3884
# We have old collect2
3885
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3886
# It fails to find uninstalled libraries when the uninstalled
3887
# path is not listed in the libpath. Setting hardcode_minus_L
3888
# to unsupported forces relinking
3889
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3890
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3891
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3894
shared_flag='-shared'
3897
if test "$host_cpu" = ia64; then
3898
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3899
# chokes on -Wl,-G. The following line is correct:
3902
if test "$aix_use_runtimelinking" = yes; then
3903
shared_flag='${wl}-G'
3905
shared_flag='${wl}-bM:SRE'
3910
# It seems that -bexpall does not export symbols beginning with
3911
# underscore (_), so it is better to generate a list of symbols to export.
3912
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3913
if test "$aix_use_runtimelinking" = yes; then
3914
# Warning - without using the other runtime loading flags (-brtl),
3915
# -berok will link without error, but may produce a broken library.
3916
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3917
# Determine the default libpath from the value encoded in an empty executable.
3918
_LT_AC_SYS_LIBPATH_AIX
3919
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3921
_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"
3923
if test "$host_cpu" = ia64; then
3924
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3925
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3926
_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"
3928
# Determine the default libpath from the value encoded in an empty executable.
3929
_LT_AC_SYS_LIBPATH_AIX
3930
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3931
# Warning - without using the other run time loading flags,
3932
# -berok will link without error, but may produce a broken library.
3933
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3934
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3935
# -bexpall does not export symbols beginning with underscore (_)
3936
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3937
# Exported symbols can be pulled into shared objects from archives
3938
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
3939
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3940
# This is similar to how AIX traditionally builds it's shared libraries.
3941
_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'
3946
case $cc_basename in
3948
# FIXME: insert proper C++ library support
3949
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3954
cygwin* | mingw* | pw32*)
3955
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3956
# as there is no search path for DLLs.
3957
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3958
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3959
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3960
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3962
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3963
_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'
3964
# If the export-symbols file already is a .def file (1st line
3965
# is EXPORTS), use it as is; otherwise, prepend...
3966
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3967
cp $export_symbols $output_objdir/$soname.def;
3969
echo EXPORTS > $output_objdir/$soname.def;
3970
cat $export_symbols >> $output_objdir/$soname.def;
3972
$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'
3974
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3978
darwin* | rhapsody*)
3979
if test "$GXX" = yes; then
3980
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3982
rhapsody* | darwin1.[[012]])
3983
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3986
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3987
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3989
case ${MACOSX_DEPLOYMENT_TARGET} in
3991
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3994
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4000
lt_int_apple_cc_single_mod=no
4001
output_verbose_link_cmd='echo'
4002
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4003
lt_int_apple_cc_single_mod=yes
4005
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4006
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4008
_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'
4010
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4012
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4013
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4014
_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}'
4016
_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}'
4018
_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}'
4019
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4020
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4021
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4022
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4023
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4025
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4030
case $cc_basename in
4032
# FIXME: insert proper C++ library support
4033
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4036
# Green Hills C++ Compiler
4037
# FIXME: insert proper C++ library support
4038
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4041
# FIXME: insert proper C++ library support
4042
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4047
# C++ shared libraries reported to be fairly broken before switch to ELF
4048
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4051
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4053
freebsd* | kfreebsd*-gnu)
4054
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4056
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4061
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4062
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4063
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4064
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4065
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4066
# but as the default
4067
# location of the library.
4069
case $cc_basename in
4071
# FIXME: insert proper C++ library support
4072
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4075
_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'
4076
# Commands to make compiler produce verbose output that lists
4077
# what "hidden" libraries, object files and flags are used when
4078
# linking a shared library.
4080
# There doesn't appear to be a way to prevent this compiler from
4081
# explicitly linking system object files so we need to strip them
4082
# from the output so that they don't get included in the library
4084
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'
4087
if test "$GXX" = yes; then
4088
_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'
4090
# FIXME: insert proper C++ library support
4091
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4097
if test $with_gnu_ld = no; then
4100
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4101
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4102
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4105
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4108
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4109
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4110
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4116
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4117
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4120
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4121
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4122
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4123
# but as the default
4124
# location of the library.
4127
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4128
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4129
# but as the default
4130
# location of the library.
4134
case $cc_basename in
4136
# FIXME: insert proper C++ library support
4137
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4142
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4145
_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'
4148
# Commands to make compiler produce verbose output that lists
4149
# what "hidden" libraries, object files and flags are used when
4150
# linking a shared library.
4152
# There doesn't appear to be a way to prevent this compiler from
4153
# explicitly linking system object files so we need to strip them
4154
# from the output so that they don't get included in the library
4156
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'
4159
if test "$GXX" = yes; then
4160
if test $with_gnu_ld = no; then
4163
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4166
_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'
4171
# FIXME: insert proper C++ library support
4172
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4178
case $cc_basename in
4181
_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'
4183
# Archives containing C++ object files must be created using
4184
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4185
# necessary to make sure instantiated templates are included
4187
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4190
if test "$GXX" = yes; then
4191
if test "$with_gnu_ld" = no; then
4192
_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'
4194
_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'
4197
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4200
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4201
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4204
case $cc_basename in
4206
# Kuck and Associates, Inc. (KAI) C++ Compiler
4208
# KCC will only create a shared library if the output file
4209
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4210
# to its proper name (with version) after linking.
4211
_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'
4212
_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'
4213
# Commands to make compiler produce verbose output that lists
4214
# what "hidden" libraries, object files and flags are used when
4215
# linking a shared library.
4217
# There doesn't appear to be a way to prevent this compiler from
4218
# explicitly linking system object files so we need to strip them
4219
# from the output so that they don't get included in the library
4221
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'
4223
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4224
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4226
# Archives containing C++ object files must be created using
4227
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4228
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4233
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4234
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4235
_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'
4236
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4237
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4238
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4242
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4243
_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'
4245
runpath_var=LD_RUN_PATH
4246
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4247
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4249
# Commands to make compiler produce verbose output that lists
4250
# what "hidden" libraries, object files and flags are used when
4251
# linking a shared library.
4253
# There doesn't appear to be a way to prevent this compiler from
4254
# explicitly linking system object files so we need to strip them
4255
# from the output so that they don't get included in the library
4257
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'
4262
# FIXME: insert proper C++ library support
4263
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4266
# FIXME: insert proper C++ library support
4267
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4270
case $cc_basename in
4272
# FIXME: insert proper C++ library support
4273
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4276
# FIXME: insert proper C++ library support
4277
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4282
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4283
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4285
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4286
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4287
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4289
# Workaround some broken pre-1.5 toolchains
4290
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4293
case $cc_basename in
4295
# Kuck and Associates, Inc. (KAI) C++ Compiler
4297
# KCC will only create a shared library if the output file
4298
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4299
# to its proper name (with version) after linking.
4300
_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'
4302
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4303
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4305
# Archives containing C++ object files must be created using
4306
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4307
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4311
# Rational C++ 2.4.1
4312
# FIXME: insert proper C++ library support
4313
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4316
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4317
_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'
4319
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4320
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4322
# Commands to make compiler produce verbose output that lists
4323
# what "hidden" libraries, object files and flags are used when
4324
# linking a shared library.
4326
# There doesn't appear to be a way to prevent this compiler from
4327
# explicitly linking system object files so we need to strip them
4328
# from the output so that they don't get included in the library
4330
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'
4333
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4334
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4335
_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'
4337
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4338
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4340
# Commands to make compiler produce verbose output that lists
4341
# what "hidden" libraries, object files and flags are used when
4342
# linking a shared library.
4343
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4346
# FIXME: insert proper C++ library support
4347
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4353
case $cc_basename in
4355
# Kuck and Associates, Inc. (KAI) C++ Compiler
4357
# KCC will only create a shared library if the output file
4358
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4359
# to its proper name (with version) after linking.
4360
_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'
4362
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4363
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4365
# Archives containing C++ object files must be created using
4366
# the KAI C++ compiler.
4367
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4370
# Rational C++ 2.4.1
4371
# FIXME: insert proper C++ library support
4372
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4375
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4376
_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'
4377
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4378
echo "-hidden">> $lib.exp~
4379
$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~
4382
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4383
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4385
# Commands to make compiler produce verbose output that lists
4386
# what "hidden" libraries, object files and flags are used when
4387
# linking a shared library.
4389
# There doesn't appear to be a way to prevent this compiler from
4390
# explicitly linking system object files so we need to strip them
4391
# from the output so that they don't get included in the library
4393
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'
4396
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4397
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4398
_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'
4400
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4401
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4403
# Commands to make compiler produce verbose output that lists
4404
# what "hidden" libraries, object files and flags are used when
4405
# linking a shared library.
4406
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4409
# FIXME: insert proper C++ library support
4410
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4416
# FIXME: insert proper C++ library support
4417
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4420
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4421
case $cc_basename in
4423
# FIXME: insert proper C++ library support
4424
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4427
# FIXME: insert proper C++ library support
4428
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4433
case $cc_basename in
4436
# FIXME: insert proper C++ library support
4437
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4441
# FIXME: insert proper C++ library support
4442
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4445
# FIXME: insert proper C++ library support
4446
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4451
case $cc_basename in
4453
# Sun C++ 4.2, 5.x and Centerline C++
4454
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4455
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4456
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4457
$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'
4459
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4460
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4462
solaris2.[0-5] | solaris2.[0-5].*) ;;
4464
# The C++ compiler is used as linker so we must use $wl
4465
# flag to pass the commands to the underlying system
4467
# Supported since Solaris 2.6 (maybe 2.5.1?)
4468
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4471
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4473
# Commands to make compiler produce verbose output that lists
4474
# what "hidden" libraries, object files and flags are used when
4475
# linking a shared library.
4477
# There doesn't appear to be a way to prevent this compiler from
4478
# explicitly linking system object files so we need to strip them
4479
# from the output so that they don't get included in the library
4481
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'
4483
# Archives containing C++ object files must be created using
4484
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4485
# necessary to make sure instantiated templates are included
4487
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4490
# Green Hills C++ Compiler
4491
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4493
# The C++ compiler must be used to create the archive.
4494
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4497
# GNU C++ compiler with Solaris linker
4498
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4499
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4500
if $CC --version | grep -v '^2\.7' > /dev/null; then
4501
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4502
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4503
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4505
# Commands to make compiler produce verbose output that lists
4506
# what "hidden" libraries, object files and flags are used when
4507
# linking a shared library.
4508
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4510
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4512
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4513
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4514
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4516
# Commands to make compiler produce verbose output that lists
4517
# what "hidden" libraries, object files and flags are used when
4518
# linking a shared library.
4519
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4522
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4527
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
4528
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4531
case $cc_basename in
4533
# NonStop-UX NCC 3.20
4534
# FIXME: insert proper C++ library support
4535
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4538
# FIXME: insert proper C++ library support
4539
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4544
# FIXME: insert proper C++ library support
4545
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4548
# FIXME: insert proper C++ library support
4549
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4552
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4553
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4555
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4556
_LT_AC_TAGVAR(LD, $1)="$LD"
4558
AC_LIBTOOL_POSTDEP_PREDEP($1)
4559
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4560
AC_LIBTOOL_PROG_CC_C_O($1)
4561
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4562
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4563
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4564
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4565
AC_LIBTOOL_SYS_LIB_STRIP
4566
AC_LIBTOOL_DLOPEN_SELF($1)
4568
AC_LIBTOOL_CONFIG($1)
4575
with_gnu_ldcxx=$with_gnu_ld
4576
with_gnu_ld=$lt_save_with_gnu_ld
4577
lt_cv_path_LDCXX=$lt_cv_path_LD
4578
lt_cv_path_LD=$lt_save_path_LD
4579
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4580
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4581
])# AC_LIBTOOL_LANG_CXX_CONFIG
4583
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4584
# ------------------------
4585
# Figure out "hidden" library dependencies from verbose
4586
# compiler output when linking a shared library.
4587
# Parse the compiler output and extract the necessary
4588
# objects, libraries and library flags.
4589
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4590
dnl we can't use the lt_simple_compile_test_code here,
4591
dnl because it contains code intended for an executable,
4592
dnl not a library. It's possible we should let each
4593
dnl tag define a new lt_????_link_test_code variable,
4594
dnl but it's only used here...
4595
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4597
void foo (void) { a = 0; }
4599
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4603
Foo (void) { a = 0; }
4608
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4616
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4619
public void bar (void) {
4625
dnl Parse the compiler output and extract the necessary
4626
dnl objects, libraries and library flags.
4627
if AC_TRY_EVAL(ac_compile); then
4628
# Parse the compiler output and extract the necessary
4629
# objects, libraries and library flags.
4631
# Sentinel used to keep track of whether or not we are before
4632
# the conftest object file.
4633
pre_test_object_deps_done=no
4635
# The `*' in the case matches for architectures that use `case' in
4636
# $output_verbose_cmd can trigger glob expansion during the loop
4637
# eval without this substitution.
4638
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
4640
for p in `eval $output_verbose_link_cmd`; do
4644
# Some compilers place space between "-{L,R}" and the path.
4647
|| test $p = "-R"; then
4654
if test "$pre_test_object_deps_done" = no; then
4657
# Internal compiler library paths should come after those
4658
# provided the user. The postdeps already come after the
4659
# user supplied libs so there is no need to process them.
4660
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4661
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4663
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4666
# The "-l" case would never come before the object being
4667
# linked, so don't bother handling this case.
4670
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4671
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4673
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4679
# This assumes that the test object file only shows up
4680
# once in the compiler output.
4681
if test "$p" = "conftest.$objext"; then
4682
pre_test_object_deps_done=yes
4686
if test "$pre_test_object_deps_done" = no; then
4687
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4688
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4690
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4693
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4694
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4696
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4701
*) ;; # Ignore the rest.
4709
echo "libtool.m4: error: problem compiling $1 test program"
4712
$rm -f confest.$objext
4714
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4715
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4717
])# AC_LIBTOOL_POSTDEP_PREDEP
4719
# AC_LIBTOOL_LANG_F77_CONFIG
4720
# ------------------------
4721
# Ensure that the configuration vars for the C compiler are
4722
# suitably defined. Those variables are subsequently used by
4723
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4724
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4725
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4726
[AC_REQUIRE([AC_PROG_F77])
4727
AC_LANG_PUSH(Fortran 77)
4729
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4730
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4731
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4732
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4733
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4734
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4735
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4736
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4737
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4738
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4739
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4740
_LT_AC_TAGVAR(module_cmds, $1)=
4741
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4742
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4743
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4744
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4745
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4746
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4748
# Source file extension for f77 test sources.
4751
# Object file extension for compiled f77 test sources.
4753
_LT_AC_TAGVAR(objext, $1)=$objext
4755
# Code to be used in simple compile tests
4756
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4758
# Code to be used in simple link tests
4759
lt_simple_link_test_code=" program t\n end\n"
4761
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4764
# Allow CC to be a program name with arguments.
4768
_LT_AC_TAGVAR(compiler, $1)=$CC
4769
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4771
AC_MSG_CHECKING([if libtool supports shared libraries])
4772
AC_MSG_RESULT([$can_build_shared])
4774
AC_MSG_CHECKING([whether to build shared libraries])
4775
test "$can_build_shared" = "no" && enable_shared=no
4777
# On AIX, shared libraries and static libraries use the same namespace, and
4778
# are all built from PIC.
4781
test "$enable_shared" = yes && enable_static=no
4782
if test -n "$RANLIB"; then
4783
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4784
postinstall_cmds='$RANLIB $lib'
4788
test "$enable_shared" = yes && enable_static=no
4791
AC_MSG_RESULT([$enable_shared])
4793
AC_MSG_CHECKING([whether to build static libraries])
4794
# Make sure either enable_shared or enable_static is yes.
4795
test "$enable_shared" = yes || enable_static=yes
4796
AC_MSG_RESULT([$enable_static])
4798
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4800
_LT_AC_TAGVAR(GCC, $1)="$G77"
4801
_LT_AC_TAGVAR(LD, $1)="$LD"
4803
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4804
AC_LIBTOOL_PROG_CC_C_O($1)
4805
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4806
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4807
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4808
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4809
AC_LIBTOOL_SYS_LIB_STRIP
4812
AC_LIBTOOL_CONFIG($1)
4816
])# AC_LIBTOOL_LANG_F77_CONFIG
4819
# AC_LIBTOOL_LANG_GCJ_CONFIG
4820
# --------------------------
4821
# Ensure that the configuration vars for the C compiler are
4822
# suitably defined. Those variables are subsequently used by
4823
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4824
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4825
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4828
# Source file extension for Java test sources.
4831
# Object file extension for compiled Java test sources.
4833
_LT_AC_TAGVAR(objext, $1)=$objext
4835
# Code to be used in simple compile tests
4836
lt_simple_compile_test_code="class foo {}\n"
4838
# Code to be used in simple link tests
4839
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
4841
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4844
# Allow CC to be a program name with arguments.
4848
_LT_AC_TAGVAR(compiler, $1)=$CC
4850
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4851
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4853
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4854
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4855
AC_LIBTOOL_PROG_CC_C_O($1)
4856
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4857
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4858
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4859
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4860
AC_LIBTOOL_SYS_LIB_STRIP
4861
AC_LIBTOOL_DLOPEN_SELF($1)
4863
AC_LIBTOOL_CONFIG($1)
4867
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4870
# AC_LIBTOOL_LANG_RC_CONFIG
4871
# --------------------------
4872
# Ensure that the configuration vars for the Windows resource compiler are
4873
# suitably defined. Those variables are subsequently used by
4874
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4875
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4876
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4879
# Source file extension for RC test sources.
4882
# Object file extension for compiled RC test sources.
4884
_LT_AC_TAGVAR(objext, $1)=$objext
4886
# Code to be used in simple compile tests
4887
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4889
# Code to be used in simple link tests
4890
lt_simple_link_test_code="$lt_simple_compile_test_code"
4892
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4895
# Allow CC to be a program name with arguments.
4899
_LT_AC_TAGVAR(compiler, $1)=$CC
4900
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4902
AC_LIBTOOL_CONFIG($1)
4906
])# AC_LIBTOOL_LANG_RC_CONFIG
4909
# AC_LIBTOOL_CONFIG([TAGNAME])
4910
# ----------------------------
4911
# If TAGNAME is not passed, then create an initial libtool script
4912
# with a default configuration from the untagged config vars. Otherwise
4913
# add code to config.status for appending the configuration named by
4914
# TAGNAME from the matching tagged config vars.
4915
AC_DEFUN([AC_LIBTOOL_CONFIG],
4916
[# The else clause should only fire when bootstrapping the
2728
4917
# libtool distribution, otherwise you forgot to ship ltmain.sh
2729
4918
# with your package, and you will get complaints that there are
2730
4919
# no rules to generate ltmain.sh.
2731
4920
if test -f "$ltmain"; then
2734
# If there is no Makefile yet, we rely on a make rule to execute
2735
# `config.status --recheck' to rerun these tests and create the
2736
# libtool script then.
2737
test -f Makefile && make "$ltmain"
2740
if test -f "$ltmain"; then
2741
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
2744
echo creating $ofile
4921
# See if we are running on zsh, and set the options which allow our commands through
4922
# without removal of \ escapes.
4923
if test -n "${ZSH_VERSION+set}" ; then
4924
setopt NO_GLOB_SUBST
2746
4926
# Now quote all the things that may contain metacharacters while being
2747
4927
# careful not to overquote the AC_SUBSTed values. We take copies of the
2748
4928
# variables and quote the copies for generation of the libtool script.
2749
for var in echo old_CC old_CFLAGS \
2750
AR AR_FLAGS CC LD LN_S NM SHELL \
2751
reload_flag reload_cmds wl \
2752
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
2753
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
2754
library_names_spec soname_spec \
2755
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
2756
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
2757
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
2758
old_striplib striplib file_magic_cmd export_symbols_cmds \
2759
deplibs_check_method allow_undefined_flag no_undefined_flag \
2760
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
2761
global_symbol_to_c_name_address \
2762
hardcode_libdir_flag_spec hardcode_libdir_separator \
4929
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4931
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4932
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4933
deplibs_check_method reload_flag reload_cmds need_locks \
4934
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4935
lt_cv_sys_global_symbol_to_c_name_address \
2763
4936
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
2764
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4937
old_postinstall_cmds old_postuninstall_cmds \
4938
_LT_AC_TAGVAR(compiler, $1) \
4939
_LT_AC_TAGVAR(CC, $1) \
4940
_LT_AC_TAGVAR(LD, $1) \
4941
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4942
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4943
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4944
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4945
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4946
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4947
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4948
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4949
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4950
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4951
_LT_AC_TAGVAR(predep_objects, $1) \
4952
_LT_AC_TAGVAR(postdep_objects, $1) \
4953
_LT_AC_TAGVAR(predeps, $1) \
4954
_LT_AC_TAGVAR(postdeps, $1) \
4955
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4956
_LT_AC_TAGVAR(archive_cmds, $1) \
4957
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4958
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4959
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4960
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4961
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4962
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4963
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4964
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4965
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4966
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4967
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4968
_LT_AC_TAGVAR(module_cmds, $1) \
4969
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4970
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4971
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4972
_LT_AC_TAGVAR(include_expsyms, $1); do
2767
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4975
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4976
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4977
_LT_AC_TAGVAR(archive_cmds, $1) | \
4978
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4979
_LT_AC_TAGVAR(module_cmds, $1) | \
4980
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4981
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4982
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4983
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4984
postinstall_cmds | postuninstall_cmds | \
2768
4985
old_postinstall_cmds | old_postuninstall_cmds | \
2769
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
2770
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
2771
postinstall_cmds | postuninstall_cmds | \
2772
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4986
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
2773
4987
# Double-quote double-evaled strings.
2774
4988
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
3087
cygwin* | mingw* | pw32* | os2*)
3088
cat <<'EOF' >> "${ofile}T"
3089
# This is a source program that is used to create dlls on Windows
3090
# Don't remove nor modify the starting and closing comments
5372
# We use sed instead of cat because bash on DJGPP gets confused if
5373
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5374
# text mode, it properly converts lines to CR/LF. This bash problem
5375
# is reportedly fixed, but why not run on old versions too?
5376
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5378
mv -f "$cfgfile" "$ofile" || \
5379
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5383
# If there is no Makefile yet, we rely on a make rule to execute
5384
# `config.status --recheck' to rerun these tests and create the
5385
# libtool script then.
5386
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5387
if test -f "$ltmain_in"; then
5388
test -f Makefile && make "$ltmain"
5391
])# AC_LIBTOOL_CONFIG
5394
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5395
# -------------------------------------------
5396
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5397
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5399
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5401
if test "$GCC" = yes; then
5402
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5404
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5405
lt_cv_prog_compiler_rtti_exceptions,
5406
[-fno-rtti -fno-exceptions], [],
5407
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5409
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5412
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5413
# ---------------------------------
5414
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5415
[AC_REQUIRE([AC_CANONICAL_HOST])
5416
AC_REQUIRE([AC_PROG_NM])
5417
AC_REQUIRE([AC_OBJEXT])
5418
# Check for command to grab the raw symbol name followed by C symbol from nm.
5419
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5420
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5422
# These are sane defaults that work on at least a few old systems.
5423
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5425
# Character class describing NM global symbol codes.
5426
symcode='[[BCDEGRST]]'
5428
# Regexp to match symbols that can be accessed directly from C.
5429
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5431
# Transform the above into a raw symbol and a C symbol.
5432
symxfrm='\1 \2\3 \3'
5434
# Transform an extracted symbol line into a proper C declaration
5435
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5437
# Transform an extracted symbol line into symbol name and symbol address
5438
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'"
5440
# Define system-specific variables.
5445
cygwin* | mingw* | pw32*)
5446
symcode='[[ABCDGISTW]]'
5448
hpux*) # Its linker distinguishes data from code symbols
5449
if test "$host_cpu" = ia64; then
5450
symcode='[[ABCDEGRST]]'
5452
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5453
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'"
5456
symcode='[[BCDEGRST]]'
5459
symcode='[[BCDEGQRST]]'
5465
symcode='[[DFNSTU]]'
5469
# Handle CRLF in mingw tool chain
5473
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5477
# If we're using GNU nm, then use its standard symbol codes.
5478
case `$NM -V 2>&1` in
5479
*GNU* | *'with BFD'*)
5480
symcode='[[ABCDGIRSTW]]' ;;
5483
# Try without a prefix undercore, then with it.
5484
for ac_symprfx in "" "_"; do
5486
# Write the raw and C identifiers.
5487
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5489
# Check to see that the pipe works correctly.
5493
cat > conftest.$ac_ext <<EOF
5498
void nm_test_func(){}
5502
int main(){nm_test_var='a';nm_test_func();return(0);}
5505
if AC_TRY_EVAL(ac_compile); then
5506
# Now try to grab the symbols.
5508
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5509
# Try sorting and uniquifying the output.
5510
if sort "$nlist" | uniq > "$nlist"T; then
5511
mv -f "$nlist"T "$nlist"
5516
# Make sure that we snagged all the symbols we need.
5517
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5518
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5519
cat <<EOF > conftest.$ac_ext
5525
# Now generate the symbol file.
5526
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5528
cat <<EOF >> conftest.$ac_ext
5529
#if defined (__STDC__) && __STDC__
5530
# define lt_ptr_t void *
5532
# define lt_ptr_t char *
5536
/* The mapping between symbol names and symbols. */
5541
lt_preloaded_symbols[[]] =
5544
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5545
cat <<\EOF >> conftest.$ac_ext
5553
# Now try linking the two files.
5554
mv conftest.$ac_objext conftstm.$ac_objext
5555
lt_save_LIBS="$LIBS"
5556
lt_save_CFLAGS="$CFLAGS"
5557
LIBS="conftstm.$ac_objext"
5558
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5559
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5562
LIBS="$lt_save_LIBS"
5563
CFLAGS="$lt_save_CFLAGS"
5565
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5568
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5571
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5574
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5575
cat conftest.$ac_ext >&5
5577
rm -f conftest* conftst*
5579
# Do not use the global_symbol_pipe unless it works.
5580
if test "$pipe_works" = yes; then
5583
lt_cv_sys_global_symbol_pipe=
5587
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5588
lt_cv_sys_global_symbol_to_cdecl=
5590
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5591
AC_MSG_RESULT(failed)
5595
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5598
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5599
# ---------------------------------------
5600
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5601
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5602
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5603
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5605
AC_MSG_CHECKING([for $compiler option to produce PIC])
5607
# C++ specific cases for pic, static, wl, etc.
5608
if test "$GXX" = yes; then
5609
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5610
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5614
# All AIX code is PIC.
5615
if test "$host_cpu" = ia64; then
5616
# AIX 5 now supports IA64 processor
5617
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5621
# FIXME: we need at least 68020 code to build shared libraries, but
5622
# adding the `-m68020' flag to GCC prevents building anything better,
5624
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5626
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5627
# PIC is the default for these OSes.
5629
mingw* | os2* | pw32*)
5630
# This hack is so that the source file can tell whether it is being
5631
# built for inclusion in a dll (and should export symbols for example).
5632
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5634
darwin* | rhapsody*)
5635
# PIC is the default on this platform
5636
# Common symbols not allowed in MH_DYLIB files
5637
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5640
# DJGPP does not support shared libraries at all
5641
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5644
if test -d /usr/nec; then
5645
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5649
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5655
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5660
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5666
# All AIX code is PIC.
5667
if test "$host_cpu" = ia64; then
5668
# AIX 5 now supports IA64 processor
5669
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5671
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5675
case $cc_basename in
5677
# Green Hills C++ Compiler
5678
# _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"
5683
case $cc_basename in
5685
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5688
# Green Hills C++ Compiler
5689
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5695
freebsd* | kfreebsd*-gnu)
5696
# FreeBSD uses GNU C++
5698
hpux9* | hpux10* | hpux11*)
5699
case $cc_basename in
5701
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5702
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5703
if test "$host_cpu" != ia64; then
5704
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5708
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5709
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
5715
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5723
irix5* | irix6* | nonstopux*)
5724
case $cc_basename in
5726
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5727
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5728
# CC pic flag -KPIC is the default.
5735
case $cc_basename in
5738
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5739
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5743
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5744
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5745
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5749
# Make sure the PIC flag is empty. It appears that all Alpha
5750
# Linux and Compaq Tru64 Unix objects are PIC.
5751
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5752
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5763
case $cc_basename in
5765
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5773
osf3* | osf4* | osf5*)
5774
case $cc_basename in
5776
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5779
# Rational C++ 2.4.1
5780
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5783
# Digital/Compaq C++
5784
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5785
# Make sure the PIC flag is empty. It appears that all Alpha
5786
# Linux and Compaq Tru64 Unix objects are PIC.
5787
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5788
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5797
case $cc_basename in
5799
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5806
case $cc_basename in
5808
# Sun C++ 4.2, 5.x and Centerline C++
5809
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5810
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5811
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5814
# Green Hills C++ Compiler
5815
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5822
case $cc_basename in
5825
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5826
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5830
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5837
case $cc_basename in
5839
# NonStop-UX NCC 3.20
5840
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5851
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5857
if test "$GCC" = yes; then
5858
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5859
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5863
# All AIX code is PIC.
5864
if test "$host_cpu" = ia64; then
5865
# AIX 5 now supports IA64 processor
5866
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5871
# FIXME: we need at least 68020 code to build shared libraries, but
5872
# adding the `-m68020' flag to GCC prevents building anything better,
5874
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5877
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5878
# PIC is the default for these OSes.
5881
mingw* | pw32* | os2*)
5882
# This hack is so that the source file can tell whether it is being
5883
# built for inclusion in a dll (and should export symbols for example).
5884
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5887
darwin* | rhapsody*)
5888
# PIC is the default on this platform
5889
# Common symbols not allowed in MH_DYLIB files
5890
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5894
# Just because we use GCC doesn't mean we suddenly get shared libraries
5895
# on systems that don't support them.
5896
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5901
if test -d /usr/nec; then
5902
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5907
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5914
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5920
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5924
# PORTME Check for flag to pass linker flags through the system compiler.
5927
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5928
if test "$host_cpu" = ia64; then
5929
# AIX 5 now supports IA64 processor
5930
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5932
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5936
mingw* | pw32* | os2*)
5937
# This hack is so that the source file can tell whether it is being
5938
# built for inclusion in a dll (and should export symbols for example).
5939
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5942
hpux9* | hpux10* | hpux11*)
5943
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5944
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5951
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5954
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5955
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5958
irix5* | irix6* | nonstopux*)
5959
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5960
# PIC (with -KPIC) is the default.
5961
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5965
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5966
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5972
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5973
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5974
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5977
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5978
# All Alpha code is PIC.
5979
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5984
osf3* | osf4* | osf5*)
5985
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5986
# All OSF/1 code is PIC.
5987
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5991
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5992
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5996
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5997
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5998
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6002
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6003
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6004
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6007
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6008
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6009
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6010
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6014
if test -d /usr/nec ;then
6015
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6016
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6021
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6022
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6026
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6031
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6034
# Check to make sure the PIC flag actually works.
6036
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6037
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6038
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6039
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6040
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6042
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6044
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6045
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6048
# For platforms which do not support PIC, -DPIC is meaningless:
6050
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6053
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6059
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6060
# ------------------------------------
6061
# See if the linker supports building shared libraries.
6062
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6063
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6065
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6068
# If we're using GNU nm, then we don't want the "-C" option.
6069
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6070
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6071
_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'
6073
_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'
6077
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6080
_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'
6083
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6088
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6089
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6090
_LT_AC_TAGVAR(archive_cmds, $1)=
6091
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6092
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6093
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6094
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6095
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6096
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6097
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6098
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6099
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6100
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6101
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6102
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6103
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6104
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6105
_LT_AC_TAGVAR(module_cmds, $1)=
6106
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6107
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6108
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6109
# include_expsyms should be a list of space-separated symbols to be *always*
6110
# included in the symbol list
6111
_LT_AC_TAGVAR(include_expsyms, $1)=
6112
# exclude_expsyms can be an extended regexp of symbols to exclude
6113
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6114
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6115
# as well as any symbol that contains `d'.
6116
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6117
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6118
# platforms (ab)use it in PIC code, but their linkers get confused if
6119
# the symbol is explicitly referenced. Since portable code cannot
6120
# rely on this symbol name, it's probably fine to never include it in
6121
# preloaded symbol tables.
6122
extract_expsyms_cmds=
6125
cygwin* | mingw* | pw32*)
6126
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6127
# When not using gcc, we currently assume that we are using
6128
# Microsoft Visual C++.
6129
if test "$GCC" != yes; then
6138
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6139
if test "$with_gnu_ld" = yes; then
6140
# If archive_cmds runs LD, not CC, wlarc should be empty
6143
# See if GNU ld supports shared libraries.
6145
aix3* | aix4* | aix5*)
6146
# On AIX/PPC, the GNU linker is very broken
6147
if test "$host_cpu" != ia64; then
6148
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6151
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6152
*** to be unable to reliably create shared libraries on AIX.
6153
*** Therefore, libtool is disabling shared libraries support. If you
6154
*** really care for shared libraries, you may want to modify your PATH
6155
*** so that a non-GNU linker is found, and then restart.
6162
_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)'
6163
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6164
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6166
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6167
# that the semantics of dynamic libraries on AmigaOS, at least up
6168
# to version 4, is to share data among multiple programs linked
6169
# with the same dynamic library. Since this doesn't match the
6170
# behavior of shared libraries on other platforms, we can't use
6172
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6176
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6177
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6178
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6179
# support --undefined. This deserves some investigation. FIXME
6180
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6182
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6186
cygwin* | mingw* | pw32*)
6187
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6188
# as there is no search path for DLLs.
6189
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6190
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6191
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6192
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6193
_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'
6195
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6196
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6197
# If the export-symbols file already is a .def file (1st line
6198
# is EXPORTS), use it as is; otherwise, prepend...
6199
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6200
cp $export_symbols $output_objdir/$soname.def;
6202
echo EXPORTS > $output_objdir/$soname.def;
6203
cat $export_symbols >> $output_objdir/$soname.def;
6205
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6212
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6213
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6216
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6217
_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'
6222
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6223
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6226
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6227
*** create shared libraries on Solaris systems. Therefore, libtool
6228
*** is disabling shared libraries support. We urge you to upgrade GNU
6229
*** binutils to release 2.9.1 or newer. Another option is to modify
6230
*** your PATH or compiler configuration so that the native linker is
6231
*** used, and then restart.
6234
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6235
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6236
_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'
6238
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6243
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6245
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6246
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6250
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6251
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6252
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
6253
supports_anon_versioning=no
6254
case `$LD -v 2>/dev/null` in
6255
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6256
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6257
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6258
*\ 2.11.*) ;; # other 2.11 versions
6259
*) supports_anon_versioning=yes ;;
6261
if test $supports_anon_versioning = yes; then
6262
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6263
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6264
$echo "local: *; };" >> $output_objdir/$libname.ver~
6265
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6267
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
6270
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6275
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6276
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6277
_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'
6279
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6284
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
6285
runpath_var=LD_RUN_PATH
6286
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6287
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6288
# ancient GNU ld didn't support --whole-archive et. al.
6289
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6290
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6292
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6296
# PORTME fill in a description of your system's linker (not GNU ld)
6299
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6300
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6301
_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'
6302
# Note: this linker hardcodes the directories in LIBPATH if there
6303
# are no directories specified by -L.
6304
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6305
if test "$GCC" = yes && test -z "$link_static_flag"; then
6306
# Neither direct hardcoding nor static linking is supported with a
6308
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6313
if test "$host_cpu" = ia64; then
6314
# On IA64, the linker does run time linking by default, so we don't
6315
# have to do anything special.
6316
aix_use_runtimelinking=no
6317
exp_sym_flag='-Bexport'
6320
# If we're using GNU nm, then we don't want the "-C" option.
6321
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6322
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6323
_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'
6325
_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'
6327
aix_use_runtimelinking=no
6329
# Test if we are trying to use run time linking or normal
6330
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6331
# need to do runtime linking.
6332
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6333
for ld_flag in $LDFLAGS; do
6334
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6335
aix_use_runtimelinking=yes
6341
exp_sym_flag='-bexport'
6342
no_entry_flag='-bnoentry'
6345
# When large executables or shared objects are built, AIX ld can
6346
# have problems creating the table of contents. If linking a library
6347
# or program results in "error TOC overflow" add -mminimal-toc to
6348
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6349
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6351
_LT_AC_TAGVAR(archive_cmds, $1)=''
6352
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6353
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6354
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6356
if test "$GCC" = yes; then
6357
case $host_os in aix4.[012]|aix4.[012].*)
6358
# We only want to do this on AIX 4.2 and lower, the check
6359
# below for broken collect2 doesn't work under 4.3+
6360
collect2name=`${CC} -print-prog-name=collect2`
6361
if test -f "$collect2name" && \
6362
strings "$collect2name" | grep resolve_lib_name >/dev/null
6364
# We have reworked collect2
6365
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6367
# We have old collect2
6368
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6369
# It fails to find uninstalled libraries when the uninstalled
6370
# path is not listed in the libpath. Setting hardcode_minus_L
6371
# to unsupported forces relinking
6372
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6373
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6374
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6377
shared_flag='-shared'
6380
if test "$host_cpu" = ia64; then
6381
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6382
# chokes on -Wl,-G. The following line is correct:
6385
if test "$aix_use_runtimelinking" = yes; then
6386
shared_flag='${wl}-G'
6388
shared_flag='${wl}-bM:SRE'
6393
# It seems that -bexpall does not export symbols beginning with
6394
# underscore (_), so it is better to generate a list of symbols to export.
6395
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6396
if test "$aix_use_runtimelinking" = yes; then
6397
# Warning - without using the other runtime loading flags (-brtl),
6398
# -berok will link without error, but may produce a broken library.
6399
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6400
# Determine the default libpath from the value encoded in an empty executable.
6401
_LT_AC_SYS_LIBPATH_AIX
6402
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6403
_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"
6405
if test "$host_cpu" = ia64; then
6406
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6407
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6408
_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"
6410
# Determine the default libpath from the value encoded in an empty executable.
6411
_LT_AC_SYS_LIBPATH_AIX
6412
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6413
# Warning - without using the other run time loading flags,
6414
# -berok will link without error, but may produce a broken library.
6415
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6416
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6417
# -bexpall does not export symbols beginning with underscore (_)
6418
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6419
# Exported symbols can be pulled into shared objects from archives
6420
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
6421
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6422
# This is similar to how AIX traditionally builds it's shared libraries.
6423
_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'
6429
_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)'
6430
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6431
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6432
# see comment about different semantics on the GNU ld section
6433
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6437
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6440
cygwin* | mingw* | pw32*)
6441
# When not using gcc, we currently assume that we are using
6442
# Microsoft Visual C++.
6443
# hardcode_libdir_flag_spec is actually meaningless, as there is
6444
# no search path for DLLs.
6445
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6446
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6447
# Tell ltmain to make .lib files, not .a files.
6449
# Tell ltmain to make .dll files, not .so files.
6451
# FIXME: Setting linknames here is a bad hack.
6452
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6453
# The linker will automatically build a .lib file if we build a DLL.
6454
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6455
# FIXME: Should let the user specify the lib program.
6456
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6457
fix_srcfile_path='`cygpath -w "$srcfile"`'
6458
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6461
darwin* | rhapsody*)
6462
if test "$GXX" = yes ; then
6463
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6465
rhapsody* | darwin1.[[012]])
6466
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6469
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6470
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6472
case ${MACOSX_DEPLOYMENT_TARGET} in
6474
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6477
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6483
lt_int_apple_cc_single_mod=no
6484
output_verbose_link_cmd='echo'
6485
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6486
lt_int_apple_cc_single_mod=yes
6488
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6489
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6491
_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'
6493
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6494
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6495
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6496
_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}'
6498
_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}'
6500
_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}'
6501
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6502
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6503
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6504
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6505
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6507
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6512
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6513
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6514
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6518
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6521
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6522
# support. Future versions do this automatically, but an explicit c++rt0.o
6523
# does not break anything, and helps significantly (at the cost of a little
6526
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6527
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6528
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6529
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6532
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6534
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6535
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6536
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6537
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6540
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6541
freebsd* | kfreebsd*-gnu)
6542
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6543
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6544
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6545
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6549
if test "$GCC" = yes; then
6550
_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'
6552
_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'
6554
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6555
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6556
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6558
# hardcode_minus_L: Not really in the search PATH,
6559
# but as the default location of the library.
6560
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6561
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6565
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6568
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6571
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6577
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6580
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6584
if test "$with_gnu_ld" = no; then
6587
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6588
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6589
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6590
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6591
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6594
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6595
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6596
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6598
# hardcode_minus_L: Not really in the search PATH,
6599
# but as the default location of the library.
6600
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6603
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6604
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6605
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6606
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6608
# hardcode_minus_L: Not really in the search PATH,
6609
# but as the default location of the library.
6610
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6616
irix5* | irix6* | nonstopux*)
6617
if test "$GCC" = yes; then
6618
_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'
6620
_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'
6621
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6623
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6624
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6625
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6629
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6630
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6632
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6634
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6635
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6636
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6640
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6641
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6642
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6643
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6644
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6648
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6649
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6650
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6651
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6652
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6653
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6656
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6657
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6658
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6661
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6662
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6669
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6670
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6671
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6672
_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'
6673
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6677
if test "$GCC" = yes; then
6678
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6679
_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'
6681
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6682
_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'
6684
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6685
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6688
osf4* | osf5*) # as osf3* with the addition of -msym flag
6689
if test "$GCC" = yes; then
6690
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6691
_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'
6692
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6694
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6695
_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'
6696
_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~
6697
$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'
6699
# Both c and cxx compiler support -rpath directly
6700
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6702
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6706
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6707
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6708
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6709
runpath_var=LD_RUN_PATH
6710
hardcode_runpath_var=yes
6714
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6715
if test "$GCC" = yes; then
6716
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6717
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6718
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6720
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6721
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6722
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6724
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6725
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6727
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6728
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6729
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6731
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6735
if test "x$host_vendor" = xsequent; then
6736
# Use $CC to link under sequent, because it throws in some extra .o
6737
# files that make .init and .fini sections work.
6738
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6740
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6742
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6743
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6744
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6745
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6749
case $host_vendor in
6751
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6752
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6755
## LD is ld it makes a PLAMLIB
6756
## CC just makes a GrossModule.
6757
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6758
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6759
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6762
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6763
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6766
runpath_var='LD_RUN_PATH'
6767
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6771
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6772
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6773
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6777
if test -d /usr/nec; then
6778
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6779
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6780
runpath_var=LD_RUN_PATH
6781
hardcode_runpath_var=yes
6782
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6787
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6788
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6789
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6790
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6791
hardcode_runpath_var=yes
6792
runpath_var=LD_RUN_PATH
6795
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6796
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6797
if test "$GCC" = yes; then
6798
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6800
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6802
runpath_var='LD_RUN_PATH'
6803
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6807
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6808
# $CC -shared without GNU ld will not create a library from C++
6809
# object files and a static libstdc++, better avoid it by now
6810
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6811
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6812
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6813
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6814
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6815
runpath_var='LD_RUN_PATH'
6819
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6820
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6821
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6825
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6830
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6831
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6833
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6834
if test "$GCC" = yes; then
6835
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6839
# Do we need to explicitly link libc?
6841
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6843
# Assume -lc should be added
6844
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6846
if test "$enable_shared" = yes && test "$GCC" = yes; then
6847
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6849
# FIXME: we may have to deal with multi-command sequences.
6852
# Test whether the compiler implicitly links with -lc since on some
6853
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6854
# to ld, don't add -lc before -lgcc.
6855
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6857
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6859
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6862
libobjs=conftest.$ac_objext
6864
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6870
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6871
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6872
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6874
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6876
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6878
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6880
cat conftest.err 1>&5
6883
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6889
])# AC_LIBTOOL_PROG_LD_SHLIBS
6892
# _LT_AC_FILE_LTDLL_C
6893
# -------------------
6894
# Be careful that the start marker always follows a newline.
6895
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
3091
6896
# /* ltdll.c starts here */
3092
6897
# #define WIN32_LEAN_AND_MEAN
3093
6898
# #include <windows.h>
3123
6928
# /* ltdll.c ends here */
3124
# This is a source program that is used to create import libraries
3125
# on Windows for dlls which lack them. Don't remove nor modify the
3126
# starting and closing comments
3127
# /* impgen.c starts here */
3128
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
3130
# This file is part of GNU libtool.
3132
# This program is free software; you can redistribute it and/or modify
3133
# it under the terms of the GNU General Public License as published by
3134
# the Free Software Foundation; either version 2 of the License, or
3135
# (at your option) any later version.
3137
# This program is distributed in the hope that it will be useful,
3138
# but WITHOUT ANY WARRANTY; without even the implied warranty of
3139
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3140
# GNU General Public License for more details.
3142
# You should have received a copy of the GNU General Public License
3143
# along with this program; if not, write to the Free Software
3144
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3147
# #include <stdio.h> /* for printf() */
3148
# #include <unistd.h> /* for open(), lseek(), read() */
3149
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
3150
# #include <string.h> /* for strdup() */
3152
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
3154
# #define O_BINARY 0
3157
# static unsigned int
3158
# pe_get16 (fd, offset)
3162
# unsigned char b[2];
3163
# lseek (fd, offset, SEEK_SET);
3165
# return b[0] + (b[1]<<8);
3168
# static unsigned int
3169
# pe_get32 (fd, offset)
3173
# unsigned char b[4];
3174
# lseek (fd, offset, SEEK_SET);
3176
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3179
# static unsigned int
3183
# unsigned char *b = ptr;
3184
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
3193
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
3194
# unsigned long export_rva, export_size, nsections, secptr, expptr;
3195
# unsigned long name_rvas, nexp;
3196
# unsigned char *expdata, *erva;
3197
# char *filename, *dll_name;
3199
# filename = argv[1];
3201
# dll = open(filename, O_RDONLY|O_BINARY);
3205
# dll_name = filename;
3207
# for (i=0; filename[i]; i++)
3208
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
3209
# dll_name = filename + i +1;
3211
# pe_header_offset = pe_get32 (dll, 0x3c);
3212
# opthdr_ofs = pe_header_offset + 4 + 20;
3213
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
3215
# if (num_entries < 1) /* no exports */
3218
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
3219
# export_size = pe_get32 (dll, opthdr_ofs + 100);
3220
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
3221
# secptr = (pe_header_offset + 4 + 20 +
3222
# pe_get16 (dll, pe_header_offset + 4 + 16));
3225
# for (i = 0; i < nsections; i++)
3228
# unsigned long secptr1 = secptr + 40 * i;
3229
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
3230
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
3231
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
3232
# lseek(dll, secptr1, SEEK_SET);
3233
# read(dll, sname, 8);
3234
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
3236
# expptr = fptr + (export_rva - vaddr);
3237
# if (export_rva + export_size > vaddr + vsize)
3238
# export_size = vsize - (export_rva - vaddr);
3243
# expdata = (unsigned char*)malloc(export_size);
3244
# lseek (dll, expptr, SEEK_SET);
3245
# read (dll, expdata, export_size);
3246
# erva = expdata - export_rva;
3248
# nexp = pe_as32 (expdata+24);
3249
# name_rvas = pe_as32 (expdata+32);
3251
# printf ("EXPORTS\n");
3252
# for (i = 0; i<nexp; i++)
3254
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
3255
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
3260
# /* impgen.c ends here */
3266
# We use sed instead of cat because bash on DJGPP gets confused if
3267
# if finds mixed CR/LF and LF-only lines. Since sed operates in
3268
# text mode, it properly converts lines to CR/LF. This bash problem
3269
# is reportedly fixed, but why not run on old versions too?
3270
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
3272
mv -f "${ofile}T" "$ofile" || \
3273
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
3277
])# _LT_AC_LTCONFIG_HACK
3279
# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3280
AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
3282
# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3283
AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
3285
# AC_ENABLE_SHARED - implement the --enable-shared flag
3286
# Usage: AC_ENABLE_SHARED[(DEFAULT)]
3287
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3289
AC_DEFUN([AC_ENABLE_SHARED],
3290
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3291
AC_ARG_ENABLE(shared,
3292
changequote(<<, >>)dnl
3293
<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
3294
changequote([, ])dnl
3295
[p=${PACKAGE-default}
3297
yes) enable_shared=yes ;;
3298
no) enable_shared=no ;;
3301
# Look at the argument we got. We use all the common list separators.
3302
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3303
for pkg in $enableval; do
3304
if test "X$pkg" = "X$p"; then
3311
enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
3314
# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3315
AC_DEFUN([AC_DISABLE_SHARED],
3316
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3317
AC_ENABLE_SHARED(no)])
3319
# AC_ENABLE_STATIC - implement the --enable-static flag
3320
# Usage: AC_ENABLE_STATIC[(DEFAULT)]
3321
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3323
AC_DEFUN([AC_ENABLE_STATIC],
3324
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3325
AC_ARG_ENABLE(static,
3326
changequote(<<, >>)dnl
3327
<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
3328
changequote([, ])dnl
3329
[p=${PACKAGE-default}
3331
yes) enable_static=yes ;;
3332
no) enable_static=no ;;
3335
# Look at the argument we got. We use all the common list separators.
3336
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3337
for pkg in $enableval; do
3338
if test "X$pkg" = "X$p"; then
3345
enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
3348
# AC_DISABLE_STATIC - set the default static flag to --disable-static
3349
AC_DEFUN([AC_DISABLE_STATIC],
3350
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3351
AC_ENABLE_STATIC(no)])
3354
# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3355
# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3356
# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
3358
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3359
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3360
AC_ARG_ENABLE(fast-install,
3361
changequote(<<, >>)dnl
3362
<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
3363
changequote([, ])dnl
3364
[p=${PACKAGE-default}
3366
yes) enable_fast_install=yes ;;
3367
no) enable_fast_install=no ;;
3369
enable_fast_install=no
3370
# Look at the argument we got. We use all the common list separators.
3371
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3372
for pkg in $enableval; do
3373
if test "X$pkg" = "X$p"; then
3374
enable_fast_install=yes
3380
enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
3383
# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3384
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3385
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3386
AC_ENABLE_FAST_INSTALL(no)])
3388
# AC_LIBTOOL_PICMODE - implement the --with-pic flag
3389
# Usage: AC_LIBTOOL_PICMODE[(MODE)]
3390
# Where MODE is either `yes' or `no'. If omitted, it defaults to
3392
AC_DEFUN([AC_LIBTOOL_PICMODE],
3393
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3394
pic_mode=ifelse($#,1,$1,default)])
3397
# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3398
AC_DEFUN([AC_PATH_TOOL_PREFIX],
3399
[AC_MSG_CHECKING([for $1])
3400
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3403
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3406
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3409
ac_save_MAGIC_CMD="$MAGIC_CMD"
3410
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3411
dnl $ac_dummy forces splitting on constant user-supplied paths.
3412
dnl POSIX.2 word splitting is done only on the output of word expansions,
3413
dnl not every word. This closes a longstanding sh security hole.
3414
ac_dummy="ifelse([$2], , $PATH, [$2])"
3415
for ac_dir in $ac_dummy; do
3416
test -z "$ac_dir" && ac_dir=.
3417
if test -f $ac_dir/$1; then
3418
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3419
if test -n "$file_magic_test_file"; then
3420
case $deplibs_check_method in
3422
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3423
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3424
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3425
egrep "$file_magic_regex" > /dev/null; then
3430
*** Warning: the command libtool uses to detect shared libraries,
3431
*** $file_magic_cmd, produces output that libtool cannot recognize.
3432
*** The result is that libtool may fail to recognize shared libraries
3433
*** as such. This will affect the creation of libtool libraries that
3434
*** depend on shared libraries, but programs linked with such libtool
3435
*** libraries will work regardless of this problem. Nevertheless, you
3436
*** may want to report the problem to your system manager and/or to
3437
*** bug-libtool@gnu.org
3447
MAGIC_CMD="$ac_save_MAGIC_CMD"
3450
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3451
if test -n "$MAGIC_CMD"; then
3452
AC_MSG_RESULT($MAGIC_CMD)
3459
# AC_PATH_MAGIC - find a file program which can recognise a shared library
3460
AC_DEFUN([AC_PATH_MAGIC],
3461
[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
3462
AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
3463
if test -z "$lt_cv_path_MAGIC_CMD"; then
3464
if test -n "$ac_tool_prefix"; then
3465
AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
3473
# AC_PROG_LD - find the path to the GNU or non-GNU linker
3474
AC_DEFUN([AC_PROG_LD],
3475
[AC_ARG_WITH(gnu-ld,
3476
[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
3477
test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
3478
AC_REQUIRE([AC_PROG_CC])dnl
3479
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3480
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3481
AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3483
if test "$GCC" = yes; then
3484
# Check if gcc -print-prog-name=ld gives a path.
3485
AC_MSG_CHECKING([for ld used by GCC])
3488
# gcc leaves a trailing carriage return which upsets mingw
3489
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3491
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3494
# Accept absolute paths.
3495
[[\\/]]* | [[A-Za-z]]:[[\\/]]*)
3496
re_direlt='/[[^/]][[^/]]*/\.\./'
3497
# Canonicalize the path of ld
3498
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3499
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3500
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3502
test -z "$LD" && LD="$ac_prog"
3505
# If it fails, then pretend we aren't using GCC.
3509
# If it is relative, then search for the first ld in PATH.
3513
elif test "$with_gnu_ld" = yes; then
3514
AC_MSG_CHECKING([for GNU ld])
3516
AC_MSG_CHECKING([for non-GNU ld])
3518
AC_CACHE_VAL(lt_cv_path_LD,
3519
[if test -z "$LD"; then
3520
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3521
for ac_dir in $PATH; do
3522
test -z "$ac_dir" && ac_dir=.
3523
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3524
lt_cv_path_LD="$ac_dir/$ac_prog"
3525
# Check to see if the program is GNU ld. I'd rather use --version,
3526
# but apparently some GNU ld's only accept -v.
3527
# Break only if it was the GNU/non-GNU ld that we prefer.
3528
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3529
test "$with_gnu_ld" != no && break
3531
test "$with_gnu_ld" != yes && break
3537
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3540
if test -n "$LD"; then
3545
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3550
AC_DEFUN([AC_PROG_LD_GNU],
3551
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3552
[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3553
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3554
lt_cv_prog_gnu_ld=yes
3556
lt_cv_prog_gnu_ld=no
3558
with_gnu_ld=$lt_cv_prog_gnu_ld
3561
# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3562
# -- PORTME Some linkers may need a different reload flag.
3563
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3564
[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
3565
[lt_cv_ld_reload_flag='-r'])
3566
reload_flag=$lt_cv_ld_reload_flag
3567
test -n "$reload_flag" && reload_flag=" $reload_flag"
3570
# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3571
# -- PORTME fill in with the dynamic library characteristics
3572
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3573
[AC_CACHE_CHECK([how to recognise dependant libraries],
3574
lt_cv_deplibs_check_method,
3575
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3576
lt_cv_file_magic_test_file=
3577
lt_cv_deplibs_check_method='unknown'
3578
# Need to set the preceding variable on all platforms that support
3579
# interlibrary dependencies.
3580
# 'none' -- dependencies not supported.
3581
# `unknown' -- same as none, but documents that we really don't know.
3582
# 'pass_all' -- all dependencies passed with no checks.
3583
# 'test_compile' -- check by making test program.
3584
# 'file_magic [[regex]]' -- check by looking for files in library path
3585
# which responds to the $file_magic_cmd with a given egrep regex.
3586
# If you have `file' or equivalent on your system and you're not sure
3587
# whether `pass_all' will *always* work, you probably want this one.
3591
lt_cv_deplibs_check_method=pass_all
3595
lt_cv_deplibs_check_method=pass_all
3599
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3600
lt_cv_file_magic_cmd='/usr/bin/file -L'
3601
lt_cv_file_magic_test_file=/shlib/libc.so
3604
cygwin* | mingw* | pw32*)
3605
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3606
lt_cv_file_magic_cmd='$OBJDUMP -f'
3609
darwin* | rhapsody*)
3610
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3611
lt_cv_file_magic_cmd='/usr/bin/file -L'
3613
rhapsody* | darwin1.[[012]])
3614
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3617
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3623
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3626
# Not sure whether the presence of OpenBSD here was a mistake.
3627
# Let's accept both of them until this is cleared up.
3628
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
3629
lt_cv_file_magic_cmd=/usr/bin/file
3630
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3634
lt_cv_deplibs_check_method=pass_all
3639
lt_cv_deplibs_check_method=pass_all
3643
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3644
lt_cv_file_magic_cmd=/usr/bin/file
3645
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3651
# this will be overridden with pass_all, but let us keep it just in case
3652
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3656
*-32|*"-32 ") libmagic=32-bit;;
3657
*-n32|*"-n32 ") libmagic=N32;;
3658
*-64|*"-64 ") libmagic=64-bit;;
3659
*) libmagic=never-match;;
3661
# this will be overridden with pass_all, but let us keep it just in case
3662
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3665
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3666
lt_cv_deplibs_check_method=pass_all
3669
# This must be Linux ELF.
3672
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
3673
lt_cv_deplibs_check_method=pass_all ;;
3675
# glibc up to 2.1.1 does not perform some relocations on ARM
3676
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3678
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3682
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3683
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
3685
lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
3690
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3691
lt_cv_file_magic_cmd=/usr/bin/file
3692
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3696
lt_cv_file_magic_cmd=/usr/bin/file
3697
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3698
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3699
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
3701
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3705
osf3* | osf4* | osf5*)
3706
# this will be overridden with pass_all, but let us keep it just in case
3707
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3708
lt_cv_file_magic_test_file=/shlib/libc.so
3709
lt_cv_deplibs_check_method=pass_all
3713
lt_cv_deplibs_check_method=pass_all
3717
lt_cv_deplibs_check_method=pass_all
3718
lt_cv_file_magic_test_file=/lib/libc.so
3721
sysv5uw[[78]]* | sysv4*uw2*)
3722
lt_cv_deplibs_check_method=pass_all
3725
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3726
case $host_vendor in
3728
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]]'
3729
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3732
lt_cv_deplibs_check_method=pass_all
3735
lt_cv_file_magic_cmd='/bin/file'
3736
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3739
lt_cv_file_magic_cmd='/bin/file'
3740
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3741
lt_cv_file_magic_test_file=/lib/libc.so
3747
file_magic_cmd=$lt_cv_file_magic_cmd
3748
deplibs_check_method=$lt_cv_deplibs_check_method
3752
# AC_PROG_NM - find the path to a BSD-compatible name lister
3753
AC_DEFUN([AC_PROG_NM],
3754
[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
3755
AC_MSG_CHECKING([for BSD-compatible nm])
3756
AC_CACHE_VAL(lt_cv_path_NM,
3757
[if test -n "$NM"; then
3758
# Let the user override the test.
3761
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3762
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3763
test -z "$ac_dir" && ac_dir=.
3764
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3765
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3766
# Check to see if the nm accepts a BSD-compat flag.
3767
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3768
# nm: unknown option "B" ignored
3769
# Tru64's nm complains that /dev/null is an invalid object file
3770
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3771
lt_cv_path_NM="$tmp_nm -B"
3773
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3774
lt_cv_path_NM="$tmp_nm -p"
3777
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3778
continue # so that we can try to find one that supports BSD flags
3783
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3786
AC_MSG_RESULT([$NM])
3789
# AC_CHECK_LIBM - check for math library
3790
AC_DEFUN([AC_CHECK_LIBM],
3791
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3794
*-*-beos* | *-*-cygwin* | *-*-pw32*)
3795
# These system don't have libm
3798
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3799
AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
3802
AC_CHECK_LIB(m, main, LIBM="-lm")
3807
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3808
# the libltdl convenience library and INCLTDL to the include flags for
3809
# the libltdl header and adds --enable-ltdl-convenience to the
3810
# configure arguments. Note that LIBLTDL and INCLTDL are not
3811
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
3812
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
3813
# with '${top_builddir}/' and INCLTDL will be prefixed with
3814
# '${top_srcdir}/' (note the single quotes!). If your package is not
3815
# flat and you're not using automake, define top_builddir and
3816
# top_srcdir appropriately in the Makefiles.
3817
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3818
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3819
case $enable_ltdl_convenience in
3820
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3821
"") enable_ltdl_convenience=yes
3822
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3824
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3825
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3828
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3829
# the libltdl installable library and INCLTDL to the include flags for
3830
# the libltdl header and adds --enable-ltdl-install to the configure
3831
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
3832
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
3833
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
3834
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
3835
# with '${top_srcdir}/' (note the single quotes!). If your package is
3836
# not flat and you're not using automake, define top_builddir and
3837
# top_srcdir appropriately in the Makefiles.
3838
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3839
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3840
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3841
AC_CHECK_LIB(ltdl, main,
3842
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3843
[if test x"$enable_ltdl_install" = xno; then
3844
AC_MSG_WARN([libltdl not installed, but installation disabled])
3846
enable_ltdl_install=yes
3849
if test x"$enable_ltdl_install" = x"yes"; then
3850
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3851
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3852
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3854
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
6929
])# _LT_AC_FILE_LTDLL_C
6932
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6933
# ---------------------------------
6934
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
3861
6938
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])