On Tue, Apr 13, 2010 at 3:38 AM, Yaakov (Cygwin/X)
<[email protected]> wrote:
> From: Yaakov Selkowitz <[email protected]>
>
> Signed-off-by: Yaakov Selkowitz <[email protected]>
> ---
>  xorg-macros.m4.in |   16 +++++++++-------
>  1 files changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
> index 412ee66..f904f0c 100644
> --- a/xorg-macros.m4.in
> +++ b/xorg-macros.m4.in
> @@ -178,21 +178,23 @@ AC_SUBST([DRIVER_MAN_DIR])
>  AC_SUBST([ADMIN_MAN_DIR])
>  ]) # XORG_MANPAGE_SECTIONS
>
> -# XORG_CHECK_SGML_DOCTOOLS
> +# XORG_CHECK_SGML_DOCTOOLS([MIN-VERSION])
>  # ------------------------
>  # Minimum version: 1.7.0
>  #
>  # Defines the variable XORG_SGML_PATH containing the location of X11/defs.ent
>  # provided by xorg-sgml-doctools, if installed.
>  AC_DEFUN([XORG_CHECK_SGML_DOCTOOLS],[
> -AC_MSG_CHECKING([for X.Org SGML entities])
> +AC_MSG_CHECKING([for X.Org SGML entities m4_ifval([$1],[>= $1])])
>  XORG_SGML_PATH=
> -PKG_CHECK_EXISTS([xorg-sgml-doctools],
> +PKG_CHECK_EXISTS([xorg-sgml-doctools m4_ifval([$1],[>= $1])],
>     [XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`],
> -    [if test x"$cross_compiling" != x"yes" ; then
> -        AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent],
> -                      [XORG_SGML_PATH=$prefix/share/sgml])
> -     fi])
> +    [m4_ifval([$1],[:],
> +        [if test x"$cross_compiling" != x"yes" ; then
> +            AC_CHECK_FILE([$prefix/share/sgml/X11/defs.ent],
> +                          [XORG_SGML_PATH=$prefix/share/sgml])
> +         fi])
> +    ])
>
>  if test "x$XORG_SGML_PATH" != "x" ; then
>    AC_MSG_RESULT([$XORG_SGML_PATH])
> --

Oh, that's a good compromise, although people without the pkg-config
file won't be told anything useful. That's probably OK until a time we
can just drop the fallback path and use the .pc file unconditionally.

Reviewed-by: Dan Nicholson <[email protected]>
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to