]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
12 years agomaint: simplify "Local variables:" footer with time-stamp-pattern.
Gary V. Vaughan [Sun, 7 Oct 2012 10:51:17 +0000 (17:51 +0700)] 
maint: simplify "Local variables:" footer with time-stamp-pattern.

* bootstrap, build-aux/extract-trace, build-aux/options-parser
(Local variables): Use time-stamp-pattern to set number of
searched lines to 10, and to replace time-stamp-start,
time-stamp-end and time-stamp-format.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: skip the with-pic test only if DLL_EXPORT is defined
Peter Rosin [Mon, 8 Oct 2012 15:59:51 +0000 (17:59 +0200)] 
tests: skip the with-pic test only if DLL_EXPORT is defined

For some systems with PIC as default, the test was inadvertently
skipped. Issue introduced in commit 4440d65.
Report by Roumen Petrov.

* tests/with-pic.at: Skip the test for systems that define
DLL_EXPORT.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: rerefix line ending problems on MinGW.
Peter Rosin [Mon, 8 Oct 2012 11:10:02 +0000 (13:10 +0200)] 
tests: rerefix line ending problems on MinGW.

The previous commit broke Linux->MinGW cross-compiling.
Report by Roumen Petrov.

* tests/mdemo.at: Normalize line endings after $EGREP.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: refix line ending problems on MinGW.
Peter Rosin [Sat, 6 Oct 2012 22:57:26 +0000 (00:57 +0200)] 
tests: refix line ending problems on MinGW.

In commit 22f5750, one of the hunks actually introduced
line ending problems. Revert that hunk.

* tests/mdemo.at: Use AT_DATA for expected output when the
output from compiled programs is fed through $EGREP.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: use dry runs in both parts of 'check link mode operation'
Peter Rosin [Sat, 6 Oct 2012 22:57:10 +0000 (00:57 +0200)] 
tests: use dry runs in both parts of 'check link mode operation'

MSVC exits with status 2 instead of the expected 1 when a
real link is attempted.

* tests/libtool.at (check link mode operation): Use a dry run and
expect a clean exit status instead of expecting a fail.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: sanitise the libtool quote checking Autotests.
Gary V. Vaughan [Sat, 6 Oct 2012 08:01:52 +0000 (15:01 +0700)] 
tests: sanitise the libtool quote checking Autotests.

Carefully comment the maze of quoting and escaping needed to
pass through M4, $SHELL, and grep before regexp matching.
* tests/libtool.at (quote shell meta-characters in filenames):
Split backslash into a separate test group, because it needs
additional escaping.
Use grep consistently for the entire test group.
Use AT_CHECK rather than LT_AT_CHECK to avoid problems with
escaping literal $ correctly with LT_ESCAPE.
Use the correct number of backslashes for each sub-group.
Escape double-quote literals portably.
Reported by Peter Rosin.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: ensure mdemo.at doesn't rely on installed libltdl.
Gary V. Vaughan [Sat, 6 Oct 2012 05:53:33 +0000 (12:53 +0700)] 
tests: ensure mdemo.at doesn't rely on installed libltdl.

* tests/mdemo.at (configuer.ac): Build an included convenience
libltdl.
(Makefile.am): Add subdir-objects.
Remove override rules from legacy mdemo tests to reuse parent
libltdlc.la.
(LT_AT_CHECK_CONFIG): Add --with-included-ltdl to configure
arguments so that test cases always use the subproject libltdl
in preference to any installed libltdl.
Reported by Peter Rosin.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: allow for unstable fortran output ordering.
Gary V. Vaughan [Sat, 6 Oct 2012 04:47:56 +0000 (11:47 +0700)] 
tests: allow for unstable fortran output ordering.

Due to differences in line-endings between C stdout and Fortran
stdout, as well as unpredictable output ordering between
platforms and runtimes, weaken success criteria to not require
the entire output of fortran programs to match a test case.
* itests/fcdemo.at, tests/f77demo.at (_LT_CHECK_EXECUTE):
Improve comments, and weaken test case to grep for a known line
in the f77 runtime output.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: make LT_AT_HOST_DATA retain whitespace on MinGW
Peter Rosin [Fri, 5 Oct 2012 19:43:45 +0000 (21:43 +0200)] 
tests: make LT_AT_HOST_DATA retain whitespace on MinGW

Fixes issues with depdemo.at, f77demo.at and fcdemo.at.

* tests/testsuite.at (LT_AT_HOST_DATA) [MinGW]: Keep leading
and trailing spaces and tabs when converting line endings.

12 years agotests: fix line ending problems on MinGW
Peter Rosin [Fri, 5 Oct 2012 19:31:33 +0000 (21:31 +0200)] 
tests: fix line ending problems on MinGW

* tests/cdemo.at: Use LT_AT_HOST_DATA for expected output from
compiled programs.
* tests/demo.at: Likewise.
* tests/depdemo.at: Likewise.
* tests/f77demo.at: Likewise.
* tests/fcdemo.at: Likewise.
* tests/mdemo.at: Likewise.
* tests/tagdemo.at: Likewise.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: remove last vestiges of the legacy test harness.
Gary V. Vaughan [Thu, 4 Oct 2012 15:54:55 +0000 (22:54 +0700)] 
tests: remove last vestiges of the legacy test harness.

All legacy tests have been fully migrated to Autotest, so
no need to cling to the legacy scaffolding any more.
* tests/defs.m4sh: Delete file.
* configure.ac (AM_INIT_AUTOMAKE): Remove unused color-tests and
parallel-tests options.
* Makefile.am (defs_m4sh, defs_in, defs, TESTS): Remove.
Adjust all dependencies.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tagtrace.test to Autotest.
Gary V. Vaughan [Thu, 4 Oct 2012 15:38:01 +0000 (22:38 +0700)] 
tests: migrate legacy tagtrace.test to Autotest.

* tests/tagtrace.test: Delete file.
* tests/libtool.at (test LT_SUPPORTED_TAG interface): Add
Autotest equivalent.
* Makefile.am (TESTS): Remove tests/tagtrace.test.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy objectlist.test to Autotest.
Gary V. Vaughan [Thu, 4 Oct 2012 15:04:11 +0000 (22:04 +0700)] 
tests: migrate legacy objectlist.test to Autotest.

