bug-gawk
[Top][All Lists]
Advanced

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

Re: MinGw port of gawkextlib


From: Manuel Collado
Subject: Re: MinGw port of gawkextlib
Date: Thu, 12 May 2022 12:53:33 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

El 11/05/2022 a las 17:39, Andrew J. Schorr escribió:
On Wed, May 11, 2022 at 05:35:24PM +0200, Manuel Collado wrote:
El 11/05/2022 a las 14:53, Andrew J. Schorr escribió:
Hi,

On Wed, May 11, 2022 at 01:18:20PM +0200, Manuel Collado wrote:
The first attempt choked on the lack of a recent version of
autotools on MinGw.

I'm confused by this. The package tarballs should not require autotools,
because the configure script and Makefile.in templates have already been
generated and are inside the tarball. Why is autotools of any version
needed on MinGW?

I need to verify what exactly was done in the first attempt. The
configure script is generated by a specific version of Autotools. I
assume that running configure requires some pieces of the autotools
machinery, probably the .m4 macros, which must be version compatible
with the autotools version used to generate configure.

Or is configure fully standalone and do not require anything else?

Yes -- it should be fully standalone and not require any autotools present on
the system. The distribution packages should be self-contained, except for of
course requiring make and a shell and a C/C++ compiler and the libraries that
it's linking against.

Ok. I was wrong. Not a configure issue.

But porting to Windows required patching some files used by autotools. In particular "test/test.makefile", included by "test/Makefile.am". And then autotools had to be rerun to regenerate "configure" and "Makefile.in".

---------------------
$ diff original/gawk-mpfr-1.1.0/test/test.makefile code/gawk-mpfr-1.1.0/test/test.makefile
1c1
< CMP = cmp
---
> CMP = diff -qa --strip-trailing-cr
25c25
< AWK = LC_ALL=$${GAWKLOCALE:-C} LANG=$${GAWKLOCALE:-C} AWKLIBPATH=../.libs:`$(GAWKPROG) 'BEGIN {print ENVIRON["AWKLIBPATH"]}'` PATH=$(GEBINPFX)$$PATH LD_LIBRARY_PATH=$(GELIBPFX)$$LD_LIBRARY_PATH DYLD_LIBRARY_PATH=$(GELIBPFX)$$DYLD_LIBRARY_PATH $(VALGRIND) $(GAWKPROG)
---
> AWK = LC_ALL=$${GAWKLOCALE:-C} LANG=$${GAWKLOCALE:-C} AWKLIBPATH=../.libs PATH=$(GEBINPFX)$$PATH LD_LIBRARY_PATH=$(GELIBPFX)$$LD_LIBRARY_PATH DYLD_LIBRARY_PATH=$(GELIBPFX)$$DYLD_LIBRARY_PATH $(VALGRIND) $(GAWKPROG)
37c37
<       for i in _* ; \
---
>       @for i in _* ; \
47c47
<       done | more
---
>       done | (more || less)
----------------------

Regards.
--
Manuel Collado - http://mcollado.z15.es



reply via email to

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