r2570: Auto commit for Debian build
[clsql.git] / clsql-base.asd
index cae66ee4bd21b16035c59f508d305ceaf966411c..e304a0f96ee5ea819d1a52a5e609f4214a4e0e49 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: clsql-base.asd,v 1.4 2002/08/23 19:39:56 kevin Exp $
+;;;; $Id: clsql-base.asd,v 1.7 2002/09/06 10:31:51 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
                    :device (pathname-device *load-truename*)
                    :directory (pathname-directory *load-truename*)))))
 
-(defconstant +clsql-logical-host+
-  #+common-lisp-controller "cl-library"
-  #-common-lisp-controller "clsql"
-  "Logical hostname for loading system")
-
-(unless (ignore-errors (find-class 'clsql-cl-source-file))
-  (defclass clsql-cl-source-file (cl-source-file) ())
-  (defmethod source-file-type ((c clsql-cl-source-file) (s module)) 
-    "cl"))
+(eval-when (:compile-toplevel :load-toplevel :execute)
+  (defconstant +clsql-logical-host+
+      #+common-lisp-controller "cl-library"
+      #-common-lisp-controller "clsql"
+      "Logical hostname for loading system"))
 
  ;;; System definitions
 
 (defsystem clsql-base
-  :default-component-class clsql-cl-source-file
   :pathname #.(format nil "~A:clsql-base;" +clsql-logical-host+)
   :perform (load-op :after (op clsql-base)
                    (pushnew :clsql-base cl:*features*))
@@ -56,3 +51,8 @@
               (:file "db-interface" :depends-on ("conditions"))
               (:file "initialize" :depends-on ("db-interface")))
   )
+
+(defmethod source-file-type  ((c cl-source-file)
+                             (s (eql (find-system 'clsql-base)))) 
+   "cl")
+