[PATCH 2/2] Add XORG_DEFAULT_OPTIONS meta-macro.

Jeremy Huddleston jeremyhu at freedesktop.org
Mon Aug 31 21:31:06 PDT 2009


+1 for modularity
-1 for this coming in after you finished releasing 20ish updates =/

Peter Hutterer wrote:
> Many modules use the same set of m4 macros. Additions to the macros require
> updating the configure.ac for each module affected. In the case of e.g.
> protos and libs this means updating every single module.
> 
> This patch adds a XORG_DEFAULT_OPTIONS meta-macro that uses the other macros
> defined. Macros can be added to this meta-macro and modules immediately get
> to make use of it - without changes required to configure.ac.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  xorg-macros.m4.in |   15 +++++++++++++++
>  1 files changed, 15 insertions(+), 0 deletions(-)
> 
> diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
> index 5c22332..ef9f34f 100644
> --- a/xorg-macros.m4.in
> +++ b/xorg-macros.m4.in
> @@ -485,3 +485,18 @@ fi
>  CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
>  AC_SUBST([CWARNFLAGS])
>  ]) # XORG_STRICT_OPTION
> +
> +# XORG_DEFAULT_OPTIONS
> +# --------------------
> +# Minimum version: 1.3.0
> +#
> +# Defines default options for X.Org modules.
> +#
> +AC_DEFUN([XORG_DEFAULT_OPTIONS], [
> +XORG_CWARNFLAGS
> +XORG_STRICT_OPTION
> +XORG_CHECK_MALLOC_ZERO
> +XORG_RELEASE_VERSION
> +XORG_CHANGELOG
> +XORG_MANPAGE_SECTIONS
> +]) # XORG_DEFAULT_OPTIONS



More information about the xorg-devel mailing list