Wykres commitów

51 Commity (d6a93b83a7dc3a3871db31ecf11adebe470b52a4)

Autor SHA1 Wiadomość Data
Olaf Meeuwissen f18ab2e2a2 plustek-pp: Replace sys/signal.h include with signal.h
All other backends already `#include <signal.h>` directly, without any
configure time checking or problems.

Fixes [-Wcc] compiler warning on Alpine.
2017-07-15 22:48:29 +09:00
Olaf Meeuwissen 54627bdeac lib/isfdtype.c: Remove badly broken substitute
The substitute completely ignores the fdtype argument and only works
correctly for S_IFSOCK values.  This happened to be the only way the
function was invoked but for safety's sake this has been replaced by
a local implementation that does pretty much the same thing, without
the misleading bit.

Found courtesy of a [-Wunused-parameter] compiler warning on Alpine.
2017-07-15 21:58:51 +09:00
Olaf Meeuwissen e7d9779dfc CI: Build `git describe` versioned snapshot tarballs
This:
 - modifies `configure.ac` to get a version number courtesy of `git`
   when `autoconf` is run
 - runs a `make dist` when all compilation targets succeed
 - makes the resulting tarball available as a build artifact
 - renames the various pipeline stages
2017-06-17 12:38:21 +09:00
Olaf Meeuwissen a2f1cc1c82 libsane: Only depend on and link in the kitchen sink if needed
There is no need to depend on and link in all the various dependencies
for whatever backends *might* be preloaded if none are.  Distributions
habitually rip these out, rightfully so, to reduce the list of package
dependencies.  This will achieve the same while still doing the "right
thing" for builds that do preload one or more backens.
2017-06-07 22:06:05 +09:00
Olaf Meeuwissen 23891a2646 .editorconfig: trim trailing whitespace 2017-05-29 21:14:29 +09:00
m. allan noah 35dc4426d2 Open repo for 1.0.28 development 2017-05-22 21:08:33 -04:00
m. allan noah 82cd8f245c SANE-backends release 1.0.27
Moved old changelogs to new directory, and excluded them from
release tarball.

Improved release docs.

Updated config.* files

Bumped version numbers.

Wrote release notes.
2017-05-22 11:16:40 -04:00
Olaf Meeuwissen 09cf70563a configure.ac: Fix condition 2017-05-13 16:34:38 +09:00
Olaf Meeuwissen 6ffeb90973 Fix test for API specification generation
If none of the formats can be generated but API specs are requested,
bomb.  The original test aimed to do so but was testing against "no",
a value that was never assigned.
2017-05-06 20:40:25 +09:00
Paul Newall e0741f71e2 deleted a line in configure.ac. This was a commented out line left from when the backend kodakaio used CUPS to autodetect printers. 2017-04-30 18:09:59 +01:00
Olaf Meeuwissen 078435eaf1 Fix typo 2016-12-17 17:06:25 +09:00
Olaf Meeuwissen da49686efe sane-find-scanner: disable USB if not supported
This fixes a [-Wpedantic] compiler warning about ISO C forbidding empty
translation units.  The check-usb-chip.c file reduces to such a file in
the case USB support was explicitly disabled or no usable library found.
2016-09-25 17:00:54 +09:00
Olaf Meeuwissen 2b973d75fe Add fig2dev as prerequisite for API HTML docs
The target for sane-html depends on sane.dvi which requires fig2dev.

Thanks to:
 - https://lists.debian.org/debian-user/2016/08/msg00484.html
 - http://superuser.com/questions/1101439/error-building-sane-backend-on-debian
