]> git.ipfire.org Git - thirdparty/libtool.git/log
thirdparty/libtool.git
11 years agobootstrap: push Peter's version sort fix back into funclib.sh.
Gary V. Vaughan [Thu, 2 Jan 2014 00:04:31 +0000 (13:04 +1300)] 
bootstrap: push Peter's version sort fix back into funclib.sh.

Peter's a7462c5 fix was applied to the generated bootstrap script
instead of the funclib.sh source, and had have been overwritten
the next time bootstrap was regenerated.
* gl/build-aux/funclib.sh (func_sort_ver): Sort numerically on the
non-primary keys as well.
* bootstrap: Regenerate, with the change applied.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: change history.
Gary V. Vaughan [Wed, 1 Jan 2014 23:52:50 +0000 (12:52 +1300)] 
maint: change history.

* NEWS: Remove alpha release header.
* cfg.mk (old_NEWS_hash): Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agolibtool: only strip -Wl when linking with $LD. v2.4.2.444
Gary V. Vaughan [Wed, 1 Jan 2014 23:13:13 +0000 (12:13 +1300)] 
libtool: only strip -Wl when linking with $LD.

* build-aux/ltmain.in (func_mode_link): Don't strip -Wl from the
linker flags, except when linking with $LD, otherwise compiler
drivers that don't recognize and pass linker flags through will
choke on unrecognized options.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agobootstrap: fix gitlog-to-changelog detection.
Gary V. Vaughan [Wed, 1 Jan 2014 22:58:35 +0000 (11:58 +1300)] 
bootstrap: fix gitlog-to-changelog detection.

* gl/build-aux/bootstrap.in (func_ifcontains): Use a for loop
that relies on $IFS for element splitting instead of a one-shot
case glob that is not tolerant to \n in $gnulib_modules.
* THANKS: Add Reuben Thomas.
Reported by Reuben Thomas

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: update copyright notices to include 2014.
Gary V. Vaughan [Wed, 1 Jan 2014 22:45:36 +0000 (11:45 +1300)] 
maint: update copyright notices to include 2014.

* .x-update-copyright: New file. Exclude files not owned by this
project from update-copyright rules.
* doc/libtool.texi: Replace m-dash with n-dash in texinfo
copyright notice so that update-copyright matches correctly.
Undo bogus copyright updates to example output from gdb session.
Bump copyright year.
* Changelog.old: Revert bogus updates from previous years
without .x-update-copyright.
AUTHORS, HACKING, Makefile.am, NEWS, README, THANKS, TODO,
bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in, cfg.mk,
configure.ac, gl/build-aux/bootstrap.in,
gl/build-aux/extract-trace, gl/build-aux/funclib.sh,
gl/build-aux/inline-source, gl/build-aux/options-parser,
libltdl/README, libltdl/argz.c, libltdl/argz_.h,
libltdl/configure.ac, libltdl/libltdl/lt__alloc.h,
libltdl/libltdl/lt__dirent.h, libltdl/libltdl/lt__glibc.h,
libltdl/libltdl/lt__private.h, libltdl/libltdl/lt__strl.h,
libltdl/libltdl/lt_dlloader.h, libltdl/libltdl/lt_error.h,
libltdl/libltdl/lt_system.h, libltdl/libltdl/slist.h,
libltdl/loaders/dld_link.c, libltdl/loaders/dlopen.c,
libltdl/loaders/dyld.c, libltdl/loaders/load_add_on.c,
libltdl/loaders/loadlibrary.c, libltdl/loaders/preopen.c,
libltdl/loaders/shl_load.c, libltdl/lt__alloc.c,
libltdl/lt__dirent.c, libltdl/lt__strl.c, libltdl/lt_dlloader.c,
libltdl/lt_error.c, libltdl/ltdl.c, libltdl/ltdl.h,
libltdl/ltdl.mk, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/autobuild.m4, m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4,
m4/ltsugar.m4, m4/ltversion.in, m4/lt~obsolete.m4,
tests/am-subdir.at, tests/archive-in-archive.at,
tests/bindir.at, tests/cdemo.at, tests/cmdline_wrap.at,
tests/configure-iface.at, tests/convenience.at, tests/ctor.at,
tests/cwrapper.at, tests/darwin.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-ident.at, tests/deplibs-mingw.at,
tests/destdir.at, tests/dlloader-api.at,
tests/dumpbin-symbols.at, tests/duplicate_conv.at,
tests/duplicate_deps.at, tests/duplicate_members.at,
tests/early-libtool.at, tests/exceptions.at,
tests/execute-mode.at, tests/exeext.at, tests/export-def.at,
tests/export.at, tests/f77demo.at, tests/fail.at,
tests/fcdemo.at, tests/flags.at, tests/help.at,
tests/indirect_deps.at, tests/infer-tag.at,
tests/inherited_flags.at, tests/install.at,
tests/lalib-syntax.at, tests/libtool.at, tests/libtoolize.at,
tests/link-order.at, tests/link-order2.at, tests/loadlibrary.at,
tests/localization.at, tests/lt_dladvise.at, tests/lt_dlexit.at,
tests/lt_dlopen.at, tests/lt_dlopen_a.at, tests/lt_dlopenext.at,
tests/ltdl-api.at, tests/ltdl-libdir.at, tests/mdemo.at,
tests/need_lib_prefix.at, tests/no-executables.at,
tests/nocase.at, tests/nonrecursive.at, tests/old-ltdl-iface.at,
tests/old-m4-iface.at, tests/pic_flag.at, tests/recursive.at,
tests/resident.at, tests/runpath-in-lalib.at,
tests/search-path.at, tests/shlibpath.at, tests/slist.at,
tests/standalone.at, tests/static.at, tests/stresstest.at,
tests/subproject.at, tests/sysroot.at, tests/tagdemo.at,
tests/template.at, tests/testsuite.at, tests/versioning.at,
tests/with-pic.at: Bump copyright year.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agognulib: update to latest upstream revision.
Gary V. Vaughan [Wed, 1 Jan 2014 23:03:30 +0000 (12:03 +1300)] 
gnulib: update to latest upstream revision.

* gnulib: Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: gcj cannot reliably compile directly to .o from .java
Gary V. Vaughan [Mon, 23 Dec 2013 08:52:20 +0000 (21:52 +1300)] 
tests: gcj cannot reliably compile directly to .o from .java

Some 4.3.x and 4.4.x releases of gcj insert a spurious 'dummy'
symbol into every object file when compiling directly from .java
to .o:
* tests/convenience.at (GCJ): make .class files from .java
sources first, and then compile those to native objects. This
works around http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42143

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotestsuite: with SunStudio12.x f77, don't fail on system symbols
Gary V. Vaughan [Mon, 23 Dec 2013 05:58:31 +0000 (18:58 +1300)] 
testsuite: with SunStudio12.x f77, don't fail on system symbols

Modern SunStudio f77 is just a wrapper for f90, which
explains why current master fails these test groups with:

 Undefined first referenced
  symbol       in file
 __f90_slw_ch      .libs/foof2.o
 __f90_sslw        .libs/foof2.o
 __f90_eslw        .libs/foof2.o
 ld: fatal: symbol referencing errors. No output written to
.libs/libfoo2.so.0.0.0

So we allow some undefined symbols in the libraries, which are
resolved by the $(FLIBS) added to the final binaries in the tests.
This seems like the simpler, and less error inducing solution to
me (compared to adding $(FLIBS) to every library LDFLAGS line).
* tests/f77demo.at (libfoo_la_LDFLAGS, libfoo2_la_LDFLAGS)
(libfoo3_la_LDFLAGS, libmix_la_LDFLAGS): Remove -no-undefined
flag.
* tests/fcdemo.at: Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: use $SED and $GREP, not sed and grep in all scripts.
Gary V. Vaughan [Wed, 30 Oct 2013 05:25:44 +0000 (18:25 +1300)] 
maint: use $SED and $GREP, not sed and grep in all scripts.

Choosing between hardcoding a tool's name, or using the shell
variable with a path to the user's prefered implementation or
configure's idea of the best available is a premature
optimisation.
* build-aux/ltmain.in, gl/build-aux/bootstrap.in,
gl/build-aux/extract-trace, gl/build-aux/funclib.sh,
libtoolize.in: Use $SED and $GREP consistently throughout,
instead of hardcoding sed and grep.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: use TESTS_ENVIRONMENT for EGREP and FGREP.
Gary V. Vaughan [Wed, 30 Oct 2013 04:47:45 +0000 (17:47 +1300)] 
tests: use TESTS_ENVIRONMENT for EGREP and FGREP.

Be consistent about passing commands to the testsuite, and use
TESTS_ENVIRONMENT consistent.
* Makefile.am (TESTS_ENVIRONMENT): Add EGREP and FGREP.
* tests/testsuite.at: Remove EGREP and FGREP extractions from
generated libtool script.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: use $GREP throughout.
Gary V. Vaughan [Wed, 30 Oct 2013 04:39:06 +0000 (17:39 +1300)] 
tests: use $GREP throughout.

Trust the user, and use $GREP from TESTS_EVVIRONMENT uniformly.
* Makefile.am (TESTS_ENVIRONMENT): Add GREP setting.
* tests/am-subdir.at, tests/archive-in-archive.at, tests/bindir.at,
tests/configure-iface.at, tests/cwrapper.at, tests/darwin.at,
tests/demo.at, tests/destdir.at, tests/dumpbin-symbols.at,
tests/early-libtool.at, tests/execute-mode.at, tests/export-def.at,
tests/export.at, tests/f77demo.at, tests/fcdemo.at, tests/flags.at,
tests/help.at, tests/inherited_flags.at, tests/install.at,
tests/lalib-syntax.at, tests/libtool.at, tests/libtoolize.at,
tests/localization.at, tests/lt_dladvise.at, tests/lt_dlopen.at,
tests/lt_dlopenext.at, tests/ltdl-api.at, tests/ltdl-libdir.at,
tests/mdemo.at, tests/old-m4-iface.at, tests/pic_flag.at,
tests/resident.at, tests/runpath-in-lalib.at, tests/search-path.at,
tests/static.at, tests/sysroot.at, tests/template.at,
tests/testsuite.at, tests/versioning.at: Replace all hardcoded grep
invocations with $GREP.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: use $SED throughout.
Gary V. Vaughan [Wed, 30 Oct 2013 04:21:38 +0000 (17:21 +1300)] 
tests: use $SED throughout.

Trust the user, and use $SED from TESTS_ENVIRONMENT uniformly.
Hardcoding 'sed' for "simple" edits is a premature optimisation.
* tests/cdemo.at, tests/cmdline_wrap.at, tests/cwrapper.at,
tests/darwin.at, tests/demo.at, tests/duplicate_conv.at,
tests/duplicate_members.at, tests/execute-mode.at, tests/export.at,
tests/inherited_flags.at, tests/install.at, tests/libtoolize.at,
tests/mdemo.at, tests/need_lib_prefix.at, tests/old-m4-iface.at,
tests/sysroot.at, tests/tagdemo.at, tests/testsuite.at: Replace all
hardcoded sed invocations with $SED.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: run cmdline_wrap last, or not at all if anything else failed.
Gary V. Vaughan [Wed, 30 Oct 2013 02:33:20 +0000 (15:33 +1300)] 
tests: run cmdline_wrap last, or not at all if anything else failed.

* Makefile.am (TESTSUITE_AT): Move stresstest.at and cmdline_wrap.at
to the end of the list.
* tests/cmdline_wrap.at: If previous tests have failed, then we
already know that rerunning them will fail too, so save time by
skipping in that case.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agoconfigury: remove spurious g modifier in sed expression.
Gary V. Vaughan [Wed, 30 Oct 2013 04:45:29 +0000 (17:45 +1300)] 
configury: remove spurious g modifier in sed expression.

* Makefile.am (rebuild): Remove useless g modifier from sed
expression.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agoconfigury: use $(SED) where input does not end in newline.
Gary V. Vaughan [Wed, 30 Oct 2013 01:55:00 +0000 (14:55 +1300)] 
configury: use $(SED) where input does not end in newline.

On Solaris machines the system sed does not process the last
line of input unless it ends with a newline, which means it
cannot be used to massage the output of git-version-gen, because
it deliberately omits the terminating newline.
* Makefile.am (rebuild): Use the sed command found by configure,
which has a better chance of working properly than the first sed
on PATH.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: skip fcdemo checks when $FC cannot compile fortran90.
Gary V. Vaughan [Tue, 29 Oct 2013 23:01:27 +0000 (12:01 +1300)] 
tests: skip fcdemo checks when $FC cannot compile fortran90.

Avoid spurious fcdemo failures when Autoconf picks f77 or
similar for a fortran90 compiler.
* tests/testsuite.at (LT_AT_TAG): Using FC and FCFLAGS from make
TESTS_ENVIRONMENT, check that we really can compile fortran90
or else skip.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agofunclib.sh: improve comments.
Gary V. Vaughan [Wed, 30 Oct 2013 05:17:21 +0000 (18:17 +1300)] 
funclib.sh: improve comments.

* gl/build-aux/funclib.sh: Add a comment explaining the need for
extra SED and GREP searches.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: fix out-of-tree autoreconf w/o manual rebootstrap
Peter Rosin [Sun, 8 Dec 2013 22:48:07 +0000 (23:48 +0100)] 
maint: fix out-of-tree autoreconf w/o manual rebootstrap

