On Thu, Jan 04, 2007 at 01:01:48PM +0100, Alessandro Zummo wrote: > On Tue, 26 Dec 2006 15:42:57 +0100 > Louis-David Mitterrand <vindex+lists-sane-de...@apartia.org> wrote: > > > > Hi David, > > > > > > you can find a working experimental version in sane cvs. > > > > Hi Alessandro, > > > > Thanks for the update. I downloaded the CVS repository and it seems > > epson2*.c files need byteorder.h which is not build by default. I tried: > > > > % autoreconf > > configure.in:17: error: possibly undefined macro: AC_NEED_BYTEORDER_H > > If this token and others are legitimate, please use > > m4_pattern_allow. > > See the Autoconf documentation. > > autoreconf: /usr/bin/autoconf failed with exit status: 1 > > > > What should I do to build byteorder.h ? > > autoreconf regenerates aclocal.m4. please try using autoconf > instead, it should work.
OK, it works now, thanks. Here a quick'n dirty script to scan to PDF: #!/bin/sh case $1 in "") echo "Usage: scan2pdf <filename>" exit 65 ;; *) FORMAT=$1-%d ;; esac scanimage -d epson2:cx11nf.apartia.fr --mode Color \ --source "Automatic Document Feeder" --resolution 150 --format tiff \ --quick-format A4 --batch=$FORMAT convert -compress JPEG2000 -quality 50 $1-* $1.pdf acroread $1.pdf