Changeset 10917 for trunk/indexers/mgpp


Ignore:
Timestamp:
2005-11-17T15:30:33+13:00 (18 years ago)
Author:
kjdon
Message:

removed java_home/include/linux from include path in makefile, made the configure script include this in JNIINC for linux, and use JAVA_HOME/include/solaris for solaris machines

Location:
trunk/indexers/mgpp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mgpp/configure

    r10887 r10917  
    62406240
    62416241
    6242 
    62436242# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
    62446243# a non-standard Path
    6245 echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
    6246 echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
     6244# is there a better way to do this??
     6245echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
     6246echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
     6247# set defaults
     6248JNIINC=""
     6249JNISUFFIX="so"
     6250JNIFLAGS="-shared"
     6251
    62476252if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    6248   echo "$as_me:$LINENO: result: yes" >&5
    6249 echo "${ECHO_T}yes" >&6
     6253  echo "$as_me:$LINENO: result: Darwin" >&5
     6254echo "${ECHO_T}Darwin" >&6
    62506255  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    62516256  JNISUFFIX="jnilib"
    6252   JNIFLAGS="-dynamiclib -fno-common -framework JavaVM"
    6253 else
    6254   echo "$as_me:$LINENO: result: no" >&5
    6255 echo "${ECHO_T}no" >&6
    6256   JNIINC=""
    6257   JNISUFFIX="so"
    6258   JNIFLAGS="-shared"
    6259 fi
     6257  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
     6258fi
     6259if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     6260  echo "$as_me:$LINENO: result: Solaris" >&5
     6261echo "${ECHO_T}Solaris" >&6
     6262  JNIINC="-I\$(JAVA_HOME)/include/solaris "
     6263fi
     6264if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
     6265  echo "$as_me:$LINENO: result: Linux" >&5
     6266echo "${ECHO_T}Linux" >&6
     6267  JNIINC="-I\$(JAVA_HOME)/include/linux "
     6268fi
     6269
    62606270
    62616271
  • trunk/indexers/mgpp/configure.in

    r10887 r10917  
    8181AC_CHECK_FUNC(textdomain, AC_DEFINE(ENABLE_NLS ,1) )
    8282
    83 
    8483# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
    8584# a non-standard Path
    86 AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     85# is there a better way to do this??
     86AC_MSG_CHECKING(for OS to set JNI options)
     87# set defaults
     88JNIINC=""
     89JNISUFFIX="so"
     90JNIFLAGS="-shared"
     91
    8792if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    88   AC_MSG_RESULT(yes)
     93  AC_MSG_RESULT(Darwin)
    8994  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    9095  JNISUFFIX="jnilib"
    91   JNIFLAGS="-dynamiclib -fno-common -framework JavaVM"
    92 else
    93   AC_MSG_RESULT(no)
    94   JNIINC=""
    95   JNISUFFIX="so"
    96   JNIFLAGS="-shared"
     96  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
    9797fi
     98if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     99  AC_MSG_RESULT(Solaris)
     100  JNIINC="-I\$(JAVA_HOME)/include/solaris "
     101fi
     102if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
     103  AC_MSG_RESULT(Linux)
     104  JNIINC="-I\$(JAVA_HOME)/include/linux "
     105fi
     106
    98107AC_SUBST(JNIINC)
    99108AC_SUBST(JNISUFFIX)
  • trunk/indexers/mgpp/jni/Makefile.in

    r10192 r10917  
    4646
    4747# can we get rid of JAVA_HOME from here??
    48 INCLUDES = -I.. -I../lib -I../text -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux $(JNIINC)
     48INCLUDES = -I.. -I../lib -I../text -I$(JAVA_HOME)/include $(JNIINC)
    4949
    5050all: compile link
Note: See TracChangeset for help on using the changeset viewer.