build-aux/ltmain.in: Look for funclib.sh and options-parser in
the same location ltmain.in is found.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
11 years agobootstrap: fix version sort
Peter Rosin [Tue, 19 Nov 2013 10:54:27 +0000 (11:54 +0100)] 
bootstrap: fix version sort

Reported by Ozkan Sezer who suffered from makeinfo 4.13 being detected
as lesser than the required makeinfo 4.8.

* bootstrap (func_sort_ver): Sort numerically on the non-primary keys
as well.

11 years agotests: Use a basic grep that matches the basic regexp style. v2.4.2.427
Peter Rosin [Fri, 8 Nov 2013 17:56:55 +0000 (18:56 +0100)] 
tests: Use a basic grep that matches the basic regexp style.

Fixes a testsuite failure on Cygwin.

* tests/tagdemo.at: Use grep instead of egrep.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
11 years agobootstrap: fix a quoting error.
Gary V. Vaughan [Tue, 29 Oct 2013 04:08:49 +0000 (17:08 +1300)] 
bootstrap: fix a quoting error.

* gl/build-aux/bootstrap.in (func_require_buildreq_autoconf): Quote
the extracted version number correctly so that it is displayed in
verbose mode.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agofunclib.sh: simplify version comparison functions.
Gary V. Vaughan [Mon, 28 Oct 2013 07:14:22 +0000 (20:14 +1300)] 
funclib.sh: simplify version comparison functions.

* gl/build-aux/funclib.sh (func_sort_ver): Much simplified.
(func_lt_ver): New function, return true if arguments are in
ascending order.
* gl/build-aux/bootstrap.in: Simplify with func_lt_ver.
* gl/build-aux/do-release-commit-and-tag.diff: Likewise.
* bootstrap: Regenerate.

Co-Authored-by: Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agobootstrap: show found GREP and SED in verbose mode.
Gary V. Vaughan [Mon, 28 Oct 2013 06:55:36 +0000 (19:55 +1300)] 
bootstrap: show found GREP and SED in verbose mode.

* gl/build-aux/bootstrap.in (EGREP, FGREP, GREP, SED): Remove.
These are already set by funclib.sh.
(func_prep): After --verbose has been processed, show the paths
to GREP and SED found by funclib.sh.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agorefactor: simplify program path searching in funclib.sh.
Gary V. Vaughan [Mon, 28 Oct 2013 05:50:36 +0000 (18:50 +1300)] 
refactor: simplify program path searching in funclib.sh.

* gl/build-aux/funclib.sh (func_path_progs): New function. Factor
out common code from GREP and SED searches.
(func_check_prog_sed, func_check_prog_grep): New functions, for
non-common code.
(scriptversion): Update.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agobootstrap: search for a non-truncating grep binary.
Gary V. Vaughan [Mon, 28 Oct 2013 04:38:23 +0000 (17:38 +1300)] 
bootstrap: search for a non-truncating grep binary.

On at least Unixware 7.1.4, the first grep binary on PATH is
unable to process the extract-trace scripts.
* gl/build-aux/funclib.sh (GRUP): Search PATH for a grep binary
that doesn't truncate its own output if available, and set GREP
accordingly.
* Makefile.am (SCRIPT_ENV): Add setting for GREP.
* bootstrap: Regenerate.
Reported by Tim Rice.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agobootstrap: search for a non-truncating sed binary.
Gary V. Vaughan [Mon, 28 Oct 2013 03:06:40 +0000 (16:06 +1300)] 
bootstrap: search for a non-truncating sed binary.

On at least Unixware 7.1.4, the first sed binary on PATH is
unable to process the extract-trace scripts.
* gl/build-aux/funclib.sh (PATH_SEPARATOR): Set to : or ;
according to a feature test.
(func_executable_p): New function.
(SED): Search PATH for a sed binary that doesn't truncate its
own output if available, and set SED accordingly.
(scriptversion): Update.
* Makefile.am (SCRIPT_ENV): New macro, for propagating configured
variables.
(ltdl_ac_aux_dir, $(ltmain_sh), install-data-local): Use it.
* bootstrap: Regenerate.
Reported by Tim Rice.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: use autotest as_unset rather than rerolling $unset locally.
Gary V. Vaughan [Sun, 27 Oct 2013 21:13:34 +0000 (10:13 +1300)] 
tests: use autotest as_unset rather than rerolling $unset locally.

On at least Unixware 7.1.4, the shell variable 'unset' gets set
to 'no' during the testsuite run, breaking several test cases.
We should have been using Autotest $as_unset anyway.
* tests/testsuite.at (unset): Remove test and variable setting.
(LT_AT_MAKE): Use $as_unset as provided by autotest boilerplate
instead of our own $unset.
* tests/demo.at (uninstalled libraries ave priority): Likewise.
Reported by Tim Rice.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: post-release administrivia
Gary V. Vaughan [Sun, 27 Oct 2013 00:02:07 +0000 (13:02 +1300)] 
maint: post-release administrivia

* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.

11 years agoversion 2.4.2.418 v2.4.2.418
Gary V. Vaughan [Sat, 26 Oct 2013 22:52:43 +0000 (11:52 +1300)] 
version 2.4.2.418

* NEWS: Record release date.

11 years agognulib: update to latest upstream revision.
Gary V. Vaughan [Sat, 26 Oct 2013 22:23:40 +0000 (11:23 +1300)] 
gnulib: update to latest upstream revision.

* gnulib: Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agognulib: use func_sort_ver instead of GNU sort -V in do-release-commit-and-tag.
Gary V. Vaughan [Sat, 26 Oct 2013 02:44:46 +0000 (15:44 +1300)] 
gnulib: use func_sort_ver instead of GNU sort -V in do-release-commit-and-tag.

* gl/build-aux/do-release-commit-and-tag: Source funclib.sh and
then use portable func_sort_ver rather than force installation of
all GNU coreutils just for sort -V support.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agorefactor: move func_sort_ver from bootstrap.in to funclib.sh.
Gary V. Vaughan [Sat, 26 Oct 2013 02:33:07 +0000 (15:33 +1300)] 
refactor: move func_sort_ver from bootstrap.in to funclib.sh.

* gl/build-aux/bootstrap.in (func_sort_ver): Move from here...
* gl/build-aux/funclib.sh (func_sort_ver): ...to here.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agotests: use K&R main() syntax for old-ltdl-iface.at.
Gary V. Vaughan [Sat, 26 Oct 2013 00:33:14 +0000 (13:33 +1300)] 
tests: use K&R main() syntax for old-ltdl-iface.at.

