Content-Type: multipart/related; start=<op.mhtml.1236194933322.3cf4b3055f5e9706@127.0.0.1>; boundary=----------ANkSVCmprpyRJqOEtJfqin
Content-Location: http://lists.freedesktop.org/archives/xorg-commit/2007-February/010341.html
Subject: =?utf-8?Q?xf86-video-intel:=20Branch=20'modesetting'=20-=20configure.ac=20src/bios=5Freader/Makefile.am=20src/ch7017/ch7017.c=20src/ch7017/Makefile.am=20src/ch7xxx/ch7xxx.c=20src/ch7xxx/Makefile.am=20src/ivch/ivch.c=20src/ivch/Makefile.am=20src/Makefile.am=20src/sil164/Makefile.am=20src/sil164/sil164.c?=
MIME-Version: 1.0

------------ANkSVCmprpyRJqOEtJfqin
Content-Disposition: inline; filename=010341.html
Content-Type: text/html; charset=us-ascii; name=010341.html
Content-Id: <op.mhtml.1236194933322.3cf4b3055f5e9706@127.0.0.1>
Content-Location: http://lists.freedesktop.org/archives/xorg-commit/2007-February/010341.html
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> xf86-video-intel: Branch 'modesetting' - configure.ac	src/bios_reader/Makefile.am src/ch7017/ch7017.c	src/ch7017/Makefile.am src/ch7xxx/ch7xxx.c	src/ch7xxx/Makefile.am src/ivch/ivch.c src/ivch/Makefile.am	src/Makefile.am src/sil164/Makefile.am src/sil164/sil164.c
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:xorg-commit%40lists.freedesktop.org?Subject=xf86-video-intel%3A%20Branch%20%27modesetting%27%20-%20configure.ac%0A%09src/bios_reader/Makefile.am%20src/ch7017/ch7017.c%0A%09src/ch7017/Makefile.am%20src/ch7xxx/ch7xxx.c%0A%09src/ch7xxx/Makefile.am%20src/ivch/ivch.c%20src/ivch/Makefile.am%0A%09src/Makefile.am%20src/sil164/Makefile.am%20src/sil164/sil164.c&In-Reply-To=">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="010340.html">
   <LINK REL="Next"  HREF="010342.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>xf86-video-intel: Branch 'modesetting' - configure.ac	src/bios_reader/Makefile.am src/ch7017/ch7017.c	src/ch7017/Makefile.am src/ch7xxx/ch7xxx.c	src/ch7xxx/Makefile.am src/ivch/ivch.c src/ivch/Makefile.am	src/Makefile.am src/sil164/Makefile.am src/sil164/sil164.c</H1>
    <B>Keith Packard</B> 
    <A HREF="mailto:xorg-commit%40lists.freedesktop.org?Subject=xf86-video-intel%3A%20Branch%20%27modesetting%27%20-%20configure.ac%0A%09src/bios_reader/Makefile.am%20src/ch7017/ch7017.c%0A%09src/ch7017/Makefile.am%20src/ch7xxx/ch7xxx.c%0A%09src/ch7xxx/Makefile.am%20src/ivch/ivch.c%20src/ivch/Makefile.am%0A%09src/Makefile.am%20src/sil164/Makefile.am%20src/sil164/sil164.c&In-Reply-To="
       TITLE="xf86-video-intel: Branch 'modesetting' - configure.ac	src/bios_reader/Makefile.am src/ch7017/ch7017.c	src/ch7017/Makefile.am src/ch7xxx/ch7xxx.c	src/ch7xxx/Makefile.am src/ivch/ivch.c src/ivch/Makefile.am	src/Makefile.am src/sil164/Makefile.am src/sil164/sil164.c">keithp at kemper.freedesktop.org
       </A><BR>
    <I>Fri Feb 16 12:19:10 EET 2007</I>
    <P><UL>
        <LI>Previous message: <A HREF="010340.html">xserver: Branch 'server-1.3-branch' 
