Commit Graph

2322 Commits

Author SHA1 Message Date
Ralf Wildenhues
d62ad2b24d * tests/demo-hardcode.test: Fix typo. 2005-04-18 10:19:22 +00:00
Alexandre Oliva
0a89b38e7e Peter O'Gorman <peter@pogma.com>
* config/ltmain.m4sh: Don't add files with the same base name to an
archive; rename duplicates instead.
(func_extract_an_archive): Remove section to deal with duplicate
base names in an archive.
* tests/functests.at: remove.
* tests/duplicate_members.at: new test.
* tests/testsuite.at: Add new test, remove old.
* Makefile.am: Add new test, remove old.
2005-04-17 14:30:34 +00:00
Ralf Wildenhues
78499bdc92 * tests/demo-hardcode.test [solaris]: Use dumpstabs if available,
to avoid false failure caused by debug section which contains
command line (Solaris cc).
2005-04-17 07:58:12 +00:00
Ralf Wildenhues
9bfed72522 * libtoolize.m4sh (func_copy_cb): Fix syntax typo. 2005-04-17 06:50:25 +00:00
Maciej W. Rozycki
e48c58afb0 currently 2005 2005-04-16 14:30:19 +00:00
Maciej W. Rozycki
4f54066116 * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG): Add old_archive_cmds
definition.
2005-04-15 14:39:00 +00:00
Ralf Wildenhues
5b9fd5f43a * m4/libtool.m4 (_LT_CC_BASENAME): New macro to figure out $cc_basename.
Skip ccache, distcc, purify, cmdline options, `$host_alias-' prefix.
(_LT_SETUP, _LT_LANG_CXX_CONFIG, _LT_LANG_F77_CONFIG,
_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG): Use.
* NEWS, TODO: Update.
2005-04-15 13:36:56 +00:00
Gary V. Vaughan
ebb37d1a39 * libltdl/configure.ac (AC_OUTPUT): loaders/Makefile is no longer
used.
2005-04-15 10:31:35 +00:00
Gary V. Vaughan
25b33e7236 * Makefile.am (lt__cd, CD_TESTDIR): New make macros to work around
problems with CDPATH in some shells.
(check-local, installcheck-local, clean-local): Use them.
2005-04-15 10:26:55 +00:00
Ralf Wildenhues
bc34095f46 * bootstrap: Define srcdir for making `commit'. 2005-04-14 13:09:01 +00:00
Alexandre Oliva
31327f332d * config/ltmain.m4sh (link mode): Add to tmp_libs paths for libtool dep
libs in reverse order as well.
* Makefile.am, tests/testsuite.at, tests/link-order.at: New test.
2005-04-14 11:59:10 +00:00
Gary V. Vaughan
6c1e70c04a Since the bootstrap process requires that several of the rules for
files generated in doc and tests already lived in
$top_srcdir/Makefile.am, along with proxy rules in sub-Makefiles,
this changeset consolidates almost everything into the top
Makefile.am, simplifying things considerably:

