I'd like a package I depend on to use AM_COND_IF, but it does not want
to demand Automake 1.11 at this point.  Does this seem like a
reasonable solution?

m4_ifndef([AM_COND_IF], [AC_DEFUN([AM_COND_IF],
[m4_ifndef([_AM_COND_VALUE_$1],
           [m4_fatal([$0: no such condition "$1"])])dnl
if _AM_COND_VALUE_$1; then
  m4_default([$2], [:])
m4_ifval([$3],
else
  $3
])dnl
fi[]dnl
])])

Thanks,
Dave Hart

Reply via email to