Found system had a "printallvariables" target -
Thought "hey, I'll do that and just fix anything wrong on the list".
Yeah, right, the list is 168,000+ lines long.
the death of "plan a".
- - - -
Plan B:
Make zlib build (it has no dependences, calls only the pkg-generic macro (which calls the pkg-inner-generic macro)).
fixing the pkg-generic macro(s) should fix 369 of the packages.
AND THEN
get the things that call the pkg-autotools macro(s) to work (which calls pkg-generic).
that should fix another 1019 of the packages.
and then if lucky, leave the pkg-cmake macro(s) for somebody else.
- - - -
pkg-generic works just as intended with my changes -
it was a problem with the makefile that ships with zlib (now BR patches it).
After lunch - fix or destroy the pkg-autotools macro.
- - - -
Mid-night++
Finally found where/why that autotools+libtool package was choking on my correction of the use of LDFLAGS - - -
Guess what - libtool has the same 'mistake' in it, as does automake-m4 files, and ...
So I found an 'easy' way to 'fix' the problem for packages that die on an "unknown option" failure in their configuration step now.
- - - -
Next (or later) morning -
It is amazing how many different ways people can screw-up an accepted usage.
Even the GNU tools folks screwing up the GNU recommended naming standards.
I think I need to step away from this project for a few days, give the brain a rest.