configure
changeset 8062 4fc5f66d63cc
parent 8056 abd9434c5d3e
child 8082 5b83ad3f01ac
equal deleted inserted replaced
8061:a5f8137ccf01 8062:4fc5f66d63cc
   815 enable_nas_shared
   815 enable_nas_shared
   816 enable_sndio
   816 enable_sndio
   817 enable_sndio_shared
   817 enable_sndio_shared
   818 enable_diskaudio
   818 enable_diskaudio
   819 enable_dummyaudio
   819 enable_dummyaudio
       
   820 enable_video_wayland
   820 enable_video_x11
   821 enable_video_x11
   821 with_x
   822 with_x
   822 enable_x11_shared
   823 enable_x11_shared
   823 enable_video_x11_xcursor
   824 enable_video_x11_xcursor
   824 enable_video_x11_xinerama
   825 enable_video_x11_xinerama
  1530   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1531   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1531   --enable-sndio          support the sndio audio API [[default=yes]]
  1532   --enable-sndio          support the sndio audio API [[default=yes]]
  1532   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
  1533   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
  1533   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1534   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1534   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  1535   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
       
  1536   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1535   --enable-video-x11      use X11 video driver [[default=yes]]
  1537   --enable-video-x11      use X11 video driver [[default=yes]]
  1536   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1538   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1537   --enable-video-x11-xcursor
  1539   --enable-video-x11-xcursor
  1538                           enable X11 Xcursor support [[default=yes]]
  1540                           enable X11 Xcursor support [[default=yes]]
  1539   --enable-video-x11-xinerama
  1541   --enable-video-x11-xinerama
 18631             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
 18633             EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-multichar"
 18632         fi
 18634         fi
 18633     fi
 18635     fi
 18634 }
 18636 }
 18635 
 18637 
       
 18638 CheckWayland()
       
 18639 {
       
 18640     # Check whether --enable-video-wayland was given.
       
 18641 if test "${enable_video_wayland+set}" = set; then :
       
 18642   enableval=$enable_video_wayland;
       
 18643 else
       
 18644   enable_video_wayland=yes
       
 18645 fi
       
 18646 
       
 18647 
       
 18648     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
       
 18649         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 18650 set dummy pkg-config; ac_word=$2
       
 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 18652 $as_echo_n "checking for $ac_word... " >&6; }
       
 18653 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 18654   $as_echo_n "(cached) " >&6
       
 18655 else
       
 18656   case $PKG_CONFIG in
       
 18657   [\\/]* | ?:[\\/]*)
       
 18658   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 18659   ;;
       
 18660   *)
       
 18661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 18662 for as_dir in $PATH
       
 18663 do
       
 18664   IFS=$as_save_IFS
       
 18665   test -z "$as_dir" && as_dir=.
       
 18666     for ac_exec_ext in '' $ac_executable_extensions; do
       
 18667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 18668     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 18669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 18670     break 2
       
 18671   fi
       
 18672 done
       
 18673   done
       
 18674 IFS=$as_save_IFS
       
 18675 
       
 18676   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 18677   ;;
       
 18678 esac
       
 18679 fi
       
 18680 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 18681 if test -n "$PKG_CONFIG"; then
       
 18682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 18683 $as_echo "$PKG_CONFIG" >&6; }
       
 18684 else
       
 18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 18686 $as_echo "no" >&6; }
       
 18687 fi
       
 18688 
       
 18689 
       
 18690         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Wayland support" >&5
       
 18691 $as_echo_n "checking for Wayland support... " >&6; }
       
 18692         video_wayland=no
       
 18693         if test x$PKG_CONFIG != xno; then
       
 18694             if $PKG_CONFIG --exists wayland-client wayland-egl wayland-cursor egl xkbcommon ; then
       
 18695                 WAYLAND_CFLAGS=`$PKG_CONFIG --cflags wayland-client wayland-egl wayland-cursor egl xkbcommon`
       
 18696                 WAYLAND_LIBS=`$PKG_CONFIG --libs wayland-client wayland-egl wayland-cursor egl xkbcommon`
       
 18697                 video_wayland=yes
       
 18698             fi
       
 18699         fi
       
 18700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_wayland" >&5
       
 18701 $as_echo "$video_wayland" >&6; }
       
 18702 
       
 18703         if test x$video_wayland = xyes; then
       
 18704 
       
 18705 $as_echo "#define SDL_VIDEO_DRIVER_WAYLAND 1" >>confdefs.h
       
 18706 
       
 18707             SOURCES="$SOURCES $srcdir/src/video/wayland/*.c"
       
 18708             EXTRA_CFLAGS="$EXTRA_CFLAGS $WAYLAND_CFLAGS"
       
 18709                         EXTRA_LDFLAGS="$EXTRA_LDFLAGS $WAYLAND_LIBS"
       
 18710             have_video=yes
       
 18711         fi
       
 18712     fi
       
 18713 }
 18636 
 18714 
 18637 CheckX11()
 18715 CheckX11()
 18638 {
 18716 {
 18639 
 18717 
 18640 
 18718 
 22218         CheckARTSC
 22296         CheckARTSC
 22219         CheckESD
 22297         CheckESD
 22220         CheckNAS
 22298         CheckNAS
 22221         CheckSNDIO
 22299         CheckSNDIO
 22222         CheckX11
 22300         CheckX11
       
 22301         CheckWayland
 22223         CheckDirectFB
 22302         CheckDirectFB
 22224         CheckFusionSound
 22303         CheckFusionSound
 22225         CheckOpenGLX11
 22304         CheckOpenGLX11
 22226         CheckOpenGLESX11
 22305         CheckOpenGLESX11
 22227         CheckLibUDev
 22306         CheckLibUDev