r2046: Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 14 May 2002 16:51:06 +0000 (16:51 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Tue, 14 May 2002 16:51:06 +0000 (16:51 +0000)
interfaces/clsql-uffi/clsql-uffi-loader.cl
interfaces/postgresql/postgresql-loader.cl

index 519956c1cda379d5486df15c2b80b01b4ebd57ef..0aa0fc9f1cc04727ee22b9641e02ba50531011d7 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmers:   Kevin M. Rosenberg
 ;;;; Date Started:  Mar 2002
 ;;;;
-;;;; $Id: clsql-uffi-loader.cl,v 1.9 2002/05/14 16:27:42 kevin Exp $
+;;;; $Id: clsql-uffi-loader.cl,v 1.10 2002/05/14 16:51:06 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -40,8 +40,7 @@ set to the right path before compiling or loading the system.")
                                 :supporting-libraries 
                                 *clsql-uffi-supporting-libraries*)
       (setq *uffi-library-loaded* t)
-    (warn "Unable to load helper library ~A (~S)" *clsql-uffi-library-filename*
-         (logical-pathname-translations "CL-LIBRARY"))))
+    (warn "Unable to load helper library ~A" *clsql-uffi-library-filename*)))
 
 (load-uffi-foreign-library)
 
index 2a420f6ad93ed66cb97f1e547396004af279a87d..bf13ca0bcc80067ef85f4fb93768d6eb32c9432b 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: postgresql-loader.cl,v 1.8 2002/05/14 16:29:53 kevin Exp $
+;;;; $Id: postgresql-loader.cl,v 1.9 2002/05/14 16:51:06 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -34,19 +34,19 @@ set to the right path before compiling or loading the system.")
                                      
 (defmethod clsql-sys:database-type-load-foreign ((database-type
                                                  (eql :postgresql)))
-  (when
-      (uffi:load-foreign-library 
-       (uffi:find-foreign-library "libpq"
-                                 '("/opt/postgresql/lib/" "/usr/local/lib/" 
-                                   "/usr/lib/" "/postgresql/lib/"
-                                   "/usr/local/pgsql/lib/" "/usr/lib/pgsql/"
-                                   "/opt/pgsql/lib/pgsql")
-                                 :drive-letters '("C" "D" "E"))
-       
-       :module "postgresql"
-       :supporting-libraries 
-       *postgresql-supporting-libraries*)
-    (setq *postgresql-library-loaded* t)))
+  (let ((libpath (uffi:find-foreign-library 
+                 "libpq"
+                 '("/opt/postgresql/lib/" "/usr/local/lib/" 
+                   "/usr/lib/" "/postgresql/lib/"
+                   "/usr/local/pgsql/lib/" "/usr/lib/pgsql/"
+                   "/opt/pgsql/lib/pgsql")
+                 :drive-letters '("C" "D" "E"))))
+    (if        (uffi:load-foreign-library libpath
+                                  :module "postgresql"
+                                  :supporting-libraries 
+                                  *postgresql-supporting-libraries*)
+       (setq *postgresql-library-loaded* t)
+      (warn "Can't load PostgreSQL client library ~A" libpath))))
 
 (clsql-sys:database-type-load-foreign :postgresql)