Index: base/src/port1.0/port_autoconf.tcl.in
===================================================================
--- base/src/port1.0/port_autoconf.tcl.in	(revision 26404)
+++ base/src/port1.0/port_autoconf.tcl.in	(arbetskopia)
@@ -36,6 +36,7 @@
 	variable rsync_path "@RSYNC@"
 	variable mtree_path "@MTREE@"
 	variable xar_path "@XAR@"
+	variable gmake_path "@GMAKE@"
 	variable tar_command "@TAR_CMD@"
 	variable have_launchd "@HAVE_LAUNCHD@"
 	variable launchctl_path "@LAUNCHCTL@"
Index: base/src/port1.0/portbuild.tcl
===================================================================
--- base/src/port1.0/portbuild.tcl	(revision 26404)
+++ base/src/port1.0/portbuild.tcl	(arbetskopia)
@@ -65,7 +65,7 @@
 	    if {[option os.platform] == "darwin"} {
 		return gnumake
 	    } else {
-		return gmake
+		return ${portutil::autoconf::gmake_path}
 	    }
 	}
 	pbx {
Index: base/configure.ac
===================================================================
--- base/configure.ac	(revision 26404)
+++ base/configure.ac	(arbetskopia)
@@ -23,6 +23,7 @@
 AC_PATH_PROG(XCODEBUILD, [xcodebuild], [])
 AC_PATH_PROG(BZIP2, [bzip2], [])
 AC_PATH_PROG(XAR, [xar], [])
+AC_PATH_PROG(GMAKE, [gmake], [])
 AC_PATH_PROG(OPEN, [open], [])
 
 # Define some precious variables allowing user to override PATH for some programs
@@ -34,6 +35,7 @@
 AC_ARG_VAR(GNUTAR, [path to gnutar command])
 AC_ARG_VAR(BZIP2, [path to bzip2 command])
 AC_ARG_VAR(XAR, [path to xar command])
+AC_ARG_VAR(GMAKE, [path to gmake command])
 AC_ARG_VAR(OPEN, [path to open command])
 
 MP_TAR_NO_SAME_OWNER

