X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=find-gnumake.sh;h=f5cf67682b4d696a8dd5294ba4d1029b03d65309;hb=d306e2d23b38487488eb93881dad836e439e0c77;hp=df76c7ee8bc1b8c98dde59384a8bbe57da2fbd28;hpb=babd45f7788c2f50c9d6193c1c7108e0a6b3a547;p=sbcl.git diff --git a/find-gnumake.sh b/find-gnumake.sh index df76c7e..f5cf676 100644 --- a/find-gnumake.sh +++ b/find-gnumake.sh @@ -6,14 +6,14 @@ find_gnumake() { if [ "$GNUMAKE" != "" ] ; then # The user is evidently trying to tell us something. GNUMAKE="$GNUMAKE" + elif [ "GNU Make" = "`make -v 2>/dev/null | head -n 1 | cut -b 1-8`" ]; then + GNUMAKE=make elif [ -x "`which gmake`" ] ; then # "gmake" is the preferred name in *BSD. GNUMAKE=gmake elif [ -x "`which gnumake`" ] ; then # MacOS X aka Darwin - GNUMAKE=gnumake - elif [ "GNU Make" = "`make -v | head -n 1 | cut -b 0-8`" ]; then - GNUMAKE=make + GNUMAKE=gnumake else echo "GNU Make not found. Try setting the environment variable GNUMAKE." exit 1