beta-0.89.2
[luatex.git] / source / m4 / kpse-cairo-flags.m4
bloba41c7df6d2a4de44fbbbfa65c076e7afd4f7c25c
1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2012-2015 Peter Breitenlohner <tex-live@tug.org>
4 # This file is free software; the copyright holder
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # KPSE_CAIRO_FLAGS
9 # ----------------
10 # Provide the configure options '--with-system-cairo' (if in the TL tree).
12 # Set the make variables CAIRO_INCLUDES and CAIRO_LIBS to the CPPFLAGS and
13 # LIBS required for the `-lcairo' library in libs/cairo/ of the TL tree.
14 AC_DEFUN([KPSE_CAIRO_FLAGS], [dnl
15 AC_REQUIRE([KPSE_PIXMAN_FLAGS])[]dnl
16 _KPSE_LIB_FLAGS([cairo], [cairo], [],
17                 [-IBLD/libs/cairo/cairo], [BLD/libs/cairo/libcairo.a], [],
18                 [], [${top_builddir}/../../libs/cairo/cairo/cairo.h])[]dnl
19 ]) # KPSE_CAIRO_FLAGS
21 # KPSE_CAIRO_OPTIONS([WITH-SYSTEM])
22 # ---------------------------------
23 AC_DEFUN([KPSE_CAIRO_OPTIONS], [_KPSE_LIB_OPTIONS([cairo], [$1], [pkg-config])])
25 # KPSE_CAIRO_SYSTEM_FLAGS
26 # -----------------------
27 AC_DEFUN([KPSE_CAIRO_SYSTEM_FLAGS], [dnl
28 _KPSE_PKG_CONFIG_FLAGS([cairo], [cairo], [1.12])])