X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpod2man.m4;h=26589981496d4722d40b46279ab0333ee012af63;hb=8b63456935a638f6d401c1ee09dcb073d110841a;hp=ef9f394b5da1eca0dd99664ee629ec429d22659f;hpb=5a0dc3338c04b40a5d6f335ac6504e9d3f7fd90d;p=awesomized%2Flibmemcached diff --git a/m4/pod2man.m4 b/m4/pod2man.m4 index ef9f394b..26589981 100644 --- a/m4/pod2man.m4 +++ b/m4/pod2man.m4 @@ -1,5 +1,7 @@ -AC_PATH_PROG([POD2MAN], [pod2man], "no", [$PATH:/usr/bin:/usr/local/bin]) -if test "x$POD2MAN" == "xno"; then - AC_MSG_ERROR(["Could not find pod2man anywhere in path"]) -fi -AC_SUBST(POD2MAN) +AC_DEFUN([REQUIRE_POD2MAN],[ + AC_PATH_PROG([POD2MAN], [pod2man], + "no", [$PATH:/usr/bin:/usr/local/bin:/usr/perl5/bin]) + AS_IF([test "x$POD2MAN" = "xno"], + AC_MSG_ERROR(["Could not find pod2man anywhere in path"])) + AC_SUBST(POD2MAN) +])