[sane-devel] compiling SANE with Intel icc

stef stef-listes@wanadoo.fr
Wed, 19 Feb 2003 21:31:36 +0100


On Tue, Feb 18, 2003 at 09:28:39PM +0100, Henning Meier-Geinitz wrote:
> Hi,
> 
> On Tue, Feb 18, 2003 at 02:47:13PM +0100, stef wrote:
> > 	compiling SANE under linux with Intel icc fails because inb/outb are 
> > not defined, due to an ifdef __GNUC__ in sys/io.h .
> 
> Known issue (see README.linux).
> 
> > So testing HAVE_SYS_IO_H isn't enough, We should also test for
> > __GNUC__ . Since icc accepts gcc inline assembly, we can use the code
> > written to define inb and outbi when there is no io.h.
> >
> > 	Here are the patches I needed to compile SANE with icc. The biggest 
> > change is in qcam.c, where a fallback is provided when direct io is missing.
> 
> Ok, but can we be sure that all the sys/io.h and asm/io.h files use
> the same __GNUC__ test? What I mean is: are we sure that there isn't a
> platform where sys/io.h or asm/io.h exists and works with non-gcc
> compilers? So we would deactivate access that worked until now?
> 
> Bye,
>   Henning

	Good point. I've been too linux-centric. I'll have a look at HP-UX 11 
and AIX 4.2/4.3, to see there is such includes. But that still leave many
palteforms to look at.

Regards,
	Stef