Detect podchecker during configure
authorTrond Norbye <trond.norbye@sun.com>
Sun, 20 Dec 2009 11:18:07 +0000 (12:18 +0100)
committerTrond Norbye <trond.norbye@sun.com>
Sun, 20 Dec 2009 11:18:07 +0000 (12:18 +0100)
configure.ac
docs/Makefile.am
m4/podchecker.m4 [new file with mode: 0644]

index 342f92de0f1839cb8c96ad6891acdf5baf4ea1f6..3199aa8a1eac106ae2756bb984df559592bea878 100644 (file)
@@ -32,6 +32,7 @@ ENABLE_UTILLIB
 SETSOCKOPT_SANITY
 ENABLE_HSIEH_HASH
 REQUIRE_POD2MAN
+REQUIRE_PODCHECKER
 PROTOCOL_BINARY_TEST
 WITH_MEMCACHED
 ENABLE_DEPRECATED
index 11046090b4a71e1aa5aff3e212e26dde964d634d..e00c655cc3eba57c307e4676d7d506674c2a7885 100644 (file)
@@ -434,38 +434,38 @@ hashkit_value.3: hashkit_value.pod
        ${POD2MAN} -c "libhashkit" -r "" -s 3 ${top_srcdir}/docs/hashkit_value.pod > hashkit_value.3
 
 test-docs:
-       podchecker $(top_srcdir)/docs/hashkit_create.pod
-       podchecker $(top_srcdir)/docs/hashkit_functions.pod
-       podchecker $(top_srcdir)/docs/hashkit_value.pod
-       podchecker $(top_srcdir)/docs/libmemcached.pod
-       podchecker $(top_srcdir)/docs/libmemcached_examples.pod
-       podchecker $(top_srcdir)/docs/memcached_auto.pod
-       podchecker $(top_srcdir)/docs/memcached_behavior.pod
-       podchecker $(top_srcdir)/docs/memcached_callback.pod
-       podchecker $(top_srcdir)/docs/memcached_create.pod
-       podchecker $(top_srcdir)/docs/memcached_delete.pod
-       podchecker $(top_srcdir)/docs/memcached_flush.pod
-       podchecker $(top_srcdir)/docs/memcached_flush_buffers.pod
-       podchecker $(top_srcdir)/docs/memcached_get.pod
-       podchecker $(top_srcdir)/docs/memcached_memory_allocators.pod
-       podchecker $(top_srcdir)/docs/memcached_pool.pod
-       podchecker $(top_srcdir)/docs/memcached_quit.pod
-       podchecker $(top_srcdir)/docs/memcached_server_st.pod
-       podchecker $(top_srcdir)/docs/memcached_servers.pod
-       podchecker $(top_srcdir)/docs/memcached_set.pod
-       podchecker $(top_srcdir)/docs/memcached_stats.pod
-       podchecker $(top_srcdir)/docs/memcached_strerror.pod
-       podchecker $(top_srcdir)/docs/memcached_user_data.pod
-       podchecker $(top_srcdir)/docs/memcached_verbosity.pod
-       podchecker $(top_srcdir)/docs/memcached_version.pod
-       podchecker $(top_srcdir)/docs/memcapable.pod
-       podchecker $(top_srcdir)/docs/memcat.pod
-       podchecker $(top_srcdir)/docs/memcp.pod
-       podchecker $(top_srcdir)/docs/memerror.pod
-       podchecker $(top_srcdir)/docs/memflush.pod
-       podchecker $(top_srcdir)/docs/memrm.pod
-       podchecker $(top_srcdir)/docs/memslap.pod
-       podchecker $(top_srcdir)/docs/memstat.pod
+       ${PODCHECKER} $(top_srcdir)/docs/hashkit_create.pod
+       ${PODCHECKER} $(top_srcdir)/docs/hashkit_functions.pod
+       ${PODCHECKER} $(top_srcdir)/docs/hashkit_value.pod
+       ${PODCHECKER} $(top_srcdir)/docs/libmemcached.pod
+       ${PODCHECKER} $(top_srcdir)/docs/libmemcached_examples.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_auto.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_behavior.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_callback.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_create.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_delete.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_flush.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_flush_buffers.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_get.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_memory_allocators.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_pool.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_quit.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_server_st.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_servers.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_set.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_stats.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_strerror.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_user_data.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_verbosity.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcached_version.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcapable.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcat.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memcp.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memerror.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memflush.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memrm.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memslap.pod
+       ${PODCHECKER} $(top_srcdir)/docs/memstat.pod
 
 html-local:
        pod2htmltree "/libmemcached" .
diff --git a/m4/podchecker.m4 b/m4/podchecker.m4
new file mode 100644 (file)
index 0000000..ae10a6b
--- /dev/null
@@ -0,0 +1,7 @@
+AC_DEFUN([REQUIRE_PODCHECKER],[
+  AC_PATH_PROG([PODCHECKER], [podchecker],
+    "no", [$PATH:/usr/bin:/usr/local/bin:/usr/perl5/bin])
+  AS_IF([test "x$PODCHECKER" = "xno"],
+    AC_MSG_ERROR(["Could not find podchecker anywhere in path"]))
+  AC_SUBST(PODCHECKER)
+])