]> git.ipfire.org Git - thirdparty/libtool.git/commit
Add an XSI replacement for func_split_short_opt, with test cases.
authorGary V. Vaughan <gary@gnu.org>
Sun, 27 Jun 2010 10:21:59 +0000 (17:21 +0700)
committerGary V. Vaughan <gary@gnu.org>
Sun, 27 Jun 2010 22:41:36 +0000 (05:41 +0700)
commit448445c6f8767ca83d019c126fdf894b927792fe
treeb7deb02f1b4d2b30f0daaad763995e4277d2587c
parent0483a52e8b841709ccfd8a80c60db018e8451c1c
Add an XSI replacement for func_split_short_opt, with test cases.

* libltdl/config/getopt.m4sh (m4go_shortnoargs): Remove 'v' now
that getopt.m4sh doesn't steal that letter for the --version
short option.
* libltdl/config/ltmain.m4sh (M4SH_GETOPTS): We can now use 'v'
as a short option for '--verbose'.
* libltdl/config/getopt.m4sh (m4go_printopts): Add back in the
leading '-' for remaining non-argument short options.
(func_split_short_opt): Use the correct sed script variable.
* libltdl/m4/libtool.m4 (_LT_CHECK_SHELL_FEATURES): Also ensure
that XSI substring extraction is supported.
(_LT_PROG_XSI_SHELLFNS): Use XSI substring extraction to split
short options to avoid unnecessary forks if the host shell
supports that.
* tests/getopt-m4sh.at: New tests for getopt.m4sh coverage.
* Makefile.am (TESTSUITE_AT): Add getopt-m4sh.at.
(TESTS_ENVIRONMENT): Pass M4SH and SED for substition into the
m4sh expansion performed in tests/getopt-m4sh.at.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
ChangeLog
Makefile.am
libltdl/config/getopt.m4sh
libltdl/config/ltmain.m4sh
libltdl/m4/libtool.m4
tests/getopt-m4sh.at [new file with mode: 0644]