X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpod2man.m4;h=26589981496d4722d40b46279ab0333ee012af63;hb=63830cd1634674366ec6a5c0969077ee12412825;hp=991942e8ec2e8b5f3b92423ae5e632a87ea1ad57;hpb=d3c1766dd780c1b6685ffe5e68a75aaa056063d5;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) +])