automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AC_PATH_PROG


From: Tim Van Holder
Subject: Re: AC_PATH_PROG
Date: Mon, 2 Jun 2003 10:35:48 +0200

> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]