]> granicus.if.org Git - php/commitdiff
Adding in MSG_RESULT check and \n for configure output viewing
authorDan Kalowsky <kalowsky@php.net>
Wed, 14 Aug 2002 16:22:20 +0000 (16:22 +0000)
committerDan Kalowsky <kalowsky@php.net>
Wed, 14 Aug 2002 16:22:20 +0000 (16:22 +0000)
ext/java/config.m4
ext/java/java.c
ext/rpc/java/config.m4
ext/rpc/java/java.c

index 4e718fc3c8a271c3282c302e9edb969c8f875c61..c6eedc83c9b8231f9fea16a7365b879ac639c7d2 100644 (file)
@@ -126,6 +126,7 @@ dnl
    fi
 
    JAVA_CFLAGS="$JAVA_CFLAGS -D_REENTRANT"
+   AC_MSG_RESULT([$JAVA_LIBPATH])
  fi
 ])
 
index 8ca54b87b0f17afedb6e50eebae27c7d3c3453a0..3073627c4dbe28e9f163e1bba03e278d643684b2 100644 (file)
 #include "php_ini.h"
 #include "php_globals.h"
 
+/* #if defined(__MacOSX__) */
+#if HAVE_JAVAVM_JAVAVM_H
+#include <JavaVM/JavaVM.h>
+#define JAVALIB "libjvm.dylib"
+#define JNI_12
+#else
+#include <jni.h>
+#endif
+
+
 #ifdef PHP_WIN32
-  #include "win32/winutil.h"
-  #define DL_ERROR php_win_err()
+#include "win32/winutil.h"
+#define DL_ERROR php_win_err()
 #endif
 
-#include <jni.h>
 
 #include <stdio.h>
 
index 4e718fc3c8a271c3282c302e9edb969c8f875c61..c6eedc83c9b8231f9fea16a7365b879ac639c7d2 100644 (file)
@@ -126,6 +126,7 @@ dnl
    fi
 
    JAVA_CFLAGS="$JAVA_CFLAGS -D_REENTRANT"
+   AC_MSG_RESULT([$JAVA_LIBPATH])
  fi
 ])
 
index 8ca54b87b0f17afedb6e50eebae27c7d3c3453a0..3073627c4dbe28e9f163e1bba03e278d643684b2 100644 (file)
 #include "php_ini.h"
 #include "php_globals.h"
 
+/* #if defined(__MacOSX__) */
+#if HAVE_JAVAVM_JAVAVM_H
+#include <JavaVM/JavaVM.h>
+#define JAVALIB "libjvm.dylib"
+#define JNI_12
+#else
+#include <jni.h>
+#endif
+
+
 #ifdef PHP_WIN32
-  #include "win32/winutil.h"
-  #define DL_ERROR php_win_err()
+#include "win32/winutil.h"
+#define DL_ERROR php_win_err()
 #endif
 
-#include <jni.h>
 
 #include <stdio.h>