148 Commits

Author SHA1 Message Date
Gary V. Vaughan
30d4b0b4c3 * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for
various releases of UnixWare and OpenServer that support it.
Reported by Matthew Schalit <mschalit@pacbell.net>
2001-04-22 22:38:00 +00:00
Nick Hudson
23b3e57e15 * ltmain.in: Implement a new deplibs_check_method called
match_pattern that does pattern matching on filenames...
* libtool.m4: ...use it with NetBSD
2001-04-06 21:24:52 +00:00
Christoph Pfisterer
e906349423 * libtool.m4, ltconfig.in, ltcf-c.sh, ltcf-cxx.sh: Fixed
support for Darwin and Rhapsody. Now correctly hardcodes the
library path and adds versioning. Other small fixes.
* ltmain.in: Fixed special cases for libc and libm on Rhapsody and
Darwin. One of them was misplaced. Added version_type case for
Rhapsody and Darwin, named "darwin".
2001-04-01 14:28:18 +00:00
Gary V. Vaughan
f14e83d9c9 From Albert Chin-A-Young <china@thewrittenword.com>
* libtool.m4: Apply missing m4 quotes that were originally applied to
HEAD branch only.
2001-03-06 02:27:34 +00:00
Gary V. Vaughan
15194b1f9e * NEWS: Updated.
* doc/libtool.texi (Thread Safety in libltdl): New node describing
the  application the new MT API.
* libltdl/ltdl.h: Prototypes.
* libltdl/ltdl.c: Use these functions throughout the rest of
the file to provide thread locking.
(lt_dlmutex_register): New function to set callbacks for
multi-threaded calls into libltdl.
(lt_dl_mutex_lock): Type of a locking callback function.
(lt_dl_mutex_lock): Type of an unlocking callback function.
(lt_dl_mutex_seterror): Type of a callback function to save the
last libltdl error message in thread local storage.
(lt_dl_mutex_geterror): Type of a callback function to retrieve
the last saved error message from thread local storage.

