anchor.diff:  ;;; -*- Mode: lisp -*-
   
   (asdf:oos 'asdf:load-op :clg-tools)
  +(asdf:oos 'asdf:load-op :gffi)
   
   (defpackage "GLIB-SYSTEM"
     (:use "COMMON-LISP" "ASDF" "PKG-CONFIG"))
  -
  -#+cmu(ext:unlock-all-packages)
  -#+sbcl
  -(progn
  -  (sb-ext:unlock-package "COMMON-LISP")
  -  (sb-ext:unlock-package "SB-PCL"))
   
   ;;; Better put this in ~/.cmucl-init.lisp or some other file read at startup
   ;; (setf
  
positive.code: 
  (in-package "GLIB-SYSTEM")
  
  (pkg-exists-p "glib-2.0" :atleast-version "2.4.0")
  
  (when (pkg-exists-p "glib-2.0" :atleast-version "2.6.0" :error nil)
    (push :glib2.6 *features*))
  
  (when (pkg-exists-p "glib-2.0" :atleast-version "2.8.0" :error nil)
    (push :glib2.8 *features*))
  
  #+sbcl
  (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)
      :components ((:file "defpackage")
  		 #+(and cmu (not non-broken-pcl) (not cmu19b))(:file "pcl")
  		 ;; For preloading to work in glib 2.6, the library needs to 
  		 ;; be configured and build with '--disable-visibility'
    		 (:unix-dso "preload"
  
negative.code: 			       (:c-source-file "gobject" 
  				:cflags #.(pkg-cflags "glib-2.0")))
  		  :depends-on ("libgobject-2.0"))
  		 (:file "glib" :depends-on ("libglib-2.0" "defpackage"))
  		 (:file "gtype" :depends-on ("alien" "libgobject-2.0" "glib"))
  		 (:file "gboxed" :depends-on ("gtype"))
  		 (:file "genums" :depends-on ("gtype"))
  		 (:file "gparam" :depends-on ("genums"))
  