2014-11-19 00:39:21 +08:00
|
|
|
# bootstrap.conf (GNU Libtool) version 2014-11-18
|
2010-09-25 05:26:00 +08:00
|
|
|
#
|
2024-01-12 14:35:32 +08:00
|
|
|
# Copyright (C) 2010-2019, 2021-2024 Free Software Foundation, Inc.
|
2010-09-25 05:26:00 +08:00
|
|
|
# Written by Gary V. Vaughan, 2010
|
|
|
|
|
|
|
|
# This is free software; see the source for copying conditions. There is NO
|
|
|
|
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
#
|
|
|
|
# GNU Libtool is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License as
|
|
|
|
# published by the Free Software Foundation; either version 2 of
|
|
|
|
# the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# GNU Libtool is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
libtool: FSF office address replaced by URL
* AUTHORS, HACKING, Makefile.am, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/no-bogus-m4-defines, cfg.mk, configure.ac, libltdl/configure.ac,
libltdl/libltdl/lt__alloc.h, libltdl/libltdl/lt__argz_.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__argz.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, tests/am-subdir.at, tests/archive-in-archive.at,
tests/bindir.at, tests/bug_62343.at, tests/cdemo.at, tests/cmdline_wrap.at,
tests/configure-funcs.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-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: Replace FSF address in each file's license block with
a URL that points to licenses online hosted by GNU.
2024-09-03 23:02:46 +08:00
|
|
|
# along with GNU Libtool. If not, see <https://www.gnu.org/licenses/>.
|
2010-09-25 05:26:00 +08:00
|
|
|
|
|
|
|
|
|
|
|
## -------------------------------- ##
|
Fix various typos
* NEWS: Fix various typos.
* NO-THANKS, README.md, TODO, bootstrap, bootstrap.conf,
build-aux/edit-readme-alpha, build-aux/git-log-fix, build-aux/ltmain.in,
doc/libtool.texi, libltdl/libltdl/lt_error.h, libltdl/lt__argz.c,
libltdl/ltdl.c, libtoolize.in, tests/depdemo.at, tests/link-order.at: Likewise.
* cfg.mk (old_NEWS_hash): Update.
Copyright-paperwork-exempt: Yes
2023-11-23 16:44:21 +08:00
|
|
|
## User overridable command paths. ##
|
2010-09-25 05:26:00 +08:00
|
|
|
## -------------------------------- ##
|
|
|
|
|
|
|
|
: "${MAKE=make}"
|
|
|
|
|
|
|
|
export MAKE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## -------------- ##
|
|
|
|
## Configuration. ##
|
|
|
|
## -------------- ##
|
|
|
|
|
2011-10-26 13:58:35 +08:00
|
|
|
# File that should exist in the top directory of a checked out hierarchy,
|
|
|
|
# but not in a distribution tarball.
|
|
|
|
checkout_only_file=HACKING
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# List of programs (and minimum versions) required to bootstrap, maintain
|
|
|
|
# and release Libtool.
|
|
|
|
buildreq="
|
2024-01-17 04:46:12 +08:00
|
|
|
help2man 1.29 https://www.gnu.org/s/help2man
|
|
|
|
make 3.81 https://www.gnu.org/s/make
|
|
|
|
makeinfo 4.8 https://www.gnu.org/s/texinfo
|
|
|
|
xz 4.999.8beta https://tukaani.org/xz
|
2010-09-25 05:26:00 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
# Instructions on how to install packages in $buildreq.
|
|
|
|
buildreq_readme=HACKING
|
|
|
|
|
bootstrap: use the upstream repo as git module
.. instead of copying it all the time; gnulib-tool and bootstrap
are now ready to do this correctly.
Bootstrap upstream is now dual-licensed as MIT/GPLv2+; so the
sources are redistributed automatically under GPLv3+ license in
in libtool project.
* .gitmodules (bootstrap): New submodule.
* bootstrap.conf (local_gl_dir): Renamed to local_gl_path.
(local_gl_path): Renamed from local_gl_dir. Two sub-directories
are now mentioned as two --local-dir's are used.
(gnulib_git_submodules): New option to automatically clone the
bootstrap git submodule.
* build-aux/ltmain.in (libtool_options_prep)
(libtool_parse_options): Changing function exit status is not
needed with new options-parser.
* libtoolize.in: Don't func_quote when it is not necessary, don't
set the function return value.
* gl-mod/bootstrap: New git submodule.
* 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, gl/doc/bootstrap.texi,
gl/modules/all-shells-tests, gl/modules/bootstrap,
gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/funclib.sh-tests, gl/modules/inline-source
gl/modules/options-parser, gl/modules/options-parser-tests,
gl/tests/test-all-shells.sh, gl/tests/test-funclib-quote.sh
gl/tests/test-option-parser-helper,
gl/tests/test-option-parser.sh: Files removed, those are
automatically pulled from upstream now.
* bootstrap: Sync with upstream.
2016-02-23 07:38:39 +08:00
|
|
|
# Non-default gnulib directories.
|
|
|
|
local_gl_path=gl:gl-mod/bootstrap
|
2010-09-25 05:26:00 +08:00
|
|
|
|
2019-03-22 20:05:53 +08:00
|
|
|
# We don't need the whole copy of gnulib.
|
|
|
|
gnulib_clone_since=2019-02-19
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# Additional gnulib-tool options to use.
|
|
|
|
gnulib_tool_options=$gnulib_tool_options"
|
2011-10-19 12:48:56 +08:00
|
|
|
--avoid=dummy
|
2010-09-25 05:26:00 +08:00
|
|
|
--libtool
|
|
|
|
--macro-prefix=GL
|
2015-10-13 04:52:29 +08:00
|
|
|
--with-tests --tests-base=gnulib-tests
|
2010-09-25 05:26:00 +08:00
|
|
|
"
|
|
|
|
|
|
|
|
# gnulib modules used by this package.
|
|
|
|
gnulib_modules='
|
2011-10-19 00:24:53 +08:00
|
|
|
announce-gen
|
bootstrap: move into local gl overrides directory.
In order to work as if it were already adopted by upstream
gnulib, put bootstrap and supporting scripts into the local
gnulib overrides directory.
* bootstrap, build-aux/extract-trace, build-aux/funclib.sh,
build-aux/inline-source, build-aux/options-parser: Move from
here...
* 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: ...to here.
* gl/build-aux/options-parser (func_version): Show only the
first copyright notice on files generated with inline-source.
* gl/doc/bootstrap.texi: Developer documentation for bootstrap.
* gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/inline-source, gl/modules/options-parser: Describe
dependencies for gnulib-tool.
* bootstrap.conf (gnulib_modules): Add extract-trace,
inline-source and options-parser modules.
* bootstrap: Regenerated from gnulib overrides as a mono-
lithic script file using gl/build-aux/inline-source.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-13 15:39:45 +08:00
|
|
|
bootstrap
|
2011-10-19 00:24:53 +08:00
|
|
|
do-release-commit-and-tag
|
bootstrap: move into local gl overrides directory.
In order to work as if it were already adopted by upstream
gnulib, put bootstrap and supporting scripts into the local
gnulib overrides directory.
* bootstrap, build-aux/extract-trace, build-aux/funclib.sh,
build-aux/inline-source, build-aux/options-parser: Move from
here...
* 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: ...to here.
* gl/build-aux/options-parser (func_version): Show only the
first copyright notice on files generated with inline-source.
* gl/doc/bootstrap.texi: Developer documentation for bootstrap.
* gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/inline-source, gl/modules/options-parser: Describe
dependencies for gnulib-tool.
* bootstrap.conf (gnulib_modules): Add extract-trace,
inline-source and options-parser modules.
* bootstrap: Regenerated from gnulib overrides as a mono-
lithic script file using gl/build-aux/inline-source.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-13 15:39:45 +08:00
|
|
|
extract-trace
|
2011-10-19 00:24:53 +08:00
|
|
|
gendocs
|
2011-10-20 23:17:23 +08:00
|
|
|
git-version-gen
|
2011-10-22 17:46:31 +08:00
|
|
|
gitlog-to-changelog
|
2011-10-19 00:24:53 +08:00
|
|
|
gnu-web-doc-update
|
|
|
|
gnupload
|
bootstrap: move into local gl overrides directory.
In order to work as if it were already adopted by upstream
gnulib, put bootstrap and supporting scripts into the local
gnulib overrides directory.
* bootstrap, build-aux/extract-trace, build-aux/funclib.sh,
build-aux/inline-source, build-aux/options-parser: Move from
here...
* 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: ...to here.
* gl/build-aux/options-parser (func_version): Show only the
first copyright notice on files generated with inline-source.
* gl/doc/bootstrap.texi: Developer documentation for bootstrap.
* gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/inline-source, gl/modules/options-parser: Describe
dependencies for gnulib-tool.
* bootstrap.conf (gnulib_modules): Add extract-trace,
inline-source and options-parser modules.
* bootstrap: Regenerated from gnulib overrides as a mono-
lithic script file using gl/build-aux/inline-source.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-13 15:39:45 +08:00
|
|
|
inline-source
|
2011-10-19 12:48:56 +08:00
|
|
|
maintainer-makefile
|
bootstrap: move into local gl overrides directory.
In order to work as if it were already adopted by upstream
gnulib, put bootstrap and supporting scripts into the local
gnulib overrides directory.
* bootstrap, build-aux/extract-trace, build-aux/funclib.sh,
build-aux/inline-source, build-aux/options-parser: Move from
here...
* 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: ...to here.
* gl/build-aux/options-parser (func_version): Show only the
first copyright notice on files generated with inline-source.
* gl/doc/bootstrap.texi: Developer documentation for bootstrap.
* gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/inline-source, gl/modules/options-parser: Describe
dependencies for gnulib-tool.
* bootstrap.conf (gnulib_modules): Add extract-trace,
inline-source and options-parser modules.
* bootstrap: Regenerated from gnulib overrides as a mono-
lithic script file using gl/build-aux/inline-source.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-13 15:39:45 +08:00
|
|
|
options-parser
|
2011-10-19 00:24:53 +08:00
|
|
|
readme-release
|
2012-09-16 14:04:23 +08:00
|
|
|
update-copyright
|
2010-09-25 05:26:00 +08:00
|
|
|
'
|
|
|
|
|
bootstrap: use the upstream repo as git module
.. instead of copying it all the time; gnulib-tool and bootstrap
are now ready to do this correctly.
Bootstrap upstream is now dual-licensed as MIT/GPLv2+; so the
sources are redistributed automatically under GPLv3+ license in
in libtool project.
* .gitmodules (bootstrap): New submodule.
* bootstrap.conf (local_gl_dir): Renamed to local_gl_path.
(local_gl_path): Renamed from local_gl_dir. Two sub-directories
are now mentioned as two --local-dir's are used.
(gnulib_git_submodules): New option to automatically clone the
bootstrap git submodule.
* build-aux/ltmain.in (libtool_options_prep)
(libtool_parse_options): Changing function exit status is not
needed with new options-parser.
* libtoolize.in: Don't func_quote when it is not necessary, don't
set the function return value.
* gl-mod/bootstrap: New git submodule.
* 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, gl/doc/bootstrap.texi,
gl/modules/all-shells-tests, gl/modules/bootstrap,
gl/modules/extract-trace, gl/modules/funclib.sh,
gl/modules/funclib.sh-tests, gl/modules/inline-source
gl/modules/options-parser, gl/modules/options-parser-tests,
gl/tests/test-all-shells.sh, gl/tests/test-funclib-quote.sh
gl/tests/test-option-parser-helper,
gl/tests/test-option-parser.sh: Files removed, those are
automatically pulled from upstream now.
* bootstrap: Sync with upstream.
2016-02-23 07:38:39 +08:00
|
|
|
gnulib_git_submodules='
|
|
|
|
gl-mod/bootstrap
|
|
|
|
'
|
|
|
|
|
2011-10-18 22:23:31 +08:00
|
|
|
# Extra gnulib files that are not in modules, which override files of
|
|
|
|
# the same name installed by other bootstrap tools.
|
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.
Contrary to popular belief, Bourne shell does not resplit RHS of
assignments after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (_sc_search_regexp_or_exclude): A variation of gnulib's
_sc_search_regexp that also allows individual exclusions at the
site of what would otherwise match by adding a comment.
(sc_useless_quotes_in_assignment): New syntax-check rule to
ensure we don't reintroduce useless quoted assignments.
* bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/general.m4sh, build-aux/getopt.m4sh,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
doc/libtool.texi, libtoolize.m4sh, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/cwrapper.at, tests/defs.m4sh,
tests/lalib-syntax.at, tests/libtoolize.at,
tests/lt_dlopenext.at, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/need_lib_prefix.at,
tests/no-executables.at, tests/quote.test, tests/suffix.test:
Remove spurious quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-16 19:59:01 +08:00
|
|
|
gnulib_non_module_files=$gnulib_non_module_files'
|
2011-10-18 22:23:31 +08:00
|
|
|
doc/COPYINGv2
|
2011-10-19 13:22:12 +08:00
|
|
|
doc/fdl.texi
|
2011-10-18 22:23:31 +08:00
|
|
|
'
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# What ignore files to maintain.
|
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.
Contrary to popular belief, Bourne shell does not resplit RHS of
assignments after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (_sc_search_regexp_or_exclude): A variation of gnulib's
_sc_search_regexp that also allows individual exclusions at the
site of what would otherwise match by adding a comment.
(sc_useless_quotes_in_assignment): New syntax-check rule to
ensure we don't reintroduce useless quoted assignments.
* bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/general.m4sh, build-aux/getopt.m4sh,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
doc/libtool.texi, libtoolize.m4sh, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/cwrapper.at, tests/defs.m4sh,
tests/lalib-syntax.at, tests/libtoolize.at,
tests/lt_dlopenext.at, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/need_lib_prefix.at,
tests/no-executables.at, tests/quote.test, tests/suffix.test:
Remove spurious quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-16 19:59:01 +08:00
|
|
|
vc_ignore=.gitignore
|
2010-09-25 05:26:00 +08:00
|
|
|
|
syntax-check: fix violations and implement sc_old_style_quoting.
Modern GNU ASCII quoting in output and comments is done
'like this'.
* cfg.mk (sc_old_style_quoting): Try to catch most instances
of `old style quoting' so that it is not accidentally re-
introduced to the code.
* HACKING, Makefile.am, NEWS, PORTING, README, TODO, bootstrap,
bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in,
doc/libtool.texi, 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/libltdl/slist.h, libltdl/loaders/loadlibrary.c,
libltdl/ltdl.c, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4, m4/ltsugar.m4,
tests/cmdline_wrap.at, tests/configure-iface.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-mingw.at, tests/destdir.at, tests/execute-mode.at,
tests/f77demo.at, tests/fail.at, tests/inherited_flags.at,
tests/libtool.at, tests/libtoolize.at, tests/lt_dladvise.at,
tests/lt_dlexit.at, tests/mdemo.at, tests/need_lib_prefix.at,
tests/old-ltdl-iface.at, tests/old-m4-iface.at, tests/static.at,
tests/stresstest.at, tests/testsuite.at, tests/versioning.at:
Convert to upright quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-22 00:41:07 +08:00
|
|
|
# Running the installed 'libtoolize' will trash the local (newer) libtool.m4
|
|
|
|
# among others. Don't use ':', since autoreconf can't exec it!
|
2010-09-25 05:26:00 +08:00
|
|
|
LIBTOOLIZE=true
|
|
|
|
|
|
|
|
# List of file droppings from old releases of Libtool.
|
|
|
|
libtool_obsolete_files="
|
|
|
|
acinclude.m4
|
|
|
|
argz.c
|
|
|
|
libltdl/config.h
|
|
|
|
lt__dirent.c
|
|
|
|
lt__strl.c
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
## ------------------- ##
|
|
|
|
## Override functions. ##
|
|
|
|
## ------------------- ##
|
|
|
|
|
2014-01-03 11:01:53 +08:00
|
|
|
# func_autopoint
|
|
|
|
# --------------
|
|
|
|
# Libtool does not use autopoint.
|
|
|
|
func_autopoint ()
|
2010-09-25 05:26:00 +08:00
|
|
|
{
|
|
|
|
$debug_cmd
|
2014-01-03 11:01:53 +08:00
|
|
|
}
|
2010-09-25 05:26:00 +08:00
|
|
|
|
|
|
|
|
2014-01-03 11:01:53 +08:00
|
|
|
# func_libtoolize
|
|
|
|
# ---------------
|
|
|
|
# Libtoolize is part of Libtool!
|
|
|
|
func_libtoolize ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
2010-09-25 05:26:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## ---------------------------- ##
|
|
|
|
## Libtool bootstrap functions. ##
|
|
|
|
## ---------------------------- ##
|
|
|
|
|
|
|
|
# libtool_prep
|
|
|
|
# ------------
|
|
|
|
# Libtool bootstrap initialisation after successful option parse and
|
|
|
|
# validation.
|
|
|
|
libtool_prep ()
|
|
|
|
{
|
2014-11-19 00:39:21 +08:00
|
|
|
$debug_cmd
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# initial clean-up of checked out tree
|
|
|
|
find . -depth \( -name autom4te.cache -o -name libtool \) -print \
|
|
|
|
| grep -v '{arch}' \
|
|
|
|
| xargs rm -rf
|
|
|
|
|
|
|
|
# remove obsolete file droppings from old Libtool versions
|
|
|
|
for file in $libtool_obsolete_files; do
|
|
|
|
rm -f $file
|
|
|
|
done
|
|
|
|
}
|
|
|
|
func_add_hook func_prep libtool_prep
|
|
|
|
|
|
|
|
|
2011-10-19 00:24:53 +08:00
|
|
|
# libtool_add_libltdl_copying
|
|
|
|
# ---------------------------
|
|
|
|
# Use the canonical COPYING.LESSERv2 from gnulib.
|
|
|
|
libtool_add_libltdl_copying ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
|
|
|
func_gnulib_tool_copy_file doc/COPYING.LESSERv2 libltdl/COPYING.LIB
|
|
|
|
}
|
|
|
|
func_add_hook func_gnulib_tool libtool_add_libltdl_copying
|
|
|
|
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# libtool_build_prerequisites
|
|
|
|
# ---------------------------
|
|
|
|
# Libtool generates some files that are required before any autotools
|
|
|
|
# can be run successfully.
|
|
|
|
libtool_build_prerequisites ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
|
|
|
$require_build_aux
|
2011-11-24 19:36:04 +08:00
|
|
|
$require_ltdl_dir
|
2010-09-25 05:26:00 +08:00
|
|
|
$require_macro_dir
|
|
|
|
$require_package
|
|
|
|
$require_package_bugreport
|
|
|
|
$require_package_name
|
|
|
|
$require_package_url
|
|
|
|
$require_package_version
|
|
|
|
|
|
|
|
# Whip up a dirty Makefile:
|
2011-11-01 13:29:48 +08:00
|
|
|
makes='Makefile.am libltdl/ltdl.mk'
|
2010-09-25 05:26:00 +08:00
|
|
|
rm -f Makefile
|
|
|
|
{
|
|
|
|
echo "aux_dir = $build_aux"
|
|
|
|
echo "ltdl_dir = $ltdl_dir"
|
|
|
|
echo "macro_dir = $macro_dir"
|
2012-10-24 10:58:11 +08:00
|
|
|
|
|
|
|
# The following allow us to tie bootstrap-deps output verbosity
|
|
|
|
# into the bootstrap --verbose option:
|
|
|
|
echo 'AM_V_GEN = $(am__v_GEN_$(V))'
|
|
|
|
echo 'am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))'
|
|
|
|
echo 'am__v_GEN_0 = @echo " GEN " $@;'
|
|
|
|
echo 'AM_V_at = $(am__v_at_$(V))'
|
|
|
|
echo 'am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))'
|
|
|
|
echo 'am__v_at_0 = @'
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
$SED '/^if /,/^endif$/d;/^else$/,/^endif$/d;/^include /d' $makes
|
|
|
|
} > Makefile
|
|
|
|
|
|
|
|
# Building distributed files from configure is bad for automake, so we
|
|
|
|
# generate them here, and have Makefile rules to keep them up to date.
|
2012-10-24 11:17:24 +08:00
|
|
|
func_show_eval "$MAKE bootstrap-deps \
|
2012-10-24 10:58:11 +08:00
|
|
|
AM_DEFAULT_VERBOSITY=0 `$opt_verbose && echo V=1` \
|
2012-10-24 11:17:24 +08:00
|
|
|
PACKAGE='$package' PACKAGE_BUGREPORT='$package_bugreport' \
|
|
|
|
PACKAGE_NAME='$package_name' PACKAGE_URL='$package_url' \
|
|
|
|
SED='$SED' srcdir=. VERSION='$package_version'"
|
2010-09-25 05:26:00 +08:00
|
|
|
status=$?
|
|
|
|
|
|
|
|
rm -f Makefile
|
|
|
|
test 0 -eq "$status" ||exit $EXIT_FAILURE
|
|
|
|
}
|
2011-10-19 00:24:53 +08:00
|
|
|
func_add_hook func_gnulib_tool libtool_build_prerequisites
|
2010-09-25 05:26:00 +08:00
|
|
|
|
|
|
|
|
2014-01-03 11:01:53 +08:00
|
|
|
# libtool_autoreconf_libltdl
|
|
|
|
# --------------------------
|
|
|
|
# Libtldl directory needs to be autoreconfed too.
|
|
|
|
libtool_autoreconf_libltdl ()
|
2012-09-16 12:34:19 +08:00
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
2014-01-03 11:01:53 +08:00
|
|
|
# Also bootstrap libltdl ready for installation.
|
|
|
|
func_autoreconf libltdl
|
2012-09-16 12:34:19 +08:00
|
|
|
}
|
2014-01-03 11:01:53 +08:00
|
|
|
func_add_hook func_reconfigure libtool_autoreconf_libltdl
|
2012-09-16 12:34:19 +08:00
|
|
|
|
|
|
|
|
2011-10-19 00:24:53 +08:00
|
|
|
# libtool_readme_release_package_substitutions
|
|
|
|
# --------------------------------------------
|
|
|
|
# Show our own package details instead of generic strings.
|
|
|
|
libtool_readme_release_package_substitutions ()
|
2011-10-18 22:23:31 +08:00
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
2011-10-19 00:24:53 +08:00
|
|
|
$require_build_aux
|
|
|
|
$require_package
|
|
|
|
|
|
|
|
my_readme=README-release
|
|
|
|
|
|
|
|
test -f "$my_readme" \
|
syntax-check: fix violations and implement sc_old_style_quoting.
Modern GNU ASCII quoting in output and comments is done
'like this'.
* cfg.mk (sc_old_style_quoting): Try to catch most instances
of `old style quoting' so that it is not accidentally re-
introduced to the code.
* HACKING, Makefile.am, NEWS, PORTING, README, TODO, bootstrap,
bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in,
doc/libtool.texi, 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/libltdl/slist.h, libltdl/loaders/loadlibrary.c,
libltdl/ltdl.c, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4, m4/ltsugar.m4,
tests/cmdline_wrap.at, tests/configure-iface.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-mingw.at, tests/destdir.at, tests/execute-mode.at,
tests/f77demo.at, tests/fail.at, tests/inherited_flags.at,
tests/libtool.at, tests/libtoolize.at, tests/lt_dladvise.at,
tests/lt_dlexit.at, tests/mdemo.at, tests/need_lib_prefix.at,
tests/old-ltdl-iface.at, tests/old-m4-iface.at, tests/static.at,
tests/stresstest.at, tests/testsuite.at, tests/versioning.at:
Convert to upright quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-22 00:41:07 +08:00
|
|
|
|| func_fatal_error "error: '$my_readme' does not exist"
|
2011-10-19 00:24:53 +08:00
|
|
|
|
|
|
|
# Perform substitutions to a temporary file
|
|
|
|
$SED -e "\
|
syntax-check: fix violations and implement sc_prohibit_sed_s_comma.
I like to name temporary directories that I will remove shortly
with two leading commas so that they sort lexicographically at
the top of `ls' output. Now, `./configure
--prefix=`pwd`/,,inst' works again, for the first time in
several years.
* cfg.mk (sc_prohibit_sed_s_comma): Comma is too common a
character to use routinely as the separator for sed
substitutions on file paths and other variables determined by
the user, causing bugs like the one I describe above. Make sure
we don't accidentally reintroduce any comma separators in
future.
* Makefile.am, bootstrap, bootstrap.conf, build-aux/extract-trace,
build-aux/general.m4sh, build-aux/git-hooks/commit-msg,
build-aux/git-log-fix, build-aux/ltmain.m4sh, libtoolize.m4sh,
m4/libtool.m4, m4/ltdl.m4, tests/cdemo-undef.test,
tests/cmdline_wrap.at, tests/darwin.at, tests/defs.m4sh,
tests/getopt-m4sh.at, tests/install.at, tests/libtoolize.at,
tests/mdemo/Makefile.am, tests/need_lib_prefix.at,
tests/sysroot.at, tests/tagdemo-undef.test, tests/testsuite.at:
Try to use `|' as the default separator wherever possible,
otherwise something else that doesn't occur in the substitution
expression.
* NEWS: Updated.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-21 19:02:23 +08:00
|
|
|
s|\@PACKAGE\@|$package|g
|
2011-10-19 00:24:53 +08:00
|
|
|
" "$my_readme" > "${my_readme}T" \
|
|
|
|
&& mv "${my_readme}T" "$my_readme"
|
2011-10-18 22:23:31 +08:00
|
|
|
}
|
2011-10-19 00:24:53 +08:00
|
|
|
func_add_hook func_fini libtool_readme_release_package_substitutions
|
2011-10-18 22:23:31 +08:00
|
|
|
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# libtool_fudge_timestamps
|
|
|
|
# ------------------------
|
|
|
|
# Autoheader valiantly tries to prevent needless reconfigurations by
|
|
|
|
# not changing the timestamp of config-h.in unless the file contents
|
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>
2013-08-23 12:12:57 +08:00
|
|
|
# are updated. Unfortunately config-h.in depends on aclocal.m4, which
|
2010-09-25 05:26:00 +08:00
|
|
|
# *is* updated, so running 'libtoolize --ltdl=. && configure && make'
|
Fix various typos
* NEWS: Fix various typos.
* NO-THANKS, README.md, TODO, bootstrap, bootstrap.conf,
build-aux/edit-readme-alpha, build-aux/git-log-fix, build-aux/ltmain.in,
doc/libtool.texi, libltdl/libltdl/lt_error.h, libltdl/lt__argz.c,
libltdl/ltdl.c, libtoolize.in, tests/depdemo.at, tests/link-order.at: Likewise.
* cfg.mk (old_NEWS_hash): Update.
Copyright-paperwork-exempt: Yes
2023-11-23 16:44:21 +08:00
|
|
|
# causes autoheader to be called... undesirable for users that do not
|
2024-01-18 13:19:05 +08:00
|
|
|
# have it! Fudge the timestamp to prevent that. But only fudge it as
|
|
|
|
# much as configure since configure depends on config-h.in and we don't
|
|
|
|
# want to require autoconf either.
|
2010-09-25 05:26:00 +08:00
|
|
|
libtool_fudge_timestamps ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
2024-01-18 13:19:05 +08:00
|
|
|
(
|
|
|
|
cd libltdl
|
|
|
|
touch -r configure config-h.in
|
|
|
|
)
|
2010-09-25 05:26:00 +08:00
|
|
|
}
|
|
|
|
func_add_hook func_fini libtool_fudge_timestamps
|
|
|
|
|
|
|
|
|
|
|
|
# libtool_cleanup
|
|
|
|
# ---------------
|
|
|
|
libtool_cleanup ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
|
|
|
# These files can cause an infinite configure loop if left behind.
|
|
|
|
rm -f Makefile libltdl/Makefile libtool vcl.tmp
|
|
|
|
}
|
|
|
|
func_add_hook func_fini libtool_cleanup
|
|
|
|
|
|
|
|
|
|
|
|
# libtool_check_for_bogus_macros
|
|
|
|
# ------------------------------
|
syntax-check: fix violations and implement sc_old_style_quoting.
Modern GNU ASCII quoting in output and comments is done
'like this'.
* cfg.mk (sc_old_style_quoting): Try to catch most instances
of `old style quoting' so that it is not accidentally re-
introduced to the code.
* HACKING, Makefile.am, NEWS, PORTING, README, TODO, bootstrap,
bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in,
doc/libtool.texi, 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/libltdl/slist.h, libltdl/loaders/loadlibrary.c,
libltdl/ltdl.c, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4, m4/ltsugar.m4,
tests/cmdline_wrap.at, tests/configure-iface.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-mingw.at, tests/destdir.at, tests/execute-mode.at,
tests/f77demo.at, tests/fail.at, tests/inherited_flags.at,
tests/libtool.at, tests/libtoolize.at, tests/lt_dladvise.at,
tests/lt_dlexit.at, tests/mdemo.at, tests/need_lib_prefix.at,
tests/old-ltdl-iface.at, tests/old-m4-iface.at, tests/static.at,
tests/stresstest.at, tests/testsuite.at, tests/versioning.at:
Convert to upright quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-22 00:41:07 +08:00
|
|
|
# Try to catch the case where 'aclocal' pulls installed libtool macro
|
2010-09-25 05:26:00 +08:00
|
|
|
# file contents from another version of libtool into the current package
|
syntax-check: fix violations and implement sc_old_style_quoting.
Modern GNU ASCII quoting in output and comments is done
'like this'.
* cfg.mk (sc_old_style_quoting): Try to catch most instances
of `old style quoting' so that it is not accidentally re-
introduced to the code.
* HACKING, Makefile.am, NEWS, PORTING, README, TODO, bootstrap,
bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in,
doc/libtool.texi, 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/libltdl/slist.h, libltdl/loaders/loadlibrary.c,
libltdl/ltdl.c, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4, m4/ltsugar.m4,
tests/cmdline_wrap.at, tests/configure-iface.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-mingw.at, tests/destdir.at, tests/execute-mode.at,
tests/f77demo.at, tests/fail.at, tests/inherited_flags.at,
tests/libtool.at, tests/libtoolize.at, tests/lt_dladvise.at,
tests/lt_dlexit.at, tests/mdemo.at, tests/need_lib_prefix.at,
tests/old-ltdl-iface.at, tests/old-m4-iface.at, tests/static.at,
tests/stresstest.at, tests/testsuite.at, tests/versioning.at:
Convert to upright quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-22 00:41:07 +08:00
|
|
|
# 'aclocal.m4'.
|
2010-09-25 05:26:00 +08:00
|
|
|
libtool_check_for_bogus_macros ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
2015-09-26 23:47:56 +08:00
|
|
|
$require_build_aux
|
|
|
|
$build_aux/no-bogus-m4-defines || exit 1
|
2010-09-25 05:26:00 +08:00
|
|
|
}
|
|
|
|
func_add_hook func_fini libtool_check_for_bogus_macros
|
|
|
|
|
|
|
|
|
|
|
|
# libtool_cleanup_empty_dirs
|
|
|
|
# --------------------------
|
|
|
|
# Gnulib leaves behind a few files we don't need.
|
|
|
|
libtool_cleanup_empty_dirs ()
|
|
|
|
{
|
|
|
|
$debug_cmd
|
|
|
|
|
2014-11-19 01:08:33 +08:00
|
|
|
my_gnulib_source=${source_base:-'lib'}
|
|
|
|
|
2011-10-26 13:58:35 +08:00
|
|
|
if test -d "$my_gnulib_source"; then
|
|
|
|
rm -f "$my_gnulib_source/.gitignore" "$my_gnulib_source/Makefile.am" || exit 1
|
|
|
|
rmdir "$my_gnulib_source" || exit 1
|
|
|
|
fi
|
2010-09-25 05:26:00 +08:00
|
|
|
}
|
|
|
|
func_add_hook func_fini libtool_cleanup_empty_dirs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## -------------------- ##
|
|
|
|
## Resource management. ##
|
|
|
|
## -------------------- ##
|
|
|
|
|
2011-11-24 19:36:04 +08:00
|
|
|
# require_ltdl_dir
|
|
|
|
# ----------------
|
|
|
|
# Extract libtool's ltdl directory from configure.ac.
|
|
|
|
require_ltdl_dir=func_require_ltdl_dir
|
|
|
|
func_require_ltdl_dir ()
|
|
|
|
{
|
2014-11-19 00:39:21 +08:00
|
|
|
$debug_cmd
|
|
|
|
|
2011-11-24 19:36:04 +08:00
|
|
|
$require_configure_ac
|
|
|
|
|
|
|
|
func_extract_trace LT_CONFIG_LTDL_DIR
|
|
|
|
|
|
|
|
save_ifs=$IFS
|
|
|
|
IFS=:
|
|
|
|
set dummy $func_extract_trace_result
|
|
|
|
IFS=$save_ifs
|
|
|
|
shift
|
|
|
|
|
|
|
|
ltdl_dir=$1
|
|
|
|
func_check_configuration ltdl_dir \
|
|
|
|
"LT_CONFIG_LTDL_DIR([name of your libltdl directory])"
|
|
|
|
|
|
|
|
func_verbose "ltdl_dir='$ltdl_dir'"
|
|
|
|
|
|
|
|
require_ltdl_dir=:
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
# require_package_url
|
|
|
|
# -------------------
|
|
|
|
# Ensure that package_url has a sensible default.
|
|
|
|
require_package_url=libtool_require_package_url
|
|
|
|
libtool_require_package_url ()
|
|
|
|
{
|
2014-11-19 00:39:21 +08:00
|
|
|
$debug_cmd
|
|
|
|
|
2010-09-25 05:26:00 +08:00
|
|
|
$require_configure_ac
|
|
|
|
|
|
|
|
func_extract_trace AC_INIT
|
syntax-check: fix violations and implement sc_trailing_blank-non-rfc3676.
* cfg.mk (local-checks-to-fix): Move sc_trailing_blank from
here...
(local-checks-to-skip): ...to here, because otherwise it flags
valid RFC3676 signature blocks.
(sc_trailing_blank-non-rfc3676): An improved sc_trailing_blank
implementation that doesn't flag signature blocks as violations.
* Makefile.am, bootstrap.conf, doc/PLATFORMS,
libltdl/config/ltmain.m4sh, libltdl/m4/libtool.m4,
libltdl/m4/lt~obsolete.m4, tests/archive-in-archive.at,
tests/convenience.at, tests/darwin.at, tests/depdemo/l1/l1.c,
tests/depdemo/l2/l2.c, tests/depdemo/l3/l3.c,
tests/depdemo/l4/l4.c, tests/f77demo/README,
tests/f77demo/cprogram.c, tests/f77demo/foof.f,
tests/f77demo/foof2.f, tests/f77demo/foof3.f,
tests/f77demo/fprogram.f, tests/fcdemo/README,
tests/fcdemo/cprogram.c, tests/fcdemo/foof.f90,
tests/fcdemo/foof2.f90, tests/fcdemo/foof3.f90,
tests/fcdemo/fprogram.f90, tests/mdemo/README,
tests/mdemo/main.c, tests/mdemo/mlib.c, tests/objectlist.test,
tests/static.at, tests/template.at, tests/testsuite.at: Remove
trailing blanks.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-10-25 12:16:02 +08:00
|
|
|
|
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.
Contrary to popular belief, Bourne shell does not resplit RHS of
assignments after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (_sc_search_regexp_or_exclude): A variation of gnulib's
_sc_search_regexp that also allows individual exclusions at the
site of what would otherwise match by adding a comment.
(sc_useless_quotes_in_assignment): New syntax-check rule to
ensure we don't reintroduce useless quoted assignments.
* bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/general.m4sh, build-aux/getopt.m4sh,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
doc/libtool.texi, libtoolize.m4sh, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/cwrapper.at, tests/defs.m4sh,
tests/lalib-syntax.at, tests/libtoolize.at,
tests/lt_dlopenext.at, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/need_lib_prefix.at,
tests/no-executables.at, tests/quote.test, tests/suffix.test:
Remove spurious quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-16 19:59:01 +08:00
|
|
|
save_IFS=$IFS
|
2010-09-25 05:26:00 +08:00
|
|
|
IFS=:
|
|
|
|
set dummy $func_extract_trace_result
|
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.
Contrary to popular belief, Bourne shell does not resplit RHS of
assignments after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (_sc_search_regexp_or_exclude): A variation of gnulib's
_sc_search_regexp that also allows individual exclusions at the
site of what would otherwise match by adding a comment.
(sc_useless_quotes_in_assignment): New syntax-check rule to
ensure we don't reintroduce useless quoted assignments.
* bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/general.m4sh, build-aux/getopt.m4sh,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
doc/libtool.texi, libtoolize.m4sh, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/cwrapper.at, tests/defs.m4sh,
tests/lalib-syntax.at, tests/libtoolize.at,
tests/lt_dlopenext.at, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/need_lib_prefix.at,
tests/no-executables.at, tests/quote.test, tests/suffix.test:
Remove spurious quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-16 19:59:01 +08:00
|
|
|
IFS=$save_IFS
|
2010-09-25 05:26:00 +08:00
|
|
|
shift
|
|
|
|
|
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.
Contrary to popular belief, Bourne shell does not resplit RHS of
assignments after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (_sc_search_regexp_or_exclude): A variation of gnulib's
_sc_search_regexp that also allows individual exclusions at the
site of what would otherwise match by adding a comment.
(sc_useless_quotes_in_assignment): New syntax-check rule to
ensure we don't reintroduce useless quoted assignments.
* bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/general.m4sh, build-aux/getopt.m4sh,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
doc/libtool.texi, libtoolize.m4sh, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/cwrapper.at, tests/defs.m4sh,
tests/lalib-syntax.at, tests/libtoolize.at,
tests/lt_dlopenext.at, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/need_lib_prefix.at,
tests/no-executables.at, tests/quote.test, tests/suffix.test:
Remove spurious quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-16 19:59:01 +08:00
|
|
|
test -n "$package_url " || package_url=$5
|
2010-09-25 05:26:00 +08:00
|
|
|
test -n "$package_url" || {
|
syntax-check: fix violations and implement sc_old_style_quoting.
Modern GNU ASCII quoting in output and comments is done
'like this'.
* cfg.mk (sc_old_style_quoting): Try to catch most instances
of `old style quoting' so that it is not accidentally re-
introduced to the code.
* HACKING, Makefile.am, NEWS, PORTING, README, TODO, bootstrap,
bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in,
doc/libtool.texi, 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/libltdl/slist.h, libltdl/loaders/loadlibrary.c,
libltdl/ltdl.c, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4, m4/ltsugar.m4,
tests/cmdline_wrap.at, tests/configure-iface.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-mingw.at, tests/destdir.at, tests/execute-mode.at,
tests/f77demo.at, tests/fail.at, tests/inherited_flags.at,
tests/libtool.at, tests/libtoolize.at, tests/lt_dladvise.at,
tests/lt_dlexit.at, tests/mdemo.at, tests/need_lib_prefix.at,
tests/old-ltdl-iface.at, tests/old-m4-iface.at, tests/static.at,
tests/stresstest.at, tests/testsuite.at, tests/versioning.at:
Convert to upright quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-22 00:41:07 +08:00
|
|
|
# How to extract the parameters for 'make bootstrap-deps' from
|
2010-09-25 05:26:00 +08:00
|
|
|
# configure.ac. This is very specific to the way Libtool's
|
|
|
|
# configure.ac layout.
|
syntax-check: fix violations and implement sc_prohibit_sed_s_comma.
I like to name temporary directories that I will remove shortly
with two leading commas so that they sort lexicographically at
the top of `ls' output. Now, `./configure
--prefix=`pwd`/,,inst' works again, for the first time in
several years.
* cfg.mk (sc_prohibit_sed_s_comma): Comma is too common a
character to use routinely as the separator for sed
substitutions on file paths and other variables determined by
the user, causing bugs like the one I describe above. Make sure
we don't accidentally reintroduce any comma separators in
future.
* Makefile.am, bootstrap, bootstrap.conf, build-aux/extract-trace,
build-aux/general.m4sh, build-aux/git-hooks/commit-msg,
build-aux/git-log-fix, build-aux/ltmain.m4sh, libtoolize.m4sh,
m4/libtool.m4, m4/ltdl.m4, tests/cdemo-undef.test,
tests/cmdline_wrap.at, tests/darwin.at, tests/defs.m4sh,
tests/getopt-m4sh.at, tests/install.at, tests/libtoolize.at,
tests/mdemo/Makefile.am, tests/need_lib_prefix.at,
tests/sysroot.at, tests/tagdemo-undef.test, tests/testsuite.at:
Try to use `|' as the default separator wherever possible,
otherwise something else that doesn't occur in the substitution
expression.
* NEWS: Updated.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2011-11-21 19:02:23 +08:00
|
|
|
sed_extract_package_url='s|#.*$||; s|^dnl .*$||; s| dnl .*$||;
|
2010-09-25 05:26:00 +08:00
|
|
|
/AC_SUBST([[]*PACKAGE_URL/{
|
|
|
|
s|.*AC_SUBST([[ ]*PACKAGE_URL[] ]*,[[ ]*|package_url="|
|
|
|
|
s|[]) ]*$|"|
|
|
|
|
p
|
|
|
|
}'
|
|
|
|
|
|
|
|
# Extract package_url setting from configure.ac.
|
|
|
|
eval `$SED -n "$sed_extract_package_url" < configure.ac`
|
|
|
|
}
|
|
|
|
|
|
|
|
test -n "$package_url" \
|
syntax-check: fix violations and implement sc_old_style_quoting.
Modern GNU ASCII quoting in output and comments is done
'like this'.
* cfg.mk (sc_old_style_quoting): Try to catch most instances
of `old style quoting' so that it is not accidentally re-
introduced to the code.
* HACKING, Makefile.am, NEWS, PORTING, README, TODO, bootstrap,
bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/git-hooks/commit-msg, build-aux/ltmain.in,
doc/libtool.texi, 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/libltdl/slist.h, libltdl/loaders/loadlibrary.c,
libltdl/ltdl.c, libltdl/slist.c, libtoolize.in, m4/argz.m4,
m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4, m4/ltsugar.m4,
tests/cmdline_wrap.at, tests/configure-iface.at, tests/demo.at,
tests/depdemo.at, tests/deplib-in-subdir.at,
tests/deplibs-mingw.at, tests/destdir.at, tests/execute-mode.at,
tests/f77demo.at, tests/fail.at, tests/inherited_flags.at,
tests/libtool.at, tests/libtoolize.at, tests/lt_dladvise.at,
tests/lt_dlexit.at, tests/mdemo.at, tests/need_lib_prefix.at,
tests/old-ltdl-iface.at, tests/old-m4-iface.at, tests/static.at,
tests/stresstest.at, tests/testsuite.at, tests/versioning.at:
Convert to upright quotes.
Signed-off-by: Gary V. Vaughan <gary@gnu.org>
2012-10-22 00:41:07 +08:00
|
|
|
|| func_fatal_error "unable to determine 'package_url' from '$configure_ac'."
|
2010-09-25 05:26:00 +08:00
|
|
|
|
|
|
|
func_verbose "package_url='$package_url'"
|
|
|
|
|
|
|
|
require_package_url=:
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Local variables:
|
|
|
|
# mode: shell-script
|
|
|
|
# sh-indentation: 2
|
|
|
|
# eval: (add-hook 'write-file-hooks 'time-stamp)
|
|
|
|
# time-stamp-start: "# bootstrap.conf (GNU Libtool) version "
|
|
|
|
# time-stamp-format: "%:y-%02m-%02d"
|
|
|
|
# time-stamp-end: "$"
|
|
|
|
# End:
|