</A></li>
        <LI>Next message: <A HREF="010342.html">xserver: Branch 'master' 
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#10341">[ date ]</a>
              <a href="thread.html#10341">[ thread ]</a>
              <a href="subject.html#10341">[ subject ]</a>
              <a href="author.html#10341">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE> configure.ac                |   71 ++++++++++++++++++++++++--------------------
 src/Makefile.am             |   38 +++++++++++++----------
 src/bios_reader/Makefile.am |    2 -
 src/ch7017/Makefile.am      |    2 -
 src/ch7017/ch7017.c         |    2 -
 src/ch7xxx/Makefile.am      |    2 -
 src/ch7xxx/ch7xxx.c         |    2 -
 src/ivch/Makefile.am        |    2 -
 src/ivch/ivch.c             |    2 -
 src/sil164/Makefile.am      |    2 -
 src/sil164/sil164.c         |    2 -
 11 files changed, 71 insertions(+), 56 deletions(-)

New commits:
diff-tree 0ca926e63c7fa9122a8cba1424ce4cdee1c7b215 (from 972f1109d23c0a3f821fa573e2aa40cd17ce2795)
Author: Keith Packard &lt;<A HREF="http://lists.freedesktop.org/mailman/listinfo/xorg-commit">keithp at guitar.keithp.com</A>&gt;
Date:   Fri Feb 16 02:19:10 2007 -0800

    Check for presence of xf86Modes.h file.
    
    xf86Modes.h file signals the availability of the new modes API in the
    server; use that instead of counting on X server version numbers.
    Also, finish eliminating use of local copies of those header files.

diff --git a/configure.ac b/configure.ac
index e0d828e..8a81859 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,37 +76,6 @@ AC_ARG_WITH(xserver-source,AC_HELP_STRIN
 			   [ XSERVER_SOURCE=&quot;&quot; ])
 
 
-PKG_CHECK_MODULES(XORG_XSERVER, xorg-server &gt;= 1.2.99, [XMODES=yes], [XMODES=no])
-
-AM_CONDITIONAL(XMODES, [test &quot;x$XMODES&quot; = xyes])
-
-if test &quot;x$XMODES&quot; = xyes; then
-	AC_DEFINE(XMODES, 1,[X server as built-in mode code])
-else
-	if test &quot;x$XSERVER_SOURCE&quot; = x; then
-		if test -d ../../xserver; then
-			XSERVER_SOURCE=&quot;`cd ../../xserver &amp;&amp; pwd`&quot;
-		fi
-	fi
-	
-	if test &quot;x$XSERVER_SOURCE&quot; = x; then
-		AC_MSG_ERROR([Must have X server &gt;= 1.3 source tree for mode setting code. Please specify --with-xserver-source])
-	fi
-	
-	if test -f src/modes/xf86Crtc.h; then
-		:
-	else
-		ln -s $XSERVER_SOURCE/hw/xfree86/modes src/modes
-	fi
-	
-	if test -f src/parser/xf86Parser.h; then
-		:
-	else
-		ln -s $XSERVER_SOURCE/hw/xfree86/parser src/parser
-	fi
-
-fi
-
 # Checks for extensions
 XORG_DRIVER_CHECK_EXT(XINERAMA, xineramaproto)
 XORG_DRIVER_CHECK_EXT(RANDR, randrproto)
@@ -144,6 +113,46 @@ if test x$DRI = xauto; then
 fi
 AC_MSG_RESULT([$DRI])
 
