If you use AM_MAINTAINER_MODE([enable]), configure will print > checking whether to disable maintainer-specific portions of Makefiles ... yes
when --disable-maintainer-mode was *not* given on the command line, and > checking whether to disable maintainer-specific portions of Makefiles ... no when it *was* given. This states the opposite of what has actually happened. The easiest way to fix this cosmetic bug is to not use am_maintainer_other in the first argument to AC_MSG_CHECKING. The result code ($USE_MAINTAINER_MODE) is "yes" if maintainer mode is enabled and "no" if it isn't, regardless of what the default was, so it will always be correct to say "checking whether to enable ...". Patch attached. (Bug found in automake/aclocal 1.11, but maintainer.m4 doesn't seem to have been modified in a long time.) zw
--- maintainer.m4 2010-02-01 16:59:15.000000000 -0800 +++ maintainer.m4 2011-10-27 10:05:55.876911074 -0700 @@ -1,7 +1,7 @@ # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2011 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation @@ -22,7 +22,7 @@ [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) +AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful