source: branches/samba-3.5.x/m4/check_make.m4@ 1010

Last change on this file since 1010 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 819 bytes
Line 
1dnl SMB Build Environment make Checks
2dnl -------------------------------------------------------
3dnl Copyright (C) Stefan (metze) Metzmacher 2004
4dnl Copyright (C) Jelmer Vernooij 2005
5dnl Released under the GNU GPL
6dnl -------------------------------------------------------
7dnl
8
9AC_DEFUN([AC_SAMBA_GNU_MAKE],
10[
11AC_PATH_PROGS(MAKE,gmake make)
12
13AC_CACHE_CHECK([whether we have GNU make], samba_cv_gnu_make, [
14if ! $ac_cv_path_MAKE --version | head -1 | grep GNU 2>/dev/null >/dev/null
15then
16 samba_cv_gnu_make=no
17else
18 samba_cv_gnu_make=yes
19fi
20])
21if test x$samba_cv_gnu_make = xyes; then
22 $1
23else
24 $2
25fi
26])
27
28AC_DEFUN([AC_SAMBA_GNU_MAKE_VERSION],
29[
30AC_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`
32 ])
33])
Note: See TracBrowser for help on using the repository browser.