+save_CFLAGS=&quot;$CFLAGS&quot;
+CFLAGS=&quot;$XORG_CFLAGS&quot;
+AC_CHECK_HEADER(xf86Modes.h,[XMODES=yes],[XMODES=no],[#include &quot;xorg-server.h&quot;])
+CFLAGS=&quot;$save_CFLAGS&quot;
+
+AM_CONDITIONAL(XMODES, test &quot;x$XMODES&quot; = xno)
+
+if test &quot;x$XMODES&quot; = xyes; then
+	echo built-in mode code
+	AC_DEFINE(XMODES, 1,[X server has built-in mode code])
+	XMODES_CFLAGS=
+else
+	echo symlink mode code
+	if test &quot;x$XSERVER_SOURCE&quot; = x; then
+		if test -d ../../xserver; then
+			XSERVER_SOURCE=&quot;`cd ../../xserver &amp;&amp; pwd`&quot;
+		fi
+	fi
+	
+	if test &quot;x$XSERVER_SOURCE&quot; = x; then
+		AC_MSG_ERROR([Must have X server &gt;= 1.3 source tree for mode setting code. Please specify --with-xserver-source])
+	fi
+	XMODES_CFLAGS='-DXF86_MODES_RENAME -I$(top_srcdir)/src/modes -I$(top_srcdir)/src/parser'
+fi
+
+if test -d &quot;$XSERVER_SOURCE&quot;; then
+	if test -f src/modes/xf86Modes.h; then
+		:
+	else
+		ln -s $XSERVER_SOURCE/hw/xfree86/modes src/modes
+	fi
+	
+	if test -f src/parser/xf86Parser.h; then
+		:
+	else
+		ln -s $XSERVER_SOURCE/hw/xfree86/parser src/parser
+	fi
+fi
+AC_SUBST([XMODES_CFLAGS])
+
 dnl Use lots of warning flags with GCC
 
 WARN_CFLAGS=&quot;&quot;
diff --git a/src/Makefile.am b/src/Makefile.am
index f656270..1e0505f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,13 +25,32 @@ SUBDIRS = xvmc bios_reader ch7017 ch7xxx
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @WARN_CFLAGS@ @XORG_CFLAGS@ @DRI_CFLAGS@ -Iparser -Imodes \
-	-DI830_XV -DI830_USE_XAA -DI830_USE_EXA -DXF86_MODES_RENAME
+
+AM_CFLAGS = @WARN_CFLAGS@ @XORG_CFLAGS@ @DRI_CFLAGS@ @XMODES_CFLAGS@ \
+	-DI830_XV -DI830_USE_XAA -DI830_USE_EXA
 
 intel_drv_la_LTLIBRARIES = intel_drv.la
 intel_drv_la_LDFLAGS = -module -avoid-version
 intel_drv_ladir = @moduledir@/drivers
 
+if XMODES
+XMODE_SRCS=\
+	 local_xf86Rename.h \
+	 parser/xf86Rename.h \
+	 parser/xf86Parser.h \
+	 parser/xf86Optrec.h \
+	 modes/xf86Modes.h \
+	 modes/xf86Modes.c \
+	 modes/xf86cvt.c \
+	 modes/xf86Crtc.h \
+	 modes/xf86Crtc.c \
+         modes/xf86EdidModes.c \
+	 modes/xf86RandR12.c \
+	 modes/xf86RandR12.h \
+	 modes/xf86Rotate.c \
+	 modes/xf86DiDGA.c
+endif
+
 intel_drv_la_SOURCES = \
          brw_defines.h \
          brw_structs.h \
@@ -86,20 +105,7 @@ intel_drv_la_SOURCES = \
 	 i830_render.c \
 	 i915_render.c \
 	 i965_render.c \
-	 local_xf86Rename.h \
-	 parser/xf86Rename.h \
-	 parser/xf86Parser.h \
-	 parser/xf86Optrec.h \
-	 modes/xf86Modes.h \
-	 modes/xf86Modes.c \
-	 modes/xf86cvt.c \
-	 modes/xf86Crtc.h \
-	 modes/xf86Crtc.c \
-         modes/xf86EdidModes.c \
-	 modes/xf86RandR12.c \
-	 modes/xf86RandR12.h \
-	 modes/xf86Rotate.c \
-	 modes/xf86DiDGA.c
+	 $(XMODE_SRCS)
 
 EXTRA_DIST = \
 	packed_yuv_sf.g4a \
diff --git a/src/bios_reader/Makefile.am b/src/bios_reader/Makefile.am
index f18a00c..a5c81a6 100644
--- a/src/bios_reader/Makefile.am
+++ b/src/bios_reader/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = @XORG_CFLAGS@
+AM_CFLAGS = @XORG_CFLAGS@ @XMODES_CFLAGS@
 
 noinst_PROGRAMS = bios_reader
 
diff --git a/src/ch7017/Makefile.am b/src/ch7017/Makefile.am
index 9cf2fa4..7fbb440 100644
--- a/src/ch7017/Makefile.am
+++ b/src/ch7017/Makefile.am
@@ -3,7 +3,7 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
+AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ -I$(srcdir)/.. -I$(srcdir)/../modes
 
 ch7017_la_LTLIBRARIES = ch7017.la
 ch7017_la_LDFLAGS = -module -avoid-version
diff --git a/src/ch7017/ch7017.c b/src/ch7017/ch7017.c
index 28bce0d..019dcea 100644
--- a/src/ch7017/ch7017.c
+++ b/src/ch7017/ch7017.c
@@ -37,7 +37,7 @@
 #include &quot;compiler.h&quot;
 #include &quot;miscstruct.h&quot;
 #include &quot;xf86i2c.h&quot;
-#include &quot;../i830_xf86Crtc.h&quot;
+#include &quot;xf86Crtc.h&quot;
 #define DPMS_SERVER
 #include &lt;X11/extensions/dpms.h&gt;
 
diff --git a/src/ch7xxx/Makefile.am b/src/ch7xxx/Makefile.am
index 7f3b1e1..b827bf8 100644
--- a/src/ch7xxx/Makefile.am
+++ b/src/ch7xxx/Makefile.am
@@ -3,7 +3,7 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ -I$(srcdir)/../
+AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ -I$(srcdir)/.. -I$(srcdir)/../modes
 
 ch7xxx_la_LTLIBRARIES = ch7xxx.la
 ch7xxx_la_LDFLAGS = -module -avoid-version
diff --git a/src/ch7xxx/ch7xxx.c b/src/ch7xxx/ch7xxx.c
index 161aebf..9ce581f 100644
--- a/src/ch7xxx/ch7xxx.c
+++ b/src/ch7xxx/ch7xxx.c
@@ -37,7 +37,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN
 #include &quot;compiler.h&quot;
 #include &quot;miscstruct.h&quot;
 #include &quot;xf86i2c.h&quot;
-#include &quot;i830_xf86Crtc.h&quot;
+#include &quot;xf86Crtc.h&quot;
 #define DPMS_SERVER
 #include &lt;X11/extensions/dpms.h&gt;
 
diff --git a/src/ivch/Makefile.am b/src/ivch/Makefile.am
index fac074d..40e2627 100644
--- a/src/ivch/Makefile.am
+++ b/src/ivch/Makefile.am
@@ -3,7 +3,7 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@
+AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ -I$(srcdir)/.. -I$(srcdir)/../modes
 
 ivch_la_LTLIBRARIES = ivch.la
 ivch_la_LDFLAGS = -module -avoid-version
diff --git a/src/ivch/ivch.c b/src/ivch/ivch.c
index 085b542..71f41f5 100644
--- a/src/ivch/ivch.c
+++ b/src/ivch/ivch.c
@@ -35,7 +35,7 @@
 #include &quot;compiler.h&quot;
 #include &quot;miscstruct.h&quot;
 #include &quot;xf86i2c.h&quot;
-#include &quot;../i830_xf86Crtc.h&quot;
+#include &quot;xf86Crtc.h&quot;
 #define DPMS_SERVER
 #include &lt;X11/extensions/dpms.h&gt;
 
diff --git a/src/sil164/Makefile.am b/src/sil164/Makefile.am
index 927f5a7..4cf717c 100644
--- a/src/sil164/Makefile.am
+++ b/src/sil164/Makefile.am
@@ -3,7 +3,7 @@
 # -avoid-version prevents gratuitous .0.0.0 version numbers on the end
 # _ladir passes a dummy rpath to libtool so the thing will actually link
 # TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
-AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ -I$(srcdir)/../
+AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ -I$(srcdir)/.. -I$(srcdir)/../modes
 
 sil164_la_LTLIBRARIES = sil164.la
 sil164_la_LDFLAGS = -module -avoid-version
diff --git a/src/sil164/sil164.c b/src/sil164/sil164.c
index 453ed04..80b1b6a 100644
--- a/src/sil164/sil164.c
+++ b/src/sil164/sil164.c
@@ -37,7 +37,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN
 #include &quot;compiler.h&quot;
 #include &quot;miscstruct.h&quot;
 #include &quot;xf86i2c.h&quot;
-#include &quot;i830_xf86Crtc.h&quot;
+#include &quot;xf86Crtc.h&quot;
 #define DPMS_SERVER
 #include &lt;X11/extensions/dpms.h&gt;
 

</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="010340.html">xserver: Branch 'server-1.3-branch' 
</A></li>
	<LI>Next message: <A HREF="010342.html">xserver: Branch 'master' 
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#10341">[ date ]</a>
              <a href="thread.html#10341">[ thread ]</a>
              <a href="subject.html#10341">[ subject ]</a>
              <a href="author.html#10341">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="http://lists.freedesktop.org/mailman/listinfo/xorg-commit">More information about the xorg-commit
mailing list</a><br>
</body></html>

------------ANkSVCmprpyRJqOEtJfqin--
