]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Fix FreeBSD pmake support
authorTheodore Ts'o <tytso@mit.edu>
Sun, 4 Sep 2016 04:16:35 +0000 (00:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 4 Sep 2016 04:16:35 +0000 (00:16 -0400)
Fix a typo in the @ifNotGNUmake@ case of MCONFIG.in.

Also allow the FORCE_NATIVE_MAKE to force the use of the non-GNU make
optimized Makefile.  The resulting makefile will work with GNU Make
4.2.1, although "make V=1" won't be honored.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
MCONFIG.in
acinclude.m4
configure

index 9fa9f880caa9ed0d008187c2747f60f2fd5ad1b6..e82963d238319f67c9d515259cc3294e0159c8d5 100644 (file)
@@ -68,8 +68,8 @@ pkgconfigdir = $(libdir)/pkgconfig
 @ifGNUmake@   endif
 @ifGNUmake@ endif
 
-@ifNotGNUmake@ CHECK_CMD=@true
-@ifNotGNUmake@ CPPHECK_CMD=@true
+@ifNotGNUmake@ CHECK_CMD=true
+@ifNotGNUmake@ CPPCHECK_CMD=true
 
 CC = @CC@
 BUILD_CC = @BUILD_CC@
index 4c8a77cbe455757579d4b6c0988051b2b350e2b3..b4bdc5d95d11cbf4e8fa92fb37ba229e2c5b43b5 100644 (file)
@@ -108,7 +108,12 @@ AC_DEFUN(
         [CHECK_GNU_MAKE], [ AC_CACHE_CHECK( for GNU make,_cv_gnu_make_command,
                 _cv_gnu_make_command='' ;
 dnl Search all the common names for GNU make
-                for a in "$MAKE" make gmake gnumake ; do
+                if test -z "$FORCE_NATIVE_MAKE" ; then
+                   MAKES="make"
+                else
+                   MAKES="make gmake gnumake"
+                fi
+                for a in "$MAKE" $MAKES ; 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 ;
index 0ac5dcbca97fd45a8cddb0904e15d774d8fd6ca6..6825bd275c80ce06109008fd48bfd647b1bc6a59 100755 (executable)
--- a/configure
+++ b/configure
@@ -11515,7 +11515,12 @@ if ${_cv_gnu_make_command+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   _cv_gnu_make_command='' ;
-                for a in "$MAKE" make gmake gnumake ; do
+                if test -z "$FORCE_NATIVE_MAKE" ; then
+                   MAKES="make"
+                else
+                   MAKES="make gmake gnumake"
+                fi
+                for a in "$MAKE" $MAKES ; 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 ;