autogen.sh
author Sam Lantinga <slouken@libsdl.org>
Wed, 02 Aug 2017 10:22:48 -0700
changeset 11175 cbc6a8a5b701
parent 10722 30e271a26a02
permissions -rwxr-xr-x
Fixed bug 3690 - SDL2 KMS/DRM render context support

Manuel

The attached patch adds support for KMS/DRM context graphics.

It builds with no problem on X86_64 GNU/Linux systems, provided the needed libraries are present, and on ARM GNU/Linux systems that have KMS/DRM support and a GLES2 implementation.
Tested on Raspberry Pi: KMS/DRM is what the Raspberry Pi will use as default in the near future, once the propietary DispmanX API by Broadcom is overtaken by open graphics stack, it's possible to boot current Raspbian system in KMS mode by adding "dtoverlay=vc4-kms-v3d" to config.txt on Raspbian's boot partition.
X86 systems use KMS right away in every current GNU/Linux system.

Simple build instructions:

$./autogen.sh
$./configure --enable-video-kmsdrm
$make
slouken@0
     1
#!/bin/sh
slouken@0
     2
#
slouken@1376
     3
echo "Generating build information using autoconf"
slouken@0
     4
echo "This may take a while ..."
slouken@0
     5
hadess@10398
     6
srcdir=`dirname $0`
hadess@10398
     7
test -z "$srcdir" && srcdir=.
icculus@10722
     8
cd "$srcdir"
hadess@10398
     9
slouken@0
    10
# Regenerate configuration files
slouken@7232
    11
cat acinclude/* >aclocal.m4
slouken@1564
    12
found=false
slouken@1832
    13
for autoconf in autoconf autoconf259 autoconf-2.59
slouken@1564
    14
do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi
slouken@1563
    15
done
slouken@1564
    16
if test x$found = xfalse; then
slouken@1564
    17
    echo "Couldn't find autoconf, aborting"
slouken@1564
    18
    exit 1
slouken@1564
    19
fi
slouken@1380
    20
(cd test; sh autogen.sh)
slouken@0
    21
slouken@0
    22
# Run configure for this platform
slouken@0
    23
echo "Now you are ready to run ./configure"