mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
meson: Add a sanity check to the prefix option
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
parent
13202eb9ed
commit
1e86d616f5
1 changed files with 6 additions and 0 deletions
|
|
@ -28,7 +28,13 @@ soversion = 0
|
||||||
# current = minor * 100 + micro
|
# current = minor * 100 + micro
|
||||||
libversion = '@0@.@1@.0'.format(soversion, pa_version_minor.to_int() * 100 + pa_version_micro.to_int())
|
libversion = '@0@.@1@.0'.format(soversion, pa_version_minor.to_int() * 100 + pa_version_micro.to_int())
|
||||||
|
|
||||||
|
# Paths
|
||||||
|
|
||||||
prefix = get_option('prefix')
|
prefix = get_option('prefix')
|
||||||
|
if not prefix.startswith('/')
|
||||||
|
error('Prefix is not absolute: "@0@"'.format(prefix))
|
||||||
|
endif
|
||||||
|
|
||||||
datadir = join_paths(prefix, get_option('datadir'))
|
datadir = join_paths(prefix, get_option('datadir'))
|
||||||
localstatedir = join_paths(prefix, get_option('localstatedir'))
|
localstatedir = join_paths(prefix, get_option('localstatedir'))
|
||||||
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue