adplug / adplay-unix

AdPlug's UNIX console-based frontend
GNU General Public License v2.0
12 stars 15 forks source link

autoconf / m4 update #24

Closed mywave82 closed 1 year ago

mywave82 commented 1 year ago

This is one of the details pointed out in #23 by @dmitrysmagin

Malvineous commented 1 year ago

Is regen.sh better than running autoreconf?

mywave82 commented 1 year ago

Is regen.sh better than running autoreconf?

I followed a guide that probably was outdated, but which commands autoreconf implies probably depends on the version of it, and considering we have bugreports about gcc 4.x toolchain issues in adplug I guess it didn't hurt.

mywave82 commented 1 year ago

Also autoreconf fails if you are changing m4 stuff and already have existing Makefile. Then you either need to purge manually or run the commands manually as implied in ./regen.sh

(testing out replacing the outdated getopt files with using libgnu tools, so experiences these edge cases while in process)

Malvineous commented 1 year ago

Interesting, fair enough. I'm no expert but I assumed autoreconf was supposed to avoid the need for a shell script, but if it doesn't work, then I have no problem with the shell script.

The main AdPlug readme has for a long time suggested to run autoreconf --install - I presume that doesn't fare any better in those situations you mention?

mywave82 commented 1 year ago

autoreconf --install should work for most use-cases, but if there any failures or autotools stop working while hacking on it, the steps inside ./regen.sh should get you back on-track.

I can update readme to include that later (I'm about to log off)

mywave82 commented 1 year ago

Just merged info from regen.sh into README instead