aboutsummaryrefslogtreecommitdiff
path: root/fastjar/aclocal.m4
diff options
context:
space:
mode:
Diffstat (limited to 'fastjar/aclocal.m4')
-rw-r--r--fastjar/aclocal.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/fastjar/aclocal.m4 b/fastjar/aclocal.m4
index f23ba29..29f008d 100644
--- a/fastjar/aclocal.m4
+++ b/fastjar/aclocal.m4
@@ -125,3 +125,36 @@ for am_file in <<$1>>; do
done<<>>dnl>>)
changequote([,]))])
+# Add --enable-maintainer-mode option to configure.
+# From Jim Meyering
+
+# serial 1
+
+AC_DEFUN(AM_MAINTAINER_MODE,
+[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode is disabled by default
+ AC_ARG_ENABLE(maintainer-mode,
+[ --enable-maintainer-mode enable make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer],
+ USE_MAINTAINER_MODE=$enableval,
+ USE_MAINTAINER_MODE=no)
+ AC_MSG_RESULT($USE_MAINTAINER_MODE)
+ AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST(MAINT)dnl
+]
+)
+
+# Define a conditional.
+
+AC_DEFUN(AM_CONDITIONAL,
+[AC_SUBST($1_TRUE)
+AC_SUBST($1_FALSE)
+if $2; then
+ $1_TRUE=
+ $1_FALSE='#'
+else
+ $1_TRUE='#'
+ $1_FALSE=
+fi])
+