p.s.: Re: [sane-devel] make errors with 1.07

john meshkoff johnm@sivakalpa.org
Sat, 09 Mar 2002 11:34:06 -0800


abel deuring wrote:
> 
> <SNIP> The problem is that I am not very familiar with configure
> -- is it possible to include a test like the following in configure?
> 
> - try to compile the test program:
> 
> #include <sys/types.h>
> #include <scsi/sg.h>
> int main(int argc, char **argv)
> {
>   struct sg_header hdr;
>   hdr.target_status = 1;
>   return 0;
> }
> 
> - if the succeeds, define HAVE_SG_TARGET_STATUS ; enclose the lines
> above (and a preceding DBG statement) in #ifdef HAVE_SG_TARGET_STATUS .

	I went ahead and tried 'gcc -o test test.c' on that and got:

ivan:~/bin$ gcc -o test test.c
test.c: In function `main':
test.c:6: structure has no member named `target_status'
ivan:~/bin$                 

John

-- 
John Meshkoff johnm at sivakalpa dot org
http://www.sivakalpa.org/
"I do not know that I know the self fully;
neither do I know that I know him not" ... from the Upanishads