1 # Public macros for the TeX Live (TL) tree.
2 # Copyright (C) 2013 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 # CAIRO_FEATURES(FEATURE1, FEATURE2, ...)
9 # ---------------------------------------
10 # Where each feature has the form '[1-or-o], [text]'.
12 AC_DEFUN([CAIRO_FEATURES], [dnl
13 m4_foreach([Cairo_Feature], [$1],
14 [m4_ifset([Cairo_Feature],
15 [_CAIRO_FEATURE(Cairo_Feature)])])[]dnl
18 # _CAIRO_FEATURE(COND, TEXT)
19 # --------------------------
20 m4_define([_CAIRO_FEATURE], [dnl
21 if test "x$1" = x1; then
22 AC_DEFINE([CAIRO_HAS_]AS_TR_CPP($2), [1],
23 [Define to 1 if $2 enabled.])
25 AM_CONDITIONAL([CAIRO_HAS_]AS_TR_CPP($2), [test "x$1" = x1])