1
2AC_DEFUN([AX_DEPENDS_PATH_PROG], [
3AS_IF([test "x$$1" = "xy"], [AX_PATH_PROG_OR_FAIL([$2], [$3])], [
4AS_IF([test "x$$1" = "xn"], [
5$2="/$3-disabled-in-configure-script"
6], [
7AC_PATH_PROG([$2], [$3], [no])
8AS_IF([test x"${$2}" = "xno"], [
9$1=n
10$2="/$3-disabled-in-configure-script"
11])
12])
13])
14AC_SUBST($2)
15])
16