X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=m4%2Fpod2man.m4;h=26589981496d4722d40b46279ab0333ee012af63;hb=481efe3c437e1d87e0fabb987982cc1df2b2c35d;hp=991942e8ec2e8b5f3b92423ae5e632a87ea1ad57;hpb=717020b76aacd61929bf78ee6e8d838f619016f1;p=m6w6%2Flibmemcached diff --git a/m4/pod2man.m4 b/m4/pod2man.m4 index 991942e8..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:/usr/perl5/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) +])