diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-04 15:37:46 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-11-10 10:21:08 +0100 |
commit | fd60ad28737e90d8732f28ce85d6cdaa781bdeed (patch) | |
tree | f997eb3102fabb8f4510b1b5924a709a34e1f9da /t/aclocal-macrodir.tap | |
parent | d2155d50e6ef6d11845583af0113a717642f53df (diff) | |
download | automake-fd60ad28737e90d8732f28ce85d6cdaa781bdeed.tar.gz |
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>
Diffstat (limited to 't/aclocal-macrodir.tap')
-rwxr-xr-x | t/aclocal-macrodir.tap | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/aclocal-macrodir.tap b/t/aclocal-macrodir.tap index 5ef1ee443..4114edb3a 100755 --- a/t/aclocal-macrodir.tap +++ b/t/aclocal-macrodir.tap @@ -164,7 +164,7 @@ AC_INIT([oops], [1.0]) AC_CONFIG_MACRO_DIR([non-existent]) END -not $ACLOCAL 2>stderr \ +not $ACLOCAL -Wnone 2>stderr \ && cat stderr >&2 \ && grep "couldn't open directory 'non-existent'" stderr \ || r='not ok' @@ -173,5 +173,4 @@ test_end #--------------------------------------------------------------------------- - : |