[PATCH weston v2] build: Add (and use) an AC_SEARCH_LIBS wrapper

Pekka Paalanen ppaalanen at gmail.com
Mon Apr 25 10:40:01 UTC 2016


On Sat, 23 Apr 2016 12:02:58 +0200
Quentin Glidic <sardemff7+wayland at sardemff7.net> wrote:

> From: Quentin Glidic <sardemff7+git at sardemff7.net>
> 
> AC_SEARCH_LIBS is the recommended macro for these checks, unfortunately,
> we use AC_CHECK_LIB instead, and even AC_CHECK_FUNC, when only one
> AC_SEARCH_LIBS would be enough.
> 
> This wrapper macro is used much like PKG_CHECK_MODULES, as it defines
> (and AC_SUBST) the PREFIX_LIBS variable itself.
> 
> It also avoids adding unnecessary stuff to LIBS.
> 
> Signed-off-by: Quentin Glidic <sardemff7+git at sardemff7.net>
> Tested-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
> ---
>  configure.ac | 18 +++++-------------
>  m4/weston.m4 | 37 +++++++++++++++++++++++++++++++++++++
>  2 files changed, 42 insertions(+), 13 deletions(-)
>  create mode 100644 m4/weston.m4

Pushed with my R-b:
   57c83f6..9992bdc  master -> master


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 811 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20160425/e081cd3b/attachment.sig>


More information about the wayland-devel mailing list