1dnl Defines $1 in config.h to the full path to the binary $2, with 2dnl assertions. $3 contains an optional colon-separated list of 3dnl directories besides $PATH to search. 4AC_DEFUN([SCPONLY_PATH_PROG_DEFINE], 5 [AC_PATH_PROG([scponly_$1], [$2], [], 6 [`echo "$PATH:$3" | sed -e 's/:/ /'`]) 7 test -z $scponly_$1 && echo "Can't find path to '$2'" && exit 1 8 AC_DEFINE_UNQUOTED([$1], "$scponly_$1")]) 9 10 11