On Mon, Aug 04, 2003 at 11:45:39PM +0900, ts wrote:
> >>>>> "B" == Brian Candler <B.Candler / pobox.com> writes:
> 
> B> creating Makefile
> B> creating Makefile
> 
>  Try to remove the first create_makefile("mysql")

That was it. Thank you!

For anyone else who needs it, here's a summary of what I needed to do (note:
not tested under 1.6.8, so additional changes may be needed for mysql-ruby
to compile on both platforms)

Regards,

Brian.

--- mysql-ruby-2.4.4.orig/extconf.rb    Tue Jan 28 23:59:59 2003
+++ mysql-ruby-2.4.4/extconf.rb Mon Aug  4 16:00:26 2003
@@ -24,13 +24,12 @@
 else
   exit 1
 end
-create_makefile("mysql")
 
 # make mysql constant
 File::open("conftest.c", "w") do |f|
   f.puts src
 end
-cpp = Config::expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
+cpp = Config::expand(cpp_command(""))
 unless system "#{cpp} > confout" then
   exit 1
 end
@@ -58,3 +57,6 @@
     end
   end
 end
+
+create_makefile("mysql")
+