News:

Simutrans Chat Room
Where cool people of Simutrans can meet up.

autoconf

Started by prissi, September 09, 2014, 11:30:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prissi

I added in r7313 an autoconf file, so configure could work. Please test it on as many a platforms as you can.

Beware This will overwrite your existing config.default!

R1dO

Not sure if intended.

The current configuration will always build the server version (e.g. posix and bit=0) if neither of the following options is given:

  • --enable-server
  • --enable-server=no
  • --disable-server
Due to default action of AC_ARG_ENABLE, see: autoconf documentation

If not intended it could be solved by changing
AC_ARG_ENABLE([server], [AS_HELP_STRING([--enable-server],[Builds a server without graphics])])
to
AC_ARG_ENABLE([server], [AS_HELP_STRING([--enable-server],[Builds a server without graphics])], [], [enable_server=no])

Hope  it helps.

prissi

Thank you very much. MY messing with autoconf was not very sucessfull. Especially the autoconf OS detect leads to non-working scripts on my Ubuntu (no install.sh found error).

Ters

autoconf is one of those things I wonder if anybody really understands how to use (as opposed to just run it). I tried learning it once, and found virtually nothing. People just seem to copy each other, and tweak in the few things they need, whereas what they don't need stays. Some projects seem to spend more time autoconf-ing than compiling.

Vladki

Tested on Debian 7 (wheezy) 32-bit. The generated config.default had config=SDL, and Make complained that it sdhould be sdl (lowercase). Otherwise seems OK.