Ignore:
Timestamp:
2023-03-06T15:41:51+13:00 (14 months ago)
Author:
anupama
Message:

Make configure script for javagdbm now to also choose between which Java framework to set as part of the JNILDFlAGS variable on a Mac, depending on version of xcode compile tools installed. Tested in separate bash script. Committing now in order to test with release-kit. Related to Dr Bainbridge's recent commit revision 37405.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/packages/javagdbm/configure.in

    r37405 r37415  
    214214  JNIINC="-I\$(JAVA_HOME)/include/darwin -I\$(JAVA_HOME)/include "
    215215  JNISUFFIX="jnilib"
    216   JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaNativeFoundation"
     216  knownMinXcodeVersionForNewJavaFramework=2395
     217  xcodeVersion=`(xcode-select --version) 2> /dev/null`
     218  if test "$?" -eq 127 || test "${xcodeVersion//[!0-9]/}" -lt $knownMinXcodeVersionForNewJavaFramework; then
     219    JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
     220  else
     221    JNILDFLAGS="-dynamiclib -fno-common -single_module -framework JavaNativeFoundation"
     222  fi 
    217223fi
    218224if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
Note: See TracChangeset for help on using the changeset viewer.