X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/65466e9ca1be75e519da012fa2e7f437a3731e16..5cc9b9e3b20afb9f40ed57957ed5c3dd2bcbd13b:/glib/glib.asd diff --git a/glib/glib.asd b/glib/glib.asd index 668c59b..44de186 100644 --- a/glib/glib.asd +++ b/glib/glib.asd @@ -20,15 +20,29 @@ (pkg-exists-p "glib-2.0" :atleast-version "2.4.0") -(when (string>= (pkg-version "glib-2.0") "2.6.0") +(when (pkg-exists-p "glib-2.0" :atleast-version "2.6.0" :error nil) (push :glib2.6 *features*)) -(when (string>= (pkg-version "glib-2.0") "2.8.0") +(when (pkg-exists-p "glib-2.0" :atleast-version "2.8.0" :error nil) (push :glib2.8 *features*)) #+sbcl -(when (string>= (lisp-implementation-version) "0.9.8") - (push :sbcl>=0.9.8 *features*)) +(progn + (when (sbcl>= 0 9 8) + (push :sbcl>=0.9.8 *features*)) + (when (sbcl>= 0 9 10) + (push :sbcl>=0.9.10 *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)