Home | History | Annotate | Line # | Download | only in m4
      1  1.1  christos # java.m4 serial 1 (gettext-0.15)
      2  1.1  christos dnl Copyright (C) 2005 Free Software Foundation, Inc.
      3  1.1  christos dnl This file is free software; the Free Software Foundation
      4  1.1  christos dnl gives unlimited permission to copy and/or distribute it,
      5  1.1  christos dnl with or without modifications, as long as this notice is preserved.
      6  1.1  christos 
      7  1.1  christos # Sets JAVA_CHOICE to 'yes', 'bytecode' or 'no', depending on the preferred
      8  1.1  christos # use of Java.
      9  1.1  christos AC_DEFUN([gt_JAVA_CHOICE],
     10  1.1  christos [
     11  1.1  christos   AC_MSG_CHECKING([whether to use Java])
     12  1.1  christos   AC_ARG_ENABLE(java,
     13  1.1  christos     [  --disable-java          do not build Java sources],
     14  1.1  christos     [JAVA_CHOICE="$enableval"],
     15  1.1  christos     [JAVA_CHOICE=yes])
     16  1.1  christos   AC_MSG_RESULT([$JAVA_CHOICE])
     17  1.1  christos   if test "$JAVA_CHOICE" = yes; then
     18  1.1  christos     AC_ARG_ENABLE(native-java,
     19  1.1  christos       [  --disable-native-java   do not compile Java to native executables],
     20  1.1  christos       [test "$enableval" != no || JAVA_CHOICE=bytecode])
     21  1.1  christos   fi
     22  1.1  christos   AC_SUBST(JAVA_CHOICE)
     23  1.1  christos ])
     24