WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
29518
[Gtk] Use the SQLite3 headers from WebKitLibraries if sqlite3 is undetected
https://bugs.webkit.org/show_bug.cgi?id=29518
Summary
[Gtk] Use the SQLite3 headers from WebKitLibraries if sqlite3 is undetected
Jan Alonzo
Reported
2009-09-19 00:38:10 PDT
If the system has no pkg-config for SQLite, use the SQLite3 headers from WebKitLibraries as a fallback. Patch forthcoming.
Attachments
Patch v1
(1.40 KB, patch)
2009-09-19 00:39 PDT
,
Jan Alonzo
gustavo
: review+
gustavo
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Jan Alonzo
Comment 1
2009-09-19 00:39:46 PDT
Created
attachment 39816
[details]
Patch v1
Xan Lopez
Comment 2
2009-09-21 22:32:24 PDT
Comment on
attachment 39816
[details]
Patch v1
>+ PKG_CHECK_MODULES([SQLITE3], >+ [sqlite3 >= $SQLITE_REQUIRED_VERSION], >+ [sqlite3_has_pkg_config=yes], >+ [sqlite3_has_pkg_config=no]) >+ if test "$sqlite3_has_pkg_config" = "no"; then >+ AC_SEARCH_LIBS([sqlite3_open16], [sqlite3], >+ [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"], >+ [AC_MSG_ERROR([SQLite3 is required to enable Database support])]) >+ fi
Silly question, shouldn't you first try to use the headers that might come with the library you just found with AC_SEARCH_LIBS? Or are you assuming that if there's no sqlite pkg-config file the only library you'll find is the one in WebKitLibraries?
> AC_SUBST([SQLITE3_CFLAGS]) > AC_SUBST([SQLITE3_LIBS]) > fi
Eric Seidel (no email)
Comment 3
2009-09-23 17:28:17 PDT
Looks fine to me, although I'm not sure you really want to be depending on those headers. Xan seems to have an objection though, so waiting for you to respond to that before marking r+. Or rather, Xan can mark it r+ if he agrees.
Holger Freyther
Comment 4
2009-10-05 20:50:16 PDT
Did we ever get a report that someone wanted to use sqlite3 but didn't have pkg-config files?
Jan Alonzo
Comment 5
2009-10-06 02:23:45 PDT
(In reply to
comment #2
)
> (From update of
attachment 39816
[details]
) > >+ PKG_CHECK_MODULES([SQLITE3], > >+ [sqlite3 >= $SQLITE_REQUIRED_VERSION], > >+ [sqlite3_has_pkg_config=yes], > >+ [sqlite3_has_pkg_config=no]) > >+ if test "$sqlite3_has_pkg_config" = "no"; then > >+ AC_SEARCH_LIBS([sqlite3_open16], [sqlite3], > >+ [SQLITE3_LIBS="$LIBS";SQLITE3_CFLAGS="-I $srcdir/WebKitLibraries/WebCoreSQLite3"], > >+ [AC_MSG_ERROR([SQLite3 is required to enable Database support])]) > >+ fi > > Silly question, shouldn't you first try to use the headers that might come with > the library you just found with AC_SEARCH_LIBS? > Or are you assuming that if there's no sqlite pkg-config file the only library > you'll find is the one in WebKitLibraries?
Yes. If there's no .pc file or there's no pkg-config binary, I'll just use what's in WebKitLibraries. (In reply to
comment #4
)
> Did we ever get a report that someone wanted to use sqlite3 but didn't have > pkg-config files?
Consider this a report.
Jan Alonzo
Comment 6
2009-10-12 04:57:10 PDT
Landed as
http://trac.webkit.org/changeset/49435
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug