diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-09-10 18:22:07 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-09-10 18:23:45 -0400 |
commit | 59fafcee8d6f3b5ba81e0bb1d90eb65b8e5daf93 (patch) | |
tree | e4069d2757e29239290c37d008379c65ed66ac2e /build/configure.ac.enable | |
parent | e0b4f8dc8fd9861359f913dd69daa0ffeb66907a (diff) |
[configure.ac.build] Keep private features private
For private features:
- Don't list them in cairo-features.h; Define them in config.h instead,
- Don't generate/install a .pc file,
- Don't warn if enabled.
Diffstat (limited to 'build/configure.ac.enable')
-rw-r--r-- | build/configure.ac.enable | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/build/configure.ac.enable b/build/configure.ac.enable index 4a6fb579a..d3e53c13f 100644 --- a/build/configure.ac.enable +++ b/build/configure.ac.enable @@ -464,8 +464,8 @@ CAIRO_FEATURE_VARS_REGISTER([REQUIRES BASE]) CAIRO_FEATURE_VARS_REGISTER([CFLAGS NONPKGCONFIG_CFLAGS]) CAIRO_FEATURE_VARS_REGISTER([LIBS NONPKGCONFIG_LIBS], [$LIBS]) -dnl Generate .pc files for enabled features -CAIRO_FEATURE_HOOK_REGISTER(yes,*,*, +dnl Generate .pc files for enabled public features +CAIRO_FEATURE_HOOK_REGISTER(yes,*,!, [ AC_CONFIG_FILES(src/cr_feature_pc:src/cairo-features.pc.in, [ @@ -493,18 +493,18 @@ dnl dnl Generate src/cairo-features.h src/cairo-supported-features.h dnl -dnl Collect list of enabled features -CAIRO_FEATURE_HOOK_REGISTER(yes,*,*, +dnl Collect list of enabled public features +CAIRO_FEATURE_HOOK_REGISTER(yes,*,!, [ CAIRO_FEATURES="cr_feature_tag $CAIRO_FEATURES" ]) -dnl Collect list of all supported features -CAIRO_FEATURE_HOOK_REGISTER(*,!no,*, +dnl Collect list of all supported public features +CAIRO_FEATURE_HOOK_REGISTER(*,!no,!, [ CAIRO_SUPPORTED_FEATURES="cr_feature_tag $CAIRO_SUPPORTED_FEATURES" ]) -dnl Collect list of all supported but disabled features -CAIRO_FEATURE_HOOK_REGISTER(no,!no,*, +dnl Collect list of all supported disabled public features +CAIRO_FEATURE_HOOK_REGISTER(no,!no,!, [ CAIRO_NO_FEATURES="cr_feature_tag $CAIRO_NO_FEATURES" ]) @@ -554,6 +554,11 @@ CAIRO_CONFIG_COMMANDS([$srcdir/src/cairo-supported-features.h], CAIRO_SUPPORTED_FEATURES='$CAIRO_SUPPORTED_FEATURES' ]) +dnl For enabled private features just define them in config.h. No fanfare! +CAIRO_FEATURE_HOOK_REGISTER(yes,*,, +[ + AC_DEFINE(cr_feature_tag, 1, [Define to 1 to enable cairo's ]cr_feature_name[ feature]) +]) dnl =========================================================================== dnl @@ -563,8 +568,8 @@ dnl dnl Accumulator for warning messages CAIRO_FEATURE_VARS_REGISTER([WARNING_MESSAGE]) -dnl Collect warning message for enabled unsupported features -CAIRO_FEATURE_HOOK_REGISTER(yes,no,*, +dnl Collect warning message for enabled unsupported public features +CAIRO_FEATURE_HOOK_REGISTER(yes,no,!, [ CAIRO_WARNING_MESSAGE="$CAIRO_WARNING_MESSAGE]m4_newline[m4_text_wrap([The ]cr_feature_name[ feature is still under active development and is included in this release only as a preview. It does NOT fully work yet and incompatible changes may yet be made to ]cr_feature_name[ specific API.], [--- ],, 78)m4_newline" ]) |