* tests/objectlist.test: Delete file.
* tests/libtool.at (check objectlist file operation): Add
Autotest equivalent.
* Makefile.am (TESTS): Remove tests/objectlist.test.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy link.test and link-2.test to Autotest.
Gary V. Vaughan [Thu, 4 Oct 2012 14:55:17 +0000 (21:55 +0700)] 
tests: migrate legacy link.test and link-2.test to Autotest.

* tests/link.test, tests/link-2.test: Delete files.
* tests/libtool.at (Check link operation): Add Autotest
equivalent.
* Makefile.am (TESTS): Remove tests/link.test and
tests/link-2.test.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy nomode.test to Autotest.
Gary V. Vaughan [Thu, 4 Oct 2012 14:38:39 +0000 (21:38 +0700)] 
tests: migrate legacy nomode.test to Autotest.

* tests/nomode.test: Delete file.
* test/libtool.at (Check help output, No mode diagnostic): Add
equivalent tests in Autotest.
* Makefile.am (TESTS): Remove tests/nomode.test.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy suffix.test to Autotest.
Gary V. Vaughan [Thu, 4 Oct 2012 14:22:06 +0000 (21:22 +0700)] 
tests: migrate legacy suffix.test to Autotest.

* tests/suffix.test: Delete file.
* tests/libtool.at (Transform source suffices): Add Autotest
equivalent.
* Makefile.am (TESTS): Remove tests/suffix.test.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy quote.test to Autotest.
Gary V. Vaughan [Thu, 4 Oct 2012 14:00:30 +0000 (21:00 +0700)] 
tests: migrate legacy quote.test to Autotest.

* tests/quote.test: Moved from here...
* tests/libtool.at: ...to here, and updated to Autotest.
* Makefile.am (TESTS): Remove tests/quote.test.
(TESTSUITE_AT): Add tests/libtool.at.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: add missing 2012 copyright to newly pushed old files.
Gary V. Vaughan [Thu, 4 Oct 2012 13:19:33 +0000 (20:19 +0700)] 
maint: add missing 2012 copyright to newly pushed old files.

* tests/cdemo.at, tests/demo.at, tests/depdemo.at,
tests/f77demo.at, tests/fcdemo.at, tests/mdemo.at,
tests/tagdemo.at (Copyright): Update with missing 2012.

12 years agosyntax-check: remove test/demo directories from exemption regexps.
Gary V. Vaughan [Thu, 4 Oct 2012 13:13:29 +0000 (20:13 +0700)] 
syntax-check: remove test/demo directories from exemption regexps.

* cfg.mk (exclude_file_name_regex--sc_bindtextdomain)
(exclude_file_name_regexp--sc_program_name): Remove. The excluded
directories no longer exist.
(exclude_file_name_regexp--sc_prohibit_strcmp): Remove subexpression
for matching removed demo directories.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agoconfigure: remove unused conditionals and support for order only rules.
Gary V. Vaughan [Sun, 27 Nov 2011 16:50:15 +0000 (23:50 +0700)] 
configure: remove unused conditionals and support for order only rules.

Clean up some more unused cruft.
* configure.ac (HAVE_CXX, HAVE_F77, HAVE_FC, HAVE_GCJ, HAVE_RC):
Remove.  These were only used by the recently removed legacy
tests.
[order-only prerequisites]: Ditto.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: remove support for `-r' and `reconf_dirs'.
Gary V. Vaughan [Thu, 24 Nov 2011 11:36:04 +0000 (18:36 +0700)] 
bootstrap: remove support for `-r' and `reconf_dirs'.

With all those extra demo directories out of the way, we can
revert to a more canonical bootstrap process, and jettison the
cruft that was only there to work around the pain of
needing to autoreconf 11 directories.  Bootstrap is now an order
of magnitude faster.
* bootstrap.conf (require_ltdl_dir): New function. Factored out
of `libtool_build_prerequisites'.
(libtool_build_prerequisites): Adjust.
(func_reconfigure): Use `require_ltdl_dir' to determine the name
of the other directory we need to autoreconf during bootstrap.
(libtool_options_prep, libtool_parse_options)
(libtool_validate_options): Remove.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: let pic_flag and with-pic Autotests work on non-VPATH builds.
Gary V. Vaughan [Sun, 27 Nov 2011 12:18:23 +0000 (19:18 +0700)] 
tests: let pic_flag and with-pic Autotests work on non-VPATH builds.

* tests/pic_flag.at: Use _LT_DEMO_SETUP to generate a demo style
project, rather than relying on $abs_top_srcdir/configure.
* tests/with-pic.at: Likewise.
* Makefile.am (TESTSUITE_AT): Move tests/pic_flag.at and
tests/with-pic.at so that they run immediately following
tests/demo.at.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/fcdemo tests to Autotest.
Gary V. Vaughan [Thu, 24 Nov 2011 11:26:17 +0000 (18:26 +0700)] 
tests: migrate legacy tests/fcdemo tests to Autotest.

Along with the demise of the last demo directory, so all the
cruft for re-autotooling and distributing the additional
directories is no longer necessary.
* tests/fcdemo.at: New autotest groups, based on...
* tests/fcdemo-conf.test, tests/fcdemo-exec.test,
tests/fcdemo-make.test, tests/fcdemo-shared-exec.test,
tests/fcdemo-shared-make.test, tests/fcdemo-shared.test,
tests/fcdemo-static-exec.test, tests/fcdemo-static-make.test,
tests/fcdemo-static.test: ...these legacy tests, now removed.
* tests/fcdemo/Makefile.am, tests/fcdemo/README,
tests/fcdemo/configure.ac, tests/fcdemo/cprogram.c,
tests/fcdemo/foo.h, tests/fcdemo/fooc.c, tests/fcdemo/foof.f90,
tests/fcdemo/foof2.f90, tests/fcdemo/foof3.f90,
tests/fcdemo/fprogram.f90: Remove.
* configure.ac (CONF_SUBDIRS, DIST_MAKEFILE_LIST): Remove.
* Makefile.am (DIST_SUBDIRS, FC_TESTS, clean-local-legacy)
(configure-subdirs, distclean-recursive, distdir)
(fake-distclean-legacy, $(DIST_MAKEFILE_LIST)): Remove.
(COMMON_TESTS): Rename from this...
(TESTS): ...to this.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/f77demo tests to Autotest.
Gary V. Vaughan [Thu, 24 Nov 2011 10:51:08 +0000 (17:51 +0700)] 
tests: migrate legacy tests/f77demo tests to Autotest.

