summaryrefslogtreecommitdiff
path: root/docs/aclocal.m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2004-05-15 16:36:15 +0000
committerGerald W. Carter <jerry@samba.org>2008-04-23 08:45:50 -0500
commite16f34e94302e06088c5279ae4b0dac875c30cd9 (patch)
treee6dbe312dd35d131c7ec73b788b13361bff72ec1 /docs/aclocal.m4
parenta1a6c5198a9f291ad2c774cdb0c8d9ced7c31cc7 (diff)
downloadsamba-e16f34e94302e06088c5279ae4b0dac875c30cd9.tar.gz
samba-e16f34e94302e06088c5279ae4b0dac875c30cd9.tar.bz2
samba-e16f34e94302e06088c5279ae4b0dac875c30cd9.zip
Allow specifying a directory with the samba sources
(This used to be commit 411a84c102eacd9865468304d3a19170e7daae35)
Diffstat (limited to 'docs/aclocal.m4')
-rw-r--r--docs/aclocal.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/aclocal.m4 b/docs/aclocal.m4
index 731139cfde..073d2aafd2 100644
--- a/docs/aclocal.m4
+++ b/docs/aclocal.m4
@@ -33,3 +33,25 @@ AC_DEFUN(DOCS_TARGET_REQUIRE_PROGRAM, [
fi
fi
])
+
+dnl DOCS_TARGET_REQUIRE_DIR
+dnl arg1: list of possible paths
+dnl arg2: file in dir know to exist
+dnl arg3: variable to store found path in
+dnl arg4: target that requires it
+
+AC_DEFUN(DOCS_TARGET_REQUIRE_DIR, [
+ AC_SUBST($3)
+ for I in $1;
+ do
+ test -f "$I/$2" && $3="$I"
+ done
+
+ if test x$$3 = x; then
+ if test x"$$4_REQUIRES" = x; then
+ $4_REQUIRES="$3"
+ else
+ $4_REQUIRES="$$4_REQUIRES $3"
+ fi
+ fi
+])