[CM] configure in CLM

Anders Vinjar andersvi@extern.uio.no
Wed, 14 Jul 2004 12:44:48 +0200


--=-=-=

Why not have all.lisp leave config.h and friends in
*clm-binary-directory*, and modify 'definstrument to write
include config.h from this directory (along the model of building
and using 'sndplay)?

There might be flaws to this model, but it seems to work
allright, not having to put <config.h> explicitly (by superuser)
in any /usr/include/* (or having a copy of config.h in every
directory you might be working).

Here are 2 diff-files making the changes to all.lisp and
defins.lisp to test with:


--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=all.lisp-diffs
Content-Transfer-Encoding: base64
Content-Description: diff output for new all.lisp

KioqIC9zaXRlL3Vpby9jbS1zeXMvY2xtLTIvYWxsLmxpc3AJMjAwNC0wNy0xNCAxMTo1Mzoy
Ny4wMDAwMDAwMDAgKzAyMDAKLS0tIC9zaXRlL3Vpby9jbS1zeXMvY2xtLTIvYWxsLmxpc3B+
CTIwMDQtMDYtMzAgMTI6MDM6MTQuMDAwMDAwMDAwICswMjAwCioqKioqKioqKioqKioqKgoq
KiogMTUzLDE2OCAqKioqCiAgOzs7CiAgCiAgKGRlZnZhciByZWNvbmZpZ3VyZSAjK3JlY29u
ZmlndXJlIHQgIy1yZWNvbmZpZ3VyZSBuaWwpCiEgKGlmIChub3QgKHByb2JlLWZpbGUgKGNv
bmNhdGVuYXRlICdzdHJpbmcgY2xtLWJpbi1kaXJlY3RvcnkgImNvbmZpZy5oIikpKQohICAg
ICAoc2V0ZiByZWNvbmZpZ3VyZSB0KSkKICAoZGVmdmFyIGNvbmZpZ3VyZSkKICAoaWYgcmVj
b25maWd1cmUKICAgICAgKHByb2duCiEgICAgICAgOzsoc2V0ZiBjb25maWd1cmUgIi4vY29u
ZmlndXJlIC0tcXVpZXQgLXdpdGgtZG91YmxlcyAtLXdpdGgtZmxvYXQtc2FtcGxlcyIpCiEg
ICAgICAgKHNldGYgY29uZmlndXJlCiEgICAgICAgICAgICAgKGNvbmNhdGVuYXRlICdzdHJp
bmcgY2xtLWRpcmVjdG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KGNvbXBpbGUtYW5kLWxvYWQgImNsbTEi
KSA7IGFkZGVkIDE1LUFwci0wMgogIAotIDs7OyBtb3ZlIGNvbmZpZy5oLCBjb25maWcubG9n
LCBjb25maWcuc3RhdHVzIHRvIGNsbS1iaW4tZGlyZWN0b3J5Ci0gCi0gKGlmIHJlY29uZmln
dXJlCi0gICAgIChwcm9nbiAoZm9ybWF0IHQgIjsgICBtb3ZpbmcgY29uZmlnLiogLT4gY2xt
LWJpbi1kaXJlY3Rvcnl+JSIgY29uZmlndXJlKQotIAkgICAoZXh0ZW5zaW9uczpydW4tcHJv
Z3JhbSAiL2Jpbi9jc2giCi0gCQkJCSAgIChsaXN0ICItZmMiCi0gCQkJCQkgKGZvcm1hdCBu
aWwgIm12IGNvbmZpZy4qIH5BIiBjbG0tYmluLWRpcmVjdG9yeSkpCi0gCQkJCSAgIDpvdXRw
dXQgdCkpKQotIAotIAogIDs7OyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQog
IDs7OyBpbml0aWFsaXplIENMTQogIAotLS0gNzIyLDcyNyAtLS0tCg==
--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=defins-diffs
Content-Transfer-Encoding: base64
Content-Description: diff output for new defins.lisp

KioqIC9zaXRlL3Vpby9jbS1zeXMvY2xtLTIvZGVmaW5zLmxpc3AJMjAwNC0wNy0xNCAxMTo1
NjozMi4wMDAwMDAwMDAgKzAyMDAKLS0tIC9zaXRlL3Vpby9jbS1zeXMvY2xtLTIvZGVmaW5z
Lmxpc3B+CTIwMDQtMDYtMzAgMTI6MDM6MTQuMDAwMDAwMDAwICswMjAwCioqKioqKioqKioq
KioqKgoqKiogMzg0LDM5MCAqKioqCiAgCQkgIChwcmluYyAoZm9ybWF0IG5pbCAiOyBXcml0
aW5nIH5TfiUiIGMtZmlsZS1uYW1lKSkKICAJCSAgOzsgaW4gTUNMIHdlIHNob3VsZCBjaGVj
ayB0aGlzIGZvciBmaWxlIG5hbWUgdG9vIGxvbmcgLS0gc3RpbGwgbm90IHN1cmUgd2hhdCB0
aGUgbGltaXQgaXMgKDMyPyAxOD8pCiAgCQkgIChmb3JtYXQgKmMtZmlsZSogIi8qIH5BfkEg
QyBmaWxlIGdlbmVyYXRlZCB+QSBieSBDTE0gKHZlcnNpb246IH5BKSAqL34lfiV+CiEgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI2luY2x1ZGUgflN+JX4KICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjaW5jbHVkZSA8c3RkaW8uaD5+JSNp
bmNsdWRlIDxzdGRhcmcuaD5+JX4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICB+QX4lfgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICNpbmNs
dWRlIDxtYXRoLmg+fiV+QX4lfgotLS0gMzg0LDM5MCAtLS0tCiAgCQkgIChwcmluYyAoZm9y
bWF0IG5pbCAiOyBXcml0aW5nIH5TfiUiIGMtZmlsZS1uYW1lKSkKICAJCSAgOzsgaW4gTUNM
IHdlIHNob3VsZCBjaGVjayB0aGlzIGZvciBmaWxlIG5hbWUgdG9vIGxvbmcgLS0gc3RpbGwg
bm90IHN1cmUgd2hhdCB0aGUgbGltaXQgaXMgKDMyPyAxOD8pCiAgCQkgIChmb3JtYXQgKmMt
ZmlsZSogIi8qIH5BfkEgQyBmaWxlIGdlbmVyYXRlZCB+QSBieSBDTE0gKHZlcnNpb246IH5B
KSAqL34lfiV+CiEgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgI2luY2x1
ZGUgPGNvbmZpZy5oPn4lfgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICNpbmNsdWRlIDxzdGRpby5oPn4lI2luY2x1ZGUgPHN0ZGFyZy5oPn4lfgogICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgIH5BfiV+CiAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgI2luY2x1ZGUgPG1hdGguaD5+JX5BfiV+CioqKioqKioqKioq
KioqKgoqKiogMzk0LDQwMyAqKioqCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgfkF+JX4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB+QX4l
fiUiCiAgCQkJICBuYW1lIChpZiAqYy1zY2hlZHVsaW5nKiAiIChwYXJhbGxlbCkiICIiKSAo
dGltZXN0cmluZykgKmNsbS1kYXRlKgotIAotIAkJCSAgOzsgc2l0ZS13aWRlIGNvbmZpZy5o
OgotIAkJCSAgKGNvbmNhdGVuYXRlICdzdHJpbmcgY2xtOjoqY2xtLWJpbmFyeS1kaXJlY3Rv
cnkqICJjb25maWcuaCIpCi0gCQkJICAKICAJCQkgICMtKGFuZCBtY2wgKG5vdCBvcGVubWNs
KSkgIiNpbmNsdWRlIDxzaWduYWwuaD4iICMrKGFuZCBtY2wgKG5vdCBvcGVubWNsKSkgIiNp
bmNsdWRlIDxzdGRsaWIuaD4iCiAgCQkJICAjLXNnaSAiIiAjK3NnaSAiI2luY2x1ZGUgPHN5
cy9mcHUuaD4iCiAgCQkJICBjbXVzLWhlYWRlci1zdHJpbmcKLS0tIDM5NCwzOTkgLS0tLQo=
--=-=-=


-anders

--=-=-=--