* tests/f77demo.at: New autotest groups, based on...
* tests/f77demo-conf.test, tests/f77demo-exec.test,
tests/f77demo-make.test, tests/f77demo-shared-exec.test,
tests/f77demo-shared-make.test, tests/f77demo-shared.test,
tests/f77demo-static-exec.test, tests/f77demo-static-make.test,
tests/f77demo-static.test: ...these legacy tests, now removed.
* tests/f77demo/Makefile.am, tests/f77demo/README,
tests/f77demo/configure.ac, tests/f77demo/cprogram.c,
tests/f77demo/foo.h, tests/f77demo/fooc.c, tests/f77demo/foof.f,
tests/f77demo/foof2.f, tests/f77demo/foof3.f,
tests/f77demo/fprogram.f: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/f77demo.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/mdemo2 tests to Autotest.
Gary V. Vaughan [Thu, 24 Nov 2011 08:49:07 +0000 (15:49 +0700)] 
tests: migrate legacy tests/mdemo2 tests to Autotest.

This test was just a small non-ltdl aware library to load a
library from the legacy mdemo test, which in turn used ltdl to
call functions from modules. No need to create a whole other
test group with copies of everything from mdemo setup - just
tack the additional test on the end of the mdemo group.
* tests/mdemo.at (link with library that loads ltdl modules):
New test, based on...
* tests/mdemo2-conf.test, tests/mdemo-exec.test,
tests/mdemo-make.test: ...these legacy tests, now removed.
* tests/mdemo2/Makefile.am, tests/mdemo2/README,
tests/mdemo2/configure.ac, tests/mdemo2/main.c: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/mdemo2.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/mdemo tests to Autotest.
Gary V. Vaughan [Thu, 24 Nov 2011 08:10:11 +0000 (15:10 +0700)] 
tests: migrate legacy tests/mdemo tests to Autotest.

* tests/mdemo.at: New autotest groups, based on...
* tests/mdemo-conf.test, tests/mdemo-dryrun.test,
tests/mdemo-exec.test, tests/mdemo-inst.test,
tests/mdemo-make.test, tests/mdemo-shared-exec.test,
tests/mdemo-shared-inst.test, tests/mdemo-shared-make.test,
tests/mdemo-shared-unst.test, tests/mdemo-shared.test,
tests/mdemo-static-exec.test, tests/mdemo-static-inst.test,
tests/mdemo-static-make.test, tests/mdemo-static-unst.test,
tests/mdemo-static.test, tests/mdemo-unst.test: ...these legacy
tests, now removed.
* tests/mdemo/Makefile.am, tests/mdemo/README,
tests/mdemo/configure.ac, tests/mdemo/foo.h, tests/mdemo/foo1.c,
tests/mdemo/foo2.c, tests/mdemo/main.c, tests/mdemo/mlib.c,
tests/mdemo/sub.c: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/mdemo.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/pdemo tests to Autotest.
Gary V. Vaughan [Thu, 24 Nov 2011 04:29:10 +0000 (11:29 +0700)] 
tests: migrate legacy tests/pdemo tests to Autotest.

This test was a thinly veiled copy of the basic legacy
demo-conf.test series, with the addition of long file names that
are not unique in the first 17 characters of their name, mashed
up with the cmdline_wrap.at max_cmd_len limits.  Migrating to
Autotest means that this test will be automatically rerun with
max_cmd_len=24 as cmdline_wrap.at recurses through the whole
testsuite, so the migrated pdemo test is now simply another test
case in demo.at with longer file names.
* test/demo.at (linking with long file names): New test, based
on...
* tests/pdemo-conf.test, tests/pdemo-exec.test,
tests/pdemo-inst.test, tests/pdemo-make.test: ...these legacy
tests, now removed.
* tests/pdemo/Makefile.am, tests/pdemo/configure.ac,
tests/pdemo/foo.h, tests/pdemo/longer_file_name_dlmain.c,
tests/pdemo/longer_file_name_foo.c,
tests/pdemo/longer_file_name_foo2.c,
tests/pdemo/longer_file_name_hell1.c,
tests/pdemo/longer_file_name_hell2.c,
tests/pdemo/longer_file_name_hello.c,
tests/pdemo/longer_file_name_main.c: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/pdemo.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/tagdemo tests to Autotest.
Gary V. Vaughan [Wed, 23 Nov 2011 15:23:16 +0000 (22:23 +0700)] 
tests: migrate legacy tests/tagdemo tests to Autotest.

* tests/tagdemo.at: New autotest groups, based on...
tests/tagdemo-conf.test, tests/tagdemo-exec.test,
tests/tagdemo-make.test, tests/tagdemo-shared-exec.test,
tests/tagdemo-shared-make.test, tests/tagdemo-shared.test,
tests/tagdemo-static-exec.test, tests/tagdemo-static-make.test,
tests/tagdemo-static.test, tests/tagdemo-undef-exec.test,
tests/tagdemo-undef-make.test, tests/tagdemo-undef.test:
...these legacy tests, now removed.
* tests/tagdemo/.gitignore, tests/tagdemo/Makefile.am,
tests/tagdemo/README, tests/tagdemo/baz.cpp,
tests/tagdemo/baz.h, tests/tagdemo/configure.ac,
tests/tagdemo/conv.cpp, tests/tagdemo/conv.h,
tests/tagdemo/foo.cpp, tests/tagdemo/foo.h,
tests/tagdemo/main.cpp: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/tagdemo.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/depdemo tests to Autotest.
Gary V. Vaughan [Wed, 23 Nov 2011 13:03:59 +0000 (20:03 +0700)] 
tests: migrate legacy tests/depdemo tests to Autotest.

