[Freeciv-Dev] Re: (PR#11825) os x building
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11825 >
Ruben Zilibowitz wrote:
> So, I'm thinking, shouldn't the configure script be responsible for
> calling sdl-config somewhere in the following line:
>
> configure:14467: gcc -no-cpp-precomp -o conftest -Wall -Wpointer-arith
> -Wcast-align -Wmissing-prototypes -Wmissing-declarations -O3
> -I/sw/include -L/sw/lib conftest.c -lSDL_mixer -lz -liconv >&5
Ahh. I would imagine so. This patch may fix it; please test (you'll
have to rerun autogen.sh).
For information about AC_CHECK_LIB see
http://www.gnu.org/software/autoconf/.
-jason
Index: m4/sound.m4
===================================================================
RCS file: /home/freeciv/CVS/freeciv/m4/sound.m4,v
retrieving revision 1.4
diff -u -r1.4 sound.m4
--- m4/sound.m4 19 Apr 2004 17:24:16 -0000 1.4
+++ m4/sound.m4 7 Jan 2005 01:49:16 -0000
@@ -34,7 +34,7 @@
AM_PATH_SDL($SDL_VERSION, SDL=yes, SDL=no)
if test "x$SDL" != "xno"; then
AC_CHECK_HEADER(SDL/SDL_mixer.h, SDL_mixer_h=1, SDL_mixer_h=0)
- AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, SDL_mixer=yes)
+ AC_CHECK_LIB(SDL_mixer, Mix_OpenAudio, [SDL_mixer=yes], [$SDL_LIBS])
AC_MSG_CHECKING(building SDL_mixer support)
if test "x$SDL_mixer_h" = "x1"; then
if test "x$SDL_mixer" = "xyes"; then
- [Freeciv-Dev] Re: (PR#11825) os x building, Jason Short, 2005/01/06
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/06
- [Freeciv-Dev] Re: (PR#11825) os x building,
Jason Short <=
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/06
- [Freeciv-Dev] Re: (PR#11825) os x building, Per I. Mathisen, 2005/01/07
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/07
- [Freeciv-Dev] Re: (PR#11825) os x building, Jason Short, 2005/01/07
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/08
- [Freeciv-Dev] Re: (PR#11825) os x building, Ruben Zilibowitz, 2005/01/08
|
|