At least Mac OS 10.8.5 clang chokes on the previous
'const void *argv[]' parameter, but since we don't use it
anyway, keep to the theme of old api support and use K&R
syntax.
* tests/old-ltdl-iface.at (old.c): Use 'main ()' instead of
unportable 'int main (int argc, const void *argv[])'.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agolibltdl: bump -version-info revision by 1.
Gary V. Vaughan [Fri, 25 Oct 2013 23:20:18 +0000 (12:20 +1300)] 
libltdl: bump -version-info revision by 1.

The only changes to libltdl sources since v2.4.2 have been
cosmetic and stylistic.
* libltdl/ltdl.mk (LTDL_VERSION_INFO): For a release with no
interface changes C:R:A becomes C:R+1:A.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: Update README-release for Makefile.inc -> ltdl.mk rename.
Gary V. Vaughan [Fri, 25 Oct 2013 23:23:45 +0000 (12:23 +1300)] 
maint: Update README-release for Makefile.inc -> ltdl.mk rename.

* gl/top/README-release.diff: s/Makefile.inc/ltdl.mk/g

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: bump serials on m4 sources changed since v2.4.2.
Gary V. Vaughan [Fri, 25 Oct 2013 23:03:59 +0000 (12:03 +1300)] 
maint: bump serials on m4 sources changed since v2.4.2.

* m4/argz.m4: Bump serial to 6.
* m4/libtool.m4: Bump serial to 58.
* m4/ltdl.m4: Bump serial to 19.
* m4/ltoptions.m4: Bump serial to 8.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
11 years agomaint: fix a syntax-check violation from commit 12641bd.
Gary V. Vaughan [Fri, 25 Oct 2013 23:35:41 +0000 (12:35 +1300)] 
maint: fix a syntax-check violation from commit 12641bd.

* build-aux/ltmain.in (func_mode_link): Reverse test operands to
forestall misinterpretation of contests of shell variable as
operand 1.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: Don't fall back to static libraries if building them was disabled
Vadim Zeitlin [Thu, 10 Oct 2013 00:35:13 +0000 (17:35 -0700)] 
libtool: Don't fall back to static libraries if building them was disabled

If -no-undefined was not specified but the platform didn't
support shared libraries with undefined symbols (e.g. Cygwin/
MinGW), static libraries were built instead of shared ones,
even if building them was explicitly disabled with --disable-
static configure option.

Fix this by stopping with a fatal error if a shared library
can't be built in this case instead of unexpectedly building a
static library instead.

* libltdl/config/ltmain.m4sh (func_mode_link()): Stop with
fatal error when trying to build a shared library without -no-
undefined on a platform not supporting undefined symbols in
shared libraries.

Copyright-paperwork-exempt: Yes

12 years agolibtool: Remove unneeded quotes in assignment.
Brooks Moses [Wed, 9 Oct 2013 23:39:31 +0000 (16:39 -0700)] 
libtool: Remove unneeded quotes in assignment.

The quotes in this assignment cause "make syntax-check" to
fail.  Thus, this patch removes them.

12 years agolibtool: Fix x86_64-pc-solaris2.* GNU ld breakage
Fabian Groffen [Wed, 9 Oct 2013 21:44:15 +0000 (14:44 -0700)] 
libtool: Fix x86_64-pc-solaris2.* GNU ld breakage

Since commit [1] libtool tries to set a 64-bits target for GNU
ld.  However, it does so wrongly for x86_64-pc-solaris2.*
targets, causing libtool to believe the linker is called
ld_sol2.  There is no such thing, and it obviously breaks
things further down.  Some people wrongly assume there is
supposed to be an ld_sol2 on their systems, e.g. [2].

I think the original change is fragile, because it assumes it
has all CHOSTs matched, then appends _sol2.  In the wild,
people have used amd64-pc-solaris2* too, so perhaps it would
be safer if the code only appended _sol2 if there is actually
an explicit target set.

Anyhow, since the 64-bits sparc target is called sparc64-* or
sparcv9-*, the sparc case is already correctly handled, so in
the attached patch, I just added an x86_64-* case, although I
could imagine relaxing the i?86 case to *86*-pc-solaris2* too.

In any case, defaulting to a linker called ld_sol2 is wrong.

[1] http://lists.gnu.org/archive/html/libtool-commit/2011-02/
msg00000.html
[2] http://osdyson.org/issues/8

Copyright-paperwork-exempt: Yes

12 years agolibtool: Fix detection of ld version with parentheses.
Olivier Blin [Wed, 9 Oct 2013 21:33:39 +0000 (14:33 -0700)] 
libtool: Fix detection of ld version with parentheses.

ld from crosstool-NG reports a version string with an extra
version number in a parenthetical note:
GNU ld (crosstool-NG 1.13.0) 2.21.1

This made libtool assume that the ld version was the
crosstool-NG version (1.13.0) instead of the real ld version
(2.21.1).

To fix the ld version string, this patch filters out any string
between parentheses that is followed by a space.

Because of this bug, filtering of exported symbols was not
taking place with crosstool-NG toolchains.

This issue has bee noticed when building pango, which exported
harfbuzz symbols that should have remained hidden.

Copyright-paperwork-exempt: Yes

12 years agolibtool: Fix comment indentation
Brooks Moses [Wed, 9 Oct 2013 21:28:16 +0000 (14:28 -0700)] 
libtool: Fix comment indentation

This trivial patch fixes indentation on a comment to match
the style used elsewhere in m4/libtool.m4.

12 years agolibtool: Add TPF settings for LT_SYS_DLOPEN_SELF
DJ Delorie [Wed, 9 Oct 2013 21:25:13 +0000 (14:25 -0700)] 
libtool: Add TPF settings for LT_SYS_DLOPEN_SELF

* m4/libtool.m4: Since we know that all TPF builds are cross-
builds, do not attempt to run linker tests during config. Use
known constants instead, since we know how dlopen() is
implemented.

12 years agolibtool: Fix $wl setting for tcc on GNU systems
Vincent Lefevre [Wed, 9 Oct 2013 21:19:07 +0000 (14:19 -0700)] 
libtool: Fix $wl setting for tcc on GNU systems

(This addresses http://bugs.debian.org/663945.  See there for
more-detailed discussion.)

