mirror of
https://github.com/ceph/ceph
synced 2024-12-30 15:33:31 +00:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
|
dnl @synopsis AC_JAVA_OPTIONS
|
||
|
dnl
|
||
|
dnl AC_JAVA_OPTIONS adds configure command line options used for Java
|
||
|
dnl m4 macros. This Macro is optional.
|
||
|
dnl
|
||
|
dnl Note: This is part of the set of autoconf M4 macros for Java
|
||
|
dnl programs. It is VERY IMPORTANT that you download the whole set,
|
||
|
dnl some macros depend on other. Unfortunately, the autoconf archive
|
||
|
dnl does not support the concept of set of macros, so I had to break it
|
||
|
dnl for submission. The general documentation, as well as the sample
|
||
|
dnl configure.in, is included in the AC_PROG_JAVA macro.
|
||
|
dnl
|
||
|
dnl @category Java
|
||
|
dnl @author Devin Weaver <ktohg@tritarget.com>
|
||
|
dnl @version 2000-07-19
|
||
|
dnl @license AllPermissive
|
||
|
|
||
|
AC_DEFUN([AC_JAVA_OPTIONS],[
|
||
|
AC_ARG_WITH(java-prefix,
|
||
|
[ --with-java-prefix=PFX prefix where Java runtime is installed (optional)])
|
||
|
AC_ARG_WITH(javac-flags,
|
||
|
[ --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)])
|
||
|
AC_ARG_WITH(java-flags,
|
||
|
[ --with-java-flags=FLAGS flags to pass to the Java VM (optional)])
|
||
|
JAVAPREFIX=$with_java_prefix
|
||
|
JAVACFLAGS=$with_javac_flags
|
||
|
JAVAFLAGS=$with_java_flags
|
||
|
AC_SUBST(JAVAPREFIX)dnl
|
||
|
AC_SUBST(JAVACFLAGS)dnl
|
||
|
AC_SUBST(JAVAFLAGS)dnl
|
||
|
AC_SUBST(JAVA)dnl
|
||
|
AC_SUBST(JAVAC)dnl
|
||
|
])
|