Tim Van Holder wrote:
If I have something like this in my configure.ac:

AC_PATH_PROG(SED, sed)
AC_ARG_VAR(SED, [path to sed])

Now everything works fine when sed is in my PATH, but I would like for
./configure to fail if sed isn't in my PATH. Is there a standard way to do
this? I haven't found any.


If someone here has any pointers I would really appriciate it!


I don't think you looked very hard - just use the third parameter
to AC_PATH_PROG.

AC_ARG_VAR([SED], [path to SED])
AC_PATH_PROG([SED], [sed], [no])
if test "$SED" = "no"; then
  AC_MSG_ERROR([sed is required])
fi

It seems you're right, I can't have been looking very hard. Thanks anyhow, for some reason I didn't see that use of the third parameter.


:.:: mattias





Reply via email to