1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-02 15:48:59 +00:00

build: Ony fail to build DVI by missing libkpathsea

libspectre usage in the dvi backend is used conditionally on
a cairo device. Therefore, the lack of headers for libspectre
should not disable the support for DVI files.
This commit is contained in:
Germán Poo-Caamaño 2022-03-02 01:08:25 -03:00
parent 70cfab1923
commit 9560397180

View File

@ -372,7 +372,7 @@ endif
# *** DVI ***
kpathsea_dep = cc.find_library('kpathsea', required: get_option('dvi'))
enable_dvi = libspectre_dep.found() and kpathsea_dep.found() and cc.has_function('kpse_init_prog', dependencies: kpathsea_dep)
enable_dvi = kpathsea_dep.found() and cc.has_function('kpse_init_prog', dependencies: kpathsea_dep)
if enable_dvi
config_h.set10('STDC_HEADERS', true)
@ -395,7 +395,7 @@ if enable_dvi
backends += {'dvi': mime_types_list.get('dvi')}
evince_mime_types += mime_types_list.get('dvi')
elif get_option('dvi').auto()
warning('Dvi support is disabled since kpathsea library or libspectre are not found. Check your installation.')
warning('Dvi support is disabled since kpathsea library was not found. Check your installation.')
endif
# *** PDF ***