Commit Graph

54 Commits

Author SHA1 Message Date
Thomas Tanner
d71a558fe0 * TODO: scheduled some items for next release/future
* demo/configure.in: use AC_LIBTOOL_DLOPEN
* libtool.m4: added AC_ENABLE/DISABLE_FAST_INSTALL macro
* ltconfig.in: added --disable-fast-install flag
* ltmain.in: partially reverted Alexandre's patch and implemented
  on-demand linking in such a way that the old developer-friendly
  linking style is optional,
  don't hardcode library paths that are in the system search path,
  fixed a typo in lib_search_path,
  implemented -export-symbols-regex for programs
1999-03-07 15:27:23 +00:00
Gary V. Vaughan
c000e55362 * libtool.m4 (cygwin): s/\(mingw\|cygwin\)32/\1/g. Must've
missed this file when I changed to cygnus' new sanction name.
1999-02-26 16:20:48 +00:00
Gary V. Vaughan
697d6837c5 * ltconfig.in (sub_uncdrive): removed. This won't work with
the next version of cygwin.
(sub_uncdir): removed. We use <drive>:/path/to/executable now.
* libtool.m4 (AC_PROG_LD): removed sub_uncdrive and sub_uncdir.
1999-02-26 16:17:43 +00:00
Thomas Tanner
b965590d78 * libltdl/ltdl.c (lt_dlopen): use newhandle instead of handle
when dlopening the executable
* libtool.m4 (AC_LIBTOOL_DLOPEN): removed the redundant "yes: "
  prefix for lt_cv_dlopen, renamed lt_cv_dlopen_LIBS
  to lt_cv_dlopen_libs (more consistent)
* ltmain.in: implemented -dl[pre]open self, necessary for
  lt_dlopen(NULL), generation of exported symbols was broken
1999-02-21 15:38:02 +00:00
Alexandre Oliva
2dc0082648 * libtool.m4 (AC_LIBTOOL_DLOPEN): check for dlopen in libc before
trying in dl.  Add the actual dlopening type to lt_cv_dlopen, and
add any needed libraries to lt_cv_dlopen_LIBS.  Add test for
MS-Windows' LoadLibrary.  Check whether a program can dlopen
itself only if we really have dlopen(), not some equivalent
function, but leave room for testing with other mechanisms.
(AC_PROG_LIBTOOL): assume some form of dlopen, but not
dlopen(NULL), is available if AC_LIBTOOL_DLOPEN is not used, for
backward compatibility.
1999-02-20 15:07:54 +00:00
Thomas Tanner
c361d1cfeb * cdemo/Makefile.am: renamed *foo1 to *foo, removed $(MATH_LIB)
* cdemo/foo1.c: renamed to foo.c
* libltdl/ltdl.c: eliminated lt_dltype, in presym_open():
  search for @PROGRAM@ if filename == 0, in lt_dlopen():
  fixed bug for filename == 0
* libltdl/ltdl.h: use __P macro for lt_dlmalloc/free
* libtool.m4: new macro AC_LIBTOOL_DLOPEN: checks for dlopen
  and dlopen(NULL) support
* ltconfig.in: added new variables dlopen and dlopen_self,
  --enable-dlopen[-self] flags for AC_LIBTOOL_DLOPEN
* ltmain.in: use dlopen[_self], dlpreopen files if there's no
  dlopen support, build lt_preloaded_symbols only if
  -dl[pre]open was used, include program symbols if -export-dynamic
  was specified and there's no dlopen(NULL) support
* mdemo/configure.in: use AC_LIBTOOL_DLOPEN
* mdemo/main.c: demonstrate lt_dlopen(0)
1999-02-15 16:46:55 +00:00
Alexandre Oliva
2e6d9dc7a7 * libtool.m4 (AC_CHECK_LIBM): do not set MATHLIB or AC_SUBST it,
this has a negative side-effect of causing automake to add MATHLIB
to every single Makefile.  Let's use plain AC_CHECK_LIB, so that
LIBS get set, until we find a better alternative
* *demo/Makefile.am: remove $(MATHLIB)
1999-02-14 03:04:51 +00:00
Thomas Tanner
6d34bd85f0 * *demo/Makefile.am: use $(MATHLIB)
* *demo/configure.in: use AC_CHECK_LIBM
* doc/libtool.texi: renamed file_magic_command to file_magic_cmd,
  renamed archive_sym_cmds to archive_expsym_cmds
* ltconfig.in: ditto
* ltmain.in: ditto
* libltdl/ltdl.c: use lt_dlmalloc/free
* libltdl/ltdl.h: define lt_dlmalloc/free
* libtool.m4: added AC_CHECK_LIBM macro
* ltconfig.in: renamed archive_sym_cmds to archive_expsym_cmds,
  added always_export_symbols, export_symbols_cmd, exclude_expsyms,
  include_expsyms, removed archive_cmds for cygwin/mingw and AIX,
  on Solaris store the exported symbols list in objdir
* ltmain.in: allow -export-symbols for modules, use thread_safe flag,
  add include_expsyms to the exported symbols
