Fixes to the GhostPCL library names on Linux and Mac.
This commit is contained in:
@@ -54,13 +54,14 @@
|
|||||||
# endif
|
# endif
|
||||||
#elif defined __APPLE__
|
#elif defined __APPLE__
|
||||||
# define PATH_GHOSTSCRIPT_DLL "libgs.dylib"
|
# define PATH_GHOSTSCRIPT_DLL "libgs.dylib"
|
||||||
# define PATH_GHOSTPCL_DLL "libgpcl6.dylib"
|
# define PATH_GHOSTPCL_DLL "libgpcl6.9.54.dylib"
|
||||||
#else
|
#else
|
||||||
# define PATH_GHOSTSCRIPT_DLL "libgs.so.9"
|
# define PATH_GHOSTSCRIPT_DLL "libgs.so.9"
|
||||||
# define PATH_GHOSTSCRIPT_DLL_ALT1 "libgs.so.10"
|
# define PATH_GHOSTSCRIPT_DLL_ALT1 "libgs.so.10"
|
||||||
# define PATH_GHOSTSCRIPT_DLL_ALT2 "libgs.so"
|
# define PATH_GHOSTSCRIPT_DLL_ALT2 "libgs.so"
|
||||||
# define PATH_GHOSTPCL_DLL "libgpcl6.so.10"
|
# define PATH_GHOSTPCL_DLL "libgpcl6.so.9"
|
||||||
# define PATH_GHOSTPCL_DLL_ALT "libgpcl6.so"
|
# define PATH_GHOSTPCL_DLL_ALT1 "libgpcl6.so.10"
|
||||||
|
# define PATH_GHOSTPCL_DLL_ALT2 "libgpcl6.so"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define POSTSCRIPT_BUFFER_LENGTH 65536
|
#define POSTSCRIPT_BUFFER_LENGTH 65536
|
||||||
@@ -424,9 +425,13 @@ pcl_init(void *lpt)
|
|||||||
|
|
||||||
/* Try loading the DLL. */
|
/* Try loading the DLL. */
|
||||||
ghostscript_handle = dynld_module(PATH_GHOSTPCL_DLL, ghostscript_imports);
|
ghostscript_handle = dynld_module(PATH_GHOSTPCL_DLL, ghostscript_imports);
|
||||||
#ifdef PATH_GHOSTPCL_DLL_ALT
|
#ifdef PATH_GHOSTPCL_DLL_ALT1
|
||||||
if (ghostscript_handle == NULL) {
|
if (ghostscript_handle == NULL) {
|
||||||
ghostscript_handle = dynld_module(PATH_GHOSTPCL_DLL_ALT, ghostscript_imports);
|
ghostscript_handle = dynld_module(PATH_GHOSTPCL_DLL_ALT1, ghostscript_imports);
|
||||||
|
# ifdef PATH_GHOSTPCL_DLL_ALT2
|
||||||
|
if (ghostscript_handle == NULL)
|
||||||
|
ghostscript_handle = dynld_module(PATH_GHOSTPCL_DLL_ALT2, ghostscript_imports);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (ghostscript_handle == NULL) {
|
if (ghostscript_handle == NULL) {
|
||||||
|
Reference in New Issue
Block a user