On Fri, Nov 30, 2007 at 05:40:43PM -0500, Bob Rossi wrote:
> Hi,
> 
> When I download sqlite, and compile on mingw, like this,
>   $ cd sqlite-3.5.3
>   $ ./configure --disable-shared --enable-static --disable-tcl 
> --prefix=$PWD/../install
>   $ make
> ok, up until this point, everything works.
> 
> However, when I type
>   $ make install
> it fails because tclsh isn't installed when running this command,
>   tclsh ./tool/mksqlite3c.tcl
>   make: tclsh: Command not found
> 
> Now, if I install tclsh, it then attempts to compile sqlite3.c, and
> fails with the compiler error,
>   tclsh ./tool/mksqlite3c.tcl
>   gcc-sjlj -g -Wall -Werror -DVS_DEBUG    sqlite3.c   -o sqlite3
>   sqlite3.c:91:25: error: sqliteLimit.h: No such file or directory^M
> The file sqliteLimit.h is in the src/ directory.
> 
> So, my question is, what do you think is going on with make install?
> Should it require tclsh even when I have --disable-tcl?
> Should it give me a compiler error?
> 
> What can I do to fix this issue?

Hmm, after a few hours of tracking this down, I found the exact problem.
It's a simple patch to Makefile.in. Here it is,

--- orig/sqlite-3.5.3/Makefile.in       2007-11-23 10:05:48.000000000 -0500
+++ sqlite-3.5.3/Makefile.in    2007-11-30 17:53:10.789500000 -0500
@@ -570,7 +570,7 @@
                libtclsqlite3.la $(LIBTCL)


-install:       sqlite3 libsqlite3.la sqlite3.h ${HAVE_TCL:1=tcl_install}
+install:       sqlite3$(BEXE) libsqlite3.la sqlite3.h ${HAVE_TCL:1=tcl_install}

        $(INSTALL) -d $(DESTDIR)$(libdir)
        $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
        $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin


Bob Rossi

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to