Forked from
Glasgow Haskell Compiler / GHC
8962 commits behind the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
fp_prog_find.m4 626 B
# FP_PROG_FIND
# ------------
# Find a non-WinDoze version of the "find" utility.
AC_DEFUN([FP_PROG_FIND],
[AC_PATH_PROGS([fp_prog_find], [gfind find], find)
echo foo > conftest.txt
$fp_prog_find conftest.txt -print > conftest.out 2>&1
if grep '^conftest.txt$' conftest.out > /dev/null 2>&1 ; then
# OK, looks like a real "find".
FindCmd="$fp_prog_find"
else
# Found a poor WinDoze version of "find", ignore it.
AC_MSG_WARN([$fp_prog_find looks like a non-*nix find, ignoring it])
FP_CHECK_PROG([FindCmd], [find], [], [], [$fp_prog_find])
fi
rm -f conftest.txt conftest.out
AC_SUBST([FindCmd])[]dnl
])# FP_PROG_FIND