<div class="gmail_quote">On Fri, Apr 22, 2011 at 5:57 PM, Dan Nicholson <span dir="ltr"><<a href="mailto:dbn.lists@gmail.com" target="_blank">dbn.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
<div>On Fri, Apr 22, 2011 at 8:52 AM, Dan Nicholson <<a href="mailto:dbn.lists@gmail.com" target="_blank">dbn.lists@gmail.com</a>> wrote:<br>
> On Thu, Apr 21, 2011 at 4:39 AM, Marek Olšák <<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>> wrote:<br>
>> OpenSUSE is (was?) shipping r300g with LLVM disabled. Can you believe it?<br>
>> Poor users with SWTCL chipsets... and bad reputation for us too.<br>
>> ---<br>
>> <a href="http://configure.ac" target="_blank">configure.ac</a> | 4 ++--<br>
>> 1 files changed, 2 insertions(+), 2 deletions(-)<br>
>><br>
>> diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
>> index 8989c2b..8e9f73f 100644<br>
>> --- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
>> +++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
>> @@ -1687,10 +1687,10 @@ dnl Gallium LLVM<br>
>> dnl<br>
>> AC_ARG_ENABLE([gallium-llvm],<br>
>> [AS_HELP_STRING([--enable-gallium-llvm],<br>
>> - [build gallium LLVM support @<:@default=disabled@:>@])],<br>
>> + [build gallium LLVM support @<:@default=enabled@:>@])],<br>
>> [enable_gallium_llvm="$enableval"],<br>
>> [enable_gallium_llvm=auto])<br>
>> -if test "x$enable_gallium_llvm" = xyes; then<br>
>> +if test "x$enable_gallium_llvm" != xno; then<br>
>> if test "x$LLVM_CONFIG" != xno; then<br>
>> LLVM_VERSION=`$LLVM_CONFIG --version`<br>
>> LLVM_CFLAGS=`$LLVM_CONFIG --cppflags`<br>
<br>
</div>Hit send a little too fast. This looks right, although the default is<br>
really "auto" and will silently continue if the user doesn't have<br>
LLVM. That's a little different than "enabled". It would be nice for<br>
the user if configure errors when LLVM_CONFIG=no and<br>
enable_gallium_llvm=yes.<br></blockquote><div><br>The problem is "auto" is the same as "disabled" in this case.<br><br>Since r300g is built by default and it will require LLVM soon (at least on x86(_64)), the purpose of this patch is not to always fail to configure when no arguments are provided.<br>
<br>I take the first patch back. Here's an updated patch that enables LLVM on x86 and x86_64 only:<br><br><br> <a href="http://configure.ac">configure.ac</a>: enable LLVM by default on x86 and x86_64<br><br>diff --git a/<a href="http://configure.ac">configure.ac</a> b/<a href="http://configure.ac">configure.ac</a><br>
index 77b2d55..d8c50ce 100644<br>--- a/<a href="http://configure.ac">configure.ac</a><br>+++ b/<a href="http://configure.ac">configure.ac</a><br>@@ -1687,9 +1687,14 @@ dnl Gallium LLVM<br> dnl<br> AC_ARG_ENABLE([gallium-llvm],<br>
[AS_HELP_STRING([--enable-gallium-llvm],<br>- [build gallium LLVM support @<:@default=disabled@:>@])],<br>+ [build gallium LLVM support @<:@default=enabled on x86/x86_64@:>@])],<br> [enable_gallium_llvm="$enableval"],<br>
[enable_gallium_llvm=auto])<br>+if test "x$enable_gallium_llvm" = xauto; then<br>+ case "$host_cpu" in<br>+ i*86|x86_64) enable_gallium_llvm=yes;;<br>+ esac<br>+fi<br> if test "x$enable_gallium_llvm" = xyes; then<br>
if test "x$LLVM_CONFIG" != xno; then<br> LLVM_VERSION=`$LLVM_CONFIG --version`<br><br><br>
Marek<br></div></div>