> 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