e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
17 lines
841 B
Diff
17 lines
841 B
Diff
diff --git a/meson.build b/meson.build
|
|
index 5e7f57d5..3fe89e8c 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -171,10 +171,10 @@ endif
|
|
stemmer_inc_dirs = include_directories()
|
|
if get_option('stemming')
|
|
stemmer_lib = cc.find_library('stemmer', required: true)
|
|
- stemmer_inc_dirs = include_directories(['/usr/include'])
|
|
+ stemmer_inc_dirs = include_directories(['@libstemmer_includedir@'])
|
|
if not cc.has_header('libstemmer.h')
|
|
if cc.has_header('libstemmer/libstemmer.h')
|
|
- stemmer_inc_dirs = include_directories('/usr/include/libstemmer')
|
|
+ stemmer_inc_dirs = include_directories('@libstemmer_includedir@/libstemmer')
|
|
else
|
|
error('Unable to find Snowball header "libstemmer.h". Please ensure libstemmer/Snowball is installed properly in order to continue.')
|
|
endif
|