ntp_vpathhack.m4 revision 1.1.1.2
1dnl ###################################################################### 2dnl NTP_VPATH_HACK 3dnl 4dnl Are we using FreeBSD's make? 5dnl if we are building outside the srcdir and either 6dnl force_ntp_vpath_hack is set 7dnl or 8dnl we're on freebsd and not using GNU make 9dnl then we want VPATH_HACK to be true in automake tests 10dnl 11AC_DEFUN([NTP_VPATH_HACK], [ 12AC_MSG_CHECKING([to see if we need a VPATH hack]) 13ntp_vpath_hack="no" 14case "$srcdir::$build_os::${force_ntp_vpath_hack+set}" in 15 .::*::*) 16 ;; 17 *::*::set) 18 ntp_vpath_hack="yes" 19 ;; 20 *::freebsd*::) 21 case "`${MAKE-make} -v -f /dev/null 2>/dev/null | grep 'GNU Make'`" in 22 '') 23 ntp_vpath_hack="yes" 24 esac 25esac 26AC_MSG_RESULT([$ntp_vpath_hack]) 27AM_CONDITIONAL([VPATH_HACK], [test x$ntp_vpath_hack = xyes]) 28]) 29dnl ====================================================================== 30