>> AC_PATH_PROG([PERLPATH], [perl], [/usr/bin/perl]) >> if test -z "$PERLPATH"; then > > I think AC_PATH_PROG sets PERLPATH to /usr/bin/perl if it can't find it > in PATH, so the test will never be true? > > Perhaps the Autoconf archive is of some use? > http://www.gnu.org/software/autoconf-archive/ax_prog_perl_version.html > > Cheers, Ralph. >
Try something like this:
AC_PATH_PROG([PERLPATH],
[perl],
[no])
if test "$PERLPATH" = "no"; then
AC_MSG_ERROR([perl binary not found])
fi
Werner
