[PATCH libX11 2/2] config: use XORG_WITH_PERL macro to replace custom program check

Alan Coopersmith alan.coopersmith at oracle.com
Fri Jun 24 17:44:13 PDT 2011


On 06/23/11 05:43 AM, Gaetan Nadon wrote:
> New in version util-macros 1.15, the macro does the usual checking
> for program path and provides an interface for makefile variables.
> 
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> ---
>  configure.ac |   10 +---------
>  1 files changed, 1 insertions(+), 9 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index c91ae98..22367c6 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -31,6 +31,7 @@ XORG_WITH_FOP([1.0])
>  XORG_WITH_XSLTPROC
>  XORG_CHECK_SGML_DOCTOOLS(1.8)
>  XORG_PROG_RAWCPP
> +XORG_WITH_PERL
>  
>  # Required when PKG_CHECK_MODULES called within an if statement
>  PKG_PROG_PKG_CONFIG
> @@ -65,15 +66,6 @@ if test x"$LDFLAGS_FOR_BUILD" = x; then
>  fi
>  AC_SUBST(LDFLAGS_FOR_BUILD)
>  
> -# Find perl for "make check" tests in nls/Makefile.am
> -AC_ARG_WITH(perl,
> -	AS_HELP_STRING([--with-perl=<path>],
> -			[path to perl interpreter for build-time tests]),
> -	[PERL=$withval ; AC_MSG_CHECKING([perl]) ;
> -	 AC_MSG_RESULT([(from --with-perl) $PERL])],
> -	AC_CHECK_PROGS([PERL], [perl], [no]))
> -AM_CONDITIONAL(HAVE_PERL, test x$PERL != xno)
> -
>  # Checks for pkg-config packages
>  
>  # Always required

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list