1 ## --------------------------------------------------------- ##
2 ## Fake the existence of programs that GNU maintainers use. ##
3 ## --------------------------------------------------------- ##
4 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
5 dnl The program must properly implement --version.
6 AC_DEFUN(AM_MISSING_PROG,
7 [AC_MSG_CHECKING(for working $2)
8 # Run test in a subshell; some versions of sh will print an error if
9 # an executable is not found, even if stderr is redirected.
10 # Redirect stdin to placate older versions of autoconf. Sigh.
11 if ($2 --version) < /dev/null > /dev/null 2>&1; then
16 AC_MSG_RESULT(missing)