r7061: initial property settings
[uffi.git] / tests / foreign-loader.lisp
1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          foreign-loader.lisp
6 ;;;; Purpose:       Loads foreign libraries
7 ;;;; Author:        Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id$
11 ;;;;
12 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; *************************************************************************
15
16 ;;; For CMUCL, it's necessary to load foreign files separate from their
17 ;;; usage
18
19 (in-package uffi-tests)
20
21 (unless (uffi:load-foreign-library
22          (uffi:find-foreign-library
23           #-(or macosx darwin)
24           "libz"
25           #+(or macosx darwin)
26           "z"
27           (list (pathname-directory *load-pathname*)
28                 "/usr/local/lib/" "/usr/lib/" "/zlib/"))
29          :module "zlib" 
30          :supporting-libraries '("c"))
31   (warn "Unable to load zlib"))
32   
33 (unless (uffi:load-foreign-library 
34          (uffi:find-foreign-library
35           "uffi-c-test-lib" 
36           (list (pathname-directory *load-truename*)
37                 "/usr/lib/uffi/"))
38          :supporting-libraries '("c")
39          :module "uffi_tests")
40   (warn "Unable to load uffi-c-test-lib library"))
41