This is a Debian-specific bug: its rules skip the configure step
(due to "override_dh_auto_configure:" in debian/rules).

The consequence is that the SYSTEM_XPDFRC C macro is not defined,
and one gets the MS-Windows behavior: from xpdf/config.h,

// system config file name (set via the configure script)
#ifdef SYSTEM_XPDFRC
#define xpdfSysConfigFile SYSTEM_XPDFRC
#else
// under Windows, we get the directory with the executable and then
// append this file name
#define xpdfSysConfigFile "xpdfrc"
#endif

In debian/rules, one has:

override_dh_auto_build: build/stamp $(objects)
        SYSTEM_XPDFRC=/etc/xpdf/xpdfrc $(CXX) $(LDFLAGS) -o build/xpdf.real 
build/*.o $(libraries)

but defining an environment variable there for linking has no effect.
One needs -DSYSTEM_XPDFRC=/etc/xpdf/xpdfrc at the right time: when
building the .o files (not at link time). Alternatively, I suppose
that a

#define SYSTEM_XPDFRC "/etc/xpdf/xpdfrc"

could be added to build/config.h before the "#ifdef SYSTEM_XPDFRC"
(I don't know how these things work under Debian).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to