Assume sendmail has to be installed in the path which was (optionally) given at build time. If no path is given at build, simply search in the $PATH.