forked from autoconf-archive/autoconf-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathax_maintainer_mode_auto_silent.m4
50 lines (48 loc) · 1.75 KB
/
ax_maintainer_mode_auto_silent.m4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# ===================================================================================
# https://www.gnu.org/software/autoconf-archive/ax_maintainer_mode_auto_silent.html
# ===================================================================================
#
# SYNOPSIS
#
# AX_MAINTAINER_MODE_AUTO_SILENT
#
# DESCRIPTION
#
# Set autotools to error/sleep settings so that they are not run when
# being erroneously triggered. Likewise make libtool-silent when libtool
# has been used.
#
# I use the macro quite a lot since some automake versions have the
# tendency to try to rerun some autotools on a mere make even when not
# quite in --maintainer-mode. That is very annoying. Likewise, a user who
# installs from source does not want to see doubled compiler messages.
#
# I did not put an AC_REQUIRE(MAINTAINER_MODE) in here - should I?
#
# LICENSE
#
# Copyright (c) 2008 Guido U. Draheim <[email protected]>
#
# Copying and distribution of this file, with or without modification, are
# permitted in any medium without royalty provided the copyright notice
# and this notice are preserved. This file is offered as-is, without any
# warranty.
#serial 10
AC_DEFUN([AX_MAINTAINER_MODE_AUTO_SILENT],[dnl
dnl ac_REQUIRE([am_MAINTAINER_MODE])dn
AC_MSG_CHECKING(auto silent in maintainer mode)
if test "$USE_MAINTAINER_MODE" = "no" ; then
test ".$TIMEOUT" = "." && TIMEOUT="9"
AUTOHEADER="sleep $TIMEOUT ; true || autoheader || skipped"
AUTOMAKE="sleep $TIMEOUT ; true || automake || skipped"
AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped"
if test ".$LIBTOOL" != "." ; then
LIBTOOL="$LIBTOOL --silent"
AC_MSG_RESULT([libtool-silent, auto-sleep-9])
else
AC_MSG_RESULT([auto-sleep-9])
fi
else
AC_MSG_RESULT([no])
fi
])