Lines 64-69
Link Here
|
64 |
AC_ARG_WITH(libsdl, |
64 |
AC_ARG_WITH(libsdl, |
65 |
AC_HELP_STRING([--without-libsdl], [Do not use libsdl.]), |
65 |
AC_HELP_STRING([--without-libsdl], [Do not use libsdl.]), |
66 |
[], [with_libsdl=yes]) |
66 |
[], [with_libsdl=yes]) |
|
|
67 |
AC_ARG_WITH(sdlgfx, |
68 |
AC_HELP_STRING([--without-sdlgfx], [Do not use sdlgfx.]), |
69 |
[], [with_sdlgfx=yes]) |
67 |
AC_GNU_SOURCE |
70 |
AC_GNU_SOURCE |
68 |
|
71 |
|
69 |
dnl Initialize libtool |
72 |
dnl Initialize libtool |
Lines 306-325
Link Here
|
306 |
fi |
309 |
fi |
307 |
AM_CONDITIONAL(HAVE_SDL, test x$have_sdl = xtrue) |
310 |
AM_CONDITIONAL(HAVE_SDL, test x$have_sdl = xtrue) |
308 |
|
311 |
|
309 |
dnl *** |
312 |
dnl ******************************************************************** |
310 |
dnl Check for SDL_gfx which is used by y4mhist to display a graphical |
313 |
dnl Check for SDL_gfx which is used by y4mhist to display a graphical |
311 |
dnl histogram. |
314 |
dnl histogram. |
312 |
dnl *** |
315 |
dnl ******************************************************************** |
313 |
AC_SUBST(SDLgfx_LIBS) |
316 |
have_sdlgfx=false |
314 |
if test x$have_sdl = xtrue; then |
317 |
if test x$with_sdlgfx != xno ; then |
315 |
OLD_LIBS="$LIBS" |
318 |
AC_SUBST(SDLgfx_LIBS) |
316 |
LIBS="$LIBS -lSDL -lSDL_gfx" |
319 |
if test x$have_sdl = xtrue; then |
317 |
AC_CHECK_LIB(SDL_gfx, vlineColor, |
320 |
OLD_LIBS="$LIBS" |
318 |
[SDLgfx_LIBS="-lSDL_gfx" |
321 |
LIBS="$LIBS -lSDL -lSDL_gfx" |
319 |
AC_DEFINE(HAVE_SDLgfx, 1, [SDL_gfx library present]) |
322 |
AC_CHECK_LIB(SDL_gfx, vlineColor, |
320 |
have_sdlgfx=true ],[have_sdlgfx=false]) |
323 |
[SDLgfx_LIBS="-lSDL_gfx" |
321 |
LIBS="$OLD_LIBS" |
324 |
AC_DEFINE(HAVE_SDLgfx, 1, [SDL_gfx library present]) |
|
|
325 |
have_sdlgfx=true ],[have_sdlgfx=false]) |
326 |
LIBS="$OLD_LIBS" |
327 |
fi |
322 |
fi |
328 |
fi |
|
|
329 |
AM_CONDITIONAL(HAVE_SDLgfx, test x$have_sdlgfx = xtrue) |
323 |
|
330 |
|
324 |
dnl ******************************************************************** |
331 |
dnl ******************************************************************** |
325 |
dnl Test for MMX support if an IA32 platform. If on a PPC then look for |
332 |
dnl Test for MMX support if an IA32 platform. If on a PPC then look for |