2
===================================================================
3
--- gdal.orig/configure 2012-02-20 11:36:33.000000000 +0100
4
+++ gdal/configure 2012-02-20 11:41:37.000000000 +0100
5
@@ -24425,7 +24425,7 @@
6
$as_echo_n "(cached) " >&6
8
ac_check_lib_save_LIBS=$LIBS
9
-LIBS="-lspatialite $LIBS"
10
+LIBS="-lspatialite -lsqlite3 $LIBS"
11
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14
@@ -24463,7 +24463,7 @@
16
if test "$SPATIALITE_INIT_FOUND" = "yes"; then
18
- LIBS="$LIBS -lspatialite"
19
+ LIBS="$LIBS -lspatialite -lsqlite3"
23
@@ -24478,7 +24478,7 @@
24
$as_echo_n "(cached) " >&6
26
ac_check_lib_save_LIBS=$LIBS
27
-LIBS="-lspatialite -L$with_spatialite/lib -lspatialite $LIBS"
28
+LIBS="-lspatialite -L$with_spatialite/lib -lspatialite -lsqlite3 $LIBS"
29
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32
@@ -24528,7 +24528,7 @@
33
# as there's a spatialite.h file in it, which we don't want to include.
34
# We want to include include/spatialite.h instead !
35
SQLITE3_CFLAGS="-I$with_spatialite/include"
36
- LIBS="$LIBS -L$with_spatialite/lib -lspatialite"
37
+ LIBS="$LIBS -L$with_spatialite/lib -lspatialite -lsqlite3"
40
elif test -f "$with_spatialite/include/spatialite.h" -a \