summaryrefslogtreecommitdiff
blob: 5ea7914091bb39afa31c57574e4401d98fd16ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- configure.ac_orig	2012-07-14 07:14:19.000000000 +1000
+++ configure.ac	2012-07-23 14:17:38.702411605 +1000
@@ -298,12 +298,11 @@
                 CPPFLAGS="-I$with_sqlite/include $CPPFLAGS"
                 AC_CHECK_HEADERS([sqlite3.h], [
                         sqlite="yes"
-                        if test -r "$with_sqlite/lib/libsqlite3.a"; then
+                        AC_CHECK_LIB(sqlite3, main,[
+
                                 DBCPPFLAGS="$DBCPPFLAGS -I$with_sqlite/include"
                                 DBLDFLAGS="$DBLDFLAGS -L$with_sqlite/lib/ -lsqlite3"
-                        else
-                                sqlite="no"
-                        fi
+                        ],[sqlite="no"])
                 ], [sqlite="no"])
                 LDFLAGS=$svd_LDFLAGS
                 CPPFLAGS=$svd_CPPFLAGS