Technical support > Mac

2.3 release compilation issues

<< < (2/2)

Mattn:
in configure.ac are already some mac specific hacks

modify configure.ac, run autoconf and ./configure again

keybounce:
This is fun.

--- Code: ---        # fix this darn SDL stuff....
        with_sdl_config=/opt/local/bin/sdl-config

--- End code ---

Except that this doesn't exist in the official SDL release :-).

Later,

--- Code: ---if test $TARGET_OS != "darwin"
then
        PKG_CHECK_MODULES(SDL, sdl, HAVE_SDL="yes", HAVE_SDL="no")
else
        HAVE_SDL=no
fi

if test "x$HAVE_SDL" = "xno" ; then
        sdl_config=$with_sdl_config
        AC_CHECK_PROG(HAVE_SDL_CONFIG,$sdl_config,yes)

--- End code ---
So if we're "darwin", then we assume we don't have SDL (without checking /Library/Frameworks), and then look for the macports version.

<Sigh>.

I don't see how to "fix" it properly, but I think I can see how to hard-code what will work.

Mattn:
yes - i don't know whether there is framework support in the autotools - that's why all those hacks are needed.

Navigation

[0] Message Index

[*] Previous page

Go to full version