tcc gained support for "-Wl,-rpath -Wl,<directory>" in its
commit 7fb0482a ("Support linker options passed in several -Wl
param", 2012-03-14) but libtool doesn't know to use it.  Teach
it.

Without this change, running "make check" on MPFR when it has
been built with tcc and shared libraries doesn't work because
libtool generates a -rpath option, which tcc doesn't support.

Copyright-paperwork-exempt: Yes

12 years agolibtool: use AS_HELP_STRING in LT_WITH_SYSROOT help message.
Peter Johansson [Wed, 9 Oct 2013 21:08:25 +0000 (14:08 -0700)] 
libtool: use AS_HELP_STRING in LT_WITH_SYSROOT help message.

This patch fixes so help output is formatted similar with
other macros using AS_HELP_STRING. Also it outputs '[=DIR]'
as I suspect intended rather than '=DIR'.

12 years agolibtool: Haiku change for shlibpath_overrides_runpath
Joseph Prostko [Wed, 9 Oct 2013 20:34:08 +0000 (13:34 -0700)] 
libtool: Haiku change for shlibpath_overrides_runpath

Pretty much all changes to Haiku for Libtool have been
upstreamed, however we currently have an incorrect value for
shlibpath_overrides_runpath.  It should be "no" instead of
"yes".

Previously Scott McCreary had submitted patches for us, but I
told him I would work to get this committed, as he is quite
busy lately.

Here is a commit he made to our Haiku Ports site though, that
shows the exact change I am proposing done against Libtool
2.4.2.

http://ports.haiku-files.org/browser/haikuports/sys-devel/
libtool/patches/libtool-2.4.2.patch

Copyright-paperwork-exempt: Yes

12 years agolibtool: Discard "-mllvm $arg" options when linking.
Brooks Moses [Wed, 9 Oct 2013 19:32:48 +0000 (12:32 -0700)] 
libtool: Discard "-mllvm $arg" options when linking.

Clang accepts options of the form "-mllvm $arg", and passes the
argument as an option to LLVM.  These options caused problems
for Libtool when linking; in some cases, the -mllvm option is
passed through but the corresponding argument is dropped.  (See
for example http://llvm.org/bugs/show_bug.cgi?id=14716.)

This patch resolves the issue by explicitly matching -mllvm and
taking an argument.  Since Clang never uses LLVM for linking,
the matched "-mllvm $arg" option is irrelevant for the link
step, and we can simply discard it once we've recognized it.

Co-authored-by: Johannes Obermayr <johannesobermayr@gmx.de>
Copyright-paperwork-exempt: Yes

12 years agomaint: Fix various comment and documentation typos.
Ondřej Bílka [Wed, 9 Oct 2013 01:06:56 +0000 (18:06 -0700)] 
maint: Fix various comment and documentation typos.

Ondřej writes: "Hi, this is upstream version of patch that I
sent to gcc.  I generated this patch with tool that I am
writing: https://github.com/neleai/stylepp"

(Note: The generated patch was adjusted to retain the non-US
but correct spelling of 'rigourous' before commit.  --Brooks)

12 years agolibtool: Add Android/Linux support.
David 'Digit' Turner [Tue, 8 Oct 2013 21:37:32 +0000 (14:37 -0700)] 
libtool: Add Android/Linux support.

This patch adds proper Android support to libtool. The main
issues are the following:

  - Versioned libraries are not supported by the platform and
    its build/packaging tools.

  - The dynamic linker is not GNU ld, there is no support for
    DT_RUNPATH.

  - Similarly, there is no ldconfig.

12 years agolibtool: trust -print-search-dirs from recent GCC
Peter Rosin [Tue, 17 Sep 2013 18:33:12 +0000 (20:33 +0200)] 
libtool: trust -print-search-dirs from recent GCC

Alan Modra hints in [1] that -print-search-dirs was fixed in
GCC 4.2(?), so that it nowadays automatically appends
-print-multi-os-directory for the applicable directories. I.e.
it should no longer be necessary for libtool to append a second
../lib64 when GCC has already done so. Also, the multi-os
appending loop seems to have been added specifically for early
(arguably broken) bi-arch enabled GCCs that printed -m32
directories even though -m64 was the default [2]. So, my
conclusion is that we want any libtool magic to affect
-print-search-dirs output from contemporary GCCs as little as
possible, while continuing to append the
-print-multi-os-directory for the legacy case.

Fixes bug#15321 reported by Ozkan Sezer.

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20425
[2] http://lists.gnu.org/archive/html/bug-libtool/2006-09/msg00019.html

* m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER): If any of the
directories printed by -print-search-dirs ends with the
content of -print-multi-os-directory, then assume that
GCC adds the multi-os-directory where appropriate all by
itself and hence don't try to second guess when to add
it manually.
* THANKS: Update.

12 years agobootstrap: clean up spurious 'gnulib-cache.m4 missing' error.
Gary V. Vaughan [Mon, 16 Sep 2013 04:02:23 +0000 (11:02 +0700)] 
bootstrap: clean up spurious 'gnulib-cache.m4 missing' error.

* gl/build-aux/bootstrap.in (func_reconfigure): Don't show an
error when running without gnulib-cache.m4.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: make ensure_changelog work for update mode projects.
Gary V. Vaughan [Sun, 15 Sep 2013 13:35:15 +0000 (20:35 +0700)] 
bootstrap: make ensure_changelog work for update mode projects.

* gl/build-aux/bootstrap.in (func_bootstrap): Move
func_changelog_ensure invocation from here...
(func_reconfigure): ...to here. If gnulib_modules is empty, then
grep gnulib-cache.m4 for gitlog-to-changelog before invoking
func_changelog_ensure.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: fetch defaults from gnulib-cache.m4 for non-imported projects.
Gary V. Vaughan [Sun, 15 Sep 2013 06:38:11 +0000 (13:38 +0700)] 
bootstrap: fetch defaults from gnulib-cache.m4 for non-imported projects.

Recent changes uncovered some bugs in handling of gnulib-tool
options for projects that check in gnulib-cache.m4 rather than
keep a separate list of modules and options in bootstrap.conf.
* gl/build-aux/bootstrap.in (func_require_doc_base)
(func_require_gnulib_name, func_require_local_gl_dir): New
functions to set defaults from gnulib-cache.m4 in projects that
use gnulib-tool in --update mode.
(func_require_gnulib_tool_base_options): Use them to fetch
defaults.
(func_require_gnulib_copy_cmd): New function to calculate the
options required for gnlib-tool copy command.
(func_gnulib_tool_copy_file): Simplify accordingly.
(scriptversion): Bump.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: normalise formatting of recent commit log entry.
Gary V. Vaughan [Thu, 5 Sep 2013 05:16:25 +0000 (12:16 +0700)] 
maint: normalise formatting of recent commit log entry.

* build-aux/git-log-fix: Add a summary line to ChangeLog entry of
most recent commit.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years ago* AUTHORS: Add myself to committers list.
Brooks Moses [Thu, 5 Sep 2013 01:47:08 +0000 (18:47 -0700)] 
* AUTHORS: Add myself to committers list.

12 years agobootstrap: gnulib_tool=true means no gnulib submodule.
Gary V. Vaughan [Thu, 29 Aug 2013 13:44:42 +0000 (20:44 +0700)] 
bootstrap: gnulib_tool=true means no gnulib submodule.

* gl/build-aux/bootstrap.in (func_require_gnulib_tool): No
sneaking off and cloning gnulib when the user already specified
gnulib_tool=true in their bootstrap.conf!
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: make first char of IFS a space.
Alan Modra [Fri, 23 Aug 2013 13:36:32 +0000 (20:36 +0700)] 
bootstrap: make first char of IFS a space.

Putting tab first in IFS breaks func_echo_all usage of $*,
resulting in failure of func_infer_tag to match a command line
using a $CC with trailing spaces. The trailing spaces were
stripped out of CC_expanded but words in $CC were separated by
tabs. This didn't match the makefile expansion of $CC using the
standard IFS with a first char of space.
* gl/build-aux/funclib.sh (IFS): Make first char a space.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: support --no-git and --no-po options.
Gary V. Vaughan [Fri, 23 Aug 2013 13:28:25 +0000 (20:28 +0700)] 
bootstrap: support --no-git and --no-po options.

* gl/build-aux/bootstrap.in (bootstrap_parse_options): Accept
--no-git as an alias for --skip-git for compatibility with gnulib
bootstrap, and --no-po for symmetry.
Reported by Mike Miller.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: support gnulib gnulib_tool_option_extras settings.
Gary V. Vaughan [Fri, 23 Aug 2013 13:17:50 +0000 (20:17 +0700)] 
bootstrap: support gnulib gnulib_tool_option_extras settings.

* gl/build-aux/bootstrap.in (func_gnulib_tool): Even though we
don't need it, support gnulib_tool_option_extras for bootstrap.conf
ported from gnulib bootstrap.
* bootstrap: Regenerate.
Reported by Mike Miller.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: support sha1 binary on OpenBSD.
Gary V. Vaughan [Fri, 23 Aug 2013 12:55:27 +0000 (19:55 +0700)] 
bootstrap: support sha1 binary on OpenBSD.

* gl/build-aux/bootstrap.in (func_update_po_files): Remove the
use of --status in a way that will suppress all error messages,
but since this is only used to minimize updates, it shouldn't
cause an issue.
Look for a sha1 binary if the other SHA1SUM settings are not
found.
Also exit early if there is a problem updating the po file
checksums.
* bootstrap: Regenerate.
Ported from a gnulib patch by Padraig Brady.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: support tools that don't accept '--version' in buildreq.
Gary V. Vaughan [Fri, 23 Aug 2013 10:23:29 +0000 (17:23 +0700)] 
bootstrap: support tools that don't accept '--version' in buildreq.

* gl/build-aux/bootstrap.in (func_check_tool): Check whether there
is an executable as given or on the command PATH.
(func_check_version): Use func_check_tool to avoid invoking --version
when buildreq specifies '-' for the version number.
* bootstrap: Regenerate.
Reported by Mike Miller.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: diagnose bad $buildreq formatting.
Gary V. Vaughan [Fri, 23 Aug 2013 09:27:31 +0000 (16:27 +0700)] 
bootstrap: diagnose bad $buildreq formatting.

Particularly when porting from gnulib bootstrap to libtool
bootstrap, it's easy to forget the extra URL column used for
error reporting.
* gl/build-aux/bootstrap.in (func_check_versions): A non-URL
pattern in the 3rd column of buildreq triggers a fatal error.
* bootstrap: Regenerate.
Reported by Mike Miller.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: support OpenBSD sed.
Gary V. Vaughan [Fri, 23 Aug 2013 08:59:46 +0000 (15:59 +0700)] 
bootstrap: support OpenBSD sed.

* gl/build-aux/bootstrap.in (func_insert_if_absent): Work around
the problem of OpenBSD sed not supporting '-' as a notation for
standard input.
* bootstrap: Regenerate.
* THANKS: Add Mike Miller.
Reported by Mike Miller.

Copyright-paperwork-exempt: Yes
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: set correct linker ABI flags on mips64 linux.
Steve Ellcey [Mon, 19 Aug 2013 21:35:28 +0000 (14:35 -0700)] 
libtool: set correct linker ABI flags on mips64 linux.

m4/libtool.m4 (_LT_ENABLE_LOCK): Select the n32 or n64 ABI when
linking to match the ABI produced with the user's compiler flags.

Co-authored-by: Gary V. Vaughan <gary@gnu.org>
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: correct many abuses of the word "which".
Gary V. Vaughan [Fri, 23 Aug 2013 04:12:57 +0000 (11:12 +0700)] 
maint: correct many abuses of the word "which".

* HACKING, NEWS, TODO, bootstrap, bootstrap.conf,
build-aux/ltmain.in, cfg.mk, configure.ac, doc/libtool.texi,
doc/notes.texi, gl/build-aux/bootstrap.in,
gl/build-aux/extract-trace, gl/build-aux/funclib.sh,
gl/doc/bootstrap.texi, libltdl/libltdl/lt_system.h,
libltdl/loaders/loadlibrary.c, libltdl/lt__strl.c,
libltdl/lt_dlloader.c, libltdl/ltdl.c, libtoolize.in,
m4/libtool.m4, m4/ltdl.m4, m4/ltsugar.m4, m4/lt~obsolete.m4,
tests/exceptions.at, tests/need_lib_prefix.at, tests/static.at:
Use "which" correctly, or replace with "that", "where" or "what"
as appropriate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: improve comments for _LT_ENABLE_LOCK implementation.
Brook Moses [Fri, 23 Aug 2013 03:23:33 +0000 (10:23 +0700)] 
libtool: improve comments for _LT_ENABLE_LOCK implementation.

* m4/libtool.m4 (_LT_ENABLE_LOCK): enhance comments to explain
why the code looks odd with 32bit flags in the 64bit section and
vice versa.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: fix refixed unmangled powerpc*le-linux support patch
Alan Modra [Thu, 6 Jun 2013 05:18:22 +0000 (14:48 +0930)] 
libtool: fix refixed unmangled powerpc*le-linux support patch

* m4/libtool.m4: fix refixed badly unmangled hunks from earlier
powerpc*le changeset.
Reported by Peter Rosin.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: refix unmangled powerpc*le-linux support patch
Alan Modra [Thu, 6 Jun 2013 05:18:22 +0000 (14:48 +0930)] 
libtool: refix unmangled powerpc*le-linux support patch

* m4/libtool.m4: refix badly unmangled hunks from earlier
powerpc*le changeset.
Reported by Peter Rosin.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibltdl: don't trip subdir-objects warning from Automake >= 1.14.
Gary V. Vaughan [Thu, 22 Aug 2013 08:51:33 +0000 (15:51 +0700)] 
libltdl: don't trip subdir-objects warning from Automake >= 1.14.

Latest Automake releases now warn when subdir-objects is not
specified in preparation for Automake 2.0.  The option has been
in Automake for more than a decade, so there's minimal risk of
someone using the next release of Libtool alongside an ancient
release of Automake when bootstrapping libltdl client projects.
* libltdl/configure.ac (AM_INIT_AUTOMAKE): Add subdir-objects.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: refactor powerpc*le-linux case branch expressions.
Gary V. Vaughan [Thu, 22 Aug 2013 08:38:00 +0000 (15:38 +0700)] 
libtool: refactor powerpc*le-linux case branch expressions.

libtool (_LT_ENABLE_LOCK): make inner case branch expressions
consistent with outer case expression.
Reported by Peter Rosin.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: fix mangled powerpc*le-linux support patch
Alan Modra [Thu, 6 Jun 2013 05:18:22 +0000 (14:48 +0930)] 
libtool: fix mangled powerpc*le-linux support patch

* m4/libtool.m4: unmangled badly pasted hunks from previous
changeset.

12 years agolibtool: initial powerpc*le-linux support
Alan Modra [Thu, 6 Jun 2013 05:18:22 +0000 (14:48 +0930)] 
libtool: initial powerpc*le-linux support

* m4/libtool.m4 (ld -m flags): Remove non-canonical ppc host match.
Support little-endian powerpc linux host.

12 years agolibtool: fix conversion warnings in cwrapper
Yaakov Selkowitz [Mon, 17 Jun 2013 21:46:54 +0000 (23:46 +0200)] 
libtool: fix conversion warnings in cwrapper

build-aux/ltmain.in (func_emit_cwrapperexe_src:main): XMALLOC wants a
size_t. Also use int instead of intptr_t for the return value (which
is fine since the _spawnv call is synchronous).
(func_emit_cwrapper_src) [MSVC]: Remove the intptr_t helper define.
(func_emit_cwrapperexe_src:find_executable): Use size_t for variables
involved in strlen computations.
(func_emit_cwrapperexe_src:lt_setenv): Likewise.
(func_emit_cwrapperexe_src:lt_extend_str): Likewise.
(func_emit_cwrapperexe_src:lt_update_exe_path): Likewise.
THANKS: Update.

Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: break all the way out when a good nm is found
Peter Rosin [Sun, 28 Apr 2013 07:16:56 +0000 (09:16 +0200)] 
libtool: break all the way out when a good nm is found

The current code tries to locate a compatible nm tool.  It starts with
a prefixed nm tool (great!) and includes a plain nm too (that's fine).
The problem is that the code searches for the prefixed nm before the
plain nm (normally fine), but doesn't break once it has found a valid
match, and the plain nm ends up the winner.

Report and analysis by Mike Frysinger.

* m4/libtool.m4 (LT_PATH_NM): Break all the way out on a good match.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agomaint: update email address...
Peter Rosin [Mon, 28 Jan 2013 18:50:31 +0000 (19:50 +0100)] 
maint: update email address...

* THANKS: ...of Jan Engelhardt.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agodoc: fix an orthographic error
Jan Engelhardt [Mon, 28 Jan 2013 16:15:38 +0000 (17:15 +0100)] 
doc: fix an orthographic error

* doc/libtool.texi (Install mode): Ensure, not insure.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agobootstrap: fix func_insert_if_absent bugs.
Gary V. Vaughan [Sun, 27 Jan 2013 14:07:27 +0000 (21:07 +0700)] 
bootstrap: fix func_insert_if_absent bugs.

* gl/build-aux/bootstrap.in (func_insert_if_absent): Print verbose
message when there is a new entry to add.
Also, make sure to update the .gitignore file when changed.
* bootstrap: Regenerate.
* THANKS: Add Pádraig Brady.
Reported by Pádraig Brady.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: factor out gnulib-tool option calculations.
Gary V. Vaughan [Sun, 27 Jan 2013 12:57:22 +0000 (19:57 +0700)] 
bootstrap: factor out gnulib-tool option calculations.

* gl/build-aux/bootstrap.in (func_gnulib_tool): Factor base option
settings out...
(require_gnulib_tool_base_options): ...to here.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: fix a quoted_test_operand violation.
Gary V. Vaughan [Sun, 27 Jan 2013 13:13:27 +0000 (20:13 +0700)] 
syntax-check: fix a quoted_test_operand violation.

* gl/build-aux/bootstrap.in (func_insert_if_absent): Make sure
test operands are quoted correctly.
* bootstrap: Regenerate.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: fix new SPACE-TAB violations.
Gary V. Vaughan [Sun, 27 Jan 2013 13:20:30 +0000 (20:20 +0700)] 
syntax-check: fix new SPACE-TAB violations.

* build-aux/ltmain.in (func_dll_def_p): Replace SPACE-TAB by
TAB-SPACE.
* m4/libtool.m4 (_LT_DLL_DEF_P): Likewise.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agobootstrap: always auto-add .gitignore files at the top.
Bernhard Voelker [Sat, 26 Jan 2013 05:50:04 +0000 (12:50 +0700)] 
bootstrap: always auto-add .gitignore files at the top.

* gl/build-aux/bootstrap.in (func_gitignore_entries): New function.
Strip comments and blank lines.
(func_insert_sorted_if_absent): Renamed...
(func_insert_if_absent): ...to this. Adjust all callers.
Instead of comparing the sorted new file with the original,
compare the line count, being careful to diagnose duplicate
entries which would otherwise skew the count.

Co-authored-by: Gary V. Vaughan <gary@gnu.org>
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: patch gitlog-to-changelog to reduce bogus warnings.
Gary V. Vaughan [Thu, 3 Jan 2013 09:49:35 +0000 (16:49 +0700)] 
maint: patch gitlog-to-changelog to reduce bogus warnings.

Rather than trying to find a new useful warning among the 55
expected warnings from vanilla gitlog-to-changelog, patch it to
elide the bogus warnings from duplicate log entries.
* gl/bulid-aux/gitlog-to-changelog.diff: Omit-from-ChangeLog is
a new log entry tag to skip legitimate log duplicates.
* build-aux/git-log-fix: Instead of deleting all content of
duplicates and generating a warning, append the new
Omit-from-ChangeLog tag to elide silently.
* Makefile.am *($(changelog)): Remove the 'expect 55 warnings'
echo.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: factor out the dll .def file test and improve it
Peter Rosin [Tue, 22 Jan 2013 21:54:43 +0000 (22:54 +0100)] 
libtool: factor out the dll .def file test and improve it

Resolves bug#13414. Problem reported by Erik van Pienbroek
and Martin Doucha.

build-aux/ltmain.in (func_mode_link): Factor out the test if a
given symbol file is a module-definition (.def) file into...
(func_dll_def_p): ...this function, which also improves the check.
m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG)
<cygwin, mingw, pw32, cegcc>: Similarly, factor out the test if
a given symbol file is a module-definition (.def) file into...
(_LT_DLL_DEF_P): ...this macro, which also improves the check.
tests/export-def.at: New test.
Makefile.am (TESTSUITE_AT): Add above test.
NEWS: Update.
THANKS: Update.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: allow tabs in *_cmds variables
Peter Rosin [Mon, 21 Jan 2013 05:41:00 +0000 (06:41 +0100)] 
libtool: allow tabs in *_cmds variables

This is in preparation for the next patch, which needs to have literal
tab characters survive the evaluation of the *_cmds variables.

build-aux/ltmain.in (func_execute_cmds, func_mode_link): Don't collapse
tabs and surrounding whitespace into a single space when executing a
tilde-separated cmds construct, instead keep any tabs intact.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: avoid tabs in all *_cmds variables.
Peter Rosin [Sat, 19 Jan 2013 21:14:16 +0000 (22:14 +0100)] 
libtool: avoid tabs in all *_cmds variables.

This is in preparation for the next change, which will preserve
tabs when the *_cmds variables are evaluated. Removing tabs first
ensures that the libtool output stays the same when tabs are not
collapsed with surrounding whitespace.

m4/libtool.m4: Convert indenting tabs to spaces for all *_cmds
variables.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: align archive_cmds with archive_expsym_cmds for MSVC
Peter Rosin [Tue, 15 Jan 2013 14:29:49 +0000 (15:29 +0100)] 
libtool: align archive_cmds with archive_expsym_cmds for MSVC

m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [MSVC]
<archive_cmds>: Specify the import library name, aligning with
archive_expsym_cmds.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: feed .def files verbatim to the MSVC linker
Peter Rosin [Wed, 16 Jan 2013 12:39:52 +0000 (13:39 +0100)] 
libtool: feed .def files verbatim to the MSVC linker

m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [MSVC]
<archive_expsym_cmds>: When the symbol list isn't really a symbol list,
but instead a .def file, copy it to a file with .def extension so that
MSVC recognizes it as a module-definition file and feed it verbatim.
NEWS: Update

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agoRevert "libtool: use false or : for $always_export_symbols, and simplify"
Peter Rosin [Tue, 15 Jan 2013 14:17:30 +0000 (15:17 +0100)] 
Revert "libtool: use false or : for $always_export_symbols, and simplify"

This reverts commit 5ed7430fcb48c862c9d76ef497b73485d580338e, which is
totally bogus as the variable is also set in libtool.m4. Sorry for the
noise.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: use false or : for $always_export_symbols, and simplify
Peter Rosin [Tue, 15 Jan 2013 08:31:31 +0000 (09:31 +0100)] 
libtool: use false or : for $always_export_symbols, and simplify

* build-aux/ltmain.in (func_mode_link): Save a string comparison
by setting $lways_export_symbols to false or : and using it directly
as the first argument to if. Make sure that it is always initialized
while at it.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: fix nits in path handling
Peter Rosin [Wed, 9 Jan 2013 11:58:55 +0000 (12:58 +0100)] 
tests: fix nits in path handling

tests/bindir.at: func_save_and_prepend_path is already checking
$bindirneeded internally, so remove checks from call sites. Add
proper quoting while at it.
(func_save_and_prepend_path): Use $PATH_SEPARATOR instead of a literal
colon (in both instances).

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agolibtool: simplify quoting and code for symbols exporting sed programs
Peter Rosin [Tue, 8 Jan 2013 21:44:51 +0000 (22:44 +0100)] 
libtool: simplify quoting and code for symbols exporting sed programs

* m4/libtool.m4 (_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG) [MSVC]
<archive_expsym_cmds>: Make the sed programs easier to read (and
recover some backslashes for later in the process).

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agotests: don't feed -no-undefined to the linker during configure.
Peter Rosin [Wed, 19 Sep 2012 06:43:57 +0000 (08:43 +0200)] 
tests: don't feed -no-undefined to the linker during configure.

* tests/deplibs-mingw.at: Restore LDFLAGS for the configure run so that
the linker does not see -no-undefined. Makes the test pass instead of
skip on MinGW.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
12 years agomaint: note warnings during ChangeLog generation are normal.
Gary V. Vaughan [Thu, 3 Jan 2013 07:01:43 +0000 (14:01 +0700)] 
maint: note warnings during ChangeLog generation are normal.

* Makefile.am ($(changelog)): Output a note that 55 empty commit
log warning messages during ChangeLog generation are expected.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agogit: ignore .serial file.
Gary V. Vaughan [Thu, 3 Jan 2013 06:53:58 +0000 (13:53 +0700)] 
git: ignore .serial file.

* .gitignore: ignore .serial file.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: fix recent badly formatted ChangeLog entry.
Gary V. Vaughan [Thu, 3 Jan 2013 06:51:19 +0000 (13:51 +0700)] 
maint: fix recent badly formatted ChangeLog entry.

* build-aux/git-log-fix: No empty lines in a single commit.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: fix a useless_quotes_in_assignment violation.
Gary V. Vaughan [Thu, 3 Jan 2013 06:43:07 +0000 (13:43 +0700)] 
syntax-check: fix a useless_quotes_in_assignment violation.

* gl/build-aux/inline-source (func_require_AWK): Remove useless
quotes.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agosyntax-check: fix prohibit_strcmp syntax-check violation.
Gary V. Vaughan [Thu, 3 Jan 2013 06:41:02 +0000 (13:41 +0700)] 
syntax-check: fix prohibit_strcmp syntax-check violation.

* build-aux/ltmain.in (func_generate_dlsyms): Add a definition for
STREQ, and then use it in place of !strcmp.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agodocs: update copyright dates in libtool.texi.
Gary V. Vaughan [Thu, 3 Jan 2013 06:25:54 +0000 (13:25 +0700)] 
docs: update copyright dates in libtool.texi.

It seems `make update-copyright' missed the texinfo copyright
notice.
* doc/libtool.texi: Update copyright dates for 2013.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agolibtool: add bitrig support.
Brad Smith [Tue, 1 Jan 2013 18:26:32 +0000 (01:26 +0700)] 
libtool: add bitrig support.

* build-aux/ltmain.in (func_mode_link): Add bitrig support.
* m4/libtool.m4 (_LT_CMD_OLD_ARCHIVE, LT_CMD_MAX_LEN)
(_LT_SYS_DYNAMIC_LINKER, _LT_CHECK_MAGIC_METHOD)
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Ditto.
* m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): Ditto.
* tests/deplibs-ident.at(build tree relpaths): Ditto.
* NEWS: Updated.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
12 years agomaint: check if git works before relying on it
Peter Rosin [Tue, 1 Jan 2013 18:40:57 +0000 (19:40 +0100)] 
maint: check if git works before relying on it

Makefile.am (m4/ltversion.m4): Take the opportunity to regenerate
$(srcdir)/.serial whenever git is actually working.
(git_version_gen): Provide a fallback version for the git-version-gen
script to use when .tarball-version does not exist and git is not
working.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>