aclocal: diagnose non-existing directories in AC_CONFIG_MACRO_DIRS better
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 4 Jul 2012 13:37:46 +0000 (15:37 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 10 Nov 2012 09:21:08 +0000 (10:21 +0100)
commitfd60ad28737e90d8732f28ce85d6cdaa781bdeed
treef997eb3102fabb8f4510b1b5924a709a34e1f9da
parentd2155d50e6ef6d11845583af0113a717642f53df
aclocal: diagnose non-existing directories in AC_CONFIG_MACRO_DIRS better

This new implementation ensures that any directory (possibly excluding
the first one, if the '--install' option is used) that is declared with
AC_CONFIG_MACRO_DIRS and that is non-existent will cause an error from
aclocal.

* aclocal.in (scan_m4_dirs): Add a new argument, telling whether it's OK
for the scanned directory to be non-existing.  Adjust the implementation
accordingly.
($first_user_m4dir): Remove, no more needed.
(scan_m4_files): Update 'scan_m4_dirs' invocations so that aclocal will
not complain if the first user macro directory is non-existing and the
'--install' option is given: such directory will be created later by
aclocal itself.
* t/aclocal-macrodir.tap: Do not mark the last test as TODO anymore;
it now passes.  Make stricter by ensuring a non-existing directory in
AC_CONFIG_MACRO_DIRS causes an hard error, not a warning.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
aclocal.in
t/aclocal-macrodir.tap
t/aclocal-macrodirs.tap