1999-02-13 15:43:04 +00:00
Alexandre Oliva
54ee3fb2b1 * libtool.m4 (ac_cv_sys_global_symbol_pipe): accept TAB in
addition to space as separator, and allow more than one space
between the symbol code and the symbol name; HP/UX's nm, for
example, uses two spaces
* ltconfig.in (global_symbol_pipe): ditto
(bsdi4, deplibs_check_method): variable name was misspelled
* libltdl/configure.in (libltdl_cv_preloaded_symbols): rewrite
test, so as not to depend on the way global_symbol_pipe is
initialized; the current test would get false positives, as
global_symbol_pipe was initialized `x=""', not `x='
1999-02-04 15:09:14 +00:00
Thomas Tanner
a5f6b87d4a * cdemo/configure.in: renamed AM_PROG_LIBTOOL to AC_PROG_LIBTOOL
* demo/configure.in: likewise
* depdemo/configure.in: likewise
* libltdl/configure.in: likewise
* mdemo/configure.in: likewise
* libltdl/ltdl.c: in find_module() check whether libdir is defined,
  tryall_dlopen(): move deallocation of an already opened handle
  to lt_dlopen(), allocate the directory in lt_dlopen() dynamically,
  minor cleanups, fixed memory leak (name)
* libtool.m4: renamed all AM_ macros to AC_ and added aliases for
  compatibilty, updated AC_SYS_NM_PARSE (no undefined symbols,
  don't count the symbols)
* ltconfig.in: added thread_safe_flag_spec (not used yet),
  added generic variable for linker options "linkopts" in
  all archive_cmds
* ltmain.in: added -thread-safe flag (unused)
1999-01-27 00:49:06 +00:00
Alexandre Oliva
4f58a28c53 * ltmain.in (Xsed): add 1 to Xsed definition that goes into
temporary wrapper scripts
* libtool.m4: we don't have Xsed here, expand it manually
Reported by Pavel Roskin <pavel_roskin@geocities.com>
1999-01-22 10:26:47 +00:00
Alexandre Oliva
ec1248eb7b * libtool.m4 (LIBTOOL_DEPS): set it
* libltdl/configure.in (LIBTOOL_DEPS): AC_SUBST it
	* libltdl/Makefile.am (libtool): use it
	* doc/libtool.texi (AM_PROG_LIBTOOL): document it
1999-01-18 13:30:43 +00:00
Thomas Tanner
6b7c38b36c *** empty log message *** 1999-01-17 11:19:40 +00:00
Alexandre Oliva
f9370ed9c2 * libtool.m4, ltconfig.in (NM): search for NM in PATH before
/usr/ccs/bin, /usr/ucb and /bin.  However, if the found one isn't
	BSD-compat keep searching.  If no BSD-compat is found, use the
	first we found.
1999-01-13 10:38:45 +00:00
Alexandre Oliva
2487d7fccc * libtool.m4 (AM_SYS_NM_PARSE): while we are at it, we may well
cache the value of ac_cv_sys_symbol_underscore
1999-01-11 06:14:39 +00:00
Alexandre Oliva
35f45d7e2e * libtool.m4 (AM_SYS_NM_PARSE): need for underscore prefix is now
auto-detected, by trying first without, then with it
	* ltconfig.in: ditto
1999-01-11 04:20:25 +00:00
Thomas Tanner
48218d83e7 *** empty log message *** 1998-12-31 11:25:57 +00:00
Gary V. Vaughan
7fe8f5c785 misc win32 cleanups 1998-12-21 13:04:14 +00:00
Gary V. Vaughan
daac6e0ced bomb out if autoconf < 2.12.2 is used 1998-12-17 18:10:43 +00:00
Alexandre Oliva
5612a7ec93 * libtool.m4 (ac_cv_sys_symbol_underscore): `test a == b' doesn't
work, use `test a = b' instead
1998-12-04 23:21:52 +00:00
Gary V. Vaughan
efbf1218c5 Test for leading underscore on compiled symbols at configure time.
Use the results of that test in the demo program.
1998-12-01 18:24:08 +00:00
Gary V. Vaughan
ad3e928936 require AC_CANONICAL_HOST for path canonicalization 1998-11-27 18:42:12 +00:00
Gary V. Vaughan
0e672b6be3 Added LD path canonicalization. 1998-11-27 16:52:37 +00:00
Alexandre Oliva
8c1f97e1be 1998-11-04 Alexandre Oliva <oliva@dcc.unicamp.br>
* ltconfig.in, ltmain.in: updated and fixed the patches below

1998-11-04  Thomas Tanner  <tanner@gmx.de>

	* mdemo/*: added new demo to demonstrate building of dlopenend
	modules
	* tests/Makefile.am, tests/mdemo*: added some tests for mdemo

1998-11-04  Gary V. Vaughan  <gvaughan@oranda.demon.co.uk>

	* demo/configure.in: added AC_EXEEXT macro so that the tests can
 	work on cywin32/mingw32 hosts.  This requires the current CVS
 	autoconf

1998-11-04  Thomas Tanner  <tanner@gmx.de>

	* ltmain.in: New flag -export-symbols; new dlpreopen system
	* demo/dlmain.c: removed dld_preloaded_symbol_count

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltmain.in: On installation, don't get confused if the same name
	appears more than once in the list of library names.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Add objext and libext variables.  Check for object
	suffix.  Check for mingw32* as well as cygwin32*.  Use objext when
	testing compiler.  Add support for Visual C++ on cygwin32 when not
	using gcc.  Add objext, libext, and fix_srcfile_path to generated
	libtool script.
	* ltmain.in: Use .${objext} rather than .o.  Use fix_srcfile_path
	if it is set.  Check for .obj as well as for .o, and for .lib as
	well as for .a.  Use .${libext} rather than .a when creating old
	libraries.
	* libtoolize.in: Change initial /bin/sh to @SHELL@.
	* libtool.m4 (AM_PROG_LIBTOOL): Add AC_REQUIRE for
	AC_CANONICAL_BUILD, so that autoconf doesn't get mixed up by the
	AC_REQUIRE in AC_CHECK_TOOL.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Look in the right directory for libtool.c in
	archive_cmds for cygwin32.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Fix cygwin32 support to avoid using a double
	extension, to delete the def file, to set version_type to windows,
	and to include versuffix in the DLL name.
	* ltmain.in: Add support for a version_type of windows.

1998-11-04  Ian Lance Taylor  <ian@cygnus.com>

	* ltconfig.in: Add cygwin32 support.
	* libtool.m4 (AM_PROG_LIBTOOL): Call AM_SYS_LIBTOOL_CYGWIN32 on a
	cygwin32 host.  Pass DLLTOOL and AS to ltconfig.
	(AM_SYS_LIBTOOL_CYGWIN32): New macro.
1998-11-04 09:43:29 +00:00
Alexandre Oliva
960fc6f061 * libtool.m4 (sco): fix typo 1998-11-04 08:15:36 +00:00
Eric Estievenart
8747a04ff9 * doc/libtool.texi (Compile mode): Document that -o is fully
supported.

	* libtool.m4 (libtool-lock): new ARG_ENABLE; sets (need_locks)
	* ltconfig.in (disable-lock): control need_locks
	(hard_links): check whether hard-links can be used for locking
	* ltmain.in (need_locks): use $output_obj.lock for locking
1998-11-04 04:13:03 +00:00
Alexandre Oliva
c08264976c * libtool.m4 (CFLAGS): check whether -belf is needed on SCO, as
suggested by Robert Lipe <robertl@dgii.com>
1998-11-02 08:21:18 +00:00
Gordon Matzigkeit
59abbf0c10 *** empty log message *** 1998-04-19 19:29:28 +00:00
Gordon Matzigkeit
b0f0d520a8 *** empty log message *** 1998-04-14 16:29:20 +00:00
Gordon Matzigkeit
45177bb117 *** empty log message *** 1998-03-09 05:34:02 +00:00
Gordon Matzigkeit
0f57773de1 *** empty log message *** 1998-03-05 16:23:43 +00:00
Gordon Matzigkeit
54c920be96 *** empty log message *** 1998-02-16 20:13:54 +00:00
Gordon Matzigkeit
831a978fa1 *** empty log message *** 1998-02-12 05:45:15 +00:00
Gordon Matzigkeit
af5498d64d *** empty log message *** 1998-02-06 08:38:29 +00:00
Gordon Matzigkeit
bb6f3c7353 *** empty log message *** 1997-11-29 21:03:42 +00:00
Gordon Matzigkeit
41ced21498 *** empty log message *** 1997-11-28 17:23:28 +00:00
Gordon Matzigkeit
ff915e483e *** empty log message *** 1997-11-08 06:25:09 +00:00
Gordon Matzigkeit
44664c0734 *** empty log message *** 1997-11-06 16:59:31 +00:00
Gordon Matzigkeit
7c5fe1050f *** empty log message *** 1997-10-20 01:24:09 +00:00
Gordon Matzigkeit
8264f115e6 *** empty log message *** 1997-10-14 18:33:24 +00:00
Gordon Matzigkeit
851f5d29f6 *** empty log message *** 1997-09-05 19:13:09 +00:00
Gordon Matzigkeit
9adf7e85ed *** empty log message *** 1997-08-21 05:16:08 +00:00
Gordon Matzigkeit
00f1f18926 *** empty log message *** 1997-08-12 15:19:11 +00:00
Gordon Matzigkeit
ef0f6f6861 *** empty log message *** 1997-07-20 05:03:16 +00:00
Gordon Matzigkeit
10189e82e5 *** empty log message *** 1997-07-12 21:39:00 +00:00
Gordon Matzigkeit
d7c68a6d4f *** empty log message *** 1997-07-01 20:04:47 +00:00
Gordon Matzigkeit
9041a46f51 *** empty log message *** 1997-06-30 12:20:49 +00:00
Gordon Matzigkeit
44861508f6 *** empty log message *** 1997-06-15 03:00:00 +00:00
Gordon Matzigkeit
b884cf4b19 *** empty log message *** 1997-06-05 16:50:29 +00:00
Gordon Matzigkeit
3245427f31 *** empty log message *** 1997-05-24 22:50:52 +00:00