aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-05-10 10:31:49 +0200
committerFabian Groffen <grobian@gentoo.org>2019-05-10 10:31:49 +0200
commit6931c9525eaba81c17f828a390485d84968ac30a (patch)
treef6b248452d647a399479281b506d9b135f51f4c3 /configure
parentqmerge: implement keepdir and dodir, bug #682316 (diff)
downloadportage-utils-6931c9525eaba81c17f828a390485d84968ac30a.tar.gz
portage-utils-6931c9525eaba81c17f828a390485d84968ac30a.tar.bz2
portage-utils-6931c9525eaba81c17f828a390485d84968ac30a.zip
configure: add AM_MAINTAINER_MODE
default to enabled for git, default to disabled for releases use --disable-maintainer-mode with travis instead of touching files main developers should have the setup to regenerate all files properly, configure flag can be used by those that don't need/want the regen deps Bug: https://bugs.gentoo.org/682316 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure34
1 files changed, 34 insertions, 0 deletions
diff --git a/configure b/configure
index 370512c..d949e95 100755
--- a/configure
+++ b/configure
@@ -1711,6 +1711,9 @@ CPPFLAGS
LDFLAGS
CFLAGS
CC
+MAINT
+MAINTAINER_MODE_FALSE
+MAINTAINER_MODE_TRUE
AM_BACKSLASH
AM_DEFAULT_VERBOSITY
AM_DEFAULT_V
@@ -1780,6 +1783,7 @@ ac_subst_files=''
ac_user_opts='
enable_option_checking
enable_silent_rules
+enable_maintainer_mode
enable_dependency_tracking
enable_largefile
enable_shared
@@ -2422,6 +2426,9 @@ Optional Features:
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
+ --disable-maintainer-mode
+ disable make rules and dependencies not useful (and
+ sometimes confusing) to the casual installer
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
@@ -4281,6 +4288,29 @@ else
fi
AM_BACKSLASH='\'
# AM_INIT_AUTOMAKE([silent-rules]) is broken atm
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
+$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
+ # Check whether --enable-maintainer-mode was given.
+if test "${enable_maintainer_mode+set}" = set; then :
+ enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
+else
+ USE_MAINTAINER_MODE=yes
+fi
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
+$as_echo "$USE_MAINTAINER_MODE" >&6; }
+ if test $USE_MAINTAINER_MODE = yes; then
+ MAINTAINER_MODE_TRUE=
+ MAINTAINER_MODE_FALSE='#'
+else
+ MAINTAINER_MODE_TRUE='#'
+ MAINTAINER_MODE_FALSE=
+fi
+
+ MAINT=$MAINTAINER_MODE_TRUE
+
+
ac_config_headers="$ac_config_headers config.h"
@@ -35135,6 +35165,10 @@ else
am__EXEEXT_FALSE=
fi
+if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
+ as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
+fi
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
as_fn_error $? "conditional \"AMDEP\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5