bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnumach: configure: add --with-version-suffix=STRING


From: Thomas Schwinge
Subject: Re: [PATCH] gnumach: configure: add --with-version-suffix=STRING
Date: Mon, 24 Sep 2012 00:19:18 +0200
User-agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (i486-pc-linux-gnu)

Hi!

Generally OK, but two comments:

On Mon, 24 Sep 2012 00:04:20 +0200, Pino Toscano <toscano.pino@tiscali.it> 
wrote:
> Subject: [PATCH] configure: add --with-version-suffix=STRING
> 
> Add the possibility to append a custom string to the gnumach version string.
> (Useful to distinguish different flavours of kernel.)
> 
> * configure.ac (--with-version-suffix): New option.
> (PACKAGE_VERSION_SUFFIX): New variable, set with the value of
> --with-version-suffix.
> * version.c.in (version): Append PACKAGE_VERSION_SUFFIX.
> ---
>  configure.ac |    8 ++++++++
>  version.c.in |    2 +-
>  2 files changed, 9 insertions(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index 3a7d3be..da5e09e 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -101,6 +101,14 @@ AC_CHECK_PROG([PATCH], [patch], [patch], 
> [patch-not-found])
>  # configure fragments.
>  #
>  
> +# An optional suffix for the version string.
> +AC_MSG_CHECKING([for the suffix for the version string])
> +AC_ARG_WITH(version-suffix, AC_HELP_STRING([--with-version-suffix=STRING],
> +            [append STRING to the version string]),
> +            [PACKAGE_VERSION_SUFFIX=$withval])
> +AC_MSG_RESULT([$PACKAGE_VERSION_SUFFIX])
> +AC_SUBST([PACKAGE_VERSION_SUFFIX])

Does the AC_MSG_CHECKING and AC_MSG_RESULT add any useful information to
the build log?  (You should know which option you're configuring with.)
Is --with-version-suffix the standard name for this option?


Grüße,
 Thomas

Attachment: pgpERP5Qvhv_Y.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]