[PATCH weston] configure.ac: honour the wayland-scanner.pc

Bill Spitzak spitzak at gmail.com
Mon Feb 16 12:46:43 PST 2015


I'm pretty certain there was an old version that looked in the PATH, but 
this has the really unfortunate effect that the build does not work, you 
have to manually create the wayland_scanner and put it in the path, then 
run the build.

Would it be possible to search the path, and if not found, search the 
install location? Anybody doing cross-compilation can the do the extra 
work to put the build machine's wayland-scanner on the path, but 
somebody building wayland for their own machine will get a working copy 
right away.

On 02/16/2015 05:04 AM, Andrew Oakley wrote:
> On 10/02/15 14:42, Emil Velikov wrote:
>> Currently we use the wayland-scanner executable as found with
>> AC_PATH_PROG, and after that check the presence of wayland-scanner.pc
>>
>> Even if the latter is pointing to another wayland-scanner we silently
>> ignore it. Rework things to check for the relevant variable in the *.pc
>> file first, and then fall back to checking via AC_PATH_PROG.
>
> I'm not sure this works when cross compiling.  What you really want to
> do is look for wayland-scanner on the build machine rather than the
> target.  With these changes we will try and run wayland-scanner for the
> target (assuming it has been built).
>
> It doesn't look like there is currently any way of using the m4 macros
> shipped with pkg-config to run the right one.
>
> For now I think it is better to just look in PATH, although getting the
> feature into the pkg-config m4 scripts and then using it would be good
> in future.
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>


More information about the wayland-devel mailing list