Index: ChangeLog =================================================================== RCS file: /cvs/libtool/ChangeLog,v retrieving revision 1.845 diff -u -r1.845 ChangeLog --- ChangeLog 2000/12/16 17:37:44 1.845 +++ ChangeLog 2000/12/19 09:55:43 @@ -1,3 +1,8 @@ +2000-12-19 Akim Demaille + + * libtool.m4 (_LT_AC_LTCONFIG_HACK): If available, use + m4_pattern_allow to allow `AR_FLAGS'. + 2000-12-16 Aneesh Kumar K.V * libtool.m4 (OSF/1): Change the way to pass linker flags through @@ -19,12 +24,12 @@ * libtool.m4: (dyld/darwin*) Much improved port. * ltmain.in: (dyld/darwin*) Much improved port. - + 2000-12-16 Sascha Schumann * libtool.m4: Accept darwin as an alias for rhapsody. * ltmain.in: ditto. - + * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use the HPUX 10.20 methods to check for library dependencies on HPUX 11. @@ -32,7 +37,7 @@ * libtool.m4 (netbsd*, deplibs_check_method): Enable ILD support for NetBSD a.out. - + 2000-12-15 Akim Demaille * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): Rename @@ -56,24 +61,24 @@ * libltdl/ltdl.c (lt_dlexit): Reset the loaders value to zero when the last module has been unloaded. - + 2000-12-14 Michael Schmitz * libtool.m4: Port to *-sni-sysv4 (Reliant Unix) * README: added Reliant Unix to hte list of supported platforms * doc/PLATFORMS: added note on tests on Reliant Unix - + 2000-12-14 Masahiro Nobori * README: Updated. * NEWS: Updated. * libtool.m4: New port to NEWS-OS Release 6. - + 2000-12-14 Nick Hudson - + * libtool.m4 (hardcode_libdir_flag_spec): Remove linker specification for netbsd. - + 2000-12-14 Akim Demaille * libtool.m4: Don't depend on Autoconf internals: @@ -143,17 +148,17 @@ necessary. 2000-11-20 Morten Eriksen - + * ltdl.m4 (AC_LIB_LTDL, AC_LTDL_SYMBOL_USCORE): Break a circular dependency between AC_LTDL_SYMBOL_USCORE and AC_LTDL_DLSYM_USCORE. - + 2000-11-20 Paul Berrevoets * ltmain.in: Some versions of expr respond with "0" if a regexp fails to match. 2000-11-19 Paul Berrevoets - + * libtool.m4 (_LT_AC_LTCONFIG_HACK): Quote the $ in $#, $2 and $3 in variable 'archive_expsym_cmds' for cygwin. @@ -169,7 +174,7 @@ * ltdl.c: Reformatted. * ltdl.h: ditto. - + 2000-11-11 Gary V. Vaughan * ltdl.m4 (AC_LTDL_SYMBOL_USCORE): Use $ac_ext for conftest @@ -185,7 +190,7 @@ 2000-10-31 Morten Eriksen * libtool.m4 (_LT_AC_LTCONFIG_HACK): Quote argument to avoid - error output from cygpath when $srcdir is empty. + error output from cygpath when $srcdir is empty. 2000-10-31 Gary V. Vaughan @@ -220,8 +225,8 @@ 2000-10-27 Robert Boehne - * docs/libtool.texi: Added pointers to documentation - of Hewlett-Packard, Compaq Tru64 and IBM AIX systems. + * docs/libtool.texi: Added pointers to documentation + of Hewlett-Packard, Compaq Tru64 and IBM AIX systems. 2000-10-02 Gary V. Vaughan @@ -256,9 +261,9 @@ * libtool.m4 (_LT_AC_LTCONFIG_HACK): Now does all of the work for generating libtool immediately in configure.in, rather than deferring part of the creation until config.status runs. - + 2000-09-17 Gary V. Vaughan - + * bootstrap: Backed out yesterdays patch which is no longer necessary. * Makefile.am (libtool): Reworked rule for regeneration of libtool, @@ -285,7 +290,7 @@ (AC_LTDL_SHLIBEXT): Require _LT_AC_LTCONFIG_HACK. (AC_LTDL_SHLIBPATH): ditto. (AC_LTDL_SYSSEARCHPATH): ditto. - + * ltdl.m4 (AC_LTDL_DLPREOPEN): Require the libtool.m4 symbol_pipe macro. (AC_LTDL_SYMBOL_USCORE): ditto. @@ -293,7 +298,7 @@ of... * libtool.m4 (AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE): ...this new macro, extracted from _LT_AC_LTCONFIG_HACK. - + * ltdl.m4 (changequote): An audit of changequote and m4 quote usage -- all changequotes have been removed, and some latent unquoted `[' and `]' bugs have been fixed. @@ -326,7 +331,7 @@ * ltmain.in (version_type): Use "-iface" as the windows versioning scheme, where iface is the number of the oldest - interface supported. + interface supported. 2000-09-14 Gary V. Vaughan @@ -336,14 +341,14 @@ cygwin. * ltmain.in (pw32): ditto. * NEWS: Updated. - + * libtool.m4 (changequote): An audit of changequote and m4 quote usage -- all changequotes (except a few with non-nesting square brackets) have been removed. - + * Makefile.am (EXTRA_DIST): The bootstrap script should be distributed with libtool. - + 2000-09-13 Gary V. Vaughan libtool.m4 (_LT_AC_LTCONFIG_HACK): Oh man! Third time lucky. @@ -385,7 +390,7 @@ libtool.m4 (_LT_AC_LTCONFIG_HACK): The ltconfig.in code I ported from ltconfig.in was incomplete -- this is a backport of the missing code taken from the multi-language branch. - + 2000-09-07 Pavel Roskin * libtool.m4 (_LT_AC_LTCONFIG_HACK): Fixed incorrect use of @@ -417,7 +422,7 @@ * libtool.m4 (_LT_AC_LTCONFIG_HACK): Deleted a vital `;;' terminator from a case statement by mistake. - + * Makefile.am (ltmain.sh): Make this depend on TSDEPS again so that the Changelog timestamp is used for ltmain.sh at `make dist' time. @@ -474,7 +479,7 @@ * ltmain.in (compile, need_lock): Don't create nor remove lock files in dry runs. - + * libltdl/ltdl.c (load_deplibs): Don't append shlib_ext; use lt_dlopenext() instead. @@ -493,9 +498,9 @@ [FreeBSD 3.[01]] (shlibpath_overrides_runpath): Set to no. * ltmain.in: Likewise. * tests/build-relink.test, tests/build-relink2.test: Adjust. - + * libtool.m4: Fix typo I introduced in yesterday's patch. - + * libltdl/ltdl.c (lt_dlopen): Set dlname from library_names if dlname is empty. @@ -558,16 +563,16 @@ of ltconfig is migrated. * Makefile.am (libtool): Pass the value of $ECHO to ltconfig as - an environment variable. + an environment variable. * libtool.m4 (_LT_AC_PROG_ECHO_BACKSLASH): Quote the ECHO value - correctly so that it inserts the correct code into configure.in + correctly so that it inserts the correct code into configure.in suitably quoted for M4 expansion. This code needs to be near the top of configure.in as it calls itself recursively, so I am using AC_DIVERSION_NOTICE (or simply NOTICE on CVS Autoconf). The value of ECHO is also substitued into the Makefile to be used when Make calls ltconfig to generate libtool, so another layer of quotation is required for the - Makefile. + Makefile. (AC_LIBTOOL_SETUP): Use it. * ltconfig.in: Accept a value for ECHO from the environment, and carefully substitue for $0 if it is present in the ECHO value. @@ -585,7 +590,7 @@ through to gcc on IRIX, or at all on other architectures for backwards compatibility (among others). Reported by Bob Friesenhahn - Reported by Albert Chin-A-Young + Reported by Albert Chin-A-Young 2000-08-26 Gary V. Vaughan @@ -680,7 +685,7 @@ 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 Gary V. Vaughan * libtool.m4 (i*86-*-freebsd*): Forgot to changequote(,). @@ -689,13 +694,13 @@ * libtool.m4 (i*86-*-freebsd*): Support a.out shared libs. From -2000-05-29 Fred Fish +2000-05-29 Fred Fish Support AR=mwld AR_FLAGS='-xml -o' for PPC Beos. - * ltconfig (old_AR_FLAGS): Add. + * ltconfig (old_AR_FLAGS): Add. (old_archive_cmds): Use AR_FLAGS rather than hardcoding "cru". (archive_cmds): Use AR_FLAGS rather than hardcoding "cru". - (AR_FLAGS): Default to "cru" if not set. + (AR_FLAGS): Default to "cru" if not set. 2000-05-29 Gary V. Vaughan @@ -707,25 +712,25 @@ * NEWS: Updated. 2000-05-29 Bernhard Rosenkraenzer - + * libtool.m4: adding ia64 as supported linux platform -2000-05-29 Michael Matz +2000-05-29 Michael Matz * ltmain.in: fix quoting for $var_value. * ltconfig.in: check for dlfcn.h: include return value - to make -Wall in CFLAGS work. + to make -Wall in CFLAGS work. 2000-05-27 Gary V. Vaughan * README-alpha: note new location of config.(guess|sub). 2000-05-27 Chad Cunningham - + * ltconfig.in (rhapsody*): New Port. * ltmain.in (rhapsody*): ditto. - + 2000-05-27 Chris Lattner * ltconfig.in (*-sequent-sysv4): New Port. @@ -753,7 +758,7 @@ to lt_dlloader_* * libltdl/ltdl.c: ditto * libltdl/ltdl.h: ditto, add declaration of lt_dlloader_(find|remove) - + 2000-05-06 Pavel Roskin * libltdl/ltdl.c: Typo. @@ -769,24 +774,24 @@ * doc/libtool.texi (libltdl): fix typos, INCLTDL starts with top_srcdir, replace NULL with @code{NULL} - + * ltmain.in (ILD): search in newlib_search_path, too - + * ltmain.in (ILD): fix bugs in conv pass, expand convenience libs to deplibs and link them later on - + * ltmain.in (ILD): don't allow convenience libs to be -dlopen/preopen'ed - + * ltmain.in (ILD): it's not required to link all deplibs in fast-install mode - + * ltmain.in (ILD): if hardcode_into_libs=all, only relink a library if it is linked against uninstalled libtool libraries, rename link_against_libtool_libs to uninst_deplibs - + * ltmain.in (ILD): tidy up, add some comments - + 2000-05-03 John Wehle (address@hidden) * libtool.m4 (hpux10.20*): use file_magic for @@ -803,7 +808,7 @@ * libtool.m4: add AC_LIBTOOL_PICMODE * ltconfig.in: move pic_mode checks to ltmain.in * ltmain.in: add -prefer-pic and -prefer-non-pic - + 2000-03-29 Alexandre Oliva * ltmain.in (tmpdir): Do not accept an existing directory, and @@ -813,14 +818,14 @@ 2000-03-27 Thomas Tanner * NEWS: reformatting - + * ltmain.in (ILD): add extra convenience library scanning pass - + * ltmain.in (ILD): accept -R flags for libraries, too - + * ltmain.in (ILD): correclty merge the dlpreopened libraries with deplibs - + * ltmain.in (install mode): remove directories from filenames before relinking (reported by Elrond ) @@ -838,10 +843,10 @@ 2000-03-14 Christopher A. Knight * ltconfig.in: added main() definition in compile - check for header `dlfcn.h' to fix link errors + check for header `dlfcn.h' to fix link errors when built with Sun Workshop Pro CC 4.2 (and perhaps others). - + 2000-02-03 Gary V. Vaughan * libltdl/ltdl.c (lt_find_dlhandle): Deleted. This was B.S. @@ -855,7 +860,7 @@ * ltmain.in: remove duplicates from deplibs, handle interdependent libraries (e.g. -la -lb -la), this requires adding deplibs in reverse order - + * ltmain.in: link dlpreopened libraries before other libraries (reported by Pavel Roskin) * mdemo/Makefile.am: build and link libsub.la @@ -867,9 +872,9 @@ * mdemo/configure.in: ditto * ltmain.in: fix dlopen/dlpreopening of objects - + * ltmain.in (ILD): fix misplaced `continue' in -R* argument handler - + * ltmain.in: merge duplicated code of clean and uninstall mode * libtool.m4: recognize powerpc*linux* (reported by @@ -895,7 +900,7 @@ to '${MAGIC}' so that make can grok it. * Makefile.am (libtool): (clibtool): ditto. - + 2000-02-21 Gary V. Vaughan * libltdl/ltdl.c (lt_find_dlhandle): New function. @@ -905,7 +910,7 @@ * NEWS: updated. * libltdl/ltdl.c (lt_dlinit): removed unused variable, `loader'. - + * libltdl/ltdl.c (lt_remove_dlloader): typo, s/=/==/g. 2000-02-03 Gary V. Vaughan @@ -953,7 +958,7 @@ 2000-02-02 Gary V. Vaughan * NEWS: updated. - * doc/libtool.texi (Libltdl interface): Moved user defined module + * doc/libtool.texi (Libltdl interface): Moved user defined module loader documentation from here... (Module loaders for libltdl) ...to here, and updated the text and added examples. @@ -998,14 +1003,14 @@ (lt_mod_init_t): Moved to here from ltdl.h. (lt_dlinit): Add builtin loaders using the user loader API. (lt_dlexit): Unregister and free all loaders. - (lt_add_dlloader): New function to add a new module loader after the + (lt_add_dlloader): New function to add a new module loader after the loader specified in the argument. (lt_remove_dlloader): New function to remove a module loader. (lt_next_dlloader): New function for iterating over module loaders. (lt_dlloader_name): Accessor function for name of dlloader. (lt_find_dlloader): New function to get a reference to a registered module loader. - (strcmp): static implementation incase the host has none. + (strcmp): static implementation incase the host has none. (lt_dlgettypes, lt_dlsettypes): Removed. 2000-02-02 Thomas Tanner @@ -1014,11 +1019,11 @@ and app_private pointers from lt_dlhandle_t * libltdl/ltdl.c (presym_add_list): new preloaded symbols don't need to be added to the end - + * libltdl/ltdl.c (lt_dlgetdata, lt_dlsetdata): removed * libltdl/ltdl.h: ditto * doc/libtool.texi (libltdl interface): ditto - + 2000-02-01 Thomas Tanner * ltmain.in: support -dlopen/dlpreopen for libraries @@ -1052,7 +1057,7 @@ * libltdl/ltdl.h (lt_dlrealloc): Added declaration. * libltdl/ltdl.c (lt_dlrealloc): Added default definition. - + * libltdl/ltdl.c (lt_dlseterror): Catch errorcodes below 0 as invalid. * libltdl/ltdl.h (LTDL_ERROR): Added missing '_' in K&R @@ -1066,7 +1071,7 @@ 2000-01-27 Thomas Tanner * ltconfig.in: Oops, replace the remaining $objdir's - + * ltmain.in: merge library linking code of programs and libraries, some cleanups @@ -1079,7 +1084,7 @@ defined error message to the tables used by lt_dlerror(). (lt_dlseterror): New function to allow setting of last_error by user modules. - (ltdl_error_strings): New preprocessor generated table of internal + (ltdl_error_strings): New preprocessor generated table of internal error diagnostic strings. (user_error_strings): New internal list of registered user error diagnostic strings. @@ -1142,48 +1147,48 @@ programs, libraries and objects, allow linking of shared libraries against static libraries/objects on platforms that support it but print a warning, fix some typos - + * partially revert my previous change and update only copyright notices of files that were actually modified - + * NEWS: update - + * libltdl/Makefile.am: version number was wrong - + * libltdl/ltdl.c (tryall_dlopen): revert Gary's change since it breaks dlpreopening * ltdl.m4: ditto - + * libltdl/ltdl.c (sys_search_path): search in the system default library search path, too * ltdl.m4 (AC_LTDL_SYSSEARCHPATH): extract the path + + * libltdl/ltdl.c (find_module): remove bogus file_not_found_error - * libltdl/ltdl.c (find_module): remove bogus file_not_found_error - * libltdl/ltdl.c (load_deplibs): implement loading of dependency libraries * libltdl/ltdl.c (unload_deplibs): implement unloading of dependency libraries * libltdl/ltdl.c (lt_dlexit): correctly close all modules and their dependencies - + * libltdl/ltdl.c (lt_dlforeach): new function * libltdl/ltdl.h: ditto * doc/libtool.texi (using libltdl): document it - + * libtool.m4: reformatting, only add -I$topsrc_dir/libltdl to INCLTDL - + * libtoolize.in: reformatting * ltconfig.in: reformatting * ltmain.in: reformatting * mdemo/configure.in: AC_SUBST INCLTDL * mdemo/Makefile.am: use INCLTDL - + * tests/Makefile.am: reexport OBJEXT and EXEEXT * tests/dryrun.test: use them for building main.obj and mdemo.exe - + 2000-01-17 Gary V. Vaughan * libltdl/ltdl.c (tryall_dlopen): Abort with @@ -1236,7 +1241,7 @@ 2000-01-12 Thomas Tanner * update all copyright notices to 2000 - + * doc/libtool.texi (using libltdl): document new lt_dlinfo struct, replace NULL with @code{NULL}, document lt_dlsetdata(), lt_dlgetdata() and lt_dlgetinfo() @@ -1250,7 +1255,7 @@ * libltdl/ltdl.h: ditto * mdemo/main.c: demonstrate use of lt_dlgetinfo, improved handling of errors - + * ltconfig.in: set hardcode_into_libs = yes for GNU/Hurd, Linux and Solaris, only hardcode *all* run-paths if hardcode_into_libs is set to 'all', otherwise hardcode only user-specified rpaths @@ -1260,10 +1265,10 @@ * ltconfig.in: transform linux* -> *linux-gnu* _after_ host_os has been set! (reported by Bruno Haible ) - + * configure.in: AC_SUBST reload_flag, deplibs_check_method and file_magic_cmd - + * README: use 'libtool --version' instead of 'ltconfig --version' (suggested by Francios Pinard @@ -1297,7 +1302,7 @@ (-Wc, -Wl): Likewise. * tests/quote.test: Adjust quoting style of -Wl. - + * ltmain.in: Oops, `echo' -> `$echo'. * ltmain.in (-Wl, -Wc): Make commas argument separators, just like @@ -1394,7 +1399,7 @@ (dlfcn.h, ac_try): Do not add filename, it is already in ac_compile. Reported by Stephane Conversy - + * ltconfig.in (linux-gnu*): Disable hardcode_into_libs until it works together with fast_install. @@ -1439,7 +1444,7 @@ * configure.in: Move ltconfig and ltmain.sh generation back... * Makefile.am: here. - + 1999-11-02 Thomas Tanner * NEWS: updated @@ -1456,7 +1461,7 @@ * ltconfig.in: use old_deplibs for archives, too remove second occurence of sysv5 * ltmain.in: fix typo, fix the second occurence of -DPIC, too - + * libltdl/Makefile.am: increment version number, fix typo * libltdl/ltdl.c (lt_dlsym): don't report an error if the libltdl-style symbol name wasn't found @@ -1495,7 +1500,7 @@ Support -mno-cygwin flag for building mingw32 dlls. * ltconfig.in (file_magic_cmd): add missing quotes. (deplibs_check_method): and here. - + 1999-10-16 Alexandre Oliva * libltdl/ltdl.c (lt_dlopen): Do not search paths when the @@ -1514,13 +1519,13 @@ 1999-10-07 Gary V. Vaughan - * libtool.m4 (AC_PATH_PROG_VERSION_GREP): removed in favour of the + * libtool.m4 (AC_PATH_PROG_VERSION_GREP): removed in favour of the more general AC_PATH_PROG_GREP_OUTPUT. - (AC_PATH_TOOL_VERSION_GREP): removed in favour of the more general + (AC_PATH_TOOL_VERSION_GREP): removed in favour of the more general AC_PATH_TOOL_GREP_OUTPUT. (AC_PROG_LIBTOOL): Search for a working find program in the user's PATH using the new macros. - + 1999-10-06 Gary V. Vaughan * NEWS: updtaed. @@ -1574,7 +1579,7 @@ 1999-10-01 Gary V. Vaughan * configure.in (AC_OUTPUT_COMMANDS): generate ltmain.sh - * Makefile.am (ltmain.sh ltconfig): removed. Automake inserts the + * Makefile.am (ltmain.sh ltconfig): removed. Automake inserts the rules to automatically call config.status. * libtool.m4: be sure to AC_SUBST values no longer tested in @@ -1583,7 +1588,7 @@ substitutions from config.status. * Makefile.am (ltconfig): generate ltconfig with config.status. * configure.in (AC_OUTPUT): generate ltconfig with config.status. - + 1999-09-30 Donald Anderson * ltconfig.in (sco3.2v5): use pass_all deplibs_check_method @@ -1653,7 +1658,7 @@ * doc/libtool.texi: document use of noinst_LTLIBRARIES for convenience libraries - + * ltconfig.in: check for freebsdelf3, not just freebsd3. Set hardcode_into_libs=yes for FreeBSD 3.0 and 3.1 @@ -1736,7 +1741,7 @@ called for code in the DLL. * ltmain.in (impgen.c): define O_BINARY to 0 if it is not in the system headers. - + 1999-07-24 Bert Driehuis * ltconfig.in: Updated bsdi4 soname specs to be more like @@ -1756,11 +1761,11 @@ to $host. * doc/libtool.texi (Invoking ltconfig): Document --build option. * NEWS: Note --build option. - + 1999-07-19 Erez Zadok - + * doc/PLATFORMS: Updated mostly *bsd platforms. - + 1999-07-19 Alexandre Oliva * doc/libtool.texi (Porting inter-library dependencies): Typos @@ -1773,7 +1778,7 @@ * ltconfig.in: new pic_mode variable and --prefer[-non]-pic flags, fixed the strip check (reported by Keith Bostic ) * ltmain.in (compile mode): build only PIC/non-PIC code depending - on pic_mode + on pic_mode * libltdl/README: document the supported dlopen interfaces * doc/libtool.texi (tests): documented new tests * tests/Makefile.am: added new tests @@ -1861,7 +1866,7 @@ 1999-06-25 Alexandre Oliva * ltconfig.in (linux-gnu*, deplibs_check_method): Use pass_all on - alpha, x86 and sparc architectures by now, reverting to file_magic + alpha, x86 and sparc architectures by now, reverting to file_magic at least on ARM, where it breaks. 1999-06-23 Thomas Tanner @@ -1871,14 +1876,14 @@ * doc/libtool.texi: document `-dlpreopen dummy' instead of `-dlopen dummy' * libltdl/ltdl.c (strchr): fixed typo (missing star) - + 1999-06-23 Stephan Kulow * libltdl/ltdl.c (strrchr): fixed typo (missing star) * libltdl/ltdl.c (trim): use `const' to silence -Wwrite-strings 1999-06-23 Olly Betts - + * ltmain.in (ltdll.c): Support for crosscompiling from linux to mingw32. @@ -1901,7 +1906,7 @@ * ltconfig.in: Use sed '$q' instead of sed "" for copying ltmain, just in case some sed does not support an empty command. - + * ltconfig.in (link_static_flag, ac_cv_prog_cc_static): Use the latter in the test. @@ -1953,7 +1958,7 @@ 1999-06-12 Thomas Tanner - * ltmain.in: store old archives in deplibs and old_deplibs, + * ltmain.in: store old archives in deplibs and old_deplibs, retain the order of dependency libraries (even old archives), determining the absolute directory name didn't work due to a typo, add the library search paths of all dependency libraries when @@ -1982,7 +1987,7 @@ 1999-06-09 Pavel Roskin - * ltconfig.in (exeext): Use quotes in the test, to prevent a + * ltconfig.in (exeext): Use quotes in the test, to prevent a failure in sh.test. 1999-06-09 Gary V. Vaughan @@ -2066,7 +2071,7 @@ 1999-05-27 Alexandre Oliva , Olly Betts - * ltmain.in: Expand convenience libraries when creating reloadable + * ltmain.in: Expand convenience libraries when creating reloadable objects. * NEWS: Ditto. @@ -2082,7 +2087,7 @@ * ltconfig.in (export_symbols_cmds): Add $convenience. (cygwin, export_symbols_cmds): Ditto. * ltmain.in: Generate export symbol list before expanding - convenience libraries, to avoid passing whole_archive_flag_spec to + convenience libraries, to avoid passing whole_archive_flag_spec to $NM. Reported by Godmar Back @@ -2127,7 +2132,7 @@ 1999-05-24 Thomas Tanner - * NEWS: support for installing stripped libraries using GNU strip + * NEWS: support for installing stripped libraries using GNU strip * ltconfig.in: set deplibs_check_method=pass_all on FreeBSD, Linux and Solaris since no one can reproduce the famous deplibs bug @@ -2144,7 +2149,7 @@ * ltmain.in: strip off the .exe suffix only on *Win (Reported by Matthew D. Langston ) - + 1999-05-22 Thomas Tanner * NEWS: updated @@ -2171,7 +2176,7 @@ * libltdl/configure.in (dlerror): Fix typo in dlopen found in -ldl test. -1999-05-21 Pavel Roskin +1999-05-21 Pavel Roskin * Makefile.am (EXTRA_DIST): Don't distribute instutils. (install-data-hook): use libltdl/Makefile.am's local-install files @@ -2201,7 +2206,7 @@ * NEWS: Updated docs. * TODO: Recommend libtool.m4 to be inserted in acinclude.m4. AIX 4.3.2.0 no longer fails on static dlopening. GNU DLD no longer - has to support .la files, since libltdl already does. Convenience + has to support .la files, since libltdl already does. Convenience libraries and reloadable objects should be tested in the testsuite. We could support some amount of control on the soname of libraries. @@ -2237,12 +2242,12 @@ passed in, simply warn and continue since some compilers require -LANG:* like options to work. Reported by Adam C. Powell, IV - + 1999-05-17 Jiro Takabatake - + * ltconfig.in: port to NEC UX/4800. * NEWS: updated. - + 1999-05-17 Gary V. Vaughan * ltconfig.in (beos*, deplibs_check_method): set to pass_all. BeOS @@ -2251,7 +2256,7 @@ * libltdl/configure.in: Fix test failures on AIX 4.3.2 by checking for dlopen *with* -ldl first. - Reported by Greg Wooledge + Reported by Greg Wooledge * demo/foo.h: Don't set any declspecs until we have full dll support. @@ -2324,7 +2329,7 @@ * libtool.m4 (cygwin*|mingw*, DLLTOOL, OBJDUMP, AS): Only expand the code that makes these configure time checks on hosts that need the - tools *and* if the AC_LIBTOOL_WIN32_DLL macro is used. + tools *and* if the AC_LIBTOOL_WIN32_DLL macro is used. 1999-04-29 Alexandre Oliva @@ -2382,11 +2387,11 @@ don't add a statically linked library to the dependency_libs * ltmain.in (help uninstall): added a missing backslash after echo (reported by Ossama Othman) - + 1999-04-27 Alexandre Oliva * ltmain.in (old_archive_cmds): Iterate on oldobjs to find out - which links to object files we must create. Do not test for empty + which links to object files we must create. Do not test for empty pic_flag to create such links. Use objext when searching for object files extracted from convenience library. @@ -2405,7 +2410,7 @@ 1999-04-26 Alexandre Oliva - * ltconfig.in (aix4.[01], always_export_symbols): The case pattern + * ltconfig.in (aix4.[01], always_export_symbols): The case pattern would never match; fixed. Reported by Stephan Kulow @@ -2462,7 +2467,7 @@ * ltconfig.in (irix*, soname_spec): Append $major. (irix*, library_names_spec): Add new soname. Reported by David Kaelbling - + * ltconfig.in (irix*, sys_lib_dlsearch_path_spec): /usr/local/lib is not searched by default. /usr/lib is searched before /lib. * ltconfig.in (irix*, sys_lib_search_path_spec): /usr/lib is @@ -2565,7 +2570,7 @@ * dryrun.test: It would still fail at random times, because `cp' and `mv' are not guaranteed to preserve the timestamps of the installed files. Instead of preserving them, just remove them - before the dry uninstall test. Redirect dry-run output to stderr, + before the dry uninstall test. Redirect dry-run output to stderr, so that it can be easily separated from the regular output. 1999-04-07 Thomas Tanner @@ -2585,7 +2590,7 @@ * tests/dryrun.test: The constant modifications of libtool would cause main.o to be updated at the wrong time; the new approach is to modify the libtool script so that it enables dry run depending - on whether an environment variable is set or not. I've also moved + on whether an environment variable is set or not. I've also moved `after' and `before' to a directory deep within $objdir, instead of creating it in ../tests. * tests/Makefile.am (CLEANFILES): Removed. @@ -2602,8 +2607,8 @@ * tests/dryrun.test: Use cmp instead of diff. (before, after): Create them within ../tests. - (libtool): Set to `/bin/sh ./libtool' by default, but use LIBTOOL, - SHELL and top_builddir from the environment if available. For dry + (libtool): Set to `/bin/sh ./libtool' by default, but use LIBTOOL, + SHELL and top_builddir from the environment if available. For dry runs, use "$libtool -n". * tests/Makefile.am (CLEANFILES): Added before and after. * ltmain.in: Do not create links to object files in dry runs. @@ -2660,8 +2665,8 @@ * ltconfig.in: if ld_shlibs=no, set can_build_shared=no too, otherwise it will just be disregarded. This would cause - netbsd/m68k with GNU ld a.out, and certainly many other platforms, - to incorrectly believe that shared libraries were supported, while + netbsd/m68k with GNU ld a.out, and certainly many other platforms, + to incorrectly believe that shared libraries were supported, while archive_cmds was empty, causing shared libraries not to be created 1999-04-03 Alexandre Oliva @@ -2677,12 +2682,12 @@ 1999-04-02 Alexandre Oliva - * ltmain.in (convenience): fixed race condition when more than one + * ltmain.in (convenience): fixed race condition when more than one library was linked with the same convenience library by uniquifying the extract directory. It is now named after the new library *and* the old one, and lives in the objdir of the new one. - * ltmain.in (-L*): do not abort just because a directory specified + * ltmain.in (-L*): do not abort just because a directory specified with -L does not exist; just warn and discard it * depdemo/l1/Makefile.am (AUTOMAKE_OPTIONS): no-dependencies @@ -2695,7 +2700,7 @@ * demo/Makefile.am (CLEANFILES): clean EXTRA_* from deplibs-check - * libtool.m4 (LDFLAGS, LIBS): pass them to ltconfig, for the tests + * libtool.m4 (LDFLAGS, LIBS): pass them to ltconfig, for the tests that involve linking * Makefile.am (LDFLAGS, LIBS, libtool, clibtool): ditto * tests/Makefile.am (CFLAGS, CPPFLAGS, LDFLAGS, LIBS): set @@ -2732,7 +2737,7 @@ * ltmain.in: always link a library before its dependency libs * mdemo/Makefile.am: test -export-symbols-regex - + 1999-03-30 Thomas Tanner * doc/libtool.texi: fixed a typo @@ -2751,7 +2756,7 @@ and add them to dependency_libs, add -lc before deplibs, always link all dependencies of a static library or if link_all_deplibs is yes, hardcode library paths if - hardcode_into_libs is no, don't link against dependency_libs + hardcode_into_libs is no, don't link against dependency_libs that already are deplibs 1999-03-30 Alexandre Oliva @@ -2765,7 +2770,7 @@ library search path * ltmain.in, ltconfig.in: reverted most of the quoting changes - from 1999-03-25; Gary's delay_variable_subst patch from 1999-02-19 + from 1999-03-25; Gary's delay_variable_subst patch from 1999-02-19 obviates it. Keep only quoting of $PATH, for uniformity with other systems that already did it @@ -2775,7 +2780,7 @@ extra byte of memory for the teminating NUL, and forgot to strcpy the original path in to the new memory before appending the new path compononent. - + 1999-03-27 Thomas Tanner * NEWS: updated @@ -2805,8 +2810,8 @@ * tests/demo-exec.test, tests/demo-inst.test: run the new program * ltconfig.in (irix5*, irix6*, deplibs_check_method): pass_all - * ltmain.in ($PATH): instead of modifying the PATH, better prevent - its expansion the first time *_cmds variables are eval'ed. Modify + * ltmain.in ($PATH): instead of modifying the PATH, better prevent + its expansion the first time *_cmds variables are eval'ed. Modify $show within loops that eval them so as to expand variables * ltconfig.in (*_cmds): quote $ so that they're not expanded by the first eval @@ -2816,7 +2821,7 @@ * ltmain.in ($PATH): Expand any tildes in the users path to the contents of $HOME to avoid problems with *_cmds splitting and evaluation. - + 1999-03-24 Thomas Tanner * TODO: support -dlopen for libraries @@ -2848,7 +2853,7 @@ 1999-03-21 Alexandre Oliva - * tests/build-relink.test: if we relink and have hardcode_direct, + * tests/build-relink.test: if we relink and have hardcode_direct, removing an uninstalled library breaks an uninstalled program * doc/libtool.texi: documented convenience libraries @@ -2892,7 +2897,7 @@ libm and *-ncr-sysv4.3* requires libmw * ltconfig.in: don't check for LoadLibrary, hardcode dlopen configuration for BeOS and Cygwin - * ltmain.in: fix sourcing of .la files on Solaris + * ltmain.in: fix sourcing of .la files on Solaris (patch by Raja R Harinath) 1999-03-19 Alexandre Oliva @@ -2952,14 +2957,14 @@ arguments in libtool_args, accept relative -L directories, ignore -lm on BeOS and Cygwin, always ignore -lc, handle -l, -L and .la arguments later, always make the library - installation directory (-rpath) absolute, in relink mode don't + installation directory (-rpath) absolute, in relink mode don't delete the not-relinked library and exit immediately after relinking, try to find already-installed libtool libraries that were specified using -l, support hardcoding of library paths into libraries too, export shlibpath before linking libraries, and a lot of other big changes that I don't want to describe here... please read the source. - + * merged Gary's Win32 code from the ILD branch: * NEWS: Win32 DLLs are now supported * TODO: removed .a library namespace clash for win32. It is @@ -2987,7 +2992,7 @@ -lm, and although the linker fakes having one, specifiying it to libtool will break ILD, so we ignore it when generating dependencies. - + 1999-03-17 Gary V. Vaughan * doc/PLATFORMS: Thanks to Alexandres changes below, both my Index: libtool.m4 =================================================================== RCS file: /cvs/libtool/libtool.m4,v retrieving revision 1.140 diff -u -r1.140 libtool.m4 --- libtool.m4 2000/12/16 17:37:44 1.140 +++ libtool.m4 2000/12/19 09:55:58 @@ -559,7 +559,7 @@ fnord() { int i=42;} main () -{ +{ void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); int status = $lt_dlunknown; @@ -666,7 +666,7 @@ LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" ;; - esac + esac case "$lt_cv_dlopen_self" in yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; @@ -680,6 +680,9 @@ fi ])# AC_LIBTOOL_DLOPEN_SELF + +# _LT_AC_LTCONFIG_HACK +# -------------------- AC_DEFUN([_LT_AC_LTCONFIG_HACK], [AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl # Sed substitution that helps us do robust quoting. It backslashifies @@ -712,6 +715,10 @@ old_CC="$CC" old_CFLAGS="$CFLAGS" +dnl Althought it looks like an unexpanded macro, AR_FLAGS is a valid +dnl output. Pacify autoconf. +ifdef([m4_pattern_allow], [m4_pattern_allow([^AR_FLAGS$])]) + # Set sane defaults for various variables test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru @@ -1445,7 +1452,7 @@ hardcode_shlibpath_var=no whole_archive_flag_spec='-all_load' ;; - + freebsd1*) ld_shlibs=no ;; @@ -1557,7 +1564,7 @@ archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ $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' fi -#Both c and cxx compiler support -rpath directly +#Both c and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' hardcode_libdir_separator=: ;; @@ -2015,7 +2022,7 @@ case "$host_vendor" in sni) shlibpath_overrides_runpath=no - ;; + ;; motorola) need_lib_prefix=no need_version=no @@ -2547,17 +2554,17 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # */ -# +# # #include /* for printf() */ # #include /* for open(), lseek(), read() */ # #include /* for O_RDONLY, O_BINARY */ # #include /* for strdup() */ -# +# # /* O_BINARY isn't required (or even defined sometimes) under Unix */ # #ifndef O_BINARY # #define O_BINARY 0 # #endif -# +# # static unsigned int # pe_get16 (fd, offset) # int fd; @@ -2568,7 +2575,7 @@ # read (fd, b, 2); # return b[0] + (b[1]<<8); # } -# +# # static unsigned int # pe_get32 (fd, offset) # int fd; @@ -2579,7 +2586,7 @@ # read (fd, b, 4); # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); # } -# +# # static unsigned int # pe_as32 (ptr) # void *ptr; @@ -2587,7 +2594,7 @@ # unsigned char *b = ptr; # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); # } -# +# # int # main (argc, argv) # int argc; @@ -2599,32 +2606,32 @@ # unsigned long name_rvas, nexp; # unsigned char *expdata, *erva; # char *filename, *dll_name; -# +# # filename = argv[1]; -# +# # dll = open(filename, O_RDONLY|O_BINARY); # if (!dll) # return 1; -# +# # dll_name = filename; -# +# # for (i=0; filename[i]; i++) # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') # dll_name = filename + i +1; -# +# # pe_header_offset = pe_get32 (dll, 0x3c); # opthdr_ofs = pe_header_offset + 4 + 20; # num_entries = pe_get32 (dll, opthdr_ofs + 92); -# +# # if (num_entries < 1) /* no exports */ # return 1; -# +# # export_rva = pe_get32 (dll, opthdr_ofs + 96); # export_size = pe_get32 (dll, opthdr_ofs + 100); # nsections = pe_get16 (dll, pe_header_offset + 4 +2); # secptr = (pe_header_offset + 4 + 20 + # pe_get16 (dll, pe_header_offset + 4 + 16)); -# +# # expptr = 0; # for (i = 0; i < nsections; i++) # { @@ -2643,22 +2650,22 @@ # break; # } # } -# +# # expdata = (unsigned char*)malloc(export_size); # lseek (dll, expptr, SEEK_SET); # read (dll, expdata, export_size); # erva = expdata - export_rva; -# +# # nexp = pe_as32 (expdata+24); # name_rvas = pe_as32 (expdata+32); -# +# # printf ("EXPORTS\n"); # for (i = 0; i