configure.in
changeset 2947 fec0db6c44b7
parent 2857 5e04bdd79479
child 2998 d364ee9b9c15
equal deleted inserted replaced
2946:29e1f863a844 2947:fec0db6c44b7
  1347             have_video=yes
  1347             have_video=yes
  1348         fi
  1348         fi
  1349     fi
  1349     fi
  1350 }
  1350 }
  1351 
  1351 
       
  1352 dnl Find FusionSound
       
  1353 CheckFusionSound()
       
  1354 {
       
  1355     AC_ARG_ENABLE(fusionsound,
       
  1356 AC_HELP_STRING([--enable-fusionsound], [use FusionSound audio driver [[default=no]]]),
       
  1357                   , enable_fusionsound=no)
       
  1358     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
       
  1359         fusionsound=no
       
  1360 
       
  1361         FUSIONSOUND_REQUIRED_VERSION=1.1.1
       
  1362 
       
  1363         AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
       
  1364         AC_MSG_CHECKING(for FusionSound $FUSIONSOUND_REQUIRED_VERSION support)
       
  1365         if test x$PKG_CONFIG != xno; then
       
  1366             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
       
  1367                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
       
  1368                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
       
  1369                 fusionsound=yes
       
  1370             fi
       
  1371         fi
       
  1372         AC_MSG_RESULT($fusionsound)
       
  1373 
       
  1374         if test x$fusionsound = xyes; then
       
  1375             AC_DEFINE(SDL_AUDIO_DRIVER_FUSIONSOUND)
       
  1376             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
       
  1377             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
       
  1378             
       
  1379             AC_ARG_ENABLE(fusionsound-shared,
       
  1380 AC_HELP_STRING([--enable-fusionsound-shared], [dynamically load fusionsound audio support [[default=yes]]]),
       
  1381                           , enable_fusionsound_shared=yes)
       
  1382             fusionsound_shared=no
       
  1383 	        AC_MSG_CHECKING(for FusionSound dynamic loading support)
       
  1384             if test x$have_loadso != xyes && \
       
  1385                test x$enable_fusionsound_shared = xyes; then
       
  1386                 AC_MSG_WARN([You must have SDL_LoadObject() support for dynamic fusionsound loading])
       
  1387             fi
       
  1388             if test x$have_loadso = xyes && \
       
  1389                test x$enable_fusionsound_shared = xyes; then
       
  1390                 AC_DEFINE_UNQUOTED(SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC, "libfusionsound.so")
       
  1391             	fusionsound_shared=yes
       
  1392             else
       
  1393 	            EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
       
  1394             fi
       
  1395 	        AC_MSG_RESULT($fusionsound_shared)
       
  1396             
       
  1397             have_audio=yes
       
  1398         fi
       
  1399     fi
       
  1400 }
       
  1401 
  1352 dnl See if we're running on PlayStation 2 hardware
  1402 dnl See if we're running on PlayStation 2 hardware
  1353 CheckPS2GS()
  1403 CheckPS2GS()
  1354 {
  1404 {
  1355     AC_ARG_ENABLE(video-ps2gs,
  1405     AC_ARG_ENABLE(video-ps2gs,
  1356 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [[default=no]]]),
  1406 AC_HELP_STRING([--enable-video-ps2gs], [use PlayStation 2 GS video driver [[default=no]]]),
  2205         CheckNAS
  2255         CheckNAS
  2206         CheckX11
  2256         CheckX11
  2207         CheckNANOX
  2257         CheckNANOX
  2208         CheckFBCON
  2258         CheckFBCON
  2209         CheckDirectFB
  2259         CheckDirectFB
       
  2260         CheckFusionSound
  2210         CheckPS2GS
  2261         CheckPS2GS
  2211         CheckSVGA
  2262         CheckSVGA
  2212         CheckVGL
  2263         CheckVGL
  2213         CheckWscons
  2264         CheckWscons
  2214         CheckOpenGLX11
  2265         CheckOpenGLX11