[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#380112: xserver-xorg-video-i810: Cross-compiling failed



Package: xserver-xorg-video-i810
Severity: important
Justification: fails to build from source
Tags: patch

Configure tries to find some header files, but it fails when
$cross_compiling = "yes"
(e.g. CC = i586-linux-gcc).
The problem can be fixed using AC_CHECK_HEADER instead of AC_CHECK_FILE

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=es_ES@euro, LC_CTYPE=es_ES@euro (charmap=ISO-8859-15)
--- xf86-video-i810-1.5.1.0/configure.ac~	2006-07-27 18:49:36.000000000 +0200
+++ xf86-video-i810-1.5.1.0/configure.ac	2006-07-27 18:49:57.000000000 +0200
@@ -69,11 +69,11 @@
 AC_HEADER_STDC
 
 if test "$DRI" != no; then
-        AC_CHECK_FILE([${sdkdir}/dri.h],
+        AC_CHECK_HEADER([${sdkdir}/dri.h],
                       [have_dri_h="yes"], [have_dri_h="no"])
-        AC_CHECK_FILE([${sdkdir}/sarea.h],
+        AC_CHECK_HEADER([${sdkdir}/sarea.h],
                       [have_sarea_h="yes"], [have_sarea_h="no"])
-        AC_CHECK_FILE([${sdkdir}/dristruct.h],
+        AC_CHECK_HEADER([${sdkdir}/dristruct.h],
                       [have_dristruct_h="yes"], [have_dristruct_h="no"])
 fi
 

Reply to: