On Wed, Feb 17, 2010 at 07:13:34PM +0300, Alexey I. Froloff wrote: > On Wed, Feb 17, 2010 at 07:05:25PM +0300, Alexey Tourbin wrote: > > Hmm, maybe the same macro can handle both cases? > > > %def_with cairo -> > > --with-cairo > > %def_with cairo=installed > > --with-cairo=installed > > How about The Uber Case? > > %def_with cairo-libs=%_libdir/cairo -> > --with-cairo-libs=%_libdir/cairo So you're trying to say it can't work. For now, I can't see why. Look, %def_with is a macro, and it has an argument. The argument can be mangled (to make and indentifier). So...