Re: arg-nonnull.h & warn-on-use.h in build-aux

2010-02-26 Thread Sam Steingold

Ralf Wildenhues wrote:


* Sam Steingold wrote on Wed, Feb 24, 2010 at 01:15:13AM CET:

On 2/23/10, Bruno Haible wrote:

 Autoconf requires it to be constant. You specify it through the
 AC_CONFIG_AUX_DIR macro. In other words, if you add to
  clisp/modules/syscalls/configure.ac
 the line
  AC_CONFIG_AUX_DIR([../../src/build-aux])
 then you need only one copy of arg-nonnull.h, at
  clisp/src/build-aux/arg-nonnull.h

I already have CL_MODULE_COMMON_CHECKS() in clisp/modules/syscalls/configure.in
which expands to
AC_REQUIRE([AC_CONFIG_AUX_DIR],
[AC_CONFIG_AUX_DIR([$cl_cv_clisp_libdir/build-aux])])


That won't work right, the aux dir name needs to be known to autoreconf
and 'automake --add-missing', so it needs to be a literal string.


how about

AC_CONFIG_AUX_DIR([...@clisp_libdir@/build-aux])

is it more kosher?





gnulib-tool feature request

2010-02-26 Thread Sam Steingold
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:

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





Re: gnulib-tool feature request

2010-02-26 Thread Simon Josefsson
Sam Steingold  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




Re: gnulib-tool feature request

2010-02-26 Thread Sam Steingold
On 2/26/10, Simon Josefsson  wrote:
> Sam Steingold  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,

of course I have a separate configure.in for each module!
the setup works just fine, I just don't want to have to apply the
patch to gnulib-too myself each time I pull from gnulib.

-- 
Sam Steingold 




gnulib without autoconf?

2010-02-26 Thread Ben Walton

Hi All,

I'm wondering whether its feasible to use gnulib in a project that
doesn't use autoconf/automake?  Would it be easier to first auto* the
project and then add gnulib?

Thanks
-Ben