* ltconfig.in: Likewise.
* ltcf-c.sh: Likewise.
* ltcf-cxx.sh: Likewise.
* ltcf-gcj.sh: Likewise.
2001-03-05 21:31:44 +00:00
Robert Boehne
c8a17d30a5 Removed the AC_REQUIRE of AC_PROG_LIBTOOL from AC_LIBTOOL_CXX. 2001-02-13 20:06:55 +00:00
Robert Boehne
82066e19bf Changed aix4* to aix* for setting deplibs_check_method to pass_all. 2001-02-12 18:14:23 +00:00
Alexandre Oliva
ad1f06e14e * ltcf-gcj.sh (lt_simple_link_test_code): Remove stray `(0)'.
* libtool.m4 (_AC_LIBTOOL_GCJ): Pass $CPPFLAGS on.
2001-01-24 02:22:17 +00:00
Wilfredo Sanchez
a677334311 * ltconfig.in: (dyld/darwin*) Much improved port.
* ltcf-c.sh: (dyld/darwin*) Much improved port.
* libtool.m4: (dyld/darwin*) Much improved port.
* ltmain.in: (dyld/darwin*) Much improved port.
2000-12-16 13:43:53 +00:00
Sascha Schumann
b10813d98a * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use the HPUX 10.20
methods to check for library dependencies on HPUX 11.
2000-12-16 03:38:45 +00:00
Gary V. Vaughan
469b2229a9 * ltconfig.in (deplibs_check_method, file_magic_cmd,
file_magic_test_file): Arghh!  I keep forgetting that this stuff
has been moved...
* libtool.m4 (lt_cv_deplibs_check_method, lt_cv_file_magic_cmd,
lt_cv_file_magic_test_file): ...to here.  Now fixed (again).
2000-12-16 03:35:35 +00:00
Akim Demaille
6d49100b4e * libtool.m4 (AC_PATH_TOOL_PREFIX): Similarly with
`ac_cv_path_MAGIC_CMD'
(AC_PROG_LD) <ac_cv_path_LD>: Likewise.
(AC_PROG_LD_GNU) <ac_cv_prog_gnu_ld>: Likewise.
(AC_PROG_NM) <ac_cv_path_NM>: Likewise.
2000-12-16 02:57:01 +00:00
Akim Demaille
2624f57662 * libtool.m4: Don't depend on Autoconf internals:
s/ac_cv_prog_gcc/GCC/.
2000-12-14 00:55:03 +00:00
Gary V. Vaughan
f22d4bfb18 * ltdl.m4, ltcf-c.sh, libtool.m4: Use $ac_ext and $ac_objext
respectively for conftest sources and objects.
Reported by Carlo Wood <carlo@alinoe.com>
2000-11-11 13:42:59 +00:00
Akim Demaille
a14019a56e * libtool.m4: Adjust the copyright notice.
Quote all the macro names when defined.
Some minor formatting changes.
(AM_PROG_LIBTOOL, AM_ENABLE_SHARED, AM_ENABLE_STATIC)
(AM_DISABLE_SHARED, AM_DISABLE_STATIC, AM_PROG_LD, AM_PROG_NM):
Don't use indir when useless.  Don't add trailing `dnl' either.
2000-10-31 23:16:36 +00:00
Alexandre Oliva
99ddc197a5 * libtool.m4 (AC_LIBTOOL_CXX, AC_LIBTOOL_GCJ): Pass LD down to
ltconfig.
2000-10-10 05:00:18 +00:00
Alexandre Oliva
8a4bbcbbb5 * libtool.m4 (lt_cv_file_magic_cmd): Don't use '${MAGIC_CMD}' or
'${OBJDUMP}'; Solaris' /bin/sh loses with `}' in cache files.
(ac_cv_path_MAGIC_CMD): Renamed to lt_cv_path_MAGIC_CMD.
2000-09-30 05:21:27 +00:00
Gary V. Vaughan
0c61b6ba04 * libtool.m4 (MAGIC_CMD): Don't use MAGIC, since BSD versions of
the file command use this environment variable to hold the
location of the magic database.
* ltconfig.in (MAGIC_CMD): ditto.
Reported by Marc Espie <Marc.Espie@liafa.jussieu.fr>
2000-09-29 21:06:27 +00:00
Gary V. Vaughan
9c52630c4c From Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
* libtool.m4 (pw32): Initial support for pw32, assuming that
libtool's behaviour in this environment is identical to under
cygwin.
* ltconfig.in (pw32): ditto.
* ltmain.in (pw32): ditto.
* NEWS: Updated.
2000-09-15 02:40:07 +00:00
Alexandre Oliva
99501d6301 * libtool.m4 (AC_PROG_LIBTOOL, AC_LIBTOOL_GCJ): Auto-detect
LT_AC_PROG_GCJ.
2000-09-12 06:45:52 +00:00
Alexandre Oliva
acbed9b178 * libtool.m4 (LT_AC_PROG_GCJ): Remove excess closing brackets. 2000-09-05 05:13:20 +00:00
Alexandre Oliva
75d4f36b34 * libtool.m4: Fix typo I introduced in yesterday's patch. 2000-09-04 02:08:44 +00:00
Alexandre Oliva
c5d5b2e326 * libtool.m4 (AM_PROG_GCJ): Removed.
(LT_AC_PROG_GCJ): Use AC_CHECK_TOOL.  Set GCJ to `no' if not
found.
* configure.in: Use LT_AC_PROG_GCJ.
Reported by Nick Hudson <nick@nthcliff.demon.co.uk>
2000-09-03 21:45:01 +00:00
Makoto Ishisone
32fcb571de * libtool.m4 (lt_cv_deplibs_check_method, freebsd): Fix typo,
add support for compact format library.
2000-09-02 23:16:01 +00:00
Tom Kacvinsky
e452718909 * libtool.m4: Ignore Tru64's nm's complaint. 2000-09-02 22:50:17 +00:00
Alexandre Oliva
0daf42dd53 * configure.in (AM_PROG_GCJ): Moved definition...
* libtool.m4: ... here.
2000-07-26 19:56:32 +00:00
Mo DeJong
086c974736 * libtool.m4 (AC_PROG_NM): Fix macro so that it
finds a cross NM on the PATH.
2000-07-10 09:42:10 +00:00
Alexandre Oliva
5e79a63a78 * libtool.m4 (lt_cv_deplibs_check_method, freebsd): Do not depend
on $version_type; check for ELF support as in other BSDs.
2000-07-10 06:09:13 +00:00
Alexandre Oliva
edda9dec24 * libtool.m4 (AC_LIBTOOL_GCJ): Require either AC_PROG_GCJ or
AM_PROG_GCJ.
(AC_PROG_LIBTOOL): Change internal comments to dnl, so that they
don't make it to the `configure' script.
2000-07-10 06:06:39 +00:00
Alexandre Oliva
256ca74949 * libtool.m4 (AM_PROG_GCJ): Quote it so that aclocal won't bring
it in if it only appears in libtool.m4.
(AC_PROG_LIBTOOL): Move AC_PROG_CXX, AC_PROG_GCJ and AM_PROG_GCJ
hooks here, so that they can be far simpler!
2000-07-10 04:33:52 +00:00
Syd Polk
dc833d679e * libtool.m4 (AC_LIBTOOL_SETUP): Do not generate a libtool based
on target; use host instead.
* ltdl.m4 (AC_LTDL_SYSSEARCHPATH): Likewise.
2000-06-18 03:02:52 +00:00
Ossama Othman
7debe0b598 * libtool.m4: Updated comment.
* ltcf-cxx.sh (archive_cmds, archive_expsym_cmds,
hardcode_libdir_flag_spec, export_dynamic_flag_spec,
whole_archive_flag_spec, with_gnu_ld): Added two default
configurations for GNU g++ (one for g++ with GNU ld, and one for
g++ with native linker).  Updated all platform-specific g++
configurations to only be used if GNU ld isn't the backend linker.
Added support for the KCC (Kuck and Associates, Inc. (KAI) C++
Compiler) to the Linux and OSF/1 configurations.
(ac_cv_prog_cc_wl): Added KAI C++ configuration.
(archive_expsym_cmds): Some configurations were missing the
argument that sets the name of the output library.
* libltdl/ltdl.c, libltdl/libltdl.h: Synchronized with HEAD branch
versions.


