Wykres commitów

394 Commity (97dea949598220dba43fd1dcadf0f8930f81260f)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen 7a2b112d20 Prefer make variables over literal substitutions
The AC_SUBST and PKG_CHECK_MODULE invocations in configure.ac as well as
acinclude.m4 are sufficient to trigger automake to insert initialization
logic for the variables these introduce.  There is no need to do this by
hand.  Wherever these values are needed, it is better to use a variable.
This allows for one-off overrides on the make command-line (without the
need to run ./configure) for one thing.
2016-06-13 21:50:36 +09:00
Olaf Meeuwissen 2745528b60 Fix non-POSIX automake file variable warning
This addresses warnings about the use of the $(wildcard) function.
It has been replaced by a plain shell glob.  There is one case where
this will result in an error, when there are no matches, but that is
when the targets that use it make no sense.  It is probably good to
get an error in that case.
2016-06-13 21:49:24 +09:00
Volker Diels-Grabsch 6aced758f4 Fix typos in comments
While reading through the SANE sources I noticed some annoying typos
in the comments.  This patch is my contribution to make the SANE
sources slightly more pleasant to read.
2015-12-20 14:43:56 +09:00
m. allan noah 497d591806 automake for recent changes
updates to mustek_usb2, canon_dr and umax_pp require automake run
2015-11-08 17:17:37 -05:00
Thomas Klausner a4cc05f677 Add DragonFly BSD support to sane-find-scanner (fixes 315206) 2015-11-08 18:56:49 +09:00
Olaf Meeuwissen 32c25b8b82 Fix duplicate automake file variable initialization issue
This was introduced in 74c00494.
2015-10-27 21:37:04 +09:00
m. allan noah 2ecf18f6fb autoheader and automake
After recent PNG and SNMP changes, need to run autoheader and automake
2015-10-02 21:53:14 -04:00
m. allan noah 87bfd53512 Run autofoo for recent changes 2015-09-19 13:39:38 -04:00
Olaf Meeuwissen 74c00494b6 Install umax_pp backend tools if the backend is built 2015-09-19 12:02:57 -04:00
m. allan noah 7566619e53 rebuild with automake 1.14.1 2015-08-31 20:58:30 -04:00
Yuri Chornoivan 648d933c56 Fix minor typos in messages and comments 2015-08-31 20:31:54 -04:00
Alessandro Zummo ccd15dc966 Revert "epsonds: enable double feed detection"
This reverts commit 005c3928a5.
2015-04-26 23:09:08 +02:00
Alessandro Zummo 005c3928a5 epsonds: enable double feed detection 2015-04-26 22:44:01 +02:00
Gerhard Jaeger ec4675d4c1 Add LM983x usb chip detection when compiled for libusb-1.0. 2014-01-09 10:59:13 +01:00
Nils Philippsen 758731489d sane-desc: fix faulty udev logic for SCSI devices
SUBSYSTEMS!="..." seems to always match, i.e. skip the SCSI-specific
rules.
2013-11-20 21:49:58 +01:00
Nils Philippsen 66cb9b55c2 remove code which is never reached 2013-11-05 14:47:27 +01:00
Nils Philippsen 3b96baef65 sane-desc: fix udev hwdb generation
Generated hwdb files listed the vendor ID instead of the product ID
which made udevd not recognizing scanner devices as such. Thanks to
Fabrice Bellet who spotted the problem.
2013-10-24 14:22:17 +02:00
Chris Bagwell bc2dc68fa5 Improve snmp detection when cross compiling.
Improving here means do not set LIBS/CFLAGS if library is not detected.
This prevents some unknown options based to ld when host is Linux and
target is mingw32/64.  Further improvements are needed if one wants this
snmp support when cross compiling to really work.

Also, to make commit bisectable, updated all autofoo files using
'autoreconf -i -f' and repatching ltmain.sh.

Also, test-driver was missing from git repo but the Makefile.in
checked in expected it to exist.
2013-08-15 13:10:39 -05:00
Stéphane Voltz 77a7cc4443 changelog entry for hwdb patch, minor cleanups, copyright notice 2013-08-02 22:51:58 +02:00
Tom Gundersen 3087a5efb5 sane-desc: add support for udev's hwdb
udev now comes with a hardware database (hwdb) which is meant to replace large
rule files as the one typically shipped with sane. This should significantly
speed up the processing of usb add events.

