Updated generated configure script.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Fri, 04 Aug 2017 23:01:01 +0200
changeset 11187c630c47e8f96
parent 11186 a01f9b70ff97
child 11188 0fddce7bda2c
Updated generated configure script.
configure
     1.1 --- a/configure	Fri Aug 04 23:00:47 2017 +0200
     1.2 +++ b/configure	Fri Aug 04 23:01:01 2017 +0200
     1.3 @@ -847,6 +847,8 @@
     1.4  enable_video_cocoa
     1.5  enable_video_directfb
     1.6  enable_directfb_shared
     1.7 +enable_video_kmsdrm
     1.8 +enable_kmsdrm_shared
     1.9  enable_video_dummy
    1.10  enable_video_opengl
    1.11  enable_video_opengles
    1.12 @@ -1592,6 +1594,8 @@
    1.13    --enable-video-directfb use DirectFB video driver [[default=no]]
    1.14    --enable-directfb-shared
    1.15                            dynamically load directfb support [[default=yes]]
    1.16 +  --enable-video-kmsdrm   use KMSDRM video driver [[default=no]]
    1.17 +  --enable-kmsdrm-shared  dynamically load kmsdrm support [[default=yes]]
    1.18    --enable-video-dummy    use dummy video driver [[default=yes]]
    1.19    --enable-video-opengl   include OpenGL support [[default=yes]]
    1.20    --enable-video-opengles include OpenGL ES support [[default=yes]]
    1.21 @@ -21309,6 +21313,149 @@
    1.22      fi
    1.23  }
    1.24  
    1.25 +CheckKMSDRM()
    1.26 +{
    1.27 +    # Check whether --enable-video-kmsdrm was given.
    1.28 +if test "${enable_video_kmsdrm+set}" = set; then :
    1.29 +  enableval=$enable_video_kmsdrm;
    1.30 +else
    1.31 +  enable_video_kmsdrm=no
    1.32 +fi
    1.33 +
    1.34 +
    1.35 +    if test x$enable_video = xyes -a x$enable_video_kmsdrm = xyes; then
    1.36 +        video_kmsdrm=no
    1.37 +        libdrm_avail=no
    1.38 +        libgbm_avail=no
    1.39 +
    1.40 +        LIBDRM_REQUIRED_VERSION=2.4.46
    1.41 +        LIBGBM_REQUIRED_VERSION=9.0.0
    1.42 +
    1.43 +        # Extract the first word of "pkg-config", so it can be a program name with args.
    1.44 +set dummy pkg-config; ac_word=$2
    1.45 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    1.46 +$as_echo_n "checking for $ac_word... " >&6; }
    1.47 +if ${ac_cv_path_PKG_CONFIG+:} false; then :
    1.48 +  $as_echo_n "(cached) " >&6
    1.49 +else
    1.50 +  case $PKG_CONFIG in
    1.51 +  [\\/]* | ?:[\\/]*)
    1.52 +  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
    1.53 +  ;;
    1.54 +  *)
    1.55 +  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    1.56 +for as_dir in $PATH
    1.57 +do
    1.58 +  IFS=$as_save_IFS
    1.59 +  test -z "$as_dir" && as_dir=.
    1.60 +    for ac_exec_ext in '' $ac_executable_extensions; do
    1.61 +  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1.62 +    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
    1.63 +    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    1.64 +    break 2
    1.65 +  fi
    1.66 +done
    1.67 +  done
    1.68 +IFS=$as_save_IFS
    1.69 +
    1.70 +  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
    1.71 +  ;;
    1.72 +esac
    1.73 +fi
    1.74 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
    1.75 +if test -n "$PKG_CONFIG"; then
    1.76 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
    1.77 +$as_echo "$PKG_CONFIG" >&6; }
    1.78 +else
    1.79 +  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    1.80 +$as_echo "no" >&6; }
    1.81 +fi
    1.82 +
    1.83 +
    1.84 +        if test x$PKG_CONFIG != xno; then
    1.85 +            if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
    1.86 +                if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
    1.87 +                    LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
    1.88 +                    LIBDRM_LIBS=`$PKG_CONFIG --libs libdrm`
    1.89 +                    LIBDRM_PREFIX=`$PKG_CONFIG --variable=prefix libdrm`
    1.90 +                    libdrm_avail=yes
    1.91 +                fi
    1.92 +                if $PKG_CONFIG --atleast-version $LIBGBM_REQUIRED_VERSION gbm; then
    1.93 +                    LIBGBM_CFLAGS=`$PKG_CONFIG --cflags gbm`
    1.94 +                    LIBGBM_LIBS=`$PKG_CONFIG --libs gbm`
    1.95 +                    LIBGBM_PREFIX=`$PKG_CONFIG --variable=prefix gbm`
    1.96 +                    libgbm_avail=yes
    1.97 +                fi
    1.98 +                if test x$libdrm_avail = xyes -a x$libgbm_avail = xyes; then
    1.99 +                    video_kmsdrm=yes
   1.100 +                fi
   1.101 +
   1.102 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support" >&5
   1.103 +$as_echo_n "checking for libdrm $LIBDRM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
   1.104 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libdrm_avail" >&5
   1.105 +$as_echo "$libdrm_avail" >&6; }
   1.106 +                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support" >&5
   1.107 +$as_echo_n "checking for libgbm $LIBGBM_REQUIRED_VERSION library for kmsdrm support... " >&6; }
   1.108 +                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgbm_avail" >&5
   1.109 +$as_echo "$libgbm_avail" >&6; }
   1.110 +
   1.111 +                if test x$video_kmsdrm = xyes; then
   1.112 +                    # Check whether --enable-kmsdrm-shared was given.
   1.113 +if test "${enable_kmsdrm_shared+set}" = set; then :
   1.114 +  enableval=$enable_kmsdrm_shared;
   1.115 +else
   1.116 +  enable_kmsdrm_shared=yes
   1.117 +fi
   1.118 +
   1.119 +
   1.120 +
   1.121 +$as_echo "#define SDL_VIDEO_DRIVER_KMSDRM 1" >>confdefs.h
   1.122 +
   1.123 +                    SOURCES="$SOURCES $srcdir/src/video/kmsdrm/*.c"
   1.124 +                    EXTRA_CFLAGS="$EXTRA_CFLAGS $LIBDRM_CFLAGS $LIBGBM_CFLAGS"
   1.125 +
   1.126 +                    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kmsdrm dynamic loading support" >&5
   1.127 +$as_echo_n "checking for kmsdrm dynamic loading support... " >&6; }
   1.128 +                    kmsdrm_shared=no
   1.129 +                    drm_lib=`find_lib "libdrm.so.*" "$DRM_LIBS"`
   1.130 +                    gbm_lib=`find_lib "libgbm.so.*" "$DRM_LIBS"`
   1.131 +                    if test x$have_loadso != xyes && \
   1.132 +                       test x$enable_kmsdrm_shared = xyes; then
   1.133 +                        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&5
   1.134 +$as_echo "$as_me: WARNING: You must have SDL_LoadObject() support for dynamic kmsdrm loading" >&2;}
   1.135 +                    fi
   1.136 +                    if test x$have_loadso = xyes && \
   1.137 +                       test x$enable_kmsdrm_shared = xyes && test x$drm_lib != x && test x$gbm_lib != x; then
   1.138 +                        kmsdrm_shared=yes
   1.139 +
   1.140 +cat >>confdefs.h <<_ACEOF
   1.141 +#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC "$drm_lib"
   1.142 +_ACEOF
   1.143 +
   1.144 +
   1.145 +cat >>confdefs.h <<_ACEOF
   1.146 +#define SDL_VIDEO_DRIVER_KMSDRM_DYNAMIC_GBM "$gbm_lib"
   1.147 +_ACEOF
   1.148 +
   1.149 +
   1.150 +cat >>confdefs.h <<_ACEOF
   1.151 +#define HAVE_KMSDRM_SHARED "TRUE"
   1.152 +_ACEOF
   1.153 +
   1.154 +                        SUMMARY_video="${SUMMARY_video} kmsdrm(dynamic)"
   1.155 +                    else
   1.156 +                        EXTRA_LDFLAGS="$EXTRA_LDFLAGS $LIBDRM_LIBS $LIBGBM_LIBS"
   1.157 +                        SUMMARY_video="${SUMMARY_video} kmsdrm"
   1.158 +                    fi
   1.159 +                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kmsdrm_shared" >&5
   1.160 +$as_echo "$kmsdrm_shared" >&6; }
   1.161 +                    have_video=yes
   1.162 +                fi
   1.163 +            fi
   1.164 +        fi
   1.165 +    fi
   1.166 +}
   1.167 +
   1.168  CheckDummyVideo()
   1.169  {
   1.170      # Check whether --enable-video-dummy was given.
   1.171 @@ -23471,6 +23618,7 @@
   1.172          CheckLibSampleRate
   1.173          CheckX11
   1.174          CheckDirectFB
   1.175 +        CheckKMSDRM
   1.176          CheckOpenGLX11
   1.177          CheckOpenGLESX11
   1.178          CheckMir