[Samba4] [FreeBSD] Using gmake as a GNU make.
Timur I. Bakeyev
timur at com.bat.ru
Mon Oct 8 02:53:08 GMT 2007
Hi!
Not really a big problem, but Samba4 uses GNU make specific functionality
to create automatic dependencies. On FreeBSD GNU make is called gmake
and configure script can't find it. this doesn't stop compilation, as most
of the time Samba4 builds with BSD make(this breaks from time to time), but
why to limit ourselves?
So, here is a small patch that makes configure recognize gmake as a
valid make. Also it makes possible to specify MAKE location through the
environment variable(this is how FreeBSD ports system passes the name of
desired make).
With regards,
Timur.
-------------- next part --------------
Index: check_make.m4
===================================================================
--- build/m4/check_make.m4 (revision 25198)
+++ build/m4/check_make.m4 (working copy)
@@ -6,7 +6,9 @@
dnl -------------------------------------------------------
dnl
-AC_PATH_PROG(MAKE,make)
+dnl Let user specify path to MAKE via environment
+AC_ARG_VAR([MAKE], [Make command])
+AC_PATH_PROG(MAKE, [gmake make])
AC_CACHE_CHECK([whether we have GNU make], samba_cv_gnu_make, [
if $ac_cv_path_MAKE --version | head -1 | grep GNU 2>/dev/null >/dev/null
More information about the samba-technical
mailing list