X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/89b927eccccca3e1ed0c8f154399e0f385276215..a7d19b2a6d3e11b28842476b80ef68d81fb6b8ac:/glib/glib.asd diff --git a/glib/glib.asd b/glib/glib.asd index 7c6bbb2..5c18f0b 100644 --- a/glib/glib.asd +++ b/glib/glib.asd @@ -26,6 +26,21 @@ (when (string>= (pkg-version "glib-2.0") "2.8.0") (push :glib2.8 *features*)) +#+sbcl +(when (string>= (lisp-implementation-version) "0.9.8") + (push :sbcl>=0.9.8 *features*)) + +#+(and sbcl (not alien-callbacks)) +(eval-when (:compile-toplevel :load-toplevel :execute) + (unless (find-symbol "DEFINE-ALIEN-FUNCTION" "SB-ALIEN") + (error "You need to upgrade SBCL to a version with native C callback support or see the README file about how to add third party callbacks to your current SBCL version."))) + +#+(and sbcl alien-callbacks) +(eval-when (:compile-toplevel :load-toplevel :execute) + (when (find-symbol "DEFINE-ALIEN-FUNCTION" "SB-ALIEN") + (error "Third party C callback code detected in a SBCL image with native callback support. As clg now uses native callbacks when available, you need to use a \"clean\" core file."))) + + (defsystem glib :depends-on (clg-tools) :components ((:file "defpackage")