Add the required output format and add a special udev output mode which is
produces the udev file to be used with hwdb.

Sample hwdb file: <https://dev.archlinux.org/~tomegun/20-sane.hwdb>.
Sample udev+hwdb rules file:
                       <https://dev.archlinux.org/~tomegun/53-sane.rules>.

Similar support was recently added to gphoto2:
                            <http://sourceforge.net/p/gphoto/code/14490/>.

The new udev rules file does not support old udev/kernels as these anyway
don't support hwdb.

Moreover, it does not come with GROUP=/MODE= or ACL support as this can easily
be done externally by hooking into the libsane_matched envvar. In particular
systemd-logind uses this to do its own ACL handling.
2013-08-02 22:18:11 +02:00
Stéphane Voltz de75a1b9c0 add GL128 detection 2013-06-10 21:57:40 +02:00
Stéphane Voltz f462ab59d1 add GT-6801/6816 chip detection 2013-06-10 21:57:40 +02:00
Stéphane Voltz 4bc8ce9b8b cleanups and final version 2013-06-03 20:59:43 +02:00
Stéphane Voltz 3af775de44 make GL646 detection work again
- add GL646 detection
- don't close USB handle before probing chip so we avoid opening it again
2013-06-03 20:59:43 +02:00
Stéphane Voltz 2f4a54809d gl646 detection 2013-06-03 20:59:43 +02:00
Stéphane Voltz ede1d1083d add USB chip probe in libusb-1.0 case
- added check_usb_chip()
- add genesys usb chip check
2013-06-03 20:59:43 +02:00
Stéphane Voltz ac5f65e7b1 add GL845 detection 2013-06-03 20:59:43 +02:00
Gerhard Jaeger 69a2ec6801 Fix another bug in the libusb1 part of functioin check_libusb_device()
that prevents sanner detection for certain devices.
2013-02-22 09:07:32 +01:00
Gerhard Jaeger 74eb71fa19 Setup libusb1 debugging after initialization
otherwise a segfault appears in triple -v mode.
2013-02-20 08:24:52 +01:00
Stéphane Voltz e7804700f6 minor fixes to sane-desc.c
- memleaks on error paths
- whitspaces at end of line
2013-02-11 07:55:43 +01:00
Louis Lagendijk 3276babdec Added optional support in saned for systemd socket activation. This will allow for
using backend debugging using SANE_DEBUG_xxx to be used for saned controlled
scanning when using socket activation. When only the socket is received we
use the existing code path.
2013-01-10 20:59:26 +01:00
m. allan noah 9b142567fa Revert "forgot to do autoreconf"
This reverts commit aa6f185452.
2012-11-28 21:51:12 -05:00
Paul Newall aa6f185452 forgot to do autoreconf 2012-11-28 22:11:04 +00:00
m. allan noah 77c4ea1a7a Various cleanups for release 2012-07-24 21:17:15 -04:00
Rolf Bensch 54a6c5cea8 scanner group access with and without acl support 2012-04-20 21:38:47 +02:00
Ruediger Meier 0e3d873624 build fix, use the right scsi header on win32
Now we are using either ddk/ntddscsi.h or ntddscsi.h and even don't
stop if we have none of them.
2012-01-21 22:16:50 -06:00
Chris Bagwell 8ac464a47d add support for libusb-win32
It is API compatible with libusb-0.1 that is already supported
but uses different header file name to prevent conflict with
Window's own usb.h.
2011-12-27 17:35:35 -06:00
Chris Bagwell e7f01c3b36 Add --disable-dynamic/--disable-preload and update docs
Options were in README but removed at some point.  They
are useful so add them back.

Document BACKENDS and PRELOADABLE_BACKENDS variables in
README as well as in configure --help output.
2011-11-08 21:28:30 -06:00
Chris Bagwell 5061c2d5b2 More mingw portability updates.
Add check for winsock2.h for socket.h replancement. Also, use this
check to add ws2_32 library. Also, switch all winsock.h references
to winsock2.h.

