about summary refs log tree commit diff
path: root/configure.scm
diff options
context:
space:
mode:
authorArun Isaac2022-01-05 15:33:06 +0530
committerArun Isaac2022-01-05 15:47:40 +0530
commit870ab7dba04afe86d8ff4a0b8434add416539ade (patch)
tree1682500a032f73a0ff0036af83f37c7894847664 /configure.scm
parent8945df6697ce1be5bbab0a752e8ddc440f96d2c3 (diff)
downloadkolam-870ab7dba04afe86d8ff4a0b8434add416539ade.tar.gz
kolam-870ab7dba04afe86d8ff4a0b8434add416539ade.tar.lz
kolam-870ab7dba04afe86d8ff4a0b8434add416539ade.zip
configure: Output project name.
* Makefile (project): Delete variable.
* configure: Pass the kolam, the project name, to configure.scm.
* configure.scm (processed-args): Capture the project name argument.
Output project name in Makefile.include.
Diffstat (limited to 'configure.scm')
-rw-r--r--configure.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.scm b/configure.scm
index 6681f17..07a822a 100644
--- a/configure.scm
+++ b/configure.scm
@@ -56,7 +56,7 @@
 
 (define processed-args
   (match (program-arguments)
-    ((_ args ...)
+    ((_ project args ...)
      (let* ((args (args-fold args
                              (list (option '("prefix") #t #f
                                            option-proc))
@@ -71,7 +71,8 @@
                         (string-append exec-prefix "/lib")))
             (datarootdir (or (assq-ref args 'datarootdir)
                              (string-append prefix "/share"))))
-       `((libdir . ,libdir)
+       `((project . ,project)
+         (libdir . ,libdir)
          (datarootdir . ,datarootdir))))))
 
 (check-for-guile-3.0)
@@ -81,10 +82,12 @@
   (lambda (port)
     (display (format "# This file was automatically generated by configure.
 
+project = ~a
 libdir = ~a
 datarootdir = ~a
 guile_effective_version = ~a
 "
+                     (assq-ref processed-args 'project)
                      (assq-ref processed-args 'libdir)
                      (assq-ref processed-args 'datarootdir)
                      (effective-version))