1
0
forked from pool/sane-backends
sane-backends/disable-resmgr-support.patch

36 lines
1.1 KiB
Diff

--- configure.in.orig 2010-04-26 02:55:27.000000000 +0200
+++ configure.in 2010-05-07 12:14:59.000000000 +0200
@@ -155,16 +155,22 @@ AC_CHECK_HEADERS([asm/io.h],,,[#include
SANE_CHECK_MISSING_HEADERS
-AC_CHECK_HEADER(resmgr.h,[
- AC_CHECK_LIB(
- resmgr,
- rsm_open_device,[
- AC_DEFINE(HAVE_RESMGR,1,[define if you have the resmgr library])
- RESMGR_LIBS="-lresmgr"
- ]
- )
-])
-AC_SUBST(RESMGR_LIBS)
+# Since Suse Linux 10.0 resmgr installs ACLs on device nodes.
+# Therefore there is no need to patch applications with special resmgr
+# support anymore.
+# As the "rsm_open_device" calls in sanei_scsi.c and sanei_usb.c
+# are optionally via "ifdef HAVE_RESMGR" with fallback "open" calls,
+# the special resmgr support is not removed but only disabled here:
+# AC_CHECK_HEADER(resmgr.h,[
+# AC_CHECK_LIB(
+# resmgr,
+# rsm_open_device,[
+# AC_DEFINE(HAVE_RESMGR,1,[define if you have the resmgr library])
+# RESMGR_LIBS="-lresmgr"
+# ]
+# )
+# ])
+# AC_SUBST(RESMGR_LIBS)
dnl ***********************************************************************
dnl Checks for types and structures