* tests/depdemo.at: New autotest groups, based on...
* tests/depdemo-conf.test, tests/depdemo-exec.test,
tests/depdemo-inst.test, tests/depdemo-make.test,
tests/depdemo-nofast-exec.test, tests/depdemo-nofast-inst.test,
tests/depdemo-nofast-make.test, tests/depdemo-nofast-unst.test,
tests/depdemo-nofast.test, tests/depdemo-relink.test,
tests/depdemo-shared-exec.test, tests/depdemo-shared-inst.test,
tests/depdemo-shared-make.test, tests/depdemo-shared-unst.test,
tests/depdemo-shared.test, tests/depdemo-static-exec.test,
tests/depdemo-static-inst.test, tests/depdemo-static-make.test,
tests/depdemo-static-unst.test, tests/depdemo-static.test,
tests/depdemo-unst.test: ...these legacy test cases, now
removed.
* tests/depdemo/Makefile.am, tests/depdemo/README,
tests/depdemo/configure.ac, tests/depdemo/l1/Makefile.am,
tests/depdemo/l1/l1.c, tests/depdemo/l1/l1.h,
tests/depdemo/l2/Makefile.am, tests/depdemo/l2/l2.c,
tests/depdemo/l2/l2.h, tests/depdemo/l3/Makefile.am,
tests/depdemo/l3/l3.c, tests/depdemo/l3/l3.h,
tests/depdemo/l4/Makefile.am, tests/depdemo/l4/l4.c,
tests/depdemo/l4/l4.h, tests/depdemo/main.c,
tests/depdemo/sysdep.h: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/depdemo.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/demo tests to Autotest.
Gary V. Vaughan [Wed, 23 Nov 2011 08:17:49 +0000 (15:17 +0700)] 
tests: migrate legacy tests/demo tests to Autotest.

* tests/demo.at: New autotest groups, based on...
* 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-exec.test, tests/demo-nofast-inst.test,
tests/demo-nofast-make.test, tests/demo-nofast-unst.test,
tests/demo-nofast.test, tests/demo-noinst-link.test,
tests/demo-nopic-exec.test, tests/demo-nopic-make.test,
tests/demo-nopic.test, tests/demo-pic-exec.test,
tests/demo-pic-make.test, tests/demo-pic.test,
tests/demo-relink.test, tests/demo-shared-exec.test,
tests/demo-shared-inst.test, tests/demo-shared-make.test,
tests/demo-shared-unst.test, tests/demo-shared.test,
tests/demo-static-exec.test, tests/demo-static-inst.test,
tests/demo-static-make.test, tests/demo-static-unst.test,
tests/demo-static.test, tests/demo-unst.test: ...these legacy
test cases, now removed.
* tests/demo/Makefile.am, tests/demo/README,
tests/demo/configure.ac, tests/demo/dlmain.c, tests/demo/foo.c,
tests/demo/foo.h, tests/demo/hell1.c, tests/demo/hell2.c,
tests/demo/hello.c, tests/demo/main.c: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/demo.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: migrate legacy tests/cdemo tests to Autotest.
Gary V. Vaughan [Mon, 21 Nov 2011 16:15:54 +0000 (23:15 +0700)] 
tests: migrate legacy tests/cdemo tests to Autotest.

* tests/cdemo.at: New Autotest groups, based on...
* tests/cdemo-conf.test, tests/cdemo-exec.test,
tests/cdemo-make.test, tests/cdemo-shared-exec.test,
tests/cdemo-shared-make.test, tests/cdemo-shared.test,
tests/cdemo-static-exec.test, tests/cdemo-static-make.test,
tests/cdemo-static.test, tests/cdemo-undef-exec.test,
tests/cdemo-undef-make.test, tests/cdemo-undef.test: ...these
legacy test cases, now removed.
tests/cdemo/Makefile.am, tests/cdemo/README,
tests/cdemo/configure.ac, tests/cdemo/foo.c, tests/cdemo/foo.h,
tests/cdemo/main.c: Remove.
* configure.ac (CONF_SUBDIRS): Remove tests/cdemo.
* Makefile.am: Adjust.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: distribute a single ChangeLog file.
Gary V. Vaughan [Thu, 4 Oct 2012 12:28:50 +0000 (19:28 +0700)] 
maint: distribute a single ChangeLog file.

* ChangeLog.1996, ChangeLog.1997, ChangeLog.1998, ChangeLog.1999,
ChangeLog.2000, ChangeLog.2001, ChangeLog.2002, ChangeLog.2003,
ChangeLog.2004, ChangeLog.2005, ChangeLog.2006, ChangeLog.2007,
ChangeLog.2008, ChangeLog.2009, ChangeLog.2010: Remove.  Content
moved from here...
* ChangeLog.old: ...to here.
* Makefile.am (EXTRA_DIST): Update list of ChangeLog files.
(changelog_old): New variable to hold path to ChangeLog.old file.
($(changelog)): Update to concatenate non-distributed
ChangeLog.old file to distributed ChangeLog after git log entries.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: fix violations and implement sc_prohibit_space_semicolon.
Gary V. Vaughan [Thu, 4 Oct 2012 13:04:32 +0000 (20:04 +0700)] 
syntax-check: fix violations and implement sc_prohibit_space_semicolon.

No need for a spurious space before a command ending semi-colon.
* cfg.mk (sc_prohibit_space_semicolon): New test to catch
accidental reintroduction of spurious spaces removed by this
changeset.
* bootstrap, build-aux/general.m4sh, build-aux/ltmain.m4sh,
libltdl/lt__strl.c, m4/libtool.m4, m4/ltdl.m4, tests/bindir.at:
Remove spurious spaces.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agoMerge branch 'gary/reredo-test-operand-order'
Gary V. Vaughan [Wed, 3 Oct 2012 04:49:27 +0000 (11:49 +0700)] 
Merge branch 'gary/reredo-test-operand-order'

