Hi everyone, I have just committed some changes regarding the Makefiles to the sane-backends CVS. Please test if sane-backends can still be built and installed on your system (especially OpenBSD and MacOS X).
Some details about the changes: The depend target is enabled by default now. This means, that "make" also calls the "depend" target and therefore makedepend, if it's available. This is a solution to the problem that e.g. after editing backend/gt68xx.h you had to touch backend/gt68xx.c to make sure that "make" rebuilds the backend. The code that manually creates links in /usr/local/lib/sane/ (e.g. libsane-dll.so.1 --> libsane.so.1.0.16) is enabled again. This is necessary at least of OpenBSD. As it doesn't work for MacOS X, it's disabled there. libtool automatically creates a link /usr/local/lib/sane/libsane.so --> libsane-v4l.so. This is bad because if for some reason /usr/local/lib/sane/ is in ld.so.conf, libsane.so from that directory (and therefore the v4l backend) and not the correct dll backend from /usr/local/lib/ will be linked against the frontends. This is the reason for quite some bug reports in recent years. The typical symptom is that no scanner is identified. If a video card is available. it's found even if "v4l" is disabled in dll.conf. The wrong links are now removed by backend/Makefile.in. The "make install" target was quite verbose, libtool printed its 10-line-long messages about installed libraries for each backend. This is only printed once now. Bye, Henning