diff options
author | Leo Davis <ldavis@speechfxinc.com> | 2014-01-17 17:01:19 -0700 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2014-02-07 11:40:26 +0100 |
commit | ac70b5804f193fcc56f2f5ef9398ea6e90453100 (patch) | |
tree | d258f1aabcd999853fe42f7196b8de63b707e80a /m4/ax_prog_javadoc.m4 | |
parent | 9b14c6f405df342c2e37e43a05886efd8ec2f6b6 (diff) | |
download | autoconf-archive-ac70b5804f193fcc56f2f5ef9398ea6e90453100.tar.gz |
M4sugar and M4sh added to AX_PROG_JAR, AX_PROG_JAVA, AX_PROG_JAVAC, and AX_PROG_JAVADOC. Also fixed a path discrepancy with AX_JAVA_OPTIONS.
The discrepancy is AX_JAVA_OPTIONS sets up a variable JAVAPREFIX
which is described to the user as the "prefix where the Java runtime
is installed". Unfortunately, that directory doesn't contain any
executables, but $JAVAPREFIX/bin does.
This incorrect path was passed in the value-if-not-found parameter
of AC_CHECK_PROGS which is incorrect. I fixed the path and pass it
in to the path parameter.
Diffstat (limited to 'm4/ax_prog_javadoc.m4')
-rw-r--r-- | m4/ax_prog_javadoc.m4 | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/m4/ax_prog_javadoc.m4 b/m4/ax_prog_javadoc.m4 index 508375d..bcb6045 100644 --- a/m4/ax_prog_javadoc.m4 +++ b/m4/ax_prog_javadoc.m4 @@ -38,15 +38,13 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 7 +#serial 8 AU_ALIAS([AC_PROG_JAVADOC], [AX_PROG_JAVADOC]) AC_DEFUN([AX_PROG_JAVADOC],[ -if test "x$JAVAPREFIX" = x; then - test "x$JAVADOC" = x && AC_CHECK_PROGS(JAVADOC, javadoc) -else - test "x$JAVADOC" = x && AC_CHECK_PROGS(JAVADOC, javadoc, $JAVAPREFIX) -fi +AS_IF([test "x$JAVAPREFIX" = x], + [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc])], + [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc], [], [$JAVAPREFIX/bin])]) test "x$JAVADOC" = x && AC_MSG_ERROR([no acceptable javadoc generator found in \$PATH]) AC_PROVIDE([$0])dnl ]) |