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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/indexers/mg/configure.in

    r10887 r10917  
    8686# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
    8787# a non-standard Path
    88 AC_MSG_CHECKING(for Apple MacOS X/Darwin)
     88# is there a better way to do this??
     89AC_MSG_CHECKING(for OS to set JNI options)
     90# set defaults
     91JNIINC=""
     92JNISUFFIX="so"
     93JNIFLAGS="-shared"
     94
    8995if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
    90   AC_MSG_RESULT(yes)
     96  AC_MSG_RESULT(Darwin)
    9197  JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
    9298  JNISUFFIX="jnilib"
    9399  JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
    94 else
    95   AC_MSG_RESULT(no)
    96   JNIINC=""
    97   JNISUFFIX="so"
    98   JNIFLAGS="-shared"
    99100fi
     101if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
     102  AC_MSG_RESULT(Solaris)
     103  JNIINC="-I\$(JAVA_HOME)/include/solaris "
     104fi
     105if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
     106  AC_MSG_RESULT(Linux)
     107  JNIINC="-I\$(JAVA_HOME)/include/linux "
     108fi
     109
    100110AC_SUBST(JNIINC)
    101111AC_SUBST(JNISUFFIX)
Note: See TracChangeset for help on using the changeset viewer.