Add check for getuid and getpass; which are not on mingw.

Add a syslog() replacement that is basically a print(). This
is also used by vsyslog() replacement.

Comment out parts of replacement sigprocmask.c on mingw.

To support these configure.in changes, I need to rebuild all
related files with autoconf 2.68 and libtool 2.4. Hand ported
our sane-backend specific changes to newer ltmain.sh.
2011-11-06 12:40:00 -06:00
Nils Philippsen 26ea2a2569 use pkg-config in sane-config
As we require pkg-config anyway, simply let sane-config use it to make
it compatible with multilib systems. Previously, sane-config contained
paths which were different on e.g. x86_64 and i386 which made the 64 and
32 bit versions conflict if installed in parallel.
2011-09-16 13:11:32 +02:00
Julien BLACHE ed0d09f863 Add wildcard for some Epson scanners 2011-06-24 22:13:07 +02:00
Julien BLACHE a4643d888e Fix infinite loop in walking the SCSI scanners list 2011-06-24 22:10:55 +02:00
Julien BLACHE 9441b1cdfe Add udev+acl output mode, udev rules using ACLs
Use ACLs for the scanner group instead of making the device root:scanner
with permissions 0664; designed to help with MFPs and play nice with
ConsoleKit.
2011-06-02 11:05:30 +02:00
Julien BLACHE cd376be4af Use power/control instead of power/level if available 2011-03-19 17:51:10 +01:00
m. allan noah 40e40989d9 rebuild autofoo for magicolor and snmp support 2011-01-18 21:31:13 -05:00
Chris Bagwell 650ea7cf8a update generate files using latest autoconf tools.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2011-01-02 13:07:31 -06:00
Stéphane Voltz 3d89a6f880 add new gl124 asic
create a place holder for low level commands

move low level functions to genesys_low.c

GL124 progresses

enable genesys_low debug and add DAC for LiDE 110

gl124 WIP
- gl847 cleanups
- genesys_low refactor
- gl124 starting version

GL124 WIP
- read scancnt/fedcnt,valid words coded
- memory layout coded

LiDE110 WIP

GL 124 WIP
- definition and use of get/set double/triple
- define register names

all mods done, ready to test

set fe OK

GL124 WIP : ready to test scans

GL124 WIP

GL124 WIP
- fixed analog fe issue: don't put afe regs in global set

GL124 : first light at 300 dpi

GL124 WIP
- 300 and 600 uncalibrated mostly ok (x coordinate rounding)
- 150 and 75 OK x-wise, y to be solved

solved rounding errors for gl124

re-add 400, 200 and 100 dpi modes

GL124 : tous x dpi OK

before adding line cropping

GL124 : line cropping almost finished

GL124 WIP : working line deletion

compute step rework

GL124 WIP : high speed table for dpi <= 300

move to scan area working

line skipping fix

new slope table for 600 dpi base

geometry and movement tuned

GL124 WIP : shading calibration almost working

working 600 dpi shading

GL124 : working shading calibration for all modes but 1200 dpi

working 1200 dpi shading

beta 1 of GL124 support

last tuning

update genesys.desc for LiDE 110

motor slope and start area tuning

shading coefficient computing clean up

add support for GL124 based CanoScan LiDE 110

feed almost OK up to 300 dpi

feeding is fixed