The original manually applied changeset 962aa91 contained several
errors (some corrected by subsequent patches on master, others not)
and many unrelated (although in this case, correct) changes were also
committed in the same changeset.

The merged branch gary/reredo-test-operand-order factors the
unrelated changes out into separate commits, and performs the work
that should have been in 962aa91 with a script, the results of which
were then painstakingly inspected for errors.

This merge moves the corrections for errors made in the original
manual patch from the branch onto master.  Please inspect the many
separate changesets on the branch rather than the original patch
when you bisect or otherwise find your way to an error caused by
962aa91.

12 years agotests: simplify some shell code. gary/reredo-test-operand-order
Gary V. Vaughan [Tue, 2 Oct 2012 13:51:13 +0000 (20:51 +0700)] 
tests: simplify some shell code.

* tests/fail.at: Simplify.
* tests/static.at: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: unroll complex nested compound statements
Gary V. Vaughan [Tue, 2 Oct 2012 13:44:54 +0000 (20:44 +0700)] 
libtool: unroll complex nested compound statements

* build-aux/ltmain.m4sh: Use an if statement instead of ugified
compound statements.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: unroll nested if into a single case statement.
Gary V. Vaughan [Tue, 2 Oct 2012 12:39:35 +0000 (19:39 +0700)] 
libtool: unroll nested if into a single case statement.

* build-aux/ltmain.m4sh (func_mode_link): Unroll a hard to
understad nested if statement into a more readable single case
statement.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: simplify $skipped_export blocks
Gary V. Vaughan [Tue, 2 Oct 2012 12:31:49 +0000 (19:31 +0700)] 
libtool: simplify $skipped_export blocks

* build-aux/ltmain.m4sh (func_mode_link): Save an if statement
with '$skipped_export && { block; }' instead of 'if $skipped_export;
then block; fi'.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: simplify an if statement
Gary V. Vaughan [Tue, 2 Oct 2012 12:28:54 +0000 (19:28 +0700)] 
libtool: simplify an if statement

* build-aux/ltmain.m4sh (func_mode_link): Reverse the branch
order for an if statement for readability.
* m4/libtool.m4: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: save an if statement, with a compound statement.
Gary V. Vaughan [Tue, 2 Oct 2012 12:25:17 +0000 (19:25 +0700)] 
libtool: save an if statement, with a compound statement.

* build-aux/ltmain.m4sh (func_mode_link): Simplify.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: simplify multiple string tests
Gary V. Vaughan [Tue, 2 Oct 2012 12:09:51 +0000 (19:09 +0700)] 
libtool: simplify multiple string tests

* build-aux/ltmain.m4sh (func_mode_link): Save test invocations
by using 'test x,y = "$a,$b"' instead of 'test x = "$a" && test y
= "$b"'.
* m4/libtool.m4: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: fold if into a compound OR statement when more readable
Gary V. Vaughan [Tue, 2 Oct 2012 11:52:40 +0000 (18:52 +0700)] 
libtool: fold if into a compound OR statement when more readable

* build-aux/ltmain.m4sh (func_mode_link): For readability, use
'test string = "$var" || { stuff; }' in preference to
'if test string != "$var"; then stuff; fi'.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $rmforce, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $rmforce, and simplify

* build-aux/ltmain.m4sh (func_mode_uninstall): Save a string
comparison by setting $rmforce to false or : and using it
directly as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $wrappers_required, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $wrappers_required, and simplify

* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $wrappers_required to false or : and using
it directly with a ored block rather than an if statement.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $linkalldeplibs, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $linkalldeplibs, and simplify

* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $linkalldeplibs to false or : and using it
directly as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $valid_a_lib, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $valid_a_lib, and simplify

* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $valid_a_lib to false or : and using it
directly as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $found, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $found, and simplify

* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $found to false or : and using it directly
as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $alldeplibs, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $alldeplibs, and simplify

* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $alldeplibs to false or : and using it
directly as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $preload, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $preload, and simplify

* build-aux/ltmain.m4sh (func_mode_link): Save a string
comparison by setting $preload to false or : and using it directly
instead of if statements.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $my_pic_p, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $my_pic_p, and simplify

* build-aux/ltmain.m4sh (func_generate_dlsyms): Save a string
comparison by setting $my_pic_p to false or : and using it directly
instead of calling if.
Adjust all callers.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $finalize, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $finalize, and simplify

* build-aux/ltmain.m4sh (func_mode_install): Save a string
comparison by setting $finalize to false or : and using it
directly as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: use false or : for $isdir, and simplify
Gary V. Vaughan [Tue, 2 Oct 2012 11:08:29 +0000 (18:08 +0700)] 
libtool: use false or : for $isdir, and simplify

* build-aux/ltmain.m4sh (func_mode_install): Save a string
comparison by setting $isdir to false or : and using it directly
as the first argument to if.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: skip with-pic test when no "real" pic flag is used.
Peter Rosin [Wed, 19 Sep 2012 09:53:02 +0000 (11:53 +0200)] 
tests: skip with-pic test when no "real" pic flag is used.

* tests/with-pic.at: Windows uses "-DDLL_EXPORT -DPIC" as the pic
"flag", but never applies it to static libraries. Cater for this
and skip if no "real" pic flag is in use.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agosyntax-check: fix texinfo formatting flagged by prohibit_undesirable_word_seq.
Gary V. Vaughan [Sun, 16 Sep 2012 10:43:05 +0000 (17:43 +0700)] 
syntax-check: fix texinfo formatting flagged by prohibit_undesirable_word_seq.

* doc/libtool.text: Fix several misuses of @xref and @pxref so that
the prohibit_undesirable_word_seq syntax check passes again.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: remove useless_braces_in_variable_derefs.
Gary V. Vaughan [Sun, 16 Sep 2012 10:47:04 +0000 (17:47 +0700)] 
syntax-check: remove useless_braces_in_variable_derefs.

