hi In order to better keep track of what I installed, I am trying to build an RPM package for Sane on my Fedora 10 box. This fails as the config files do not get installed. This seems to be caused by the install-becfg target in backend/Makefile.am
@list="$(BACKEND_CONFS_ENABLED) saned.conf dll.conf"; for cfg in $$list; do \ if test ! -r $${cfg}; then continue; fi; \ if test -f $(DESTDIR)$(configdir)/$${cfg}; then \ echo NOT overwriting $${cfg} in $(configdir)...; \ else \ echo installing $${cfg} in $(configdir)/$${cfg}...; \ $(INSTALL_DATA) $${cfg} $(DESTDIR)$(configdir)/$${cfg} \ || exit 1; \ fi; \ done but the files are not copied: when we get here DESTDIR appears not to be set anymore: libtool: install: warning: remember to run `libtool --finish /usr/lib64/sane' /bin/sh ../libtool --silent --mode=install /usr/bin/install -c 'libsane-xerox_mfp.la' '/home/home1/louis/rpm/BUILDROOT/sane-backends-1.1.0.cvs-12.fc10.x86_64/usr/lib64/sane/libsane-xerox_mfp.la' libtool: install: warning: remember to run `libtool --finish /usr/lib64/sane' /bin/sh ../libtool --silent --mode=install /usr/bin/install -c 'libsane-dll.la' '/home/home1/louis/rpm/BUILDROOT/sane-backends-1.1.0.cvs-12.fc10.x86_64/usr/lib64/sane/libsane-dll.la' libtool: install: warning: remember to run `libtool --finish /usr/lib64/sane' /usr/bin/make install-data-hook make[3]: Entering directory `/home/home1/louis/rpm/BUILD/sane-backends-1.1.0.cvs/backend' rm -f /home/home1/louis/rpm/BUILDROOT/sane-backends-1.1.0.cvs-12.fc10.x86_64/usr/lib64/sane/libsane.* test -z "/etc/sane.d" || /bin/mkdir -p "/etc/sane.d" test -z "/etc/sane.d/dll.d" || /bin/mkdir -p "/etc/sane.d/dll.d" NOT overwriting abaton.conf in /etc/sane.d... NOT overwriting agfafocus.conf in /etc/sane.d... NOT overwriting apple.conf in /etc/sane.d... I have no idea where to look for the cause. Or am I missing something obvious? In the makefile I see that the install-becfg is triggered by install-dat-hook, which in its turn is called by install-data-am which does $(MAKE) $(AM_MAKEFLAGS) install-data-hook. So is DESTDIR missing from AM_MAKEFLAGS? I am afraid I do not know enough of autoconf to understand all logic involved. Suggestions? As a side-note: RPM barfs when a package name has more than one dash in it. Would it be possible to change the package version in configure.in so it does not contain a dash, e.g. to 1.1.0cvs? thanks in advance for the help Louis/insta