* doc/Makefile.am, tests/Makefile.am: Removed.  All rules moved...
* Makefile.am: ...to here and adjusted to run from $top_builddir.
Some reformatting to group rules and declarations by purpose, and
simplify with respect to removing much of the make recursion.
Add `doc/PLATFORMS', `doc/fdl.texi' and `doc/notes.texi'.
`defs.in' and `defs.m4sh' are in directory `tests'.
(uninstall-hook): Don't forget to uninstall libtoolize's libltdl
source tree.
* bootstrap: Simplified dirty makefile management, and bootstrap
file creation in light of having only a single pertinent
Makefile.
* configure.ac (CONF_SUBDIRS): Add tests/ prefix to each subdir to
compensate.
(DIST_MAKEFILE_LIST): Adjust.
(AC_CONFIG_FILES): Remove doc/Makefile and tests/Makefile.
* tests/defs.m4sh (LIBTOOL, scripts): Adjust paths.
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared.test,
tests/cdemo-static.test, tests/cdemo-undef.test,
tests/demo-conf.test, tests/demo-deplibs.test,
tests/demo-exec.test, tests/demo-hardcode.test,
tests/demo-inst.test, tests/demo-make.test,
tests/demo-nofast.test, tests/demo-noinst-link.test,
tests/demo-nopic.test, tests/demo-pic.test,
tests/demo-relink.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-relink.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-dryrun.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/objectlist.test, tests/pdemo-conf.test,
tests/pdemo-exec.test, tests/pdemo-inst.test,
tests/pdemo-make.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,
tests/tagdemo-undef.test, tests/tagtrace.test (func_cd,
func_require): Adjust paths..
2005-04-13 12:24:35 +00:00
Ralf Wildenhues
5fbecdee16 * config/general.m4sh, libtool.m4 (_LT_SETUP), tests/defs.m4sh,
tests/functests.at: Fix definition of $Xsed.
2005-04-12 17:28:48 +00:00
Ralf Wildenhues
9a38fb0d0c file link-order.test was initially added on branch branch-1-5. 2005-04-08 15:17:28 +00:00
Ralf Wildenhues
f1810a7404 file duplicate_members.test was initially added on branch branch-1-5. 2005-04-08 15:03:25 +00:00
Ralf Wildenhues
5ba71054db file linkorder.test was initially added on branch branch-1-5. 2005-04-08 13:00:50 +00:00
Ralf Wildenhues
652709d688 Improved Portland support: prelinking of C++ templates and whole_archive.
* m4/libtool.m4 (_LT_COMPILER_PIC, _LT_LINKER_SHLIBS) [ linux ]:
Reinstate formatted whole_archive_flag_spec for PGI compilers.
* config/ltmain.m4sh (func_mode_link), m4/libtool.m4 (_LT_LINKER_SHLIBS):
New tag prelink_cmds, to be executed before linking a program.
(_LT_LANG_CXX_CONFIG) [ linux ]: Use for pgCC.
(_LT_COMPILER_C_O): conftest might be nonempty, clean up more thoroughly.
2005-04-07 17:58:26 +00:00
Ralf Wildenhues
8b6f5a929f * tests/testsuite.at (LT_AT_BOOTSTRAP): Temporary fix for testing
in-tree libtoolize.
2005-04-07 06:37:23 +00:00
Ralf Wildenhues
ae669866bd * m4/libtool.m4 (_LT_CONFIG_COMMANDS): Only call sed if
necessary while quoting all libtool variables.
Reported by Robert Ögren <lists@roboros.com>.
2005-04-07 06:29:55 +00:00
Ralf Wildenhues
744d7ce726 * tests/Makefile.am: Typo. 2005-04-05 06:52:08 +00:00
Ralf Wildenhues
4d1452a659 * notes.texi: Platform-specific configuration notes.
* doc/libtool.texi: Include as section.
* bootstrap, doc/Makefile.am: build also as notes.txt and distribute.
2005-04-04 17:38:31 +00:00
Gary V. Vaughan
251628e093 Under certain circumstances, not all of the macro files were
copied into the destination directory.  This changeset fixes
that bug:

* libtoolize.m4sh (func_serial_update):  Renamed local variable
`my_update_p' to `my_serial_update_p', and initialise it correctly
even when the destination file is not yet there.
Reported by Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2005-04-04 17:30:46 +00:00
Gary V. Vaughan
88e2d82a72 * tests/libtoolize.at: New tests for basic libtoolize functionality
and reporting.
* tests/testsuite.at: Call them.
* tests/Makefile.am: Distribute them.
2005-04-04 17:24:40 +00:00
Gary V. Vaughan
f391861a20 * libtoolize.m4sh (pkgvdatadir): Renamed from this...
(_lt_pkgvdatadir): ...to this.
* tests/testsuite.at (LT_AT_LIBTOOLIZE): The `-I' option is no
longer supported by libtoolize.  Set _lt_pkgvdatadir in the
environment of the invocation instead.
2005-04-04 17:16:48 +00:00
Ralf Wildenhues
1c205030b4 * tests/template.at: New Autotest tests for C++ with templates.
First test provided by Markus Christen <markus@igc.phys.chem.ethz.ch>.
* tests/Makefile.am, tests/testsuite.at: Use and distribute.
2005-04-04 17:09:29 +00:00
Gary V. Vaughan
6cd7ea085f * libtoolize.m4sh (func_serial_update): Replace missing
destination serial calculation line, presumably lost due to a bad
merge.
2005-04-04 14:03:25 +00:00
Gary V. Vaughan
3f1d9569a7 * libltdl/loaders/Makefile.am: Removed actually. 2005-04-04 12:55:29 +00:00
Gary V. Vaughan
0aa2e304c6 Getting the value of ltdldatafiles from a submake was not
portable, and had problems with GNU make-3.80 at least.  This
changeset pulls the installation rules for libtoolize's copy of
the libltdl sources out of libltdl/Makefile.am so that
ltdldatafiles is defined in the same Makefile that uses it.  Also,
this makes a start at cleaning up libltdl/Makefile.am so that it
is useful in a package that uses `libtoolize --ltdl':