* build-aux/general.m4sh: Remove spurious braces around
${ZSH_VERSION} dereference.
* build-aux/ltmain.m4sh (func_mode_link): Likewise for ${wl}.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: skip prohibit_strncpy.
Gary V. Vaughan [Sun, 16 Sep 2012 10:23:49 +0000 (17:23 +0700)] 
syntax-check: skip prohibit_strncpy.

* cfg.mk (local-checks-to-skip): sc_prohibit_strncpy.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: skip prohibit_always_true_header_tests rule.
Gary V. Vaughan [Sun, 16 Sep 2012 10:02:22 +0000 (17:02 +0700)] 
syntax-check: skip prohibit_always_true_header_tests rule.

* cfg.mk (local-checks-to-skip): Add
sc_prohibit_always_true_header_tests.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agoRevert "bootstrap: delete unneeded README-release patch"
Gary V. Vaughan [Sun, 16 Sep 2012 07:35:55 +0000 (14:35 +0700)] 
Revert "bootstrap: delete unneeded README-release patch"

This reverts commit 11cd425e7d47111956381dba28f8c1b34e14653f.

These instructions are hard to find for new maintainers, so it's
good to keep them to hand with the release notes.

And the additional distchecks are important prior to a release.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: remove unused cvsu script.
Gary V. Vaughan [Sun, 16 Sep 2012 06:17:46 +0000 (13:17 +0700)] 
maint: remove unused cvsu script.

* build-aux/cvsu: Remove. This script is not useful now that
Libtool's repository is hosted in git.
* Makefile.am (build_scripts): Remove cvsu reference.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: run update-copyright for missing 2011 and 2012 years.
Gary V. Vaughan [Sun, 16 Sep 2012 06:10:09 +0000 (13:10 +0700)] 
maint: run update-copyright for missing 2011 and 2012 years.

See maintain.texi (Copyright Notices) for rules for maintaining
the years in copyright notices.
* All Files (Copyright): Updated with missing 2011 and 2012.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: use gnulib update-copyright script.
Gary V. Vaughan [Sun, 16 Sep 2012 06:04:23 +0000 (13:04 +0700)] 
bootstrap: use gnulib update-copyright script.

See maintain.texi (Copyright Notices) for rules for maintaining
the years in copyright notices.
* bootstrap.conf (gnulib_modules): Add update-copyright.
* cfg.mk (update-copyright-env): Set environment variables for
update-copyright script.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: update bootstrap script to latest upstream.
Gary V. Vaughan [Sun, 16 Sep 2012 04:47:22 +0000 (11:47 +0700)] 
bootstrap: update bootstrap script to latest upstream.

* bootstrap, build-aux/options-parser: apply upstream fixes and
enhancements.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agogit: don't complain about new parallel tests driver and file droppings.
Gary V. Vaughan [Sun, 16 Sep 2012 04:45:04 +0000 (11:45 +0700)] 
git: don't complain about new parallel tests driver and file droppings.

* build-aux/.gitignore: Ignore parallel `test-driver' script.
* tests/.gitignore: Ignore `test-driver' .trs file droppings.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agognulib: update local gnulib patches.
Gary V. Vaughan [Sun, 16 Sep 2012 04:40:16 +0000 (11:40 +0700)] 
gnulib: update local gnulib patches.

* gl/build-aux/announce-gen.diff: Remove hunks adopted upstream.
* gl/build-aux/do-release-commit-and-tag.diff: Refresh this patch
to match current gnulib.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agognulib: update gnulib submodule.
Gary V. Vaughan [Sun, 16 Sep 2012 04:38:50 +0000 (11:38 +0700)] 
gnulib: update gnulib submodule.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: ensure there is a ChangeLog before running automake.
Gary V. Vaughan [Sun, 16 Sep 2012 04:34:19 +0000 (11:34 +0700)] 
bootstrap: ensure there is a ChangeLog before running automake.

Automake refuses to run in GNU-mode unless there is a ChangeLog file
in the top-level directory.
* bootstrap.conf (libtool_force_changelog): Create a dummy ChangeLog.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtoolize: improve verbose mode output.
Gary V. Vaughan [Sun, 11 Dec 2011 11:31:56 +0000 (18:31 +0700)] 
libtoolize: improve verbose mode output.

* libtoolize (func_require_seen_ltdl)
(func_require_seen_libtool): Output success message in verbose
mode.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agoAdd the 'n' to then.
Peter O'Gorman [Wed, 22 Aug 2012 02:06:45 +0000 (21:06 -0500)] 
Add the 'n' to then.

* m4/libtool.m4: fix typo.
Thanks to Brad Smith for pointing it out.

12 years agoPass through -g* so that debugging information is not dropped
Andreas Schwab [Wed, 22 Aug 2012 01:17:04 +0000 (20:17 -0500)] 
Pass through -g* so that debugging information is not dropped

* ltmain.m4sh (func_mode_link): Pass through -g*.

12 years agoAIX PIC shared library support
David Edelsohn [Wed, 22 Aug 2012 01:14:55 +0000 (20:14 -0500)] 
AIX PIC shared library support

* m4/libtool.m4 (_LT_COMPILER_PIC): Add -fPIC to GCC and GXX for AIX.

12 years agoUpdate/simplify OpenBSD support
Brad Smith [Wed, 22 Aug 2012 01:12:01 +0000 (20:12 -0500)] 
Update/simplify OpenBSD support

* m4/libtool.m4: Forget about 11 year old releases.

12 years agolibtool: quote progpath properly
Peter Rosin [Sun, 19 Aug 2012 20:14:13 +0000 (22:14 +0200)] 
libtool: quote progpath properly

Attempt to handle spaces in paths better.

* build-aux/ltmain.m4sh (func_mode_install, func_mode_link): Quote
$progpath.
* THANKS: Update.

12 years agoHandle getconf returning "undefined".
Mike Frysinger [Thu, 19 Apr 2012 04:14:50 +0000 (23:14 -0500)] 
Handle getconf returning "undefined".

* m4/libtool.m4: Check for "undefined" from `getconf`.

