aboutsummaryrefslogtreecommitdiff
path: root/gdb/aclocal.m4
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-04-13 05:33:41 +0000
committerAndrew Cagney <cagney@redhat.com>2000-04-13 05:33:41 +0000
commit413ccac7ea09cb01801ef96ecc861278afc3574a (patch)
tree121878608c9d601736cdcaefa0f5156f5aab091d /gdb/aclocal.m4
parentacf7b9e14f07331bd010f673555eb9f1d324e391 (diff)
downloadgdb-413ccac7ea09cb01801ef96ecc861278afc3574a.zip
gdb-413ccac7ea09cb01801ef96ecc861278afc3574a.tar.gz
gdb-413ccac7ea09cb01801ef96ecc861278afc3574a.tar.bz2
Only re-generate copying.c when maintainer mode.
Diffstat (limited to 'gdb/aclocal.m4')
-rw-r--r--gdb/aclocal.m433
1 files changed, 33 insertions, 0 deletions
diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4
index 1a11832..de9e2d5 100644
--- a/gdb/aclocal.m4
+++ b/gdb/aclocal.m4
@@ -872,6 +872,39 @@ dnl AC_SUBST(TIX_BUILD_INCLUDES)
dnl AC_SUBST(TIX_LIB_SPEC)
])
+# 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])
+
# serial 1