-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On May 27, 2006, at 4:08 AM, Peter Bex wrote:
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))
Put quotes around it? "(define with-x #t)" Ultimately this turns into
(system* "...") so the parens will be seen by the shell parser.
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)
I think 'register-feature!'
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
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFEeHZQJJNoeGe+5O4RAgLFAJ9TnRH+WNxidA5OUnuX8yPdvOLe8gCdHvkF
jF0C5rYoFtqNAIuQ5d7zyxw=
=LLOZ
-----END PGP SIGNATURE-----
_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users