summaryrefslogtreecommitdiff
path: root/volk/include
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-12-14 13:36:55 -0800
committerNick Foster <nick@nerdnetworks.org>2010-12-14 13:36:55 -0800
commit05f4bced29987a0a573d1fc5b214f3fa01dc84bd (patch)
tree59560dd8f42fe5ab5c08b2bdb148965128b6d88e /volk/include
parent611526f9dfba0df4a1a49d47916706438ac194b3 (diff)
Volk: More autotools stuff for Orc. Should build OK with or without Orc now.
Diffstat (limited to 'volk/include')
-rw-r--r--volk/include/volk/make_set_simd.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/volk/include/volk/make_set_simd.py b/volk/include/volk/make_set_simd.py
index e568aebfaf..78a00476d5 100644
--- a/volk/include/volk/make_set_simd.py
+++ b/volk/include/volk/make_set_simd.py
@@ -183,8 +183,14 @@ def make_set_simd(dom) :
tempstring = tempstring + " indCXX=no\n"
tempstring = tempstring + " indLV_ARCH=no\n"
elif atype == "all":
- tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
- tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
+ if arch == "orc":
+ tempstring = tempstring + " if test $HAVE_ORC = yes; then\n";
+ tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
+ tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
+ tempstring = tempstring + " fi\n";
+ else:
+ tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
+ tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
tempstring = tempstring + " ;;\n"
tempstring = tempstring + " (powerpc)\n"