libextractor-java

GNU libextractor
Log | Files | Refs | README | LICENSE

ac_java_options.m4 (1213B)


      1 dnl @synopsis AC_JAVA_OPTIONS
      2 dnl
      3 dnl AC_JAVA_OPTIONS adds configure command line options used for Java m4
      4 dnl macros. This Macro is optional.
      5 dnl
      6 dnl Note: This is part of the set of autoconf M4 macros for Java programs.
      7 dnl It is VERY IMPORTANT that you download the whole set, some
      8 dnl macros depend on other. Unfortunately, the autoconf archive does not
      9 dnl support the concept of set of macros, so I had to break it for
     10 dnl submission.
     11 dnl The general documentation, as well as the sample configure.in, is
     12 dnl included in the AC_PROG_JAVA macro.
     13 dnl
     14 dnl @author Devin Weaver <ktohg@tritarget.com>
     15 dnl @version $Id: ac_java_options.m4,v 1.2 2000/01/02 16:07:12 bortz Exp $
     16 dnl
     17 AC_DEFUN([AC_JAVA_OPTIONS],[
     18 AC_ARG_WITH(java-prefix,
     19 			[  --with-java-prefix=PFX  prefix where Java runtime is installed (optional)])
     20 AC_ARG_WITH(javac-flags,
     21 			[  --with-javac-flags=FLAGS flags to pass to the Java compiler (optional)])
     22 AC_ARG_WITH(java-flags,
     23 			[  --with-java-flags=FLAGS flags to pass to the Java VM (optional)])
     24 JAVAPREFIX=$with_java_prefix
     25 JAVACFLAGS=$with_javac_flags
     26 JAVAFLAGS=$with_java_flags
     27 AC_SUBST(JAVAPREFIX)dnl
     28 AC_SUBST(JAVACFLAGS)dnl
     29 AC_SUBST(JAVAFLAGS)dnl
     30 AC_SUBST(JAVA)dnl
     31 AC_SUBST(JAVAC)dnl
     32 ])