* libltdl/loaders/Makefile.am: Removed entirely.
* libltdl/Makefile.am (dlopen.la, dld_link.la, dyld.la)
(load_add_on.la, loadlibrary.la, shl_load.la): All built from here
now that the loaders submake has gone.
(show-ltdldatafiles): Removed.  No longer required.
(ltdldatadir, ltdldatafiles, install-local): Moved from here...
* Makefile.am (ltdldatadir, ltdldatafiles, install-local): ..to
here.
(libtoolize): Substitute $(ltdldatafiles) directly without calling
make to get the value from libltdl/Makefile.
2005-04-04 12:12:25 +00:00
Gary V. Vaughan
e083314267 * Makefile.am (libtoolize): Substitute $(nobase_pkgvdata_DATA).
pkgvmacro_DATA is no longer set in the makefile.
* libtoolize.m4sh (func_massage_pkgvmacro_DATA): Use it and, for
consistency, renamed from this...
(func_massage_nobase_pkgvdata_DATA): ...to this.  Adjust all
callers.
2005-04-01 15:03:23 +00:00
Gary V. Vaughan
64d4932b7d Fix problems with serial comparison sed scripts, and factor out
common code from similar serial comparison functions:

* libtoolize.m4sh (func_keyword_update): Common code factored out
of func_ltmain_update and func_config_update.
(func_ltmain_update, func_config_update): Adjust, and fix sed
expressions to not use unportable ? modifier.
(func_install_update): New serial number based file updater keyed
off 'scriptversion' variable in install-sh.  Adjust all callers.
2005-04-01 12:27:56 +00:00
Gary V. Vaughan
86a2d89ea5 Most of the hair introduced ostensibly to enable testing of
uninstalled libtoolize isn't necessary if we allow overriding of
the libtool master copy directory:

* configure.ac (pkvmacrodir): No need to substitute this.
* Makefile.am (edit): No need to substitute pkgvmacrodir.
(dist_pkgvdata_DATA): Use nobase_ prefix so that these files are
installed to $(pkgvdatadir)/config.
(pkgvmacro_DATA): Renamed to...
(nobase_pkgvdata_DATA): ...this, so that files are installed to
$(pkgvdatadir)/m4.
(install-data-hook): Adjust.
* libtoolize.m4sh: Remove -I processing.
(func_filename_path_search): No longer required without -I.
Adjust all callers.
(pkgvltdldirs, pkgvmacrodirs): Deleted.
(pkgvdatadir): Allow overriding from the environment so that we
can write tests for uninstalled libtoolize.
(func_serial_update, func_ltmain_update, func_config_update):
Rename srcdirs parameter to srcdir, and don't call the path_search
function anymore.  Adjust all callers.
(--install): Don't blindly copy all config files.
2005-04-01 12:23:55 +00:00
Mike Stump
d92270911a * m4/libtool.m4 (LT_CMD_MAX_LEN) [ netbsd, freebsd, openbsd,
darwin, dragonfly]: Use 3/4 of argmax, instead of 1/4.
2005-04-01 09:27:17 +00:00
Ralf Wildenhues
8637ab4420 * m4/libtool.m4 (_LT_LANG_GCJ_CONFIG, _LT_LANG_RC_CONFIG):
Set $cc_basename.
2005-03-28 09:32:59 +00:00
Ralf Wildenhues
9aeeec04dc * HACKING: echo vs $ECHO. 2005-03-28 09:20:53 +00:00
Ralf Wildenhues
82c1a1c274 * doc/libtool.texi: Minor formatting cleanups. 2005-03-28 09:15:09 +00:00
Gary V. Vaughan
073c1cef5a * libtoolize.m4sh: Propogate --debug flag to sub-libtoolizes. 2005-03-24 13:19:02 +00:00
Gary V. Vaughan
b8ffb80224 * libtoolize.m4sh: Fix a typo, s/pkgvltdldirs/pkgvdatadirs/.
When using -I to test an uninstalled libtoolize, we need to add
the config subdirectory to the search path so that ltmain.sh can
be found in the source tree.
2005-03-24 13:15:54 +00:00
Gary V. Vaughan
7d7dd1b66f * libtoolize.m4sh (func_copy_some_files): IFS needs to be set to
path delimiter for all inner loop iterations.
Once a matching file has been copied, no need to keep searching
the path for another -- move on to the next file!
2005-03-24 13:05:03 +00:00
Gary V. Vaughan
91768e82cc * libtoolize.m4sh: For verbose mode, explain why macro files are
not installed without an AC_CONFIG_MACRO_DIR declaration.
2005-03-24 13:02:04 +00:00
Gary V. Vaughan
53ee133dbd As a prerequisite for being able to test an uninstalled libtoolize
for copying files correctly from the source tree, we must know
exactly which files should be copied by the --ltdl option to avoid
accidentally picking up compilation objects and other noise when
$builddir == $srcdir:

