configure
changeset 10777 2883d23b5a28
parent 10660 1ae4e8001b73
child 10787 2a0bcfc4d35c
equal deleted inserted replaced
10776:7e935b2c430f 10777:2883d23b5a28
   816 enable_arts_shared
   816 enable_arts_shared
   817 enable_nas
   817 enable_nas
   818 enable_nas_shared
   818 enable_nas_shared
   819 enable_sndio
   819 enable_sndio
   820 enable_sndio_shared
   820 enable_sndio_shared
       
   821 enable_fusionsound
       
   822 enable_fusionsound_shared
   821 enable_diskaudio
   823 enable_diskaudio
   822 enable_dummyaudio
   824 enable_dummyaudio
       
   825 enable_libsamplerate
       
   826 enable_libsamplerate_shared
   823 enable_video_wayland
   827 enable_video_wayland
   824 enable_video_wayland_qt_touch
   828 enable_video_wayland_qt_touch
   825 enable_wayland_shared
   829 enable_wayland_shared
   826 enable_video_mir
   830 enable_video_mir
   827 enable_mir_shared
   831 enable_mir_shared
   838 enable_video_x11_vm
   842 enable_video_x11_vm
   839 enable_video_vivante
   843 enable_video_vivante
   840 enable_video_cocoa
   844 enable_video_cocoa
   841 enable_video_directfb
   845 enable_video_directfb
   842 enable_directfb_shared
   846 enable_directfb_shared
   843 enable_fusionsound
       
   844 enable_fusionsound_shared
       
   845 enable_video_dummy
   847 enable_video_dummy
   846 enable_video_opengl
   848 enable_video_opengl
   847 enable_video_opengles
   849 enable_video_opengles
   848 enable_video_opengles1
   850 enable_video_opengles1
   849 enable_video_opengles2
   851 enable_video_opengles2
  1542   --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
  1544   --enable-arts-shared    dynamically load aRts audio support [[default=yes]]
  1543   --enable-nas            support the NAS audio API [[default=yes]]
  1545   --enable-nas            support the NAS audio API [[default=yes]]
  1544   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1546   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1545   --enable-sndio          support the sndio audio API [[default=yes]]
  1547   --enable-sndio          support the sndio audio API [[default=yes]]
  1546   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
  1548   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
       
  1549   --enable-fusionsound    use FusionSound audio driver [[default=no]]
       
  1550   --enable-fusionsound-shared
       
  1551                           dynamically load fusionsound audio support
       
  1552                           [[default=yes]]
  1547   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1553   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1548   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  1554   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
       
  1555   --enable-libsamplerate  use libsamplerate for audio rate conversion
       
  1556                           [[default=yes]]
       
  1557   --enable-libsamplerate-shared
       
  1558                           dynamically load libsamplerate [[default=yes]]
  1549   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1559   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1550   --enable-video-wayland-qt-touch
  1560   --enable-video-wayland-qt-touch
  1551                           QtWayland server support for Wayland video driver
  1561                           QtWayland server support for Wayland video driver
  1552                           [[default=yes]]
  1562                           [[default=yes]]
  1553   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1563   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1574   --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
  1584   --enable-video-vivante  use Vivante EGL video driver [[default=yes]]
  1575   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
  1585   --enable-video-cocoa    use Cocoa video driver [[default=yes]]
  1576   --enable-video-directfb use DirectFB video driver [[default=no]]
  1586   --enable-video-directfb use DirectFB video driver [[default=no]]
  1577   --enable-directfb-shared
  1587   --enable-directfb-shared
  1578                           dynamically load directfb support [[default=yes]]
  1588                           dynamically load directfb support [[default=yes]]
  1579   --enable-fusionsound    use FusionSound audio driver [[default=no]]
       
  1580   --enable-fusionsound-shared
       
  1581                           dynamically load fusionsound audio support
       
  1582                           [[default=yes]]
       
  1583   --enable-video-dummy    use dummy video driver [[default=yes]]
  1589   --enable-video-dummy    use dummy video driver [[default=yes]]
  1584   --enable-video-opengl   include OpenGL support [[default=yes]]
  1590   --enable-video-opengl   include OpenGL support [[default=yes]]
  1585   --enable-video-opengles include OpenGL ES support [[default=yes]]
  1591   --enable-video-opengles include OpenGL ES support [[default=yes]]
  1586   --enable-video-opengles1
  1592   --enable-video-opengles1
  1587                           include OpenGL ES 1.1 support [[default=yes]]
  1593                           include OpenGL ES 1.1 support [[default=yes]]
 18545             have_audio=yes
 18551             have_audio=yes
 18546         fi
 18552         fi
 18547     fi
 18553     fi
 18548 }
 18554 }
 18549 
 18555 
       
 18556 CheckFusionSound()
       
 18557 {
       
 18558     # Check whether --enable-fusionsound was given.
       
 18559 if test "${enable_fusionsound+set}" = set; then :
       
 18560   enableval=$enable_fusionsound;
       
 18561 else
       
 18562   enable_fusionsound=no
       
 18563 fi
       
 18564 
       
 18565     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
       
 18566         fusionsound=no
       
 18567 
       
 18568         FUSIONSOUND_REQUIRED_VERSION=1.1.1
       
 18569 
       
 18570         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 18571 set dummy pkg-config; ac_word=$2
       
 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 18573 $as_echo_n "checking for $ac_word... " >&6; }
       
 18574 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 18575   $as_echo_n "(cached) " >&6
       
 18576 else
       
 18577   case $PKG_CONFIG in
       
 18578   [\\/]* | ?:[\\/]*)
       
 18579   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 18580   ;;
       
 18581   *)
       
 18582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 18583 for as_dir in $PATH
       
 18584 do
       
 18585   IFS=$as_save_IFS
       
 18586   test -z "$as_dir" && as_dir=.
       
 18587     for ac_exec_ext in '' $ac_executable_extensions; do
       
 18588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 18589     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 18590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 18591     break 2
       
 18592   fi
       
 18593 done
       
 18594   done
       
 18595 IFS=$as_save_IFS
       
 18596 
       
 18597   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 18598   ;;
       
 18599 esac
       
 18600 fi
       
 18601 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 18602 if test -n "$PKG_CONFIG"; then
       
 18603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 18604 $as_echo "$PKG_CONFIG" >&6; }
       
 18605 else
       
 18606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 18607 $as_echo "no" >&6; }
       
 18608 fi
       
 18609 
       
 18610 
       
 18611         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
       
 18612 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
       
 18613         if test x$PKG_CONFIG != xno; then
       
 18614             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
       
 18615                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
       
 18616                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
       
 18617                 fusionsound=yes
       
 18618             fi
       
 18619         fi
       
 18620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
       
 18621 $as_echo "$fusionsound" >&6; }
       
 18622 
       
 18623         if test x$fusionsound = xyes; then
       
 18624 
       
 18625 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
       
 18626 
       
 18627             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
       
 18628             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
       
 18629 
       
 18630             # Check whether --enable-fusionsound-shared was given.
       
 18631 if test "${enable_fusionsound_shared+set}" = set; then :
       
 18632   enableval=$enable_fusionsound_shared;
       
 18633 else
       
 18634   enable_fusionsound_shared=yes
       
 18635 fi
       
 18636 
       
 18637             fusionsound_shared=no
       
 18638             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
       
 18639 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
       
 18640             if test x$have_loadso != xyes && \
       
 18641                test x$enable_fusionsound_shared = xyes; then
       
 18642                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
       
 18643 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
       
 18644             fi
       
 18645             if test x$have_loadso = xyes && \
       
 18646                test x$enable_fusionsound_shared = xyes; then
       
 18647 
       
 18648 cat >>confdefs.h <<_ACEOF
       
 18649 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
       
 18650 _ACEOF
       
 18651 
       
 18652                 fusionsound_shared=yes
       
 18653                 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
       
 18654             else
       
 18655                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
       
 18656                 SUMMARY_audio="${SUMMARY_audio} fusionsound"
       
 18657             fi
       
 18658             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
       
 18659 $as_echo "$fusionsound_shared" >&6; }
       
 18660 
       
 18661             have_audio=yes
       
 18662         fi
       
 18663     fi
       
 18664 }
       
 18665 
 18550 CheckDiskAudio()
 18666 CheckDiskAudio()
 18551 {
 18667 {
 18552     # Check whether --enable-diskaudio was given.
 18668     # Check whether --enable-diskaudio was given.
 18553 if test "${enable_diskaudio+set}" = set; then :
 18669 if test "${enable_diskaudio+set}" = set; then :
 18554   enableval=$enable_diskaudio;
 18670   enableval=$enable_diskaudio;
 18578 
 18694 
 18579 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
 18695 $as_echo "#define SDL_AUDIO_DRIVER_DUMMY 1" >>confdefs.h
 18580 
 18696 
 18581         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
 18697         SOURCES="$SOURCES $srcdir/src/audio/dummy/*.c"
 18582         SUMMARY_audio="${SUMMARY_audio} dummy"
 18698         SUMMARY_audio="${SUMMARY_audio} dummy"
       
 18699     fi
       
 18700 }
       
 18701 
       
 18702 CheckLibSampleRate()
       
 18703 {
       
 18704     # Check whether --enable-libsamplerate was given.
       
 18705 if test "${enable_libsamplerate+set}" = set; then :
       
 18706   enableval=$enable_libsamplerate;
       
 18707 else
       
 18708   enable_libsamplerate=yes
       
 18709 fi
       
 18710 
       
 18711     if test x$enable_libsamplerate = xyes; then
       
 18712         ac_fn_c_check_header_mongrel "$LINENO" "samplerate.h" "ac_cv_header_samplerate_h" "$ac_includes_default"
       
 18713 if test "x$ac_cv_header_samplerate_h" = xyes; then :
       
 18714   have_samplerate_h_hdr=yes
       
 18715 else
       
 18716   have_samplerate_h_hdr=no
       
 18717 fi
       
 18718 
       
 18719 
       
 18720         if test x$have_samplerate_h_hdr = xyes; then
       
 18721 
       
 18722 $as_echo "#define HAVE_LIBSAMPLERATE_H 1" >>confdefs.h
       
 18723 
       
 18724 
       
 18725             # Check whether --enable-libsamplerate-shared was given.
       
 18726 if test "${enable_libsamplerate_shared+set}" = set; then :
       
 18727   enableval=$enable_libsamplerate_shared;
       
 18728 else
       
 18729   enable_libsamplerate_shared=yes
       
 18730 fi
       
 18731 
       
 18732 
       
 18733             if test x$enable_libsamplerate_shared = xyes; then
       
 18734                 samplerate_lib=`find_lib "libsamplerate.so.*" "" | sed 's/.*\/\(.*\)/\1/; q'`
       
 18735                 if test x$samplerate_lib != x; then
       
 18736                     echo "-- dynamic samplerate -> $samplerate_lib"
       
 18737 
       
 18738 cat >>confdefs.h <<_ACEOF
       
 18739 #define SDL_LIBSAMPLERATE_DYNAMIC "$samplerate_lib"
       
 18740 _ACEOF
       
 18741 
       
 18742                 fi
       
 18743             fi
       
 18744         fi
 18583     fi
 18745     fi
 18584 }
 18746 }
 18585 
 18747 
 18586 CheckVisibilityHidden()
 18748 CheckVisibilityHidden()
 18587 {
 18749 {
 20953             fi
 21115             fi
 20954             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
 21116             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $directfb_shared" >&5
 20955 $as_echo "$directfb_shared" >&6; }
 21117 $as_echo "$directfb_shared" >&6; }
 20956             SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
 21118             SDL_CFLAGS="$SDL_CFLAGS $DIRECTFB_CFLAGS"
 20957             have_video=yes
 21119             have_video=yes
 20958         fi
       
 20959     fi
       
 20960 }
       
 20961 
       
 20962 CheckFusionSound()
       
 20963 {
       
 20964     # Check whether --enable-fusionsound was given.
       
 20965 if test "${enable_fusionsound+set}" = set; then :
       
 20966   enableval=$enable_fusionsound;
       
 20967 else
       
 20968   enable_fusionsound=no
       
 20969 fi
       
 20970 
       
 20971     if test x$enable_audio = xyes -a x$enable_fusionsound = xyes; then
       
 20972         fusionsound=no
       
 20973 
       
 20974         FUSIONSOUND_REQUIRED_VERSION=1.1.1
       
 20975 
       
 20976         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 20977 set dummy pkg-config; ac_word=$2
       
 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 20979 $as_echo_n "checking for $ac_word... " >&6; }
       
 20980 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 20981   $as_echo_n "(cached) " >&6
       
 20982 else
       
 20983   case $PKG_CONFIG in
       
 20984   [\\/]* | ?:[\\/]*)
       
 20985   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 20986   ;;
       
 20987   *)
       
 20988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 20989 for as_dir in $PATH
       
 20990 do
       
 20991   IFS=$as_save_IFS
       
 20992   test -z "$as_dir" && as_dir=.
       
 20993     for ac_exec_ext in '' $ac_executable_extensions; do
       
 20994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 20995     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 20996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 20997     break 2
       
 20998   fi
       
 20999 done
       
 21000   done
       
 21001 IFS=$as_save_IFS
       
 21002 
       
 21003   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 21004   ;;
       
 21005 esac
       
 21006 fi
       
 21007 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 21008 if test -n "$PKG_CONFIG"; then
       
 21009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 21010 $as_echo "$PKG_CONFIG" >&6; }
       
 21011 else
       
 21012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 21013 $as_echo "no" >&6; }
       
 21014 fi
       
 21015 
       
 21016 
       
 21017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support" >&5
       
 21018 $as_echo_n "checking for FusionSound $FUSIONSOUND_REQUIRED_VERSION support... " >&6; }
       
 21019         if test x$PKG_CONFIG != xno; then
       
 21020             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
       
 21021                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
       
 21022                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
       
 21023                 fusionsound=yes
       
 21024             fi
       
 21025         fi
       
 21026         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound" >&5
       
 21027 $as_echo "$fusionsound" >&6; }
       
 21028 
       
 21029         if test x$fusionsound = xyes; then
       
 21030 
       
 21031 $as_echo "#define SDL_AUDIO_DRIVER_FUSIONSOUND 1" >>confdefs.h
       
 21032 
       
 21033             SOURCES="$SOURCES $srcdir/src/audio/fusionsound/*.c"
       
 21034             EXTRA_CFLAGS="$EXTRA_CFLAGS $FUSIONSOUND_CFLAGS"
       
 21035 
       
 21036             # Check whether --enable-fusionsound-shared was given.
       
 21037 if test "${enable_fusionsound_shared+set}" = set; then :
       
 21038   enableval=$enable_fusionsound_shared;
       
 21039 else
       
 21040   enable_fusionsound_shared=yes
       
 21041 fi
       
 21042 
       
 21043             fusionsound_shared=no
       
 21044             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FusionSound dynamic loading support" >&5
       
 21045 $as_echo_n "checking for FusionSound dynamic loading support... " >&6; }
       
 21046             if test x$have_loadso != xyes && \
       
 21047                test x$enable_fusionsound_shared = xyes; then
       
 21048                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&5
       
 21049 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic fusionsound loading" >&2;}
       
 21050             fi
       
 21051             if test x$have_loadso = xyes && \
       
 21052                test x$enable_fusionsound_shared = xyes; then
       
 21053 
       
 21054 cat >>confdefs.h <<_ACEOF
       
 21055 #define SDL_AUDIO_DRIVER_FUSIONSOUND_DYNAMIC "libfusionsound.so"
       
 21056 _ACEOF
       
 21057 
       
 21058                 fusionsound_shared=yes
       
 21059                 SUMMARY_audio="${SUMMARY_audio} fusionsound(dynamic)"
       
 21060             else
       
 21061                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $FUSIONSOUND_LIBS"
       
 21062                 SUMMARY_audio="${SUMMARY_audio} fusionsound"
       
 21063             fi
       
 21064             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fusionsound_shared" >&5
       
 21065 $as_echo "$fusionsound_shared" >&6; }
       
 21066 
       
 21067             have_audio=yes
       
 21068         fi
 21120         fi
 21069     fi
 21121     fi
 21070 }
 21122 }
 21071 
 21123 
 21072 CheckDummyVideo()
 21124 CheckDummyVideo()
 23142         CheckPulseAudio
 23194         CheckPulseAudio
 23143         CheckARTSC
 23195         CheckARTSC
 23144         CheckESD
 23196         CheckESD
 23145         CheckNAS
 23197         CheckNAS
 23146         CheckSNDIO
 23198         CheckSNDIO
       
 23199         CheckFusionSound
       
 23200         CheckLibSampleRate
 23147         CheckX11
 23201         CheckX11
 23148         CheckDirectFB
 23202         CheckDirectFB
 23149         CheckFusionSound
       
 23150         CheckOpenGLX11
 23203         CheckOpenGLX11
 23151         CheckOpenGLESX11
 23204         CheckOpenGLESX11
 23152         CheckMir
 23205         CheckMir
 23153         CheckWayland
 23206         CheckWayland
 23154         CheckLibUDev
 23207         CheckLibUDev