[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] How to use prelude?
From: |
Peter Bex |
Subject: |
[Chicken-users] How to use prelude? |
Date: |
Sat, 27 May 2006 13:08:34 +0200 |
User-agent: |
Mutt/1.4.2.1i |
Hey all,
I'm trying to conditionally add a prelude to an egg. It checks if X is
available by trying to link against it, and then it does the following:
(if with-x?
(compile -prelude (define with-x #t) -s -O2 -d0 imlib2.scm -C
-I/usr/X11R6/include -L/usr/X11R6/lib -lImlib2 -lX11 -lfreetype)
(compile -prelude (define with-x #t) -s -O2 -d0 imlib2.scm -ffi-define
X_DISPLAY_MISSING))
But this fails on the prelude with:
Syntax error: "(" unexpected
Adding a quote in front of the define doesn't work either as that expands
to (quote (define with-x #t))
How does this work, then? (also, can I use cond-expand with this? I'm not
sure how to add features cond-expand can check against)
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
pgpP3MC7GxUBa.pgp
Description: PGP signature
- [Chicken-users] How to use prelude?,
Peter Bex <=