all issues fixed
2010-12-14 18:23:23 +01:00
Alessandro Zummo 2f3300b4d1 epson2: added tool to generate device list 2010-12-12 16:19:51 +01:00
Alex Belkin 842c98d204 Added Samsung SCX-4500W scan over network support for xerox_mfp backend (by Alexander Kuznetsov).
autoconf and automake reconfigure.
2010-09-30 15:11:56 +04:00
Julien BLACHE 91854aadc5 umax_pp: define _XOPEN_SOURCE for putenv() 2010-06-23 18:21:38 +02:00
Julien BLACHE 323ed013e6 udev rules: set libsane_matched=yes for SCSI scanners too
Used later on by udev-acl to handle scanners.
2010-06-21 19:01:51 +02:00
Julien BLACHE 5ed097b553 Fix pkg-config file syntax 2010-04-26 21:13:44 +02:00
Chris Bagwell ce61e88f86 fix typo in tools/sane-config.in. REGMGR=RESMGR. 2010-04-25 15:49:27 -05:00
m. allan noah 6b8fc40c23 updated ukranian translation from Yuri Chornoivan 2010-04-21 08:36:12 -04:00
m. allan noah 0340d25366 Update the sane-devel contact suggestion 2010-04-18 20:37:15 -04:00
Chris Bagwell 15572c9cd9 Add stub for future pkg-config support
Not quite ready to support pkg-config yet but go ahead and provide
basic support in configure to discourage distributions that are
patching pkg-config support in to no longer run "autoreconf -f"
and wiping out our custom libtool.  sane-backends.pc will not
be installed currently.

