diff options
Diffstat (limited to 'gettext-tools/gnulib-m4/java.m4')
-rw-r--r-- | gettext-tools/gnulib-m4/java.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gettext-tools/gnulib-m4/java.m4 b/gettext-tools/gnulib-m4/java.m4 new file mode 100644 index 0000000..d04a660 --- /dev/null +++ b/gettext-tools/gnulib-m4/java.m4 @@ -0,0 +1,23 @@ +# java.m4 serial 1 (gettext-0.15) +dnl Copyright (C) 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +# Sets JAVA_CHOICE to 'yes', 'bytecode' or 'no', depending on the preferred +# use of Java. +AC_DEFUN([gt_JAVA_CHOICE], +[ + AC_MSG_CHECKING([whether to use Java]) + AC_ARG_ENABLE(java, + [ --disable-java do not build Java sources], + [JAVA_CHOICE="$enableval"], + [JAVA_CHOICE=yes]) + AC_MSG_RESULT([$JAVA_CHOICE]) + if test "$JAVA_CHOICE" = yes; then + AC_ARG_ENABLE(native-java, + [ --disable-native-java do not compile Java to native executables], + [test "$enableval" != no || JAVA_CHOICE=bytecode]) + fi + AC_SUBST(JAVA_CHOICE) +]) |