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

« back to all changes in this revision

Viewing changes to libdb/dist/aclocal_java/ac_try_compile_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_TRY_COMPILE_JAVA
2
 
dnl
3
 
dnl AC_TRY_COMPILE_JAVA attempt to compile user given source.
4
 
dnl
5
 
dnl *Warning*: its success or failure can depend on a proper setting of the
6
 
dnl CLASSPATH env. variable.
7
 
dnl
8
 
dnl Note: This is part of the set of autoconf M4 macros for Java programs.
9
 
dnl It is VERY IMPORTANT that you download the whole set, some
10
 
dnl macros depend on other. Unfortunately, the autoconf archive does not
11
 
dnl support the concept of set of macros, so I had to break it for
12
 
dnl submission.
13
 
dnl The general documentation, as well as the sample configure.in, is
14
 
dnl included in the AC_PROG_JAVA macro.
15
 
dnl
16
 
dnl @author Devin Weaver <ktohg@tritarget.com>
17
 
dnl @version $Id$
18
 
dnl
19
 
AC_DEFUN([AC_TRY_COMPILE_JAVA],[
20
 
AC_REQUIRE([AC_PROG_JAVAC])dnl
21
 
cat << \EOF > Test.java
22
 
/* [#]line __oline__ "configure" */
23
 
ifelse([$1], , , [import $1;])
24
 
public class Test {
25
 
[$2]
26
 
}
27
 
EOF
28
 
if AC_TRY_COMMAND($JAVAC $JAVACFLAGS Test.java) && test -s Test.class
29
 
then
30
 
dnl Don't remove the temporary files here, so they can be examined.
31
 
  ifelse([$3], , :, [$3])
32
 
else
33
 
  echo "configure: failed program was:" >&AC_FD_CC
34
 
  cat Test.java >&AC_FD_CC
35
 
ifelse([$4], , , [  rm -fr Test*
36
 
  $4
37
 
])dnl
38
 
fi
39
 
rm -fr Test*])