Changeset 537


Ignore:
Timestamp:
Apr 23, 2011, 12:48:45 AM (6 years ago)
Author:
sam
Message:

build: try to autodetect SDL_Mixer upon build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/configure.ac

    r511 r537  
    4747LIBS="$LIBS $SDL_LIBS $X_LIBS"
    4848
    49 # Add SDL_Mixer
    50 LIBS="$LIBS -lSDL_mixer"
    51 CFLAGS="${CFLAGS} -DUSE_SDL_MIXER"
    52 CPPFLAGS="${CPPFLAGS} -DUSE_SDL_MIXER"
     49dnl Check for SDL mixer
     50ac_cv_my_have_sdl_mixer="no"
     51save_CPPFLAGS="${CPPFLAGS}"
     52CPPFLAGS="${CPPFLAGS} ${SDL_CFLAGS}"
     53AC_CHECK_HEADERS(SDL/SDL_mixer.h, [ac_cv_my_have_sdl="yes"])
     54CPPFLAGS="${save_CPPFLAGS}"
     55if test "${ac_cv_my_have_sdl}" != "no"; then
     56  AC_DEFINE(USE_SDL_MIXER, 1, Define to 1 to use SDL_Mixer)
     57  LIBS="$LIBS -lSDL_mixer"
     58fi
    5359
    5460if test "${enable_debug}" = "yes"; then
Note: See TracChangeset for help on using the changeset viewer.