Also, fixed a LDFLAGS bug in sane-config for GPHOTO2 support.

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2010-04-06 11:54:03 -05:00
Chris Bagwell 0109113ea3 Don't include -lresmgr in all backends
resmgr library is only used (optionally) by
sanei_usb and sanei_scsi.  So only need to
link it in for those backends.  This was
a stray piece from initial cleanup of LIBS
in sane-backends 1.0.20.

Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2010-04-06 09:49:58 -05:00
Chris Bagwell 1903d646b2 align autoconf/automake output to common version.
Signed-off-by: Chris Bagwell <chris@cnpbagwell.com>
2010-02-27 23:27:32 -06:00
m. allan noah 5d080dc17c Condense warnings about half-baked .desc files 2010-02-27 21:09:45 -05:00
m. allan noah 54a84f2053 Use standard gettext infrastructure, from Adi Roiban 2010-02-27 20:51:31 -05:00
Stéphane Voltz b37621d86a addition of the p5 backend to the distribution 2010-02-15 22:15:43 +01:00
m. allan noah 2df3c10817 * doc/.gitignore, doc/Makefile.am, doc/Makefile.in:
- added new targets for scanner search engine db
* doc/releases.txt: improved doc
* doc/saned.man: clean typos
* tools/sane-desc.c: removed NAME= from udev rules (deprecated)
2010-02-10 14:27:27 -05:00
Mattias Ellert ec738ed266 Updated Swedish translation, fix libusb warning. 2009-09-11 05:11:31 +02:00
m. allan noah 645bde0b8b add closedir call to fix bug #311880, patch from Johannes Meixner 2009-08-13 14:15:57 -04:00
m. allan noah 7f45993f26 Added better checks for GL84x chips 2009-08-01 10:16:02 -04:00
m. allan noah 163f5fa345 New kodak backend, and all the autofoo changes required to build it
- remove some Kodak machines from unsupported list
- add sane-kodak manpage
- add kodak.desc
2009-06-22 23:06:22 -04:00
chris@cnpbagwell.com 07c5723cab Merge branch 'master' of ssh://cbagwell-guest@git.debian.org/git/sane/sane-backends 2009-05-09 21:40:55 -05:00
chris@cnpbagwell.com 4d9e8138af standardize including local sane/ include files.
Source code was inconsistent on how they were referencing
include files in include/sane.  In certain cases, sane/sane.h
and sane/saneopts.h was really including external copies (with
some preprocessor implementations anyways).
2009-05-07 22:06:20 -05:00
Ilia Sotnikov bee067e930 * Updated HP ScanJet model names displayed during the check_hp5590() 2009-05-06 20:33:05 +03:00
Julien BLACHE 79e6e5c420 Unbreak udev rules
We switched from SYSFS{} to ATTR{} and that should really be ATTRS{}.
Slightly different behaviour and all hell breaks loose.
2009-05-06 11:13:44 +02:00
m. allan noah 764aa7c6e1 add more generated files to .gitignore 2009-05-05 15:56:54 -04:00
Julien BLACHE 6e4ed52293 Add basic .gitignore files 2009-05-04 14:45:17 +02:00
Chris Bagwell 6b5973313c * Makefile.in, aclocal.m4, configure, */Makefile.in: Regenerated
with newer automake.
* backend/Makefile.am, tools/sane-config.in: Add missing
$GPHOTO2_LDFLAGS so library can be found.
* tools/Makefile.am: Add mising $SCSI_LIBS to sane-find-scanner.
2009-05-03 22:01:23 +00:00
m. allan noah 18e88c02a7 double counting untested scanners bug 2009-04-14 03:54:01 +00:00
m. allan noah 5718d5a4ed * tools/sane-desc.c: remove 8859-1 chars from string cleaner,
enforce only printable ASCII on output (bug 311539)
2009-03-13 13:48:44 +00:00
Chris Bagwell 191cde3dbd Add space mistakenly removed in last CVS update. 2009-03-04 01:22:01 +00:00
Chris Bagwell 9d1375fd7e * acinclude.m4, tools/sane-config.in: Add in missing libraries
to sane-config missed during fix to stop using LIBS to link everything.
Add back in code to move LDFLAGS out of $GPHOTO2_LIBS and into
GPHOTO2_LDFLAGS.
2009-03-03 02:53:42 +00:00
Chris Bagwell 70f3fdfba4 * acinclude.m4, backend/*.[ch], tools/*.[ch], frontend/*.[ch]:
Global replace of u_int??_t with C9x standard based uintxx_t
 in order to remove some tricky and overlapping portability logic
 from acinclude.m4 and leave it in only m4/stdint.m4.
2009-02-26 03:15:43 +00:00
Chris Bagwell be3f46204b * po/Makefile.am, configure.in: convert remaining directory,
po, to use automake.
2009-02-21 22:45:14 +00:00
Mattias Ellert 0827226249 Adding missing liblib dependencies 2009-02-20 16:51:09 +00:00
Chris Bagwell cb4fb37eca Have configure define configdir so all makefiles can use
it (fixes bug introduce with sanei converted to automake).
Enable running testsuite during distcheck.
2009-02-19 18:10:12 +00:00
Julien BLACHE 53e8821bd5 Fixup build. 2009-02-19 15:06:29 +00:00
Julien BLACHE ad1a44d92a Add support for libusb-1.0. 2009-02-19 13:57:45 +00:00
Chris Bagwell 54d462f461 Add missing clean-local. 2009-02-19 02:44:53 +00:00
Chris Bagwell e380729334 * configure.in, tools/Makefile.am: convert tools to automake.
Add tools/openbsd to distribution package.
* include/Makefile.am: include files should have been installed
under sane/ directory when converted to automake.
* doc/Makefile.am: Cleanup. Use automake's built in support to
install docs within subdirectories.
2009-02-19 02:17:45 +00:00
Chris Bagwell aef46252cc convert frontend, include, and sanei directories to use
automake.  Only reference libsanei.la now. Use am_conditional
to compile sanei_jpeg.lo.  distcheck now runs sanei/wire_test.
2009-02-15 03:31:36 +00:00
Chris Bagwell caba90c552 * configure.in, acinclude.ac: Cleanup autoconf 2.63 warnings.
add cv_ prefix to cached variable.  Remove AC_ARG_PROGRAM as
automake already invokes this. When prefered AC_USE_SYSTEM_EXTENSIONS
exists, use that instead of AC_GNU_SOURCE/AC_AIX/AC_MINUX.
Cleanup socket detection more by creating only a single
SOCKET_LIBS that contains list of all optional libraries
for any socket related funciton.  Make sure that checks
for socket related functions use SOCKET_LIBS when searching.
Check for getopt_long() and getopt.h.  Make OS/2 use
-no-undefined (same as windows).
* ltmain.sh, m4/libtool.m4: Upgrade to libtool 1.5.26.
* Makefile.am: Cleanups to match configure updates.
* frontend/scanimage.c, include/Makefile.in, lib/getopt.c
lib/getopt1.c, toosl/sane-desc.c, include/lgetopt.h:
Rename internal getopt.h to lgetopt.h to allow using
external getopt.h when it exists.  This allows to go
back to optionally compiling getopt()/getopt_long() and its
prototypes and not have conflicts with external headers/symbols.
2009-02-06 03:10:44 +00:00
Julien BLACHE be690a3d4e Remove debug code. 2009-02-03 12:07:20 +00:00
Julien BLACHE 9056460913 Filter out unsupported/unknown models from output (udev/hal). 2009-02-03 11:08:31 +00:00
Chris Bagwell 0330a4d416 * aclocalm4: fix prototype of internal strcasestr and usleep.
* configure.in: Group all USB logic together and all SCSI
logic together to aid understanding of whats no longer
valid.  Allow sharing enable/disable options between all
USB drivers on multiple platforms.  Combined CAM_LIBS and
SCSI_LIBS since they are mutually exclusive.
Skip some USB/SCSI checks when previous tests show it will always fail.
* backend/Makefile.am, tools/Makefile.in: Combine CAM_LIBS and
SCSI_LIBS. Add missing SOCKET_LIBS to epson2.  Add USB_LIB.
* saned.c: Add limits.h for PATH_MAX.
2009-02-02 03:17:32 +00:00
Chris Bagwell 23ff26f9a5 * acinclude.m4, configure.in: Put all libraries into their
own *_LIB variables instead of $LIB so that we do not have to
link in the world to all executables. Modified SANE_CHECK_U_TYPES
to be a little more portable to platforms that use #define
for u_* types. Create SANE_CHECK_BACKENDS macro so that
PRELOADABLE_BACKENDS can also be valided.  Auto-populated
PRELAODABLE_BACKENDS when detect dlopen() won't work.
Various protability cleanups.
* backend/dll.c: Make dll-preload.c a .h since its an include and
not compilable byitself.
* frontend/Makefile.in, frontend/scanimage.c, include/laaloca.h,
  lib/Makefile.am, lib/alloca.c, strcasestr.c, tools/Makefile.in,
  tools/sane-desc.c: Convert lib/ to automake.  Create a liblib.la
  for everyone to use and a libfelib.la for only frontend programs.
  Make all internal programs be prefixed with sanei_ as not to conflict
  with other programs libsane is linked in with that will also most
  likely create similar internal utils on problem platforms.
  * include/getopt.h, lib/getopt.c, lib/getopt1.c: Always compile
  and link in getopt_long() but prefix it with sanei_.  Its
  easier to always use internal version then try to figure out what
  platforms support getopt_long() and what header files to use.
  * backend/Makefile.am: Convert backend makefile to automake.
  Initial version that is feature parity with original but uses
  specific rules instead of wildcards and only links in libraries/objs
  really required. Room for more cleanup of whats linked in once
  all makefiles have been converted to automake.
2009-01-31 03:12:18 +00:00
Chris Bagwell c90e23a6d2 Updates to Makefiles to prepare for transition to automake.
Fix a few bugs with "all" and "uninstall" targets to work when
$(builddir) != $(srcdir).  Added $(DESTDIR) to uninstall target.
Made $(distdir) related to current directory to match automake.
2009-01-16 23:39:48 +00:00
Julien BLACHE acc2b0fccf Add a new :scsi keyword for SCSI devices, add support for SCSI devices
in the udev and HAL FDI outputs.
2009-01-13 21:17:16 +00:00
Julien BLACHE e91b604df7 Replace the obsolete SYSFS{} key by the newer ATTR{} key in the udev output. 2009-01-13 21:14:17 +00:00
Julien BLACHE 4cb1d28a35 Group USB devices by vendor in the HAL FDI output. 2009-01-13 21:11:28 +00:00
Julien BLACHE 59f6298630 Replace opencoded device permissions and ownership by proper definitions. 2009-01-13 20:58:55 +00:00
Julien BLACHE 95f01b7244 HAL 0.5.11-rc2 does not support the info.bus property anymore; superseded by
info.subsystem. Unfortunately, this is not backward-compatible, so add a new
"hal-new" mode to sane-desc.
2008-03-28 20:57:59 +00:00
Mattias Ellert 22efa538b7 Fix warnings about ignored --datarootdir 2008-02-03 06:59:36 +00:00
m. allan noah ba5639151d second try committing these 2008-01-18 01:47:47 +00:00
m. allan noah e7e161c6ee translation update from Yann E. MORIN 2008-01-15 01:13:59 +00:00