python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / x11r7 / xdriver_xf86-video-r128 / 0001-cross-compile.patch
blob7b2ebd4b80454c932ee0a767ce63fa89e8b04c02
1 Fix cross-compile
3 Original patch for DRI
4 http://git.buildroot.net/buildroot/commit/package/x11r7/xdriver_xf86-video-r128/xdriver_xf86-video-r128-cross-compile.patch?id=c0726391523da6a17ffa8e62681ffa0cc895da8e
6 Signed-off-by: Paulius Zaleckas <paulius.zaleckas@gmail.com>
7 (Added exa.h fix)
8 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10 --- a/configure.ac 2008-06-23 10:39:28.000000000 -0400
11 +++ b/configure.ac 2008-06-23 10:40:46.000000000 -0400
12 @@ -85,14 +85,20 @@ sdkdir=$(pkg-config --variable=sdkdir xo
13 AC_HEADER_STDC
15 if test "$DRI" != no; then
16 - AC_CHECK_FILE([${sdkdir}/dri.h],
17 + if test "$cross_compiling" = "no" ; then
18 + AC_CHECK_FILE([${sdkdir}/dri.h],
19 [have_dri_h="yes"], [have_dri_h="no"])
20 - AC_CHECK_FILE([${sdkdir}/sarea.h],
21 + AC_CHECK_FILE([${sdkdir}/sarea.h],
22 [have_sarea_h="yes"], [have_sarea_h="no"])
23 - AC_CHECK_FILE([${sdkdir}/dristruct.h],
24 + AC_CHECK_FILE([${sdkdir}/dristruct.h],
25 [have_dristruct_h="yes"], [have_dristruct_h="no"])
26 - AC_CHECK_FILE([${sdkdir}/damage.h],
27 + AC_CHECK_FILE([${sdkdir}/damage.h],
28 [have_damage_h="yes"], [have_damage_h="no"])
29 + else
30 + have_dri_h="yes"
31 + have_sarea_h="yes"
32 + have_dristruct_h="yes"
33 + fi
36 AC_MSG_CHECKING([whether to include DRI support])
37 @@ -121,7 +127,12 @@
38 AC_MSG_CHECKING([whether to enable EXA support])
39 if test "x$EXA" = xyes; then
40 AC_MSG_RESULT(yes)
41 - AC_CHECK_FILE(${sdkdir}/exa.h, [have_exa_h="yes"], [have_exa_h="no"])
42 + if test "$cross_compiling" = "no" ; then
43 + AC_CHECK_FILE(${sdkdir}/exa.h,
44 + [have_exa_h="yes"], [have_exa_h="no"])
45 + else
46 + have_exa_h="yes"
47 + fi
48 else
49 AC_MSG_RESULT(no)