aboutsummaryrefslogtreecommitdiff
path: root/libgloss/aclocal.m4
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-02-22 17:09:16 -0500
committerMike Frysinger <vapier@gentoo.org>2022-02-22 17:09:16 -0500
commit4ed502ba02270adee7c46bb738374cab867baee1 (patch)
tree5eb779cecd20a9cfee8e5269ff71e0c97b60a906 /libgloss/aclocal.m4
parentf2dc492df0f310aec97b5fc5847cca8d6cb70a33 (diff)
downloadnewlib-4ed502ba02270adee7c46bb738374cab867baee1.zip
newlib-4ed502ba02270adee7c46bb738374cab867baee1.tar.gz
newlib-4ed502ba02270adee7c46bb738374cab867baee1.tar.bz2
libgloss: enable maintainer mode support
Use AM_MAINTAINER_MODE so devs have to opt-in to automatic rebuilds of autotools. This matches what newlib (and most every other GNU toolchain package) does with automake.
Diffstat (limited to 'libgloss/aclocal.m4')
-rw-r--r--libgloss/aclocal.m436
1 files changed, 36 insertions, 0 deletions
diff --git a/libgloss/aclocal.m4 b/libgloss/aclocal.m4
index a74c735..b6bc2c0 100644
--- a/libgloss/aclocal.m4
+++ b/libgloss/aclocal.m4
@@ -646,6 +646,42 @@ if test x"${install_sh+set}" != xset; then
fi
AC_SUBST([install_sh])])
+# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
+# From Jim Meyering
+
+# Copyright (C) 1996-2017 Free Software Foundation, Inc.
+#
+# This file is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# AM_MAINTAINER_MODE([DEFAULT-MODE])
+# ----------------------------------
+# Control maintainer-specific portions of Makefiles.
+# Default is to disable them, unless 'enable' is passed literally.
+# For symmetry, 'disable' may be passed as well. Anyway, the user
+# can override the default with the --enable/--disable switch.
+AC_DEFUN([AM_MAINTAINER_MODE],
+[m4_case(m4_default([$1], [disable]),
+ [enable], [m4_define([am_maintainer_other], [disable])],
+ [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 enable maintainer-specific portions of Makefiles])
+ dnl maintainer-mode's default is 'disable' unless 'enable' is passed
+ AC_ARG_ENABLE([maintainer-mode],
+ [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
+ am_maintainer_other[ make rules and dependencies not useful
+ (and sometimes confusing) to the casual installer])],
+ [USE_MAINTAINER_MODE=$enableval],
+ [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
+ AC_MSG_RESULT([$USE_MAINTAINER_MODE])
+ AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
+ MAINT=$MAINTAINER_MODE_TRUE
+ AC_SUBST([MAINT])dnl
+]
+)
+
# Check to see how 'make' treats includes. -*- Autoconf -*-
# Copyright (C) 2001-2017 Free Software Foundation, Inc.