mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-02 15:50:17 +01:00
[configure.in] Forbid arbitrary CAIRO_ patterns in the output
This commit is contained in:
parent
33ed2fffb5
commit
8da361470f
2 changed files with 16 additions and 2 deletions
11
acinclude.m4
11
acinclude.m4
|
|
@ -2,8 +2,6 @@ dnl -*- mode: autoconf -*-
|
|||
|
||||
# serial 1
|
||||
|
||||
m4_pattern_forbid([_CAIRO])
|
||||
|
||||
dnl Usage:
|
||||
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
|
||||
AC_DEFUN([GTK_DOC_CHECK],
|
||||
|
|
@ -120,6 +118,15 @@ esac
|
|||
])# AX_C_FLOAT_WORDS_BIGENDIAN
|
||||
|
||||
|
||||
|
||||
dnl ==========================================================================
|
||||
dnl
|
||||
dnl Cairo-specific macros
|
||||
dnl
|
||||
m4_pattern_forbid([CAIRO])
|
||||
|
||||
dnl ==========================================================================
|
||||
|
||||
dnl Usage:
|
||||
dnl CAIRO_BIGENDIAN
|
||||
dnl
|
||||
|
|
|
|||
|
|
@ -201,6 +201,7 @@ endif
|
|||
])
|
||||
])
|
||||
|
||||
m4_pattern_allow(^CAIRO_HAS_)
|
||||
m4_define([_CAIRO_BUILD_FEATURE_NAME_NORMALIZED],
|
||||
[CAIRO_HAS_[$1]m4_bmatch([$1],[$2$],,[$2])])
|
||||
|
||||
|
|
@ -255,6 +256,7 @@ dnl Report
|
|||
dnl
|
||||
|
||||
dnl Accumulator for warning messages
|
||||
m4_pattern_allow(^CAIRO_WARNING_MESSAGE$)
|
||||
CAIRO_WARNING_MESSAGE=""
|
||||
|
||||
AC_DEFUN([CAIRO_REPORT],
|
||||
|
|
@ -346,6 +348,7 @@ dnl Generate {src,boilerplate}/Config.mk{,.win32}
|
|||
dnl
|
||||
|
||||
dnl Accumulators
|
||||
m4_pattern_allow(^CAIRO_CONFIG_AMAKE$)
|
||||
CAIRO_CONFIG_AMAKE='# Generated by configure. Do not edit.
|
||||
|
||||
include $(top_srcdir)/src/Sources.mk
|
||||
|
|
@ -361,6 +364,7 @@ all_cairo_sources = $(cairo_sources)
|
|||
supported_cairo_headers = $(cairo_headers)
|
||||
unsupported_cairo_headers =
|
||||
'
|
||||
m4_pattern_allow(^CAIRO_CONFIG_WIN32$)
|
||||
CAIRO_CONFIG_WIN32=$CAIRO_CONFIG_AMAKE
|
||||
|
||||
dnl Generate
|
||||
|
|
@ -378,8 +382,11 @@ dnl List of enabled, supported but disabled, and all supported features
|
|||
dnl
|
||||
|
||||
dnl Accumulators
|
||||
m4_pattern_allow(^CAIRO_FEATURES$)
|
||||
CAIRO_FEATURES=""
|
||||
m4_pattern_allow(^CAIRO_NO_FEATURES$)
|
||||
CAIRO_NO_FEATURES=""
|
||||
m4_pattern_allow(^CAIRO_SUPPORTED_FEATURES$)
|
||||
CAIRO_SUPPORTED_FEATURES=""
|
||||
|
||||
dnl Generate src/cairo-features.h and src/cairo-supported-features.h
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue