blob: bcb6045a828a8b4d5744d6121d9fb9aac6bbbfa0 [file] [log] [blame]
Ed Warnickecb9cada2015-12-08 15:45:58 -07001# ===========================================================================
2# http://www.gnu.org/software/autoconf-archive/ax_prog_javadoc.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7# AX_PROG_JAVADOC
8#
9# DESCRIPTION
10#
11# AX_PROG_JAVADOC tests for an existing javadoc generator. It uses the
12# environment variable JAVADOC then tests in sequence various common
13# javadoc generator.
14#
15# If you want to force a specific compiler:
16#
17# - at the configure.in level, set JAVADOC=yourgenerator before calling
18# AX_PROG_JAVADOC
19#
20# - at the configure level, setenv JAVADOC
21#
22# You can use the JAVADOC variable in your Makefile.in, with @JAVADOC@.
23#
24# Note: This macro depends on the autoconf M4 macros for Java programs. It
25# is VERY IMPORTANT that you download that whole set, some macros depend
26# on other. Unfortunately, the autoconf archive does not support the
27# concept of set of macros, so I had to break it for submission.
28#
29# The general documentation of those macros, as well as the sample
30# configure.in, is included in the AX_PROG_JAVA macro.
31#
32# LICENSE
33#
34# Copyright (c) 2008 Egon Willighagen <e.willighagen@science.ru.nl>
35#
36# Copying and distribution of this file, with or without modification, are
37# permitted in any medium without royalty provided the copyright notice
38# and this notice are preserved. This file is offered as-is, without any
39# warranty.
40
41#serial 8
42
43AU_ALIAS([AC_PROG_JAVADOC], [AX_PROG_JAVADOC])
44AC_DEFUN([AX_PROG_JAVADOC],[
45AS_IF([test "x$JAVAPREFIX" = x],
46 [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc])],
47 [test "x$JAVADOC" = x && AC_CHECK_PROGS([JAVADOC], [javadoc], [], [$JAVAPREFIX/bin])])
48test "x$JAVADOC" = x && AC_MSG_ERROR([no acceptable javadoc generator found in \$PATH])
49AC_PROVIDE([$0])dnl
50])