changeset 26244:5f886c6b4cd3

Do not look for X11 headers on the host when cross-compiling. patch by Guillaume Lecerf, foxcore gmail com
author diego
date Wed, 26 Mar 2008 00:14:51 +0000
parents d4730293a70e
children 33d94e96abfd
files configure
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Tue Mar 25 21:30:46 2008 +0000
+++ b/configure	Wed Mar 26 00:14:51 2008 +0000
@@ -3902,6 +3902,7 @@
       break
     fi
   done
+  if test $_cross_compile = no; then
   for I in /usr/X11/include /usr/X11R6/include /usr/include/X11R6 /usr/openwin/include ; do
     if test -f "$I/X11/Xlib.h" ; then
       _inc_extra="$_inc_extra -I$I"
@@ -3910,6 +3911,7 @@
       break
     fi
   done
+  fi
 echores "$_x11_headers"