Re: no config.sub/guess copied

2005-11-15 Thread Stepan Kasal
Hello,

On Tue, Nov 15, 2005 at 08:07:01AM +, Vincent Torri wrote:
> AC_CANONICAL_TARGET
> AC_CONFIG_AUX_DIR([.])
> AM_INIT_AUTOMAKE

AC_CONFIG_AUX_DIR has to be called before AC_CANONICAL_TARGET.

> I mention that I use the autotools in  such a way that there is no
> Makefile.am. I have already my Makefile written.

The purpose of automake is to generate Makefile.in from Makefile.am.
Using automake without Makefile.am is very unusual; this implies it is
not debugged.

Perhaps you could use only Autoconf, perhaps with aclocal, but without
automake.

> Of course, I would like to avoid adding these files to the distribution 
> of my project.

The term "distribution" in automake terminology means the tarball
project-1.2.3.tar.gz, as generated by "make dist".
To build any program from this tarball, you don't need neither Autoconf,
nor Automake; their work is already done, and the results are contained
within that tarball: ./configure, Makefile.in, etc.
In this sense, config.sub and config.guess have to be distributed, as
'configure' is distributed.

But you mean another "distribution": something like CVS or other version
management system's repository.
But such repository usually contains a script which calls autotools to
initialte the build.  This script might be called "bootstrap" or
"autogen.sh".  I suggest that this script copies the needed files from
somewhere (eg. /usr/share/automake-1.9/), without calling automake.

Hope this helps,
Stepan Kasal




Re: no config.sub/guess copied

2005-11-15 Thread Ralf Wildenhues
* Stepan Kasal wrote on Tue, Nov 15, 2005 at 12:35:15PM CET:
> 
> But you mean another "distribution": something like CVS or other version
> management system's repository.
> But such repository usually contains a script which calls autotools to
> initialte the build.  This script might be called "bootstrap" or
> "autogen.sh".  I suggest that this script copies the needed files from
> somewhere (eg. /usr/share/automake-1.9/), without calling automake.

FWIW, I'd just have bootstrap (which is for the developer, not the
end-user) do a

$WGET \
  http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/config/config/config.guess 
\
  http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/config/config/config.sub

and then of course put these files in the tarball.  :)
(But I can't say how stable these URLs are; they've certainly changed a
number of months back when savannah moved to viewcvs.)

Cheers,
Ralf




Re: no config.sub/guess copied

2005-11-15 Thread Vincent Torri
On Tue, 15 Nov 2005, Stepan Kasal wrote:

> Hello,
> 
> On Tue, Nov 15, 2005 at 08:07:01AM +, Vincent Torri wrote:
> > AC_CANONICAL_TARGET
> > AC_CONFIG_AUX_DIR([.])
> > AM_INIT_AUTOMAKE
> 
> AC_CONFIG_AUX_DIR has to be called before AC_CANONICAL_TARGET.

ok, that should be the main problem, I think.

> 
> > I mention that I use the autotools in  such a way that there is no
> > Makefile.am. I have already my Makefile written.
> 
> The purpose of automake is to generate Makefile.in from Makefile.am.
> Using automake without Makefile.am is very unusual;

I know several projects that uses the configure script to initalise some 
files only. But it's true that most of the project uses at least automake 
and autoconf (and libtool) with the usual manner.

> this implies it is not debugged.

of course.
 
> Perhaps you could use only Autoconf, perhaps with aclocal, but without
> automake.

but then the cvs must contain config.sub/guess, as I have to use 
AC_CANONICAL_TARGET, right ?
 
> > Of course, I would like to avoid adding these files to the distribution 
> > of my project.
> 
> The term "distribution" in automake terminology means the tarball
> project-1.2.3.tar.gz, as generated by "make dist".
> To build any program from this tarball, you don't need neither Autoconf,
> nor Automake; their work is already done, and the results are contained
> within that tarball: ./configure, Makefile.in, etc.
> In this sense, config.sub and config.guess have to be distributed, as
> 'configure' is distributed.
> 
> But you mean another "distribution": something like CVS or other version
> management system's repository.

right, I'm sorry.

> But such repository usually contains a script which calls autotools to
> initialte the build.  This script might be called "bootstrap" or
> "autogen.sh".

yes, it's the case.

> I suggest that this script copies the needed files from
> somewhere (eg. /usr/share/automake-1.9/), without calling automake.

ok. That answer my question above. So I just have to be sure that 
config.sub/guess which is in CVS works with the AC_CANONICAL_TARGET that 
the person that compiles the program (from the bootstrapping) has. Is it 
possible ?

thank you

Vincent Torri





Re: no config.sub/guess copied

2005-11-20 Thread Stepan Kasal
Hello,

On Tue, Nov 15, 2005 at 06:14:39PM +, Vincent Torri wrote:
> > I suggest that this script copies the needed files from
> > somewhere (eg. /usr/share/automake-1.9/), without calling automake.
> 
> ok. That answer my question above. So I just have to be sure that 
> config.sub/guess which is in CVS works with the AC_CANONICAL_TARGET that 
> the person that compiles the program (from the bootstrapping) has. Is it 
> possible ?

I suppose that by "which is in CVS" you mean the project "config" on
savannah, which is used by the command proposed by Ralf:

$WGET \
  http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/config/config/config.guess 
\
  http://savannah.gnu.org/cgi-bin/viewcvs/~checkout~/config/config/config.sub

Well, the interface between Autoconf and config.sub/guess is very simple
and I don't think it has ever changed.

So we can support that they are always compatible.

Have a nice day,
Stepan




Re: no config.sub/guess copied

2005-11-20 Thread Thomas Dickey

On Sun, 20 Nov 2005, Stepan Kasal wrote:


Well, the interface between Autoconf and config.sub/guess is very simple
and I don't think it has ever changed.


It was broken for a while around autoconf 2.51

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net