<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>pkg-config.rb</filename>
    </added>
    <added>
      <filename>rbsm.msg</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,7 @@
+2006-10-09
+	* Change : pkg-config &#12434;&#20351;&#12358;&#12424;&#12358;&#12395;&#22793;&#26356;( kou )
+	* Fix: rbsm.js &#12434;&#28155;&#20184;&#12375;&#24536;&#12428;&#12390;&#12356;&#12383;&#12398;&#12391;&#36861;&#21152;
+
 2006-10-03
 	* Change : &#20869;&#37096;&#12398;&#26085;&#26412;&#35486;&#12434;UTF-8&#12395;&#22793;&#26356; 
 	* : Google Code &#12395;&#12450;&#12483;&#12503;&#12525;&#12540;&#12489; </diff>
      <filename>ChangeLog</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,26 @@
 require 'mkmf'
-dir_config(&quot;smjs&quot;)
-#$CFLAGS += &quot; -gdbg&quot;
-case RUBY_PLATFORM
-when /mswin32|mingw|bccwin32/
-	$defs &lt;&lt; &quot;-DXP_WIN&quot;
-	lib = &quot;js32&quot;
-else
-	$defs &lt;&lt; &quot;-DXP_UNIX&quot;
-	lib = &quot;smjs&quot;
+require 'pkg-config'
+
+def find_smjs
+  dir_config(&quot;smjs&quot;)
+  #$CFLAGS += &quot; -gdbg&quot;
+  case RUBY_PLATFORM
+  when /mswin32|mingw|bccwin32/
+    $defs &lt;&lt; &quot; -DXP_WIN&quot;
+    lib = &quot;js32&quot;
+  else
+    $defs &lt;&lt; &quot; -DXP_UNIX&quot;
+    lib = &quot;smjs&quot;
+  end
+
+  $defs &lt;&lt; &quot; -DNEED_SMJS_PREFIX&quot;
+  have_library(lib)
 end
-#if have_header(&quot;smjs/jsapi.h&quot;) or have_header(&quot;jsapi.h&quot;)
-if have_library(lib)
-	create_makefile(&quot;spidermonkey&quot;)
+
+if %w(xulrunner-js thunderbird-js moziila-js).any? do |package|
+    PKGConfig.have_package(package)
+  end or find_smjs
+  create_makefile(&quot;spidermonkey&quot;)
+else
+  exit 1
 end
-#end</diff>
      <filename>extconf.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,16 @@
 #define JS_C_STRINGS_ARE_UTF8
-#include &quot;ruby.h&quot;
-#include &quot;smjs/jsapi.h&quot;
-#include &quot;smjs/jshash.h&quot;
-#include &quot;smjs/jsobj.h&quot;
+
+#include &lt;ruby.h&gt;
+
+#ifdef NEED_SMJS_PREFIX
+#  include &lt;smjs/jsapi.h&gt;
+#  include &lt;smjs/jshash.h&gt;
+#  include &lt;smjs/jsobj.h&gt;
+#else
+#  include &lt;jsapi.h&gt;
+#  include &lt;jshash.h&gt;
+#  include &lt;jsobj.h&gt;
+#endif
 
 extern VALUE ruby_errinfo;
 
@@ -635,17 +643,17 @@ rbsm_class_no_such_method( JSContext* cx, JSObject* thisobj, uintN argc, jsval*
 	char* keyname;
 	sSMJS_Class* so;
 	keyname = JS_GetStringBytes(JSVAL_TO_STRING(argv[0]));
-	printf(&quot;_noSuchMethod__( %s )&quot;,keyname);
+	//printf(&quot;_noSuchMethod__( %s )&quot;,keyname);
 	if( !( so = JS_GetInstancePrivate( cx, JSVAL_TO_OBJECT(argv[-2]), &amp;JSRubyObjectClass, NULL ) ) ){ 
 		JS_ReportErrorNumber(cx, rbsm_GetErrorMessage, NULL, RBSMMSG_NOT_FUNCTION, keyname);
 		return JS_FALSE;
 	}
 	if( strcmp( keyname, g_last0arity.keyname )==0 ){
-	printf(&quot;!\n&quot;);
+	//printf(&quot;!\n&quot;);
 		*rval = g_last0arity.val;
 		return JS_TRUE;
 	}
-	printf(&quot;!=%s]&quot;,g_last0arity.keyname);
+	//printf(&quot;!=%s]&quot;,g_last0arity.keyname);
 	return JS_FALSE;
 /*
 	// &#24341;&#25968;&#12434;SpiderMonkey::Value&#12395; </diff>
      <filename>spidermonkey.c</filename>
    </modified>
    <modified>
      <diff>@@ -287,7 +287,7 @@ class SpiderMonkeyTest &lt; Test::Unit::TestCase
 		def add1(a); a.to_i + 1; end;
 		def add2(*a); @args = a; a.size end;
 	end
-	def test_hoge2
+	def test_property_and_method
 		hoge = Hoge2.new
 		cx = SpiderMonkey::Context.new
 		cx.set_property( &quot;hoge&quot;, hoge );</diff>
      <filename>test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>af5695f8289ef5abcb9e60acd8fa296e897528d8</id>
    </parent>
  </parents>
  <author>
    <name>nazoking</name>
    <email>nazoking@368abcae-401b-0410-88d4-195e74ebbf5f</email>
  </author>
  <url>http://github.com/matthewd/ruby-mozjs/commit/391f558fe1d472426cca8d0fc90438b927f71d15</url>
  <id>391f558fe1d472426cca8d0fc90438b927f71d15</id>
  <committed-date>2006-10-08T10:15:10-07:00</committed-date>
  <authored-date>2006-10-08T10:15:10-07:00</authored-date>
  <message>        * Change : pkg-config &#12434;&#20351;&#12358;&#12424;&#12358;&#12395;&#22793;&#26356;( kou )
        * Fix: rbsm.js &#12434;&#28155;&#20184;&#12375;&#24536;&#12428;&#12390;&#12356;&#12383;&#12398;&#12391;&#36861;&#21152;


git-svn-id: http://ruby-spidermonkey.googlecode.com/svn/trunk@3 368abcae-401b-0410-88d4-195e74ebbf5f</message>
  <tree>7e0145656dcc719582f03ee3fa7c732786195e82</tree>
  <committer>
    <name>nazoking</name>
    <email>nazoking@368abcae-401b-0410-88d4-195e74ebbf5f</email>
  </committer>
</commit>
