$OpenBSD: patch-configure,v 1.8 2009/12/19 23:08:48 sthen Exp $
--- configure.orig	Thu Jun 25 12:45:57 2009
+++ configure	Fri Dec 18 22:16:44 2009
@@ -743,8 +743,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
 # Identity of this package.
 PACKAGE_NAME='sqlite'
 PACKAGE_TARNAME='sqlite'
-PACKAGE_VERSION='3.6.16'
-PACKAGE_STRING='sqlite 3.6.16'
+PACKAGE_VERSION='3.6.16.1'
+PACKAGE_STRING='sqlite 3.6.16.1'
 PACKAGE_BUGREPORT=''
 
 # Factoring default headers for most tests.
@@ -12259,7 +12259,7 @@ USE_AMALGAMATION=1
 # if not, then we fall back to plain tclsh.
 # TODO: try other versions before falling back?
 #
-for ac_prog in tclsh8.4 tclsh
+for ac_prog in tclsh8.5 tclsh8.4 tclsh
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
@@ -12498,8 +12498,8 @@ for ac_lib in '' pthread; do
   if test -z "$ac_lib"; then
     ac_res="none required"
   else
-    ac_res=-l$ac_lib
-    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
+    ac_res=-$ac_lib
+    LIBS="-$ac_lib  $ac_func_search_save_LIBS"
   fi
   rm -f conftest.$ac_objext conftest$ac_exeext
 if { (ac_try="$ac_link"
@@ -12920,7 +12920,7 @@ $as_echo "file not found" >&6; }
 
     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
-    eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
+    eval "TCL_STUB_LIB_SPEC=\"-L${TCL_PACKAGE_PATH} ${TCL_STUB_LIB_FLAG}_pic\""
 
 
 
