bug-gnulib
[Top][All Lists]
Advanced

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

Re: gnulib-tool feature request


From: Simon Josefsson
Subject: Re: gnulib-tool feature request
Date: Fri, 26 Feb 2010 22:10:29 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

Sam Steingold <address@hidden> writes:

> Since I use gnulib in several sub-modules, I need to avoid conflicts
> between different gnulib imports.
> thus I need to make all those _GL_* constants module-specific.
> thus I need gnulib-tool to accept a --macro-prefix option and this patch:

I believe the recommended way to avoid conflicts between different
gnulib imports is to use a separate configure.ac for each gnulib import,
at least that is how I make it work.  Is fixing the _GL_ constants
really sufficient?  I doubt that it is enough given the amount of
config.h stuff that influences what gets defined/overriden in
gnulib-provided header files.  But if there is a simpler solution, it
would be useful because having separate configure.ac's adds some
bootstrapping overhead.

/Simon

> iff --git a/gnulib-tool b/gnulib-tool
> index ea451ec..6ed5e8e 100755
> --- a/gnulib-tool
> +++ b/gnulib-tool
> @@ -2846,6 +2846,9 @@
> s,^\(.................................................[^ ]*\) *,
>        break
>      fi
>    done
> +  test -n ${macro_prefix} && sed_transform_lib_file=$sed_transform_lib_file"
> +    s/_GL_/_${macro_prefix}_GL_/g
> +  "
>    sed_transform_main_lib_file="$sed_transform_lib_file"
>    if test -n "$do_copyrights"; then
>      if test -n "$lgpl"; then




reply via email to

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