configure
changeset 8153 3e43c73ac79b
parent 8147 9802c269104f
child 8158 429513cb6707
equal deleted inserted replaced
8152:8f8e4958651c 8153:3e43c73ac79b
   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_mir
   820 enable_video_wayland
   821 enable_video_wayland
   821 enable_video_wayland_qt_touch
   822 enable_video_wayland_qt_touch
   822 enable_wayland_shared
   823 enable_wayland_shared
   823 enable_video_x11
   824 enable_video_x11
   824 with_x
   825 with_x
  1532   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1533   --enable-nas-shared     dynamically load NAS audio support [[default=yes]]
  1533   --enable-sndio          support the sndio audio API [[default=yes]]
  1534   --enable-sndio          support the sndio audio API [[default=yes]]
  1534   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
  1535   --enable-sndio-shared   dynamically load sndio audio support [[default=yes]]
  1535   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1536   --enable-diskaudio      support the disk writer audio driver [[default=yes]]
  1536   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
  1537   --enable-dummyaudio     support the dummy audio driver [[default=yes]]
       
  1538   --enable-video-mir      use Mir video driver [[default=yes]]
  1537   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1539   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1538   --enable-video-wayland-qt-touch
  1540   --enable-video-wayland-qt-touch
  1539                           QtWayland server support for Wayland video driver
  1541                           QtWayland server support for Wayland video driver
  1540                           [[default=yes]]
  1542                           [[default=yes]]
  1541   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1543   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
 18625     if test x$have_gcc_preferred_stack_boundary = xyes; then
 18627     if test x$have_gcc_preferred_stack_boundary = xyes; then
 18626         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
 18628         EXTRA_CFLAGS="$EXTRA_CFLAGS -mpreferred-stack-boundary=2"
 18627     fi
 18629     fi
 18628 }
 18630 }
 18629 
 18631 
       
 18632 CheckMir()
       
 18633 {
       
 18634     # Check whether --enable-video-mir was given.
       
 18635 if test "${enable_video_mir+set}" = set; then :
       
 18636   enableval=$enable_video_mir;
       
 18637 else
       
 18638   enable_video_mir=yes
       
 18639 fi
       
 18640 
       
 18641 
       
 18642     if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
       
 18643         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 18644 set dummy pkg-config; ac_word=$2
       
 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 18646 $as_echo_n "checking for $ac_word... " >&6; }
       
 18647 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 18648   $as_echo_n "(cached) " >&6
       
 18649 else
       
 18650   case $PKG_CONFIG in
       
 18651   [\\/]* | ?:[\\/]*)
       
 18652   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 18653   ;;
       
 18654   *)
       
 18655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 18656 for as_dir in $PATH
       
 18657 do
       
 18658   IFS=$as_save_IFS
       
 18659   test -z "$as_dir" && as_dir=.
       
 18660     for ac_exec_ext in '' $ac_executable_extensions; do
       
 18661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 18662     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 18663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 18664     break 2
       
 18665   fi
       
 18666 done
       
 18667   done
       
 18668 IFS=$as_save_IFS
       
 18669 
       
 18670   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 18671   ;;
       
 18672 esac
       
 18673 fi
       
 18674 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 18675 if test -n "$PKG_CONFIG"; then
       
 18676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 18677 $as_echo "$PKG_CONFIG" >&6; }
       
 18678 else
       
 18679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 18680 $as_echo "no" >&6; }
       
 18681 fi
       
 18682 
       
 18683 
       
 18684 
       
 18685         if test x$PKG_CONFIG != xno; then
       
 18686             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
       
 18687 $as_echo_n "checking for Mir support... " >&6; }
       
 18688             video_mir=no
       
 18689             tmp_CFLAGS="$CFLAGS"
       
 18690             CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags egl mirclient xkbcommon`"
       
 18691 
       
 18692             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 18693 /* end confdefs.h.  */
       
 18694 
       
 18695              #include <EGL/egl.h>
       
 18696              #include <xkbcommon/xkbcommon.h>
       
 18697              #include <mir_toolkit/mir_client_library.h>
       
 18698 
       
 18699 int
       
 18700 main ()
       
 18701 {
       
 18702 
       
 18703 
       
 18704   ;
       
 18705   return 0;
       
 18706 }
       
 18707 _ACEOF
       
 18708 if ac_fn_c_try_compile "$LINENO"; then :
       
 18709 
       
 18710             video_mir=yes
       
 18711 
       
 18712 fi
       
 18713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 18714             CFLAGS="$tmp_CFLAGS"
       
 18715             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
       
 18716 $as_echo "$video_mir" >&6; }
       
 18717 
       
 18718             if test x$video_mir = xyes; then
       
 18719                   $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
       
 18720 
       
 18721                   SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
       
 18722                   EXTRA_CFLAGS="$EXTRA_CFLAGS `$PKG_CONFIG --cflags egl mirclient xkbcommon`"
       
 18723                   EXTRA_LDFLAGS="$EXTRA_LDFLAGS `$PKG_CONFIG --libs egl mirclient xkbcommon`"
       
 18724                   have_video=yes
       
 18725             fi
       
 18726         fi
       
 18727     fi
       
 18728 }
 18630 
 18729 
 18631 CheckWarnAll()
 18730 CheckWarnAll()
 18632 {
 18731 {
 18633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
 18732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC -Wall option" >&5
 18634 $as_echo_n "checking for GCC -Wall option... " >&6; }
 18733 $as_echo_n "checking for GCC -Wall option... " >&6; }
 22449         CheckESD
 22548         CheckESD
 22450         CheckNAS
 22549         CheckNAS
 22451         CheckSNDIO
 22550         CheckSNDIO
 22452         CheckX11
 22551         CheckX11
 22453         CheckWayland
 22552         CheckWayland
       
 22553         CheckMir
 22454         CheckDirectFB
 22554         CheckDirectFB
 22455         CheckFusionSound
 22555         CheckFusionSound
 22456         CheckOpenGLX11
 22556         CheckOpenGLX11
 22457         CheckOpenGLESX11
 22557         CheckOpenGLESX11
 22458         CheckLibUDev
 22558         CheckLibUDev