changeset 21558:7412d71880d5

Add x11 include path only to _inc_extra if X11 is actually enabled.
author reimar
date Sun, 10 Dec 2006 15:10:46 +0000
parents 866175d9c61b
children de2a96f41195
files configure
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Sun Dec 10 14:46:37 2006 +0000
+++ b/configure	Sun Dec 10 15:10:46 2006 +0000
@@ -3815,8 +3815,6 @@
       break
     fi
   done
-  #FIXME: This is ugly as it can duplicate a -I parameter..
-  _inc_extra="$_inc_extra $_inc_x11"
   if test -z "$_inc_x11" ; then
     _x11=no
     _x11_headers="no"
@@ -3844,6 +3842,8 @@
   done
 fi
 if test "$_x11" = yes ; then
+  #FIXME: This is ugly as it can duplicate a -I parameter..
+  _inc_extra="$_inc_extra $_inc_x11"
   _def_x11='#define HAVE_X11 1'
   _vosrc="$_vosrc x11_common.c vo_x11.c vo_xover.c"
   _vomodules="x11 xover $_vomodules"