<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
On Wed, 2011-09-14 at 10:07 -0500, Jamey Sharp wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
&quot;configure --with-int10=yes&quot; is not a valid configuration, and the check
</PRE>
</BLOCKQUOTE>
It depends what is the definition of &quot;valid&quot; in this context. Running &quot;./configure --with-int10&quot; will set &quot;INT10&quot; to &quot;yes&quot;. You may choose to ignore this value. I can only guess that current code checked for &quot;yes&quot; as a means to provide a default value when no backend was specified.
<BLOCKQUOTE>
<PRE>
--with-int10=BACKEND&nbsp;&nbsp;&nbsp; int10 backend: vm86, x86emu or stub
</PRE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
for sys/vm86.h and sys/io.h is not used. Delete it.
</PRE>
</BLOCKQUOTE>
I agree with ignoring &quot;yes&quot;. I don't recall any other module using it in that way. Just be prepared in the case where someone did use it. It's not really dead code, but close enough.<BR>
<BR>
The default value is either x86emu or stub for FreeBSD on a PowerPC. Any unrecognized value (such as yes, no or vn86) will not build any int10 backend. No warnings or errors. Hopefully the builder will have some way of finding out why it does not work. The library builds with just the common code.<BR>
<BR>
Suggestion:
<BLOCKQUOTE>
<PRE>
AS_HELP_STRING([--with-int10=BACKEND], [vm86, x86emu or stub (default:auto)]),
</PRE>
    AC_MSG_ERROR if no valid value is given<BR>
    <BR>
    Verify if there is a need to check for the headers. The code as it is was probably the result of changes around it rather than the intention of the developer.<BR>
</BLOCKQUOTE>
<BR>
<BLOCKQUOTE TYPE=CITE>
<PRE>

Signed-off-by: Jamey Sharp &lt;<A HREF="mailto:jamey@minilop.net">jamey@minilop.net</A>&gt;
---
 configure.ac            |    4 ----
 include/dix-config.h.in |    6 ------
 2 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/configure.ac b/configure.ac
index 93cd6a9..06cf9bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -702,10 +702,6 @@ AM_CONDITIONAL(SECURE_RPC, [test &quot;x$SECURE_RPC&quot; = xyes])
 AM_CONDITIONAL(INT10_VM86, [test &quot;x$INT10&quot; = xvm86])
 AM_CONDITIONAL(INT10_X86EMU, [test &quot;x$INT10&quot; = xx86emu])
 AM_CONDITIONAL(INT10_STUB, [test &quot;x$INT10&quot; = xstub])
-if test &quot;x$INT10&quot; = xyes; then
-        dnl VM86 headers
-        AC_CHECK_HEADERS([sys/vm86.h sys/io.h])
-fi
 
 dnl Handle installing libxf86config
 AM_CONDITIONAL(INSTALL_LIBXF86CONFIG, [test &quot;x$INSTALL_LIBXF86CONFIG&quot; = xyes])
diff --git a/include/dix-config.h.in b/include/dix-config.h.in
index 4710ef8..5facb11 100644
--- a/include/dix-config.h.in
+++ b/include/dix-config.h.in
@@ -209,9 +209,6 @@
    */
 #undef HAVE_SYS_DIR_H
 
-/* Define to 1 if you have the &lt;sys/io.h&gt; header file. */
-#undef HAVE_SYS_IO_H
-
 /* Define to 1 if you have the &lt;sys/ndir.h&gt; header file, and it defines `DIR'.
    */
 #undef HAVE_SYS_NDIR_H
@@ -225,9 +222,6 @@
 /* Define to 1 if you have the &lt;sys/utsname.h&gt; header file. */
 #undef HAVE_SYS_UTSNAME_H
 
-/* Define to 1 if you have the &lt;sys/vm86.h&gt; header file. */
-#undef HAVE_SYS_VM86_H
-
 /* Define to 1 if you have the &lt;tslib.h&gt; header file. */
 #undef HAVE_TSLIB_H
 
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>