Ignore:
Timestamp:
2010-11-29T16:49:14+13:00 (13 years ago)
Author:
sjm84
Message:

Updated several configure scripts and Makefiles to make use of the JAVA, JAVAC and JAVACFLAGS environment variables, also added a --disable-java option to several of the configure scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure.in

    r22070 r23356  
    1717AC_SUBST(VERSION)
    1818
     19dnl
     20dnl Disable all Java compilation
     21dnl
     22AC_ARG_ENABLE(java, [  --disable-java          Disable Java compilation], ENABLE_JAVA=$enableval, ENABLE_JAVA=yes)
     23if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
     24  ENABLE_JAVA=1
     25  if test "x$JAVA_HOME" != "x" ; then
     26    echo "Detected JAVA_HOME is set, however this will not be used during compilation"
     27    echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
     28    echo "and JAVA respectively"
     29    export JAVA_HOME=
     30  fi
     31else
     32  ENABLE_JAVA=0
     33fi
     34AC_SUBST(ENABLE_JAVA)
    1935
    2036AC_MSG_CHECKING(to see if architecture is 64-bit)
     
    5975AC_PROG_MAKE_SET
    6076AC_PROG_RANLIB
     77if test $ENABLE_JAVA = "1" ; then
     78  AC_PROG_JAVA
     79  AC_PROG_JAVAC
     80fi
    6181
    6282dnl Checks for typedefs, structures, and compiler characteristics.
Note: See TracChangeset for help on using the changeset viewer.