12 years agobootstrap: delete unneeded README-release patch
Peter Rosin [Sat, 17 Mar 2012 19:13:53 +0000 (20:13 +0100)] 
bootstrap: delete unneeded README-release patch

* gl/top/README-release.diff: Delete.

12 years agoFix typo that caused sys_lib_search_path_spec to be wrong.
Peter O'Gorman [Fri, 16 Mar 2012 18:23:13 +0000 (13:23 -0500)] 
Fix typo that caused sys_lib_search_path_spec to be wrong.

* m4/libtool.m4: s/lt_fooi/lt_foo/.
Reported by Paul Seidler <sepek@lavabit.com>

12 years agoImprove GNU/Hurd support.
Samuel Thibault [Tue, 21 Feb 2012 14:51:40 +0000 (08:51 -0600)] 
Improve GNU/Hurd support.

* m4/libtool.m4: Add gnu* match where it was missing.

12 years agoAccept clang's -stdlib linker flag.
Titus von Boxberg [Sun, 19 Feb 2012 21:33:48 +0000 (15:33 -0600)] 
Accept clang's -stdlib linker flag.

build-aux/ltmain.m4sh: Don't drop the -stdlib= flag.

12 years agoEnable nagfor fortran compiler support
Juergen Reuter [Tue, 13 Dec 2011 18:18:08 +0000 (19:18 +0100)] 
Enable nagfor fortran compiler support

* build-aux/ltmain.m4sh: nagfor compatible version string.
* m4/libtool.m4: nagfor support.

12 years agoFixing -shared error message for nagfor compiler.
Juergen Reuter [Wed, 1 Feb 2012 00:31:11 +0000 (01:31 +0100)] 
Fixing -shared error message for nagfor compiler.

* m4/libtool.m4: Fix -shared.

12 years agoImprove debug error reporting in ltdl.
Pavel (Pasha) Shamis [Sun, 19 Feb 2012 20:18:19 +0000 (14:18 -0600)] 
Improve debug error reporting in ltdl.

* libltdl/ltdl.c: Print the error message if loading fails.

12 years agoDeleted unneeded gitlog-to-changelog patch
Peter O'Gorman [Sun, 19 Feb 2012 20:16:52 +0000 (14:16 -0600)] 
Deleted unneeded gitlog-to-changelog patch

* gl/build-aux/gitlog-to-changelog.diff: Delete.

12 years agocwrapper: avoid surplus strlen calculations.
Peter Rosin [Mon, 30 Jan 2012 14:49:05 +0000 (15:49 +0100)] 
cwrapper: avoid surplus strlen calculations.

* build-aux/ltmain.m4sh (func_emit_cwrapperexe_src:lt_update_exe_path):
Avoid surplus strlen calculations.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agobootstrap: fix Autoconf version typo.
Gary V. Vaughan [Sat, 24 Dec 2011 01:32:47 +0000 (08:32 +0700)] 
bootstrap: fix Autoconf version typo.

* build-aux/options-parses: s/2\.62/2.68/

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agognulib: update gnulib submodule.
Gary V. Vaughan [Sat, 24 Dec 2011 01:30:12 +0000 (08:30 +0700)] 
gnulib: update gnulib submodule.

Among others, this fixes the reference to a local commit.
* gnulib: Updated to todays master HEAD revision.
* gl/top/README-release.diff: Update to account for changes to
gnulib/top/README-release since the last gnulib update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: make fork minimisation compatible with dash and zsh.
Gary V. Vaughan [Sun, 18 Dec 2011 13:41:10 +0000 (20:41 +0700)] 
libtool: make fork minimisation compatible with dash and zsh.

* build-aub/general.m4sh (lt_HAVE_PLUSEQ_OP): Instead of using
$((..)) arithmetic, which causes an error on dash, use a case
based bash version check.
(lt_HAVE_ARITH_OP, lt_HAVE_XSI_OPS): Also short circuit the
feature probing forks and set these automatically when zsh is
detected.
Reported by Stefano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: adopt autoconf echo normalization code.
Gary V. Vaughan [Sun, 18 Dec 2011 07:32:40 +0000 (14:32 +0700)] 
bootstrap: adopt autoconf echo normalization code.

Dash shipped with Ubutu-11.10 as /bin/sh, among others, still
has a crippled echo builtin that mis-handles backslashes.
* build-aux/options-parser (bs_echo): Adopt the autoconf echo
normalization code to find a suitable replacement for buggy echo
commands.
Adjust all uses of echo to $bs_echo.
* build-aux/extract-trace (func_extract_trace, func_main):
Likewise.
* bootstrap: To retain some execution speed on platforms with
buggy builtin echo, replace most occurrences of `echo' with
`$bs_echo' - except where its arguments will obviously never
contain backslashes or be overly long.
Reported by Reuben Thomas.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: minimise forks per invocation under bash.
Gary V. Vaughan [Thu, 8 Dec 2011 10:01:56 +0000 (17:01 +0700)] 
libtool: minimise forks per invocation under bash.

* build-aux/general.m4sh (lt_HAVE_PLUSEQ_OP, lt_HAVE_ARITH_OP)
(lt_HAVE_XSI_OPS): Set these without forking a test script when
running under bash, to avoid a few unnecessary forks.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agoSupport x32.
H.J. Lu [Tue, 13 Dec 2011 03:24:14 +0000 (21:24 -0600)] 
Support x32.

* m4/libtool.m4 (_LT_ENABLE_LOCK): Support x32.

12 years agomaint: disable prohibit_always-defined_macros syntax check.
Gary V. Vaughan [Thu, 8 Dec 2011 14:48:03 +0000 (21:48 +0700)] 
maint: disable prohibit_always-defined_macros syntax check.

Aside from Apple grep silently failing to run this test and
report violations, libtool still uses non-gnulib versions of
dirent.h and argz.h which use the same macros, but are not
always-defined.
* cfg.mk (local-checks-to-fix): Move
sc_prohibit_always-defined_macros from here...
(local-checks-to-skip): ...to here.
Reported by Peter O'Gorman.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: s/snippit/snippet/.
Gary V. Vaughan [Thu, 8 Dec 2011 10:38:13 +0000 (17:38 +0700)] 
tests: s/snippit/snippet/.

