[geary: 1/4] Use sqlite dependency when checking FTS



commit e4d368736a5869470d05641aeee2266e641e01c0
Author: Greg V <greg@unrelenting.technology>
Date:   Wed Jan 9 12:29:34 2019 +0300

    Use sqlite dependency when checking FTS
    
    On FreeBSD, checking sqlite.h without the dependency would look at
    /usr/include/sqlite.h (base system version) instead of
    /usr/local/include/sqlite.h (ports version, which has FTS and everything).

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index d18d3983..95bf584b 100644
--- a/meson.build
+++ b/meson.build
@@ -92,7 +92,7 @@ libunity = dependency('unity', version: '>= 5.12.0', required: false)
 libmessagingmenu = meson.get_compiler('c').find_library('libmessaging-menu', required: false)
 
 # Ensure SQLite was built correctly
-if not cc.has_header_symbol('sqlite3.h', 'SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER')
+if not cc.has_header_symbol('sqlite3.h', 'SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER', dependencies: sqlite)
   error('SQLite3 is missing FTS3 tokenizer support. Please compile it with -DSQLITE_ENABLE_FTS3.\n'
         + 'See https://bugzilla.gnome.org/show_bug.cgi?id=763203 for details.')
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]