summaryrefslogtreecommitdiff
path: root/gnulib-local/m4/java.m4
blob: 9888af149688144b532e1fa7839c3d84465ec990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# java.m4 serial 1 (gettext-0.15)
dnl Copyright (C) 2005, 2015-2016 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)
])