* libltdl/loaders/Makefile.am (ltdldatadir, ltdldatafiles)
(install-data-local): Removed...
* libltdl/Makefile.am (ltdldatafiles): ...and consolidated here.
(show-ltdldatafiles): New rule...
* Makefile.am (ltdldatafiles, libtoolize): ...used to substitute
exactly which files are installed by libtoolize --ltdl.
(edit): Move pkgvmacro_DATA substitution expression...
(libtoolize): ...to here.
* libtoolize.m4sh: Use func_copy_some_files() instead of
func_copy_all_from_path() to copy the --ltdl option installed
files.
(pkgvltdldirs): New path variable to search for	files installed by
--ltdl option.
(func_massage_pkgvltdl_files): New function to calculate the list
of ltdl installation files.
2005-03-24 11:38:25 +00:00
Ralf Wildenhues
1652028e3b * m4/libtool.m4, m4/ltdl.m4: Indentation and quoting cleanup. 2005-03-22 16:55:14 +00:00
Ralf Wildenhues
dcfa05980f * m4/libtool.m4 (_LT_LINKER_SHLIBS) [solaris]: Use ${wlarc}
and set to empty when using $LD for linking.  Fixes regression
introduced in 2004-11-17.
Reported by Ralf Menzel <menzel@ls6.cs.uni-dortmund.de> and
Пухальский Юрий Андреевич <pooh@cryptopro.ru>.
2005-03-22 07:39:44 +00:00
Ralf Wildenhues
2803fc9eeb * m4/libtool.m4 (_LT_SETUP, _LT_LANG_CXX_CONFIG, * _LT_LANG_F77_CONFIG):
For matching compiler names: Pick only first word, allow leading white
space..
* tests/sh.test: ..and test for missing `*' at end of patterns.
2005-03-21 17:59:39 +00:00
Ralf Wildenhues
56e58cf3af * TODO: Update. 2005-03-21 08:02:55 +00:00
Peter Ekberg
7d29c2d785 * m4/libtool.m4 (_LT_LINKER_SHLIBS) [ irix5, irix6, nonstopux ]:
Test if it is possible to use the -exports_file linker option on
irix with gcc, as the gcc specs file may include a -hidden_symbol
option that is clashing with the -exports_file option.
See this gcc bugzilla entry for further details:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15288
* THANKS: Update.
2005-03-20 07:15:21 +00:00
Ralf Wildenhues
327c658555 Update .cvsignore files. 2005-03-19 20:09:36 +00:00
Ralf Wildenhues
5e8b6a4246 * tests/demo-nopic.test: Enhance status output
noted by Tom Burger <tvburger@few.vu.nl>.
2005-03-19 19:53:49 +00:00
Ralf Wildenhues
bc01d9dafa * config/ltmain.m4sh, tests/defs.m4sh: Typos. 2005-03-18 15:57:17 +00:00
Peter O'Gorman
30e36fa5a9 * m4/libtool.m4: The compiler can be a program name with args, so
always check cc_basename against compiler name and a wildcard.
Also, drop unnecessary quotes in `case' argument.
2005-03-18 15:32:14 +00:00
Ralf Wildenhues
da1641c30a * Makefile.am: tests/defs.in depends on config/general.m4sh. 2005-03-16 17:43:51 +00:00