aboutsummaryrefslogtreecommitdiffstats
path: root/m4/depends.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/depends.m4')
-rw-r--r--m4/depends.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/depends.m4 b/m4/depends.m4
new file mode 100644
index 0000000000..916e665de7
--- /dev/null
+++ b/m4/depends.m4
@@ -0,0 +1,15 @@
+
+AC_DEFUN([AX_DEPENDS_PATH_PROG], [
+AS_IF([test "x$$1" = "xy"], [AX_PATH_PROG_OR_FAIL([$2], [$3])], [
+AS_IF([test "x$$1" = "xn"], [
+$2="/$3-disabled-in-configure-script"
+], [
+AC_PATH_PROG([$2], [$3], [no])
+AS_IF([test x"${$2}" = "xno"], [
+$1=n
+$2="/$3-disabled-in-configure-script"
+])
+])
+])
+AC_SUBST($2)
+])