Skip to content

Commit

Permalink
meson: check scdoc version
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Feb 27, 2019
1 parent 9f58b27 commit f5976e5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ conf_data.set10('HAVE_SYSTEMD', systemd.found())
conf_data.set10('HAVE_ELOGIND', elogind.found())
conf_data.set10('HAVE_TRAY', have_tray)

scdoc = find_program('scdoc', required: get_option('man-pages'))
if scdoc.found()
scdoc_dep = dependency('scdoc', version: '>=1.9', native: true, required: get_option('man-pages'))
if scdoc_dep.found()
scdoc = find_program(scdoc_dep.get_pkgconfig_variable('scdoc'))
sh = find_program('sh')
mandir = get_option('mandir')
man_files = [
Expand Down Expand Up @@ -126,6 +127,8 @@ if scdoc.found()
install_dir: '@0@/man@1@'.format(mandir, section)
)
endforeach
else
scdoc = disabler()
endif

add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir)), language : 'c')
Expand Down

0 comments on commit f5976e5

Please sign in to comment.