[PATCH libX11] Add AC_ARG_VAR for GROFF and PS2PDF

Dan Nicholson dbn.lists at gmail.com
Tue Oct 20 12:34:18 PDT 2009


On Tue, Oct 20, 2009 at 12:28 PM, Jeremy Huddleston <jeremyhu at apple.com> wrote:
> This allows you to set these environment variables to choose which binary to
> use rather than searching $PATH
>
> Signed-off-by: Jeremy Huddleston <jeremyhu at freedesktop.org>
> ---
>  configure.ac |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/configure.ac b/configure.ac
> index db83f26..20f2f24 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -429,7 +429,10 @@ AC_DEFINE_DIR(XERRORDB, XERRORDB, [Location of error
> message database])
>  XORG_CHECK_MALLOC_ZERO
>
>  # Specification documents are currently provided in troff format
> +AC_ARG_VAR([GROFF], [Path to the 'groff' executable])
>  AC_PATH_PROGS([GROFF], [groff], [none], [$PATH:/usr/gnu/bin])
> +
> +AC_ARG_VAR([PS2PDF], [Path to the 'ps2pdf' executable])
>  AC_PATH_PROGS([PS2PDF], [ps2pdf], [none], [$PATH:/usr/gnu/bin])
>
>  AC_MSG_CHECKING([whether to build specifications])

I'm pretty sure AC_PATH_PROG{,S} already check the environment
variables. What AC_ARG_VAR does is put a blurb in the --help output
and allow you to pass it on the command line. E.g., ./configure
GROFF=/foo/groff. Is that what you want?

--
Dan


More information about the xorg-devel mailing list