I honestly forget whether I installed using apt or snap, but octave is not in, and there is a broken shared library libdouble-conversion.so.1
The same thing happened with emacs but I was able to build from source, so I decided to try building matlab from source.
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.