[sane-devel] Adding extra header detection to configure

stef stef-listes@wanadoo.fr
Sun, 14 Sep 2003 10:00:02 +0000


	Hello,

	to get the umax_pp backend work with direct I/O on FreeBSD, it needs
that configure checks for machine/cpufunc.h include and i386_set_ioperm
function.
	Added this will have the following impact on configure.in and 
config.h.in . configure will be regenerated by autoconf.

stefdev:/home/stefdev/cvs/sane.sane_directio/sane-backends>diff ~/cvs/sane/sane-backends/configure.in configure.in
109c109
<     dev/ppbus/ppi.h usb.h sys/bitypes.h sys/sem.h sys/poll.h IOKit/IOKitLib.h)---
>     dev/ppbus/ppi.h machine/cpufunc.h usb.h sys/bitypes.h sys/sem.h sys/poll.h IOKit/IOKitLib.h)
186c186
< AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm mkdir \
---
> AC_CHECK_FUNCS(atexit inet_addr inet_aton inet_ntoa ioperm i386_set_ioperm mkdir \


stefdev:/home/stefdev/cvs/sane.sane_directio/sane-backends>diff ~/cvs/sane/sane-backends/include/sane/config.h.in include/sane/config.h.in
51a52,54
> /* Define to 1 if you have the <machine/cpufunc.h> header file. */
> #undef HAVE_MACHINE_CPUFUNC_H
>
105a109,111
> /* Define to 1 if you have the `i386_set_ioperm' function. */
> #undef HAVE_I386_SET_IOPERM
>



	Would it be OK to commit this to CVS ?

Regards,
	Stef