aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-07-02 18:19:10 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-07-02 18:19:10 -0400
commitbcb915b0d0018e19c7e67beeb32d212fd4bb0b85 (patch)
tree5db25c600b81126f7b458f39b236c3d25a64dfcf /configure
parent3a4d9869d47c462c84688b0f8b15df5ab6f93381 (diff)
downloade2fsprogs-bcb915b0d0018e19c7e67beeb32d212fd4bb0b85.tar.gz
e2fsprogs-bcb915b0d0018e19c7e67beeb32d212fd4bb0b85.tar.xz
e2fsprogs-bcb915b0d0018e19c7e67beeb32d212fd4bb0b85.zip
Enhance build system so that "make V=1" works like the Linux Kernel
If gmake is available, the developer can use "make V=1" instead of using a configure-time switch, --enable-verbose-makecmds, to see all of the commands executed by the Makefile. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure31
1 files changed, 31 insertions, 0 deletions
diff --git a/configure b/configure
index 9460d3b6..769dc099 100755
--- a/configure
+++ b/configure
@@ -674,6 +674,8 @@ CP
MV
LN_S
LN
+ifNotGNUmake
+ifGNUmake
BINARY_TYPE
POSUB
LTLIBINTL
@@ -11628,6 +11630,35 @@ $as_echo "no" >&6; }
SET_MAKE="MAKE=${MAKE-make}"
fi
+ { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
+$as_echo_n "checking for GNU make... " >&6; }
+if test "${_cv_gnu_make_command+set}" = set; then
+ $as_echo_n "(cached) " >&6
+else
+ _cv_gnu_make_command='' ;
+ for a in "$MAKE" make gmake gnumake ; do
+ if test -z "$a" ; then continue ; fi ;
+ if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
+ _cv_gnu_make_command=$a ;
+ break;
+ fi
+ done ;
+
+fi
+{ $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
+$as_echo "$_cv_gnu_make_command" >&6; } ;
+ if test "x$_cv_gnu_make_command" != "x" ; then
+ ifGNUmake='' ;
+ ifNotGNUmake='#' ;
+ else
+ ifGNUmake='#' ;
+ ifNotGNUmake='' ;
+ { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
+$as_echo "\"Not found\"" >&6; };
+ fi
+
+
+
# Extract the first word of "ln", so it can be a program name with args.
set dummy ln; ac_word=$2
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5