r1718: *** empty log message ***
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 1 Apr 2002 21:21:12 +0000 (21:21 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 1 Apr 2002 21:21:12 +0000 (21:21 +0000)
ChangeLog
examples/compress.cl
tests/compress.cl

index 52e7fa56c2cbb1a0dcd77458a83357fac9bf05ed..2b6b123526eda14f50cd0ea4a12dc17a3dc50171 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,7 +3,10 @@
        * src/libraries.cl:
        * examples/Makefile:
        Changed default type for FreeBSD and updated Makefile for
-       FreeBSD and Solaris
+       FreeBSD and Solaris. Enhanced find-foreign-library to
+       take a list of types to search.
+       * examples/compress.cl:
+       Add support to use find-foreign-library
 
 2002-03-31  Kevin Rosenberg (kevin@rosenberg.net)
 
index 05fa6ffeddc5cbed25747d960ceda80f104e7d37..ec35750d79ce013517b05789884cd96f97f9ff6b 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: compress.cl,v 1.9 2002/03/20 04:56:52 kevin Exp $
+;;;; $Id: compress.cl,v 1.10 2002/04/01 21:20:00 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 
 (in-package :cl-user)
 
-(unless (uffi:load-foreign-library "/usr/lib/libz.so" 
-                                  :module "zlib" 
-                                  :supporting-libraries '("c"))
+(unless (uffi:load-foreign-library
+        (uffi:find-foreign-library
+         "libz"
+         '("/usr/local/lib/" "/usr/lib" "/zlib")
+         :types '("so" "a"))
+        :module "zlib" 
+        :supporting-libraries '("c"))
   (warn "Unable to load zlib"))
 
 (uffi:def-function ("compress" c-compress)
index 05fa6ffeddc5cbed25747d960ceda80f104e7d37..ec35750d79ce013517b05789884cd96f97f9ff6b 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: compress.cl,v 1.9 2002/03/20 04:56:52 kevin Exp $
+;;;; $Id: compress.cl,v 1.10 2002/04/01 21:20:00 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 
 (in-package :cl-user)
 
-(unless (uffi:load-foreign-library "/usr/lib/libz.so" 
-                                  :module "zlib" 
-                                  :supporting-libraries '("c"))
+(unless (uffi:load-foreign-library
+        (uffi:find-foreign-library
+         "libz"
+         '("/usr/local/lib/" "/usr/lib" "/zlib")
+         :types '("so" "a"))
+        :module "zlib" 
+        :supporting-libraries '("c"))
   (warn "Unable to load zlib"))
 
 (uffi:def-function ("compress" c-compress)