1 dnl SMB Build Environment make Checks
2 dnl -------------------------------------------------------
3 dnl Copyright (C) Stefan (metze) Metzmacher 2004
4 dnl Copyright (C) Jelmer Vernooij 2005
5 dnl Released under the GNU GPL
6 dnl -------------------------------------------------------
9 AC_DEFUN([AC_SAMBA_GNU_MAKE],
11 AC_PATH_PROGS(MAKE,gmake make)
13 AC_CACHE_CHECK([whether we have GNU make], samba_cv_gnu_make, [
14 if ! $ac_cv_path_MAKE --version | head -1 | grep GNU 2>/dev/null >/dev/null
21 if test x$samba_cv_gnu_make = xyes; then
28 AC_DEFUN([AC_SAMBA_GNU_MAKE_VERSION],
30 AC_CACHE_CHECK([GNU make version], samba_cv_gnu_make_version,[
31 samba_cv_gnu_make_version=`$ac_cv_path_MAKE --version | head -1 | cut -d " " -f 3 2>/dev/null`