arakiken / mlterm

Other
147 stars 13 forks source link

support/document how to run autoreconf -f -i #94

Open ametzler opened 2 months ago

ametzler commented 2 months ago

Hello, updating autotools for mlterm does not work out of the box, the minimal working way I found was

 env AUTOMAKE=true AUTOHEADER=true \
  autom4te_buildauxdir=/usr/share/libtool/build-aux/ \
  autoreconf  -f -i . baselib encodefilter

Specifically autoheader needs to be disabled to avoid

autoheader: warning: missing template: CALLOC_CHECK_OVERFLOW autoheader: warning: Use AC_DEFINE([CALLOC_CHECK_OVERFLOW], [], [Description]) autoheader: warning: missing template: HAVE_GNU_SOURCE autoheader: warning: missing template: HAVE_SYS_BITYPES_H autoreconf: error: /usr/bin/autoheader failed with exit status: 1

and automake to avoid

automake: error: no 'Makefile.am' found for any configure output autoreconf: error: automake failed with exit status: 1

and setting autom4te_buildauxdir is the needed because automake cannot run which causes

configure.in: error: required file 'compile' not found configure.in: error: required file 'missing' not found

It would be nice if there either was a simpler way or if it was documented.

TIA, cu Andreas

hramrach commented 1 month ago

I don't think automake and autoheader are used, that's why they fail. At the very least for automake the lack of Makefile.am should make that obvious.