On 10/24/06, <b class="gmail_sendername">Duncan Coutts</b> &lt;<a href="mailto:duncan.coutts@worc.ox.ac.uk">duncan.coutts@worc.ox.ac.uk</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi All,<br><br>Before the 6.6 release we had a longish discussion on how to do<br>configurations and their semantics and implementation complexity etc.<br><br>I would like to re-propose the last scheme that I cam up with. I'll try
<br>to make it a concrete proposal as well as giving some motivating<br>examples to give the intuition of the meaning.</blockquote><div><br>The only way I have really wanted to use configurations so far is to  build debug, profiling, and optimized versions of a library. In order to build multiple configurations, is it going to still be the case that I have to &quot;configure / build / install&quot; separately for each configuration? I would like to be able to say something like &quot;
Setup.lhs configure --optimized --debug --profiled&quot; to build all three versions at once.<br><br>Also, let's say I have this:<br><br>&nbsp;&nbsp;&nbsp; Name: foo<br>&nbsp;&nbsp;&nbsp; Version: 1.0<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; configuration: flag(DEBUG)<br>&nbsp;&nbsp;&nbsp; cpp-options: -DDEBUG
<br><br>&nbsp;&nbsp;&nbsp; Name: bar<br>&nbsp;&nbsp;&nbsp; Build-depends: foo &gt;= 1.0<br><br>&nbsp;&nbsp;&nbsp; configuration: flag(DEBUG)<br>&nbsp;&nbsp;&nbsp; Build-depends: ????<br><br>How can I say that I want the DEBUG version of package &quot;bar&quot; to depend on the DEBUG version of package &quot;foo.&quot;?&nbsp; Is this allowed?
<br><br>&nbsp; &nbsp; Name: foo<br>&nbsp; &nbsp; Version: 1.0<br><br>&nbsp;&nbsp;&nbsp; configuration: flag(debug)<br>&nbsp;&nbsp;&nbsp; Name: foo-debug<br>&nbsp;&nbsp;&nbsp; <br>Otherwise, how can I have a debug and an optimized configuration of a given library installed at the same time? 
<br><br>Regards,<br>Brian<br><br></div></div>