2016-09-18 21:31:34 +09:00
Olaf Meeuwissen db22a031d1 Fix typo introduced in fa41b180. Fixes 315435 2016-09-18 21:19:12 +09:00
Olaf Meeuwissen 63b55e2b59 Drop check for sys/bitypes.h
It was obsoleted in 70f3fdf on 2009-02-26.
2016-08-03 22:05:03 +09:00
Olaf Meeuwissen d263f25911 Fix typo
Appears to have been introduced in 0330a4d on 2009-02-02.  There is no
evidence that a scdds.h file has ever existed.
2016-08-03 21:48:54 +09:00
Olaf Meeuwissen 970464f733 Drop unused CPP define
The last reference to it was removed in 5dcf165 on 2007-06-21.
2016-08-03 20:53:06 +09:00
Olaf Meeuwissen 00bc3e9b45 Generate EPS figures too
It's good to know how this is done so that we can modify any original
figure if need be.
2016-07-13 23:40:19 +09:00
Olaf Meeuwissen cc8f99b900 Generate PDF figures explicitly with fig2dev
This utility has less dependencies and supports conversion to a pile of
other formats that may come in handy as well.

Clean up of generated PDF figures has been moved to the clean target as
well.
2016-07-13 23:24:29 +09:00
Olaf Meeuwissen fa41b18001 Refactor API spec conversion support
Unless explicitly asked to do without, all formats for which required
tools are found will be built.  Checks cover PostScript, PDF and HTML.

All logic and files involved are now collected in a single "section"
and grouped in such a way that their function should be clearer.

fixup! Refactor API spec conversion support
2016-07-10 21:53:32 +09:00
Olaf Meeuwissen d7c69d141f Add test for the TeX to HTML converter 2016-07-10 20:53:23 +09:00
Olaf Meeuwissen f322cbc7f9 Add support for PDF API spec output
Note that pdflatex internally uses epstopdf which in turn requires a
working ghostscript.
2016-07-10 15:41:08 +09:00
Olaf Meeuwissen ddbdfd6206 Fix configure time test 2016-07-03 21:11:22 +09:00
Olaf Meeuwissen a9c813944e Make libusb-1.0 the default for USB support
When libusb-1.0 is not found, libusb-0.1 will be tried.  On BeOS and
OS2, nothing should have changed in terms of detection of USB support.

On all systems the --enable-libusb* flags are now ignored.  Instead, the
--with-usb and --without-usb flags now control support.  When neither is
given USB support will be enable if possible and disabled otherwise.  If
--with-usb is requested but not possible, ./configure will fail.  There
is no support to prefer libusb-0.1 over libusb-1.0.
2016-07-01 23:44:37 +09:00
Olaf Meeuwissen 602182931d Improve test shell builtin invocation portability
Looks like I missed this when committing 309a8140.
2016-06-30 21:49:25 +09:00
Olaf Meeuwissen 828cd013e9 Compile getopt replacement functions only if needed
This ought to get rid of the last empty compilation unit warnings.  This
merges libfelib.la with liblib.la.  The former was always used together
with the latter.  The latter was only ever used without the former when
linking backends and tools.

