Commit Graph

1801 Commits

Author SHA1 Message Date
Gary V. Vaughan
73263db76b Refactor all the test case common code into shell functions in
tests/defs, and move the various demo directories out of
$top_srcdir, and into tests too.  The refactoring showed up a
number of inconsistencies and latent bugs, as well as fixing (I
think!!) the long-standing annoyance with some of the tests giving
spurious failures intermittently.  While I was here, emacs kindly
removed a lot of bogus whitespace and added copyright notices for
us:

* cdemo, demo, depdemo, f77demo, mdemo, mdemo2, pdemo, tagdemo:
Moved from here...
* tests/cdemo, tests/demo, tests/depdemo, tests/f77demo,
tests/mdemo, tests/mdemo2, tests/pdemo, tests/tagdemo: ...to
here.
* tests/defs: Factor much common functionality from the test
scripts into shell functions.  Added a copyright notice.
* tests/assign.test, tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/demo-conf.test,
tests/demo-deplibs.test, tests/demo-exec.test,
tests/demo-inst.test, tests/demo-make.test,
tests/demo-nofast.test, tests/demo-nopic.test,
tests/demo-pic.test, tests/demo-shared.test,
tests/demo-static.test, tests/demo-unst.test,
tests/depdemo-conf.test, tests/depdemo-exec.test,
tests/depdemo-inst.test, tests/depdemo-make.test,
tests/depdemo-nofast.test, tests/depdemo-shared.test,
tests/depdemo-static.test, tests/depdemo-unst.test,
tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared.test,
tests/f77demo-static.test, tests/link-2.test, tests/link.test,
tests/mdemo-conf.test, tests/mdemo-exec.test,
tests/mdemo-inst.test, tests/mdemo-make.test,
tests/mdemo-shared.test, tests/mdemo-static.test,
tests/mdemo-unst.test, tests/mdemo2-conf.test,
tests/mdemo2-exec.test, tests/mdemo2-make.test, tests/nomode.test,
tests/pdemo-conf.test, tests/pdemo-exec.test,
tests/pdemo-inst.test, tests/pdemo-make.test,
tests/pdemo-unst.test, tests/quote.test, tests/sh.test,
tests/suffix.test, tests/tagdemo-conf.test,
tests/tagdemo-exec.test, tests/tagdemo-make.test,
tests/tagdemo-shared.test, tests/tagdemo-static.test: Refactored
to use new functions in tests/defs.  Added a copyright notice.
* tests/hardcode.test, noinst-link.test,
tests/relink.test, tests/relink.test,
tests/mdryrun.test: Ditto.  Moved from here...
* tests/demo-hardcode.test, demo-noinst-link.test,
tests/demo-relink.test, tests/depdemo-relink.test,
tests/mdemo-dryrun.test: ...to here respectively.
* Makefile.am: Added a copyright notice.
* tests/sh.test: Check libtoolize.in for non-portabilities too.
* libtoolize.in: Fix non-portabilities found by tests/sh.test.
2003-10-14 21:45:03 +00:00
Peter O'Gorman
884ec923bd * m4/libtool.m4: Speed up max_cmd_len check. 2003-10-11 16:51:46 +00:00
Gary V. Vaughan
438422eaf8 * libtoolize.in: AC_CONFIG_M4_DIR has landed in CVS autoconf.
Only it's called AC_CONFIG_MACRO_DIR.  Search and replace.
Grumble. ;-)
2003-10-08 14:09:02 +00:00
Scott James Remnant
1bbeb14f36 * libltdl/ltdl.c (lt_dlerror): change return value when
no error has occured to NULL to match documentation.
(Debian Bug #157229)
2003-10-07 22:29:05 +00:00
Gary V. Vaughan
1a5dfde5cd * ltmain.in: Don't suppress output of PIC mode compile if
-no-suppress option is given.
* doc/libtool.texi (Invoking libtool): Document it.
* NEWS: Updated.
2003-10-07 17:13:42 +00:00
Marcus Comstedt
5978456ccd * m4/libtool.m4 [amigaos-ppc, amigaos-m68k]: Differentiate between
amigaos on ppc and m68k.
* NEWS: Updated.
2003-10-07 17:03:15 +00:00
Ralph Schleicher
3bdc61dbfc * ltmain.in: Do not create .o' objects when -shared' is
specified in compile mode.
Do not make a static library when `-shared' is specified in link
mode.
* doc/libtool.texi (Compile mode): Document it.
* NEWS: Updated.
2003-10-07 16:48:23 +00:00
Ralph Schleicher
331b0b57a5 * doc/libtool.texi (Compile mode): Be more specific about the
effect of `-static'.
* ltmain.in: Do not create `.lo' objects when `-static' is
specified.
* NEWS: Updated.
2003-10-07 16:32:58 +00:00
Gary V. Vaughan
310b8e2d8c * doc/libtool.texi (Invoking libtool): Updated.
* ltmain.in: Add missing clean and finish modes to the shorthand
options.
2003-10-07 14:51:06 +00:00
Gary V. Vaughan
08849ebfb4 * ltmain.in: Typo in the --mode shorthand. 2003-10-07 14:34:45 +00:00
Scott James Remnant
fe03e46514 * m4/libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Remove dead code
for platforms that have been using pass_all for some time now.
2003-10-07 14:18:24 +00:00
Gary V. Vaughan
29b9bc885b * libtoolize.in: Completely rewritten.
* Makefile.am (AUTOMAKE_OPTIONS): Reduced to 1.7.  The 1.8
requirement just made the distribution much smaller due to
m4_includes.  1.7 will bootstrap libtool just fine.
* NEWS: Updated.
2003-10-07 11:12:16 +00:00
Peter O'Gorman
eb8a008f12 * ltmain.in: Specifying -allow-undefined is now an error. 2003-10-05 15:27:34 +00:00
Peter O'Gorman
46639155f3 * ltmain.in: Remove inferrence of mode, add shorthand for mode
choice.
2003-10-05 14:50:14 +00:00
Scott James Remnant
faebb80cef * m4/libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for linux*
solving many build problems on ARM, and hopefully preventing any
future ones.
(Debian Bug #191133 and #190569)
2003-09-29 11:54:45 +00:00
Bob Friesenhahn
abaff9e0ec * libltdl/ltdl.c: Only include malloc.h if stdlib.h can not be
found.
2003-09-29 10:57:57 +00:00
Alfred M. Szmidt
37b1fa6d14 * mdemo2/Makefile.am (INCLUDES): Include `$(top_srcdir)/../libltdl'
instead of `../libltdl'.
2003-09-26 12:52:31 +00:00
Gary V. Vaughan
27a9392fb1 * bootstrap: Rewritten to use autoreconf.
* config.guess, config.sub, mkstamp:  Moved from here...
* config/config.guess, config/config.sub, config/mkstamp: ...to
here, respectively.
* libtool.m4, ltdl.m4: Moved from here...
* m4/libtool.m4, m4/ltdl.m4: ...to here, respectively.
* configure.ac: Removed various acinclude.m4 hackery, as these
files are no longer needed with automake 1.8.
* Makefile.am: Removed various acinclude.m4 hackery, as these
files are no longer needed with automake 1.8.
(AUTOMAKE_OPTIONS): Require CVS automake.
(CONF_SUBDIRS, CFLAGS, CPPFLAGS, LDFLAGS, LIBS, FFLAGS, FLIBS):
Automake now makes a Make variable from every AC_SUBST, so these
are NOP.
(aclocal_macros): These files are now in their own m4 subdir.
Changed all clients.
(EXTRA_DIST): mkstamp has moved to the new config subdir.  Changed
all clients.
(pkgdata_SCRIPTS): Ditto wrt config.guess and config.sub.
(pkgdata_DATA): Ditto wrt ltmain.sh.
* f77demo/configure.ac, libltdl/configure.ac (AM_CONFIG_HEADER):
Is deprecated in favour of AC_CONFIG_HEADERS.  Updated to the
latter.
* Makefile.am, cdemo/Makefile.am, demo/Makefile.am,
depdemo/Makefile.am, f77demo/Makefile.am, mdemo/Makefile.am,
mdemo2/Makefile.am, pdemo/Makefile.am, tagdemo/Makefile.am
(EXTRA_DIST): Remove acinclude.m4.
(ACLOCAL_AMFLAGS): Search new `m4' macro directory.
* configure.ac, cdemo/configure.ac, demo/configure.ac,
depdemo/configure.ac, f77demo/configure.ac, mdemo/configure.ac,
mdemo2/configure.ac, pdemo/configure.ac, tagdemo/configure.ac
(AC_CONFIG_AUX_DIR): Declare that config helper	scripts are now
kept in the new config subdir.
* libltdl/configure.ac (AC_CONFIG_AUX_DIR): Removed.  Defaults to
`.' anyway.
2003-09-25 11:22:29 +00:00
Robert Millan
68bac5f496 Updated to reflect upcoming autoconf 2.58 and automake 1.8 2003-09-24 17:03:27 +00:00
Robert Millan
ef56258094 * libtool.m4: Add GNU/KNetBSD support.
* ltdl.m4: Likewise.
2003-09-21 12:50:48 +00:00
Scott James Remnant
c74421e26e * libtool.m4: allow STRIP to contain spaces and additional
arguments.  (Debian Bug #183055)
* ltmain.in: include newline in "sensible default" for IFS.
(Debian Bug #98492 and #95447)
2003-09-13 12:02:04 +00:00
Peter O'Gorman
10b95aabd1 Added myself to AUTHORS, removed from THANKS. 2003-09-11 12:43:30 +00:00
Peter O'Gorman
35929a5312 * mdemo2/configure.ac: Use AC_LIBTOOL_DLOPEN.
* mdemo2/main.c: Use LTDL_SET_PRELOADED_SYMBOLS().
* mdemo2/Makefile.am: Set INCLUDES properly and add -dlopen force
to make sure the symbols file is included in the link line.
2003-09-10 15:13:36 +00:00
Peter O'Gorman
ac23865b5b * ltmain.in: Accept -framework for darwin and put it in
dependency_libs. For non-installed .la's try to avoid having
./.libs/.libs/libfoo.so on the link line.
2003-09-10 08:40:42 +00:00
Arne Woerner
9d6bc3db5f * libtool.m4 [openbsd]: openbsd 3.x needs versioning information. 2003-09-10 07:48:02 +00:00
Gary V. Vaughan
02f25c124f * bootstrap: Typo. 2003-08-29 17:07:17 +00:00
Alexandre Duret-Lutz
e8bf40b903 * libtool.m4 (_LT_AC_LANG_C_CONFIG): Fix unquoted call to
_LT_AC_LANG_C_CONFIG.
(AC_PROG_EGREP): Remove, now that Libtool requires Autoconf 2.56.
* bootstrap: Issue an upgrade warning.
2003-08-29 14:09:50 +00:00
Gary V. Vaughan
1082a7668f * libtool.m4 (_LT_AC_CHECK_DLFCN): Use the interrim new
AC_CHECK_HEADER with compiler rather than preprocessor.
(AC_LIBTOOL_SETUP): ...which was introduced in autoconf-2.56, so
we AC_PREREQ that version.
* ltdl.m4 (AC_WITH_LTDL, AC_LIB_LTDL, AC_LTDL_FUNC_ARGZ): Ditto.
2003-08-27 16:24:44 +00:00
Gary V. Vaughan
09e4e04138 Work around a bug in AU_ALIAS in CVS Autoconf that inserts a
newline just before AC_FD_CC, by hand updating:

* ltdl.m4 (AC_LTDL_SYMBOL_USCORE): s/AC_FD_CC/AS_MESSAGE_LOG_FD/g.
2003-08-27 14:56:07 +00:00
Jim Pick
522aef6a38 Much as we have tried not to make it the callers' responsibility
to maintain an lt_dlrealloc function pointer, it is too difficult
to implement realloc as malloc/memcpy/free without knowing the
size of the original block.  rpl_realloc has been deprecated since
2002-10-30, but kaffe has real failures with that so it's time to
bite the bullet.  Caller gets to maintain lt_dlrealloc:

* NEWS (1.5.1): Updated.
* libltdl/ltdl.c (LT_DLREALLOC): Use lt_dlrealloc so the user can
update the function pointer to match lt_dlmalloc.
(lt_emalloc): Use lt_dlrealloc rather than hardcoding realloc.
* doc/libtool.texi (Libltdl interface): Describe lt_dlrealloc now
that it too has become part of the exported interface to libltdl.
2003-08-05 16:05:01 +00:00
Peter O'Gorman
9bfa9cf6b9 * libtool.m4 (darwin): Use "-undefined dynamic_lookup" if the
user set MACOSX_DEPLOYMENT_TARGET to 10.3 or greater.
* libltdl/ltdl.c (dyld): Save the error from the first lookup
to report in lt_dlerror(). Otherwise the error is always
"Symbol _foo not in /usr/lib/libSystem.dylib".
Thanks to Chris Zubrzycki for reporting this.
2003-08-01 19:08:14 +00:00
Robert Boehne
f6f942758d * libltdl/ltdl.h: Tweak the header to support visual studio. 2003-08-01 18:31:55 +00:00
Greg Eisenhauer
40462e712c 2003-07-31 Greg Eisenhauer <eisen@cc.gatech.edu>
* ltmain.in: Provide absolute paths for dlopen and dlpreopen
	files in generating uninstalled libtool libraries.
	* mdemo2/main.c, mdemo2/Makefile.am, mdemo2/README,
	mdemo2/configure.ac, mdemo2/.cvsignore, mdemo/mlib.c,
	tests/mdemo2-conf.test, tests/mdemo2-exec.test,
	tests/mdemo2-make.test: New files for testing above feature.
	* configure.ac, bootstrap, tests/Makefile.am: Accomodate new
	test directory.
	* mdemo/Makefile.am: Build libmlib.la for mdemo2 tests.
2003-07-31 20:44:29 +00:00
Greg Eisenhauer
8d844b3f48 * ltmain.in: Provide absolute paths for dlopen and dlpreopen
files in generating uninstalled libtool libraries.
* mdemo2/main.c, mdemo2/Makefile.am, mdemo2/README,
mdemo2/configure.ac, mdemo2/.cvsignore, mdemo/mlib.c,
tests/mdemo2-conf.test, tests/mdemo2-exec.test,
tests/mdemo2-make.test: New files for testing above feature.
* configure.ac, bootstrap, tests/Makefile.am: Accomodate new
test directory.
* mdemo/Makefile.am: Build libmlib.la for mdemo2 tests.
2003-07-31 20:41:35 +00:00
Tony Wyatt
bda2afd972 *** empty log message *** 2003-07-30 23:00:48 +00:00
Tony Wyatt
bcce0fae1c * libtool.m4: Remove parentheses around finish_eval part which
broke on amigaos pdksh.
2003-07-30 21:56:08 +00:00
Christiaan Welvaart
4b6405a65a * tests/dryrun.test: Ignore any 'total' line from "ls -l" output. 2003-07-30 18:41:31 +00:00
Albert Chin-A-Young
1dc12d937c * libtool.m4 (AC_LIBTOOL_PROG_CC_C_O): Correctly remove IRIX C++
template files.
2003-07-30 18:40:25 +00:00
Robert Millan
76768eda80 * libtool.m4: More fixes for the new GNU/FreeBSD triplet. 2003-07-30 15:11:17 +00:00
Bob Friesenhahn
cd56ac9a85 * config.guess, config.sub: Synchronized from ftp.gnu.org since
Robert Millan's patch requires it.


* libtool.m4: Fixed to use the new GNU/FreeBSD triplet.
* ltdl.m4: Fixed to use the new GNU/FreeBSD triplet.
* ltmain.in: Remove GNU/FreeBSD cases, which are no longer needed.
2003-07-15 00:05:21 +00:00
Andreas Schwab
5d478ee2f6 * libtool.m4 (_LT_AC_LOCK): Also match powerpc64-*linux* in
addition to ppc64-*linux*.  From Markus Meissner
<meissner@suse.de>.
2003-07-14 22:51:59 +00:00
Dalibor Topic
11cd33d029 * libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): For AmigaOS with pdksh,
set the maximum command line length to 8K since otherwise the test
takes over an hour to run.
2003-07-14 21:00:32 +00:00
Alexandre Oliva
139fb24af0 * libtool.m4: Replace mis-uses of path with pathname.
(AC_PROG_LD_GNU): Don't quote $LD when running it.
(_LT_AC_LANG_CXX_CONFIG): Use -nostdlib also when linking with g++
and non-GNU ld.
2003-06-26 06:55:19 +00:00
Gary V. Vaughan
102060efb2 * libtool.m4 (AC_LIBTOOL_COMPILER_OPTION): Require LT_AC_PROG_SED to
ensure $SED is set by the time it is used.
2003-06-11 16:33:49 +00:00
Gary V. Vaughan
2ce5f5b5e8 * ChangeLog: Restore missing entries from 2003-04-22.
* libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on all
mips*-linux* variants.


* libtool.m4 Switch on $CC and add paterns to cases.


* libtool.m4: Move the AC_LIBTOOL_SYS_DYNAMIC_LINKER check
to be before AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH, becuase the
value of shlibpath_overrides_runpath is used in the HARDCODE
test and is set in the DYNAMIC_LINKER test.
* ltmain.in [darwin]: We never need to relink on darwin.


* libtool.m4: Switch on $CC and add patterns to cases.
2003-06-11 15:09:24 +00:00
Gary V. Vaughan
1b8c7b2439 * NEWS: Sychronised from branch-1-5. 2003-06-11 14:23:41 +00:00
Benjamin Reed
80983ca528 * ltmain.in: search libraries in the order of preference, rather
than picking .la's even if they're in a less preferred directory.
2003-06-03 18:20:37 +00:00
Robert Millan
b37c4c3430 * ltdl.m4: Add support for GNU/FreeBSD.
* ltmain.in: Add support for GNU/FreeBSD.
2003-06-03 18:14:08 +00:00
Albert Chin-A-Young
71e3aa326e * libtool.m4: No need to use sed to remove leading comma when
appending to $tagnames.
2003-06-03 17:31:52 +00:00
Albert Chin-A-Young
57c1e5d6dc * tests/defs, tests/demo-conf.test, tests/demo-nofast.test,
tests/demo-nopic.test, tests/demo-pic.test,
tests/demo-shared.test, tests/demo-static.test,
tests/depdemo-conf.test, tests/depdemo-nofast.test,
tests/depdemo-shared.test, tests/depdemo-static.test:
Pass build system type to tests to support environment
where default system type not equal to build system type
(eg. 64-bit HP-UX).
2003-06-03 15:44:14 +00:00