Avoid getting bitten by CDPATH

2008-08-31 Thread Ralf Wildenhues
I'm not sure whether this patch is (at least partly) overkill, so I'd be glad about some feedback on this; thanks. When the user has CDPATH set, a 'cd $dir' may end up someplace unwanted (plus produce extraneous output), iff $dir is a relative directory not beginning with a dot. Now, the part I'm

[PATCH] Implement AM_MAINTAINER_MODE([DEFAULT-MODE]).

2008-08-31 Thread Ralf Wildenhues
* m4/maintainer.m4 (AM_MAINTAINER_MODE): Allow for an optional first argument of `enable' or `disable', setting the default. * doc/automake.texi (Optional, maintainer-mode): Document. * tests/mmode.test: New test. * tests/Makefile.am: Adjust. * NEWS: Update. Suggestion by Vincent Lefevre. Signed-o

Re: [PATCH] Implement AM_MAINTAINER_MODE([DEFAULT-MODE]).

2008-08-31 Thread Eric Blake
Ralf Wildenhues gmx.de> writes: > Somebody please check what I'm currently not seeing in the m4 fu I > tried (the test fails, because there is something wrong in > m4/maintainer.m4). Also a review of the rest would be nice as well. > > +[m4_if(m4_default([$1], [disable]), s/m4_if/m4_case/ >