Tools might want to use the getopt functions, backends might just want
to use MD5.
2016-06-30 21:38:04 +09:00
Olaf Meeuwissen a298bfe5a8 Fix AS_IF condition 2016-06-29 22:20:51 +09:00
Olaf Meeuwissen 1c946f7c19 Compile replacement functions only if needed
This ought to get rid of most empty compilation warnings.
2016-06-29 22:14:08 +09:00
Olaf Meeuwissen 61f3fec68e Remove references to SANE CVS
The references in in-file changelogs and the ChangeLog files have not
been modified.  Only those references that refer to current practices
or locations.
2016-06-27 22:40:20 +09:00
Olaf Meeuwissen cb4924f210 Stop distclean from removing files willy-nilly
The distclean target should only remove files that make creates.  If
there are any that need taking care of, they should be added in on a
per file basis in the Makefile.am that creates it.
2016-06-26 10:24:30 +09:00
Olaf Meeuwissen ec4fe7ec72 Prefer gettext's --disable-nls option 2016-06-26 10:24:29 +09:00
Olaf Meeuwissen c676acbe47 Switch to using the gettext build machinery
This adds two automatically maintained English variants that handle
quote substitution in onrder to provide smart quotes.
2016-06-26 10:24:29 +09:00
Olaf Meeuwissen 43cdc1056a Do not duplicate Warning on output 2016-06-15 20:18:25 +09:00
Olaf Meeuwissen 17d78ab7c3 Fix warnings of "newer" automake versions 2016-06-14 06:06:27 +09:00
Olaf Meeuwissen 7bfa818c57 Set up compiler and linker early and in one place 2016-06-14 06:01:52 +09:00
Olaf Meeuwissen f80cf1dbbd Remove unused SANE_LINKER_RPATH macro 2016-06-14 06:01:17 +09:00
Olaf Meeuwissen e4ad1f58f3 Enable ISO C99 support for more compilers 2016-06-14 05:58:50 +09:00
Olaf Meeuwissen 444b572d1a Use autoconf provided --docdir 2016-06-14 05:58:00 +09:00
Olaf Meeuwissen f1f4180e5b Collect autoconf bits in one place 2016-06-14 05:56:20 +09:00
Olaf Meeuwissen 35f1936aeb Determine version bits and release programmatically 2016-06-14 05:55:10 +09:00
Olaf Meeuwissen 16497dc138 Replace convenience variable by its expansion 2016-06-14 05:54:08 +09:00
Olaf Meeuwissen 97fed76717 Replace obsolescent macro with LT_INIT option 2016-06-14 05:51:39 +09:00
Olaf Meeuwissen c868a2e8d4 Remove commented out code 2016-06-14 05:49:14 +09:00
Olaf Meeuwissen 4894b1513d Drop a pile of unnecessary macro invocations
These are already taken care of by other macros.
2016-06-14 05:49:14 +09:00
Olaf Meeuwissen ae89c8f983 Update to automake-1.11.6
This turns on additional warnings and adds support for silent make
rules (so compiler warning really stand out ;-).
2016-06-14 05:45:24 +09:00
Olaf Meeuwissen 309a8140e7 Improve test shell builtin invocation portability
POSIX 2008 obsoletes the -a and -o operands (according to the autoconf
documentation).
2016-06-13 22:07:02 +09:00
Olaf Meeuwissen d9e2f44113 Double quote code passed to AC_LANG_PROGRAM
Upon re-reading the autoconf documentation, this seemed the right thing
to do.  The AC_LANG_PROGRAM macro does not quote its arguments so any
occurence of [ and ] will get stripped out if not double quoted.

Current code snippets passed do not use them but it is better to use a
consistent quoting approach for such snippets.  In other places in the
configure.ac file double quoting is used already.
2016-06-13 22:06:27 +09:00
Olaf Meeuwissen d3d5dc3da0 Update to autoconf-2.69
This gets rid of a number of obsoleted macros and replaces RETSIGTYPE
with a void literal which can be assumed for C89 and later.

This changeset was prepared using autoupdate and modified to get rid of
whitespace and doubled [] changes.  Changes to acinclude.m4 were added
by hand.
2016-06-13 22:05:34 +09:00
Olaf Meeuwissen 2d6fad58b4 Respect GNU Standards user variables
Several variables are considered "user variables" by the GNU Standards.
This means that the user can pass these to their ./configure and make
invocations as they see fit.  These variables include CPPFLAGS, CFLAGS
and LDFLAGS.

This changeset pushes our use of these variables to the automake shadow
variables, AM_CPPFLAGS, AM_CFLAGS and AM_LDFLAGS, so that user variables
will no longer clobber flags required in order to build.
2016-06-13 22:03:14 +09:00
Olaf Meeuwissen d81836bd23 Add automake subdir-objects option
This addresses autoreconf output such as:

  tools/Makefile.am:37: warning: source file '../backend/sane_strstatus.c' is in a subdirectory,
  tools/Makefile.am:37: but option 'subdir-objects' is disabled

The option was introduced in automake version 1.9 and is slated for
unconditional activation with automake-2.0.
2016-06-13 21:48:56 +09:00