Blame config/ax_java_options.m4

Packit c04fcb
# ===========================================================================
Packit c04fcb
#      http://www.gnu.org/software/autoconf-archive/ax_java_options.html
Packit c04fcb
# ===========================================================================
Packit c04fcb
#
Packit c04fcb
# SYNOPSIS
Packit c04fcb
#
Packit c04fcb
#   AX_JAVA_OPTIONS
Packit c04fcb
#
Packit c04fcb
# DESCRIPTION
Packit c04fcb
#
Packit c04fcb
#   AX_JAVA_OPTIONS adds configure command line options used for Java m4
Packit c04fcb
#   macros. This Macro is optional.
Packit c04fcb
#
Packit c04fcb
#   Note: This is part of the set of autoconf M4 macros for Java programs.
Packit c04fcb
#   It is VERY IMPORTANT that you download the whole set, some macros depend
Packit c04fcb
#   on other. Unfortunately, the autoconf archive does not support the
Packit c04fcb
#   concept of set of macros, so I had to break it for submission. The
Packit c04fcb
#   general documentation, as well as the sample configure.in, is included
Packit c04fcb
#   in the AX_PROG_JAVA macro.
Packit c04fcb
#
Packit c04fcb
# LICENSE
Packit c04fcb
#
Packit c04fcb
#   Copyright (c) 2008 Devin Weaver <ktohg@tritarget.com>
Packit c04fcb
#
Packit c04fcb
#   Copying and distribution of this file, with or without modification, are
Packit c04fcb
#   permitted in any medium without royalty provided the copyright notice
Packit c04fcb
#   and this notice are preserved. This file is offered as-is, without any
Packit c04fcb
#   warranty.
Packit c04fcb
Packit c04fcb
#serial 6
Packit c04fcb
Packit c04fcb
AU_ALIAS([AC_JAVA_OPTIONS], [AX_JAVA_OPTIONS])
Packit c04fcb
AC_DEFUN([AX_JAVA_OPTIONS],[
Packit c04fcb
AC_ARG_WITH(java-prefix,
Packit c04fcb
                        [  --with-java-prefix=PFX  prefix where Java runtime is installed (optional)])
Packit c04fcb
AC_ARG_WITH(javac-flags,
Packit c04fcb
                        [  --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)])
Packit c04fcb
AC_ARG_WITH(java-flags,
Packit c04fcb
                        [  --with-java-flags=FLAGS flags to pass to the Java VM (optional)])
Packit c04fcb
JAVAPREFIX=$with_java_prefix
Packit c04fcb
JAVACFLAGS=$with_javac_flags
Packit c04fcb
JAVAFLAGS=$with_java_flags
Packit c04fcb
AC_SUBST(JAVAPREFIX)dnl
Packit c04fcb
AC_SUBST(JAVACFLAGS)dnl
Packit c04fcb
AC_SUBST(JAVAFLAGS)dnl
Packit c04fcb
AC_SUBST(JAVA)dnl
Packit c04fcb
AC_SUBST(JAVAC)dnl
Packit c04fcb
])