configure
changeset 12391 ca6e41ade79a
parent 12390 60f322c5984f
child 12429 682d6359c430
equal deleted inserted replaced
12390:60f322c5984f 12391:ca6e41ade79a
   829 enable_libsamplerate
   829 enable_libsamplerate
   830 enable_libsamplerate_shared
   830 enable_libsamplerate_shared
   831 enable_video_wayland
   831 enable_video_wayland
   832 enable_video_wayland_qt_touch
   832 enable_video_wayland_qt_touch
   833 enable_wayland_shared
   833 enable_wayland_shared
   834 enable_video_mir
       
   835 enable_mir_shared
       
   836 enable_video_rpi
   834 enable_video_rpi
   837 enable_video_x11
   835 enable_video_x11
   838 with_x
   836 with_x
   839 enable_x11_shared
   837 enable_x11_shared
   840 enable_video_x11_xcursor
   838 enable_video_x11_xcursor
  1574   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1572   --enable-video-wayland  use Wayland video driver [[default=yes]]
  1575   --enable-video-wayland-qt-touch
  1573   --enable-video-wayland-qt-touch
  1576                           QtWayland server support for Wayland video driver
  1574                           QtWayland server support for Wayland video driver
  1577                           [[default=yes]]
  1575                           [[default=yes]]
  1578   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1576   --enable-wayland-shared dynamically load Wayland support [[default=maybe]]
  1579   --enable-video-mir      use Mir video driver [[default=no]]
       
  1580   --enable-mir-shared     dynamically load Mir support [[default=maybe]]
       
  1581   --enable-video-rpi      use Raspberry Pi video driver [[default=yes]]
  1577   --enable-video-rpi      use Raspberry Pi video driver [[default=yes]]
  1582   --enable-video-x11      use X11 video driver [[default=yes]]
  1578   --enable-video-x11      use X11 video driver [[default=yes]]
  1583   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1579   --enable-x11-shared     dynamically load X11 support [[default=maybe]]
  1584   --enable-video-x11-xcursor
  1580   --enable-video-x11-xcursor
  1585                           enable X11 Xcursor support [[default=yes]]
  1581                           enable X11 Xcursor support [[default=yes]]
 19420             have_video=yes
 19416             have_video=yes
 19421         fi
 19417         fi
 19422     fi
 19418     fi
 19423 }
 19419 }
 19424 
 19420 
 19425 CheckMir()
       
 19426 {
       
 19427     # Check whether --enable-video-mir was given.
       
 19428 if test "${enable_video_mir+set}" = set; then :
       
 19429   enableval=$enable_video_mir;
       
 19430 else
       
 19431   enable_video_mir=no
       
 19432 fi
       
 19433 
       
 19434 
       
 19435     if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
       
 19436         # Extract the first word of "pkg-config", so it can be a program name with args.
       
 19437 set dummy pkg-config; ac_word=$2
       
 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
       
 19439 $as_echo_n "checking for $ac_word... " >&6; }
       
 19440 if ${ac_cv_path_PKG_CONFIG+:} false; then :
       
 19441   $as_echo_n "(cached) " >&6
       
 19442 else
       
 19443   case $PKG_CONFIG in
       
 19444   [\\/]* | ?:[\\/]*)
       
 19445   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
       
 19446   ;;
       
 19447   *)
       
 19448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
       
 19449 for as_dir in $PATH
       
 19450 do
       
 19451   IFS=$as_save_IFS
       
 19452   test -z "$as_dir" && as_dir=.
       
 19453     for ac_exec_ext in '' $ac_executable_extensions; do
       
 19454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
       
 19455     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
       
 19456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
       
 19457     break 2
       
 19458   fi
       
 19459 done
       
 19460   done
       
 19461 IFS=$as_save_IFS
       
 19462 
       
 19463   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
       
 19464   ;;
       
 19465 esac
       
 19466 fi
       
 19467 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
       
 19468 if test -n "$PKG_CONFIG"; then
       
 19469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
       
 19470 $as_echo "$PKG_CONFIG" >&6; }
       
 19471 else
       
 19472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
       
 19473 $as_echo "no" >&6; }
       
 19474 fi
       
 19475 
       
 19476 
       
 19477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mir support" >&5
       
 19478 $as_echo_n "checking for Mir support... " >&6; }
       
 19479         video_mir=no
       
 19480         if test x$PKG_CONFIG != xno; then
       
 19481             if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
       
 19482                 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
       
 19483                 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
       
 19484                 save_CFLAGS="$CFLAGS"
       
 19485                 CFLAGS="$save_CFLAGS $MIR_CFLAGS"
       
 19486 
       
 19487                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
       
 19488 /* end confdefs.h.  */
       
 19489 
       
 19490                 #include <mir_toolkit/mir_client_library.h>
       
 19491 
       
 19492 int
       
 19493 main ()
       
 19494 {
       
 19495 
       
 19496                     MirWindowAttrib attrib = mir_window_attrib_state
       
 19497 
       
 19498   ;
       
 19499   return 0;
       
 19500 }
       
 19501 _ACEOF
       
 19502 if ac_fn_c_try_compile "$LINENO"; then :
       
 19503 
       
 19504                 video_mir=yes
       
 19505 
       
 19506 fi
       
 19507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
       
 19508                 CFLAGS="$save_CFLAGS"
       
 19509             fi
       
 19510         fi
       
 19511         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $video_mir" >&5
       
 19512 $as_echo "$video_mir" >&6; }
       
 19513 
       
 19514         if test x$video_mir = xyes; then
       
 19515 
       
 19516 $as_echo "#define SDL_VIDEO_DRIVER_MIR 1" >>confdefs.h
       
 19517 
       
 19518             SOURCES="$SOURCES $srcdir/src/video/mir/*.c"
       
 19519             EXTRA_CFLAGS="$EXTRA_CFLAGS $MIR_CFLAGS"
       
 19520             # Check whether --enable-mir-shared was given.
       
 19521 if test "${enable_mir_shared+set}" = set; then :
       
 19522   enableval=$enable_mir_shared;
       
 19523 else
       
 19524   enable_mir_shared=maybe
       
 19525 fi
       
 19526 
       
 19527 
       
 19528                         case "$host" in
       
 19529                 *)
       
 19530                     mirclient_lib=`find_lib "libmirclient.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 19531                     xkbcommon_lib=`find_lib "libxkbcommon.so.*" "$MIR_LIBS" | sed 's/.*\/\(.*\)/\1/; q'`
       
 19532                     ;;
       
 19533             esac
       
 19534 
       
 19535             if test x$enable_mir_shared = xmaybe; then
       
 19536                 enable_mir_shared=yes
       
 19537             fi
       
 19538             if test x$have_loadso != xyes && \
       
 19539                test x$enable_mir_shared = xyes; then
       
 19540                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&5
       
 19541 $as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic Mir loading" >&2;}
       
 19542                 enable_mir_shared=no
       
 19543             fi
       
 19544             if test x$have_loadso = xyes && \
       
 19545                test x$enable_mir_shared = xyes && \
       
 19546                test x$mirclient_lib != x && \
       
 19547                test x$xkbcommon_lib != x; then
       
 19548                 echo "-- dynamic libmirclient -> $mirclient_lib"
       
 19549                 echo "-- dynamic libxkbcommon -> $xkbcommon_lib"
       
 19550 
       
 19551 cat >>confdefs.h <<_ACEOF
       
 19552 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC "$mirclient_lib"
       
 19553 _ACEOF
       
 19554 
       
 19555 
       
 19556 cat >>confdefs.h <<_ACEOF
       
 19557 #define SDL_VIDEO_DRIVER_MIR_DYNAMIC_XKBCOMMON "$xkbcommon_lib"
       
 19558 _ACEOF
       
 19559 
       
 19560                 SUMMARY_video="${SUMMARY_video} mir(dynamic)"
       
 19561             else
       
 19562                 enable_mir_shared=no
       
 19563                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $MIR_LIBS"
       
 19564                 SUMMARY_video="${SUMMARY_video} mir"
       
 19565             fi
       
 19566             have_video=yes
       
 19567         fi
       
 19568     fi
       
 19569 }
       
 19570 
       
 19571 CheckNativeClient()
 19421 CheckNativeClient()
 19572 {
 19422 {
 19573         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19423         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 19574 /* end confdefs.h.  */
 19424 /* end confdefs.h.  */
 19575 
 19425 
 24151         CheckDirectFB
 24001         CheckDirectFB
 24152         CheckKMSDRM
 24002         CheckKMSDRM
 24153         CheckOpenGLX11
 24003         CheckOpenGLX11
 24154         CheckOpenGLESX11
 24004         CheckOpenGLESX11
 24155         CheckVulkan
 24005         CheckVulkan
 24156         CheckMir
       
 24157         CheckWayland
 24006         CheckWayland
 24158         CheckLibUDev
 24007         CheckLibUDev
 24159         CheckDBus
 24008         CheckDBus
 24160         CheckIME
 24009         CheckIME
 24161         CheckIBus
 24010         CheckIBus