Skip to content

Commit

Permalink
emit informative message if libz can't be found
Browse files Browse the repository at this point in the history
In case libz can't be loaded we emit a message which will help
the user find the library.

Are there user visible changes in this commit?  no

Is bootstrapping needed?   no

Are tests included for new features?  no new features

Tests run:  none

Change-Id: I348241ee5a14b0425fbab91bcf9f6bcf2a2facfe
  • Loading branch information
John Foderaro committed Feb 17, 2011
1 parent 08627ae commit fbac6d2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deflate.cl
Expand Up @@ -69,8 +69,16 @@


(defvar *libz-dll-loaded* nil) (defvar *libz-dll-loaded* nil)



(if* (not *libz-dll-loaded*) (if* (not *libz-dll-loaded*)
then (load (util.string:string+ "libz." sys::*dll-type*) :foreign t) then (handler-case
(load (util.string:string+ "libz." sys::*dll-type*) :foreign t)
(error (c)
(error "~
This module require the compression library named libz be present ~
on the machine for the deflate module to load. ~
See http://zlib.net/ for versions for various platforms.~% failure ~
condition: ~a~%" c)))
(setq *libz-dll-loaded* t)) (setq *libz-dll-loaded* t))




Expand Down

0 comments on commit fbac6d2

Please sign in to comment.