r2385: *** empty log message ***
[uffi.git] / src / libraries.cl
index 05ca12556071a3a77dd83fdba2a6555fcd76143b..33cfa7663fb29efa313d4962405ca89f23ef4270 100644 (file)
@@ -1,4 +1,4 @@
-;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
+;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10; Package: UFFI -*-
 ;;;; *************************************************************************
 ;;;; FILE IDENTIFICATION
 ;;;;
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: libraries.cl,v 1.12 2002/04/03 17:43:31 kevin Exp $
+;;;; $Id: libraries.cl,v 1.16 2002/08/23 15:28:52 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -83,14 +83,16 @@ library type if type is not specified."
             (find filename *loaded-libraries* :test #'string-equal))
        t ;; return T, but don't reload library
       (progn
-       #+(and ignore cmu) (alien:load-foreign filename 
+       #+cmu
+       (let ((type (pathname-type (parse-namestring filename))))
+         (if (equal type "so")
+             (sys::load-object-file filename)
+             (alien:load-foreign filename 
                                  :libraries
                                  (convert-supporting-libraries-to-string
-                                  supporting-libraries))
-       #+cmu (sys::load-object-file filename) 
-
+                                  supporting-libraries))))
+       
        #+lispworks (fli:register-module module 
-                                        :connection-style :automatic 
                                         :real-name filename)
        #+allegro (load filename)