summaryrefslogtreecommitdiff
path: root/packages/xorg-driver
diff options
context:
space:
mode:
authorGraeme Gregory <dp@xora.org.uk>2008-11-04 17:24:07 +0000
committerGraeme Gregory <dp@xora.org.uk>2008-11-12 15:20:30 +0000
commita2267085ab6a2d2e04f70794cba393ed3b6cad1c (patch)
tree22986ce6be02e6aaa330dd74b37696858c194009 /packages/xorg-driver
parentccbe682909220330a8b6bd1a95147a656a60ca95 (diff)
xorg-driver-common.inc : fix the header file detections now we are using
sysroot. Seems to actually work in use, but maybe there is a better way!
Diffstat (limited to 'packages/xorg-driver')
-rw-r--r--packages/xorg-driver/xorg-driver-common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/xorg-driver/xorg-driver-common.inc b/packages/xorg-driver/xorg-driver-common.inc
index a75e409c8c..7126b8be83 100644
--- a/packages/xorg-driver/xorg-driver-common.inc
+++ b/packages/xorg-driver/xorg-driver-common.inc
@@ -25,10 +25,10 @@ do_stage() {
# Of course this will blow up when cross compiling.
do_configure_prepend() {
- incdir=${STAGING_INCDIR}/xorg
+ incdir=${layout_includedir}/xorg
for f in dri.h sarea.h dristruct.h exa.h damage.h; do
path="$incdir/$f"
- if [ -f "$path" ]; then
+ if [ -f "${STAGING_DIR_HOST}/$path" ]; then
p=`echo "$path" | sed 'y%*+%pp%;s%[^_[:alnum:]]%_%g'`
eval "export ac_cv_file_$p=yes"
fi