bootstrap: extract *first* ACLOCAL_AMFLAGS -I argument.
commit670283ee701b1e8b781e8250ccf4911443e683eb
authorGary V. Vaughan <gary@gnu.org>
Fri, 19 Oct 2012 05:09:37 +0000 (19 12:09 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 19 Oct 2012 07:24:21 +0000 (19 14:24 +0700)
tree4ec9fd4f763d2c8e579edf8172e33502cd516b86
parent25b3dda2161d2893c0d642ace0ec13297dfbe835
bootstrap: extract *first* ACLOCAL_AMFLAGS -I argument.

* bootstrap (func_require_macro_dir): .* is greedy, so _G_sed_scan
as it was will always return the last -I argument, which is wrong.
Move to a shell loop to ensure we always get the first -I argument
if any.  (code from libtoolize.in).

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