157 Commits

Author SHA1 Message Date
Nick Hudson
33e6c12a1e * libtool.m4: Update support for NetBSD
* ltdl.m4: Make sure that libltdl_cv_func_dlopen and
libltdl_cv_lib_dl_dlopen are set and used instead of the
ac_cv_ versions. Also, use lt_cv_sys_global_symbol_pipe
instread of global_symbol_pipe. This fixes the detection of
dlopen on BSD derived plaforms and more importantly fixes
need_uscore detection.
2002-05-17 16:11:41 +00:00
Paul Eggert
bc6d10f096 * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): head -1 -> sed 1q to
port to POSIX 1003.1-2001 hosts, like textutils 2.0.21 with
_POSIX2_VERSION=200112.
* exe/link-txt.tpl: Include the previous change in the template.


* ltmain.in: Detect and handle object name conflicts while
2002-05-06 15:07:47 +00:00
Fritz Elfert
b3b3c2e27a * libtool.m4 (AC_LIBTOOL_PROG_LD_SHLIBS): Modify archive_expsym_cmds
to catch properly handle dll alias symbols.
2002-05-02 14:22:21 +00:00
Kevin Ryde
c266c3667e * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use $build_os not $host_os. 2002-04-24 14:39:33 +00:00
Jean-Frederic Clere
31126404b7 * libtool.m4: Update support for Fujistu-Siemens Computers (FSC).
* ltmain.in: Add support for EBCDIC based systems.
2002-04-14 21:41:36 +00:00
Robert Boehne
71f5b3d0f2 sync from mainline 2002-03-16 17:35:53 +00:00
Bruce Korb
45d16ee8bf resync with HEAD 2002-03-12 02:06:26 +00:00
Alexandre Oliva
b69b3e703b merge from head. Omits work in ltmain.in 2002-03-02 16:50:29 +00:00
Alan Modra
3d96dbd73a * libtool.m4 (lt_cv_deplibs_check_method): pass_all for hppa*-linux. 2001-05-16 06:53:04 +00:00
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