xf86-video-mga doesn't cross-compile
@ross
Submitted by Ross Burton Assigned to Tilman Sauerbeck @tilman
Description
configure.ac says:
if test "x$DRI" != xno; then AC_CHECK_FILE([${sdkdir}/dri.h], [have_dri_h="yes"], [have_dri_h="no"]) AC_CHECK_FILE([${sdkdir}/sarea.h], [have_sarea_h="yes"], [have_sarea_h="no"]) AC_CHECK_FILE([${sdkdir}/dristruct.h], [have_dristruct_h="yes"], [have_dristruct_h="no"]) fi
When cross-compiling, this happens:
| configure:18074: checking for /usr/include/xorg/dri.h | configure:18080: error: cannot check for file existence when cross compiling
Why isn't a pkgconfig check sufficient?