From 1ad48a50a45b4a4dbc84d9e85ea49311bb864629 Mon Sep 17 00:00:00 2001 From: Jonas Ådahl Date: Fri, 26 Mar 2021 17:48:58 +0100 Subject: build: Fix wayland-protocols.pc when using autotools MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "datadir" is not the same thing in meson and autotools. In autoconf "datadir" is "${datarootdir}", which expands to "${prefix}/share". @datarootdir@ expands to "${prefix}/share". There seems to be no variable that expands to "share". In meson "datadir" is "share". So, avoid the "datadir" variable, just expand "datarootdir" it manually instead. This unbreaks the recently broken autotools setup. Signed-off-by: Jonas Ådahl Reviewed-by: Simon Ser --- wayland-protocols.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wayland-protocols.pc.in') diff --git a/wayland-protocols.pc.in b/wayland-protocols.pc.in index d2dd276..4571fa8 100644 --- a/wayland-protocols.pc.in +++ b/wayland-protocols.pc.in @@ -1,5 +1,5 @@ prefix=@prefix@ -datarootdir=${prefix}/@datadir@ +datarootdir=@datarootdir@ pkgdatadir=${pc_sysrootdir}${datarootdir}/@PACKAGE@ Name: Wayland Protocols -- cgit v1.2.3