~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to libdb/dist/aclocal_java/ac_prog_java.ac

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl @synopsis AC_PROG_JAVA
2
 
dnl
3
 
dnl Here is a summary of the main macros:
4
 
dnl
5
 
dnl AC_PROG_JAVAC: finds a Java compiler.
6
 
dnl
7
 
dnl AC_PROG_JAVA: finds a Java virtual machine.
8
 
dnl
9
 
dnl AC_CHECK_CLASS: finds if we have the given class (beware of CLASSPATH!).
10
 
dnl
11
 
dnl AC_CHECK_RQRD_CLASS: finds if we have the given class and stops otherwise.
12
 
dnl
13
 
dnl AC_TRY_COMPILE_JAVA: attempt to compile user given source.
14
 
dnl
15
 
dnl AC_TRY_RUN_JAVA: attempt to compile and run user given source.
16
 
dnl
17
 
dnl AC_JAVA_OPTIONS: adds Java configure options.
18
 
dnl
19
 
dnl AC_PROG_JAVA tests an existing Java virtual machine. It uses the
20
 
dnl environment variable JAVA then tests in sequence various common Java
21
 
dnl virtual machines. For political reasons, it starts with the free ones.
22
 
dnl You *must* call [AC_PROG_JAVAC] before.
23
 
dnl
24
 
dnl If you want to force a specific VM:
25
 
dnl
26
 
dnl - at the configure.in level, set JAVA=yourvm before calling AC_PROG_JAVA
27
 
dnl   (but after AC_INIT)
28
 
dnl
29
 
dnl - at the configure level, setenv JAVA
30
 
dnl
31
 
dnl You can use the JAVA variable in your Makefile.in, with @JAVA@.
32
 
dnl
33
 
dnl *Warning*: its success or failure can depend on a proper setting of the
34
 
dnl CLASSPATH env. variable.
35
 
dnl
36
 
dnl TODO: allow to exclude virtual machines (rationale: most Java programs
37
 
dnl cannot run with some VM like kaffe).
38
 
dnl
39
 
dnl Note: This is part of the set of autoconf M4 macros for Java programs.
40
 
dnl It is VERY IMPORTANT that you download the whole set, some
41
 
dnl macros depend on other. Unfortunately, the autoconf archive does not
42
 
dnl support the concept of set of macros, so I had to break it for
43
 
dnl submission.
44
 
dnl
45
 
dnl A Web page, with a link to the latest CVS snapshot is at
46
 
dnl <http://www.internatif.org/bortzmeyer/autoconf-Java/>.
47
 
dnl
48
 
dnl This is a sample configure.in
49
 
dnl Process this file with autoconf to produce a configure script.
50
 
dnl
51
 
dnl    AC_INIT(UnTag.java)
52
 
dnl
53
 
dnl    dnl Checks for programs.
54
 
dnl    AC_CHECK_CLASSPATH
55
 
dnl    AC_PROG_JAVAC
56
 
dnl    AC_PROG_JAVA
57
 
dnl
58
 
dnl    dnl Checks for classes
59
 
dnl    AC_CHECK_RQRD_CLASS(org.xml.sax.Parser)
60
 
dnl    AC_CHECK_RQRD_CLASS(com.jclark.xml.sax.Driver)
61
 
dnl
62
 
dnl    AC_OUTPUT(Makefile)
63
 
dnl
64
 
dnl @author Stephane Bortzmeyer <bortzmeyer@pasteur.fr>
65
 
dnl @version $Id$
66
 
dnl
67
 
AC_DEFUN([AC_PROG_JAVA],[
68
 
AC_REQUIRE([AC_EXEEXT])dnl
69
 
if test x$JAVAPREFIX = x; then
70
 
        test x$JAVA = x && AC_CHECK_PROGS(JAVA, kaffe$EXEEXT java$EXEEXT)
71
 
else
72
 
        test x$JAVA = x && AC_CHECK_PROGS(JAVA, kaffe$EXEEXT java$EXEEXT, $JAVAPREFIX)
73
 
fi
74
 
test x$JAVA = x && AC_MSG_ERROR([no acceptable Java virtual machine found in \$PATH])
75
 
AC_PROG_JAVA_WORKS
76
 
AC_PROVIDE([$0])dnl
77
 
])