[PATCH app-x11perf] config: use Autoconf rather than sed to substitute $libdir

Julien Cristau jcristau at debian.org
Fri Jan 21 08:34:07 PST 2011


On Fri, Jan 21, 2011 at 08:31:23 -0500, Gaetan Nadon wrote:

> The path substitution in x11perfcomp script can be done at configuration
> time using Autoconf. This is an alternative to using sed and requires
> less Makefile work.
> 
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> ---
>  Makefile.am    |   14 +------
>  configure.ac   |    6 +++-
>  x11pcomp.cpp   |  103 ------------------------------------------------------
>  x11perfcomp.in |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 112 insertions(+), 116 deletions(-)
>  delete mode 100644 x11pcomp.cpp
>  create mode 100644 x11perfcomp.in
> 
I'm not sure.  Using autoconf means you get the non-expanded version of
the variable, which means you need to keep track of which variables have
to be defined in x11perfcomp.in.  At least in theory that could change
in a new autoconf version.

Cheers,
Julien


More information about the xorg-devel mailing list