[sane-devel] Sane-CVS on OS/2

Frank Zago fzago@austin.rr.com
Mon, 17 Jun 2002 00:55:52 -0500


Franz Bakan wrote:
> Hi,
> 
> Three minor problems at the moment with CVS-Code:
> 1.
> #ifndef HAVE_STRNCASECMP
>   /* OS/2 needs this */
> # define strncasecmp(a, b, c) strnicmp(a, b, c)
> #endif
> 
> is now missing in config.h

Hi Franz,

I guess I did it. I did a little clean up in config.h.in a while ago. 
Henning told me that kind of stuff would happen.

Add

if test "`uname`" = "OS2"; then
	AC_DEFINE(strncasecmp, strnicmp, [Define for OS/2 only])
fi

around line 284 in configure.in . I don't know what's the uname of OS2, 
so fix that too.
Then run
   autoheader
   autoconf

Regards,
   Frank.