* tests/demo/foo.h, tests/pdemo/foo.h: Spell `snippet' correctly.
Reported by Stefano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agotests: make sure file restore traps are called correctly on AIX.
Gary V. Vaughan [Thu, 8 Dec 2011 10:33:28 +0000 (17:33 +0700)] 
tests: make sure file restore traps are called correctly on AIX.

* tests/demo-noinst-link.test (func_save_files): set the restore
trap outside a function, otherwise AIX 5.3 /bin/sh will run the
trap at the end of the function, instead of when the script
exits.
* tests/demo-relink.test (func_save_files): Ditto.
* tests/depdemo-relink.test (func_save_files): Ditto.
Reported by Stefano Lattarini.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: put back missing spaces before parens.
Gary V. Vaughan [Thu, 8 Dec 2011 10:09:02 +0000 (17:09 +0700)] 
bootstrap: put back missing spaces before parens.

* bootstrap (func_require_buildreq_autobuild)
(func_require_buildreq_automake): Vi's delete word command is
too greedy and also eats trailing whitespace before following
non-word-chars. Put back the spaces it ate so that
syntax-checks pass once again.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtoolize: refactor copying filter creation.
Gary V. Vaughan [Sat, 19 Nov 2011 15:33:16 +0000 (22:33 +0700)] 
libtoolize: refactor copying filter creation.

Prevent the various require_filter functions from becoming too
long by factoring common code into new functions.
* libtoolize (func_make_relative_dir_filter)
(func_make_relative_ltdl_filter): New functions. Generalize and
consolidate the various similar snippets for concatenating
together the sed scripts for func_copy filtering.
(require_filter_Makefile_am, require_filter_aclocal_m4)
(require_filter_configure_ac): Simplify.
(require_ltdl_relative_aux_dir): Remove.
(require_ltdl_relative_macro_dir): Ditto.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: pick XSI funcs at runtime, not configure time.
Gary V. Vaughan [Sat, 19 Nov 2011 13:54:43 +0000 (20:54 +0700)] 
maint: pick XSI funcs at runtime, not configure time.

Determine, on a function by function basis, what XSI features
are available in the shell that is actually running the script,
rather than the one that was picked at configure time by the
re-execution engine.
* m4/libtool.m4 (_LT_PROG_FUNCTION_REPLACE)
(_LT_PROG_REPLACE_SHELLFNS): Remove.
(_LT_CHECK_SHELL_FEATURES): Remove tests for XSI and += support.
* build-aux/general.m4sh (func_append, func_append_quoted)
(func_arith, func_len, func_basename, func_dirname)
(func_dirname_and_basename, func_stripname): List both enhanced
and fallback implementations, and choose one based on whether
the enhanced features required by the fastest version are
available.
* build-aux/getopt.m4sh (func_split_short_opt)
(func_split_long_opt): Ditto.
* build-aux/ltmain.m4sh (func_lo2o, func_xform): Ditto.
* tests/getopt-m4sh.at: Add tests for enhanced and fallback
implementations of func_arith, func_len, func_stripname and
func_dirname_and_basename.
* NEWS: Updated.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: share useful functions from general.m4sh.
Gary V. Vaughan [Sat, 19 Nov 2011 11:01:28 +0000 (18:01 +0700)] 
maint: share useful functions from general.m4sh.

* build-aux/ltmain.m4sh (func_append, func_append_quoted)
(func_arith, func_len): Removed from here...
* build-aux/general.m4sh (func_append, func_append_quoted)
(func_arith, func_len): ...and added to here.
(func_dirname, func_dirname_and_basename, func_normal_abspath)
(func_relative_path): Use func_append.
* tests/getopt-m4sh.at (_LT_AT_FALLBACK_FUNC_EXTRACT): Removed.
Fallback functions are now in any m4sh generated file
automatically.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtoolize: reorder function definitions to keep func_filter_* together.
Gary V. Vaughan [Thu, 8 Dec 2011 08:34:27 +0000 (15:34 +0700)] 
libtoolize: reorder function definitions to keep func_filter_* together.

* libtoolize: Restore asciibetical order, so that all the
filter function definitions are together.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtoolize: use _filter as a prefix for better ordering.
Gary V. Vaughan [Thu, 8 Dec 2011 08:26:48 +0000 (15:26 +0700)] 
libtoolize: use _filter as a prefix for better ordering.

* libtoolize.m4sh (require_Makefile_am_filter)
(require_ltdl_mk_filter, require_aclocal_m4_filter)
(require_configure_ac_filter): Rename these functions from this...
(require_filter_Makefile_am, require_filter_ltdl_mk)
(require_filter_aclocal_m4, require_filter_configure_ac): ...to
this, respectively.  Adjust all callers.
(Makefile_am_filter, ltdl_mk_filter, aclocal_m4_filter)
(configure_ac_filter): Rename these global variables from this...
(filter_Makefile_am, filter_ltdl_mk, filter_aclocal_m4)
(filter_configure_ac): ...to this, respectively.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtoolize: rename ltdl.mk filter function.
Gary V. Vaughan [Thu, 8 Dec 2011 08:14:44 +0000 (15:14 +0700)] 
libtoolize: rename ltdl.mk filter function.

* libtoolize.m4sh (require_Makefile_inc_filter): Rename from
this...
(require_ltdl_mk_filter): ...to this. Adjust all callers.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: escape quotes properly in generated functions.
Gary V. Vaughan [Thu, 8 Dec 2011 05:24:00 +0000 (12:24 +0700)] 
bootstrap: escape quotes properly in generated functions.

* bootstrap: Although not a real bug, for consistency, be sure
to correctly escape single quotes inside a single quoted
function generator.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: reorder function definitions to keep func_buildreq_* together.
Gary V. Vaughan [Thu, 8 Dec 2011 05:20:47 +0000 (12:20 +0700)] 
bootstrap: reorder function definitions to keep func_buildreq_* together.

* bootstrap: Restore asciibetical order, so that all the
buildreq function definitions are together.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>