<div dir="ltr">Oh, how very x86 centric of me, the changes are<div>Reviewed-by Jakob Bornecrantz <<a href="mailto:jakob@vmware.com">jakob@vmware.com</a>></div><div><br></div><div style>Cheers, Jakob.</div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Apr 12, 2013 at 4:07 PM, Laurent Pinchart <span dir="ltr"><<a href="mailto:laurent.pinchart@ideasonboard.com" target="_blank">laurent.pinchart@ideasonboard.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Laurent Pinchart <<a href="mailto:laurent.pinchart@ideasonboard.com">laurent.pinchart@ideasonboard.com</a>><br>

---<br>
 libkms/Makefile.am | 5 ++++-<br>
 libkms/linux.c     | 6 +++++-<br>
 2 files changed, 9 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/libkms/Makefile.am b/libkms/Makefile.am<br>
index 215450a..518021f 100644<br>
--- a/libkms/Makefile.am<br>
+++ b/libkms/Makefile.am<br>
@@ -15,10 +15,13 @@ libkms_la_LIBADD = ../<a href="http://libdrm.la" target="_blank">libdrm.la</a><br>
 libkms_la_SOURCES = \<br>
        internal.h \<br>
        linux.c \<br>
-       intel.c \<br>
        dumb.c \<br>
        api.c<br>
<br>
+if HAVE_INTEL<br>
+libkms_la_SOURCES += intel.c<br>
+endif<br>
+<br>
 if HAVE_VMWGFX<br>
 libkms_la_SOURCES += vmwgfx.c<br>
 endif<br>
diff --git a/libkms/linux.c b/libkms/linux.c<br>
index eec0162..d160bc8 100644<br>
--- a/libkms/linux.c<br>
+++ b/libkms/linux.c<br>
@@ -101,8 +101,12 @@ linux_from_sysfs(int fd, struct kms_driver **out)<br>
        if (ret)<br>
                return ret;<br>
<br>
-       if (!strcmp(name, "intel"))<br>
+       if (0)<br>
+               {}<br>
+#ifdef HAVE_INTEL<br>
+       else if (!strcmp(name, "intel"))<br>
                ret = intel_create(fd, out);<br>
+#endif<br>
 #ifdef HAVE_VMWGFX<br>
        else if (!strcmp(name, "vmwgfx"))<br>
                ret = vmwgfx_create(fd, out);<br>
<span class="HOEnZb"><font color="#888888">--<br>
Regards,<br>
<br>
Laurent Pinchart<br>
<br>
_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</font></span></blockquote></div><br></div>