Re: move to build-aux broke CVS m4
Gary V. Vaughan <gary <at> gnu.org>
2005-04-08 18:17:56 GMT
Hi Eric,
Eric Blake wrote:
> gnulib-tool --import, when parsing modules/gettext, adds
> build-aux/config.rpath to the file list. But for projects that don't yet
> have a build-aux directory, such as a fresh checkout of CVS m4, this breaks:
>
> cp: cannot create regular file `./build-aux/config.rpath': No such file or
> directory
>
> We need some way to make gnulib-tool respect the spelling of the target
> project's AC_CONFIG_AUX_DIR.
Here is an excerpt of CVS HEAD libtoolize that does exactly that (func
definitions should be obvious by their name, and $SED is substituted by
libtool's configure according to the findings of AC_PROG_SED):
configure_ac=configure.in
test -f configure.ac && configure_ac=configure.ac
test -f "$configure_ac" \
|| func_fatal_help "\`$configure_ac' does not exist"
# ---------------------------------------------------- #
# Probe macro usage in configure.ac and/or aclocal.m4. #
# ---------------------------------------------------- #
my_sed_traces='s,#.*$,,; s,^dnl .*$,,; s, dnl .*$,,;
/AC_CONFIG_AUX_DIR[[^_]]/ {
s,^.*AC_CONFIG_AUX_DIR([[[ ]*\([^])]]*\).*$,auxdir=\1,; p;
(Continue reading)