* ltcf-cxx.sh (whole_archive_flag_spec): Added missing back quotes
(`) around a command that had to be evaluated.  This fixes GNU ld
"--whole-archive" support detection.
(wlarc): Fixed usage of $wlarc, which must be $wl in all cases,
but when really using $LD for linking.

* ltmain.in (deplibs): Add the library paths to end of the
deplibs, instead of the beginning, since deplibs is reordered
later on.
2000-06-13 21:52:34 +00:00
Gary V. Vaughan
b6daca2498 * libtool.m4 (netbsd*): Use -L option to file_magic_cmd as for
freebsd (below).
* libtool.m4 (netbsd ELF): support file_magic.
From Dan Winship <danw@helixcode.com>.
2000-05-29 17:39:25 +00:00
Steven M. Schultz
880f6bf9e3 * libtool.m4 (bsdi4*): Add -L option to bsdi4's file_magic_cmd
command.  Under BSD/OS 4.1 several libraries are now symlinks
rather than regular files.  Adding -L tells the file program
to follow the symlink.
2000-05-29 17:23:56 +00:00
Gary V. Vaughan
2fa89cb2e1 * libtool.m4 (i*86-*-freebsd*): Forgot to changequote(,). 2000-05-29 17:19:11 +00:00
Gary V. Vaughan
6525b39638 * libtool.m4 (i*86-*-freebsd*): Support a.out shared libs.
From <suzukis@file.phys.tohoku.ac.jp>
2000-05-29 16:57:11 +00:00
Bernhard Rosenkraenzer
3bcef47c5d * libtool.m4: adding ia64 as supported linux platform 2000-05-29 14:13:20 +00:00
Alexandre Oliva
f0a0d81429 * libtool.m4 (_AC_PROG_LIBTOOL): Run before AC_LIBTOOL_GCJ.
Add ltcf-c.sh to LIBTOOL_DEPS.  Run AC_LIBTOOL_CXX and
AC_LIBTOOL_GCJ on demand.
(AC_PROVIDE_IFELSE): Define for non-CVS autoconf compatibility.
(AC_LIBTOOL_CXX): Accept multiple executions.  Add ltcf-cxx.sh
to LIBTOOL_DEPS.  Reset config.log output.
(AC_LIBTOOL_GCJ): New macro.
* libtoolize.in: Copy ltcf-cxx.sh if AC_PROG_CXX is found.
Copy ltcf-gcj.sh when appropriate.
* doc/libtool.texi (AC_LIBTOOL_CXX): Doesn't have to be
explicitly called.
(AC_LIBTOOL_GCJ): Document.
* tagdemo/configure.in (AC_LIBTOOL_CXX): Don't call.
2000-05-26 05:41:51 +00:00
Ossama Othman
9e7886828f * libtool.m4 (AC_LIBTOOL_PICMODE): Merged this macro from the HEAD
branch.
(AC_LIBTOOL_CXX): Made sure CXX is exported to ltconfig.
* ltcf-cxx.sh (ac_ext): Changed test source extension to "cc" to
avoid potential ambiguities when using case-insensitive shells.
(archive_expsym_cmds): Make sure soname is set otherwise
-retain-symbol-file feature won't work.  The change was made for
the Linux Compaq C++ and GNU G++ configurations.
Reported by Stephan Kulow <coolo@kde.org>.
* ltconfig.in, ltmain.in: Merged in changes from the HEAD branch.
* tests/Makefile.am (clean-local): Fixed typo where a "distclean"
was done in `mdemo' instead of the `tagdemo'.
2000-05-24 21:21:37 +00:00
Alexandre Oliva
ac0e452917 Adjust docs 2000-05-14 08:25:23 +00:00
Alexandre Oliva
0e4722bef7 * libtool.m4 (AC_LIBLTDL_CONVENIENCE, AC_LIBLTDL_INSTALLABLE):
Pick LIBLTLD from top_builddir and INCLTDL from top_srcdir.
* mdemo/configure.in: Remove comments on
AC_LIBLTLD_CONVENIENCE.
2000-05-14 08:07:23 +00:00
Alexandre Oliva
12ff07e484 * libtool.m4 (_AC_PROG_LIBTOOL): Renamed from...
(AC_PROG_LIBTOOL): Just AC_REQUIRE(_AC_PROG_LIBTOOL), to avoid
effects of multiple runs.
(_AC_PROG_LIBTOOL): Use AC_BEFORE to warn if called before
AC_LIBTOOL_CXX.
2000-05-14 07:54:41 +00:00
Ossama Othman
0e14b4ad30 * libtool.m4, ltconfig.in: Merged in changes from most recent HEAD
branch version.
* ltmain.in: Merged in changes from most recent HEAD branch
version (ILD updates), and fixed parallel build error.
* tagdemo/acinclude.m4, tagdemo/aclocal.m4, tagdemo/configure:
regenerated these files against updated libtool.m4.
2000-02-26 00:04:12 +00:00
Ossama Othman
889dd51c44 * libtool.m4 (AC_PROG_LIBTOOL): Added missing "$lt_target" command
line argument in call to `ltconfig'.  This fixes a problem that
was occuring when a host type was specified by the user.  Also
added missing "$reload_flag" environment.
2000-02-23 02:44:31 +00:00
Ossama Othman
a890fb7764 * libtool.m4, ltconfig.in, ltmain.in: Merged updates found in
HEAD branch.
2000-01-25 21:04:24 +00:00
Ossama Othman
c890e3a2d8 * libtool.m4 (AC_LIBTOOL_CXX): Added LDFLAGS to list of variables to
pass to ltconfig when creating C++ compiler tag.
2000-01-23 03:08:59 +00:00
Ossama Othman
7c9089b165 Temporarily reset the test language to C just before calling
AC_OBJEXT and AC_EXEEXT and then restore the previous one when
done, instead of doing an AC_BEFORE(...AC_LANG_CPLUSPLUS...).  A
warning would always occur anyway because AC_PROG_CXX calls
AC_LANG_CPLUSPLUS.
1999-12-06 01:50:10 +00:00
Ossama Othman
d572782dda Make sure AC_LIBTOOL_SETUP is called before any macros that set
the autoconf test language (e.g. AC_LANG_CPLUSPLUS).  Autoconf's
AC_EXEEXT macro only works for C compilers.  AC_EXEEXT gets
confused and thinks that an extension such as the C++ source file
extenstion ".C" is an executable file extension, which screws up
the libtool configuration.

Pass the same autoconf variables used in the main ltconfig run to
the ltconfig configuration tag run (with the exception of a few).
This probably isn't necessary but I think it is a good idea to do
so.
1999-12-05 22:41:28 +00:00
Ossama Othman
33a27d0a25 Made invocation of ltconfig in AC_LIBTOOL_CXX macro more like the
one in AC_PROG_LIBTOOL.  This adds some ILD related flags to the
invocation, in addition to providing the $libtool_flags to
ltconfig that was previously in AC_PROG_LIBTOOL (via
AC_LIBTOOL_SETUP).  This fixes an ILD related bug with the C++
support, and also fixes a problem where both the static and shared
libraries were being built even if one of them was explicitly
disabled.
1999-12-05 00:34:58 +00:00
Ossama Othman
baa6a6a474 Change name of macro that enables C++ support in libtool from
"AC_LIBTOOL_CPP" to "AC_LIBTOOL_CXX."  "CPP" is typically
associated with preprocessors, whereas CXX is associated with C++
compilers.

Moved LTCC before CC in call to ltconfig to make sure LTCC is not
set to the compiler pointed to by CC after CC has been reset to
another compiler.

Call ltconfig with ${CONFIG_SHELL-/bin/sh} just like we do in
AC_PROG_LIBTOOL.

Save value of $CC and $CFLAGS before resetting them for use with
configuration tags.
1999-12-04 21:06:46 +00:00