summaryrefslogtreecommitdiff
path: root/volk/include
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2010-12-09 17:09:23 -0500
committerTom Rondeau <trondeau@vt.edu>2010-12-09 17:09:23 -0500
commit87889c20c7551b39bb508408035c894dfc32fb0d (patch)
treecd37232526b9f16d65c3c65050996e009e4a1d58 /volk/include
parent97ff51156b492a1e52420a1f12cd75eccf2235ac (diff)
volk: modified the configure scripts to output which architectures it will be building based on the configure tests.
Diffstat (limited to 'volk/include')
-rw-r--r--volk/include/volk/make_set_simd.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/volk/include/volk/make_set_simd.py b/volk/include/volk/make_set_simd.py
index 03c2b2d8f0..279ce06e28 100644
--- a/volk/include/volk/make_set_simd.py
+++ b/volk/include/volk/make_set_simd.py
@@ -1,3 +1,20 @@
+#
+# Copyright 2010 Free Software Foundation, Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
from xml.dom import minidom
def make_set_simd(dom) :
@@ -93,6 +110,7 @@ def make_set_simd(dom) :
arch = str(domarch.attributes["name"].value);
tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [always set "+ arch + "!])\n";
tempstring = tempstring + " ADDONS=\"\"\n";
+ tempstring = tempstring + " BUILT_ARCHS=\"generic\"\n";
tempstring = tempstring + " _MAKE_FAKE_PROCCPU\n";
tempstring = tempstring + " if test -z \"$cf_with_lv_arch\"; then\n";
tempstring = tempstring + " cf_with_lv_arch=$lv_PROCCPU\n";
@@ -138,6 +156,7 @@ def make_set_simd(dom) :
tempstring = tempstring + " if test \"$indCC\" == \"yes\" && test \"$indCXX\" == \"yes\" && test \"$indLV_ARCH\" == \"yes\"; then\n"
tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
tempstring = tempstring + " ADDONS=\"${ADDONS} -" + flag + "\"\n";
+ tempstring = tempstring + " BUILT_ARCHS=\"${BUILT_ARCHS} " + arch + "\"";
tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
tempstring = tempstring + " fi\n"
tempstring = tempstring + " indCC=no\n"
@@ -182,6 +201,7 @@ def make_set_simd(dom) :
tempstring = tempstring + " if test \"$indCC\" = yes && test \"indCXX\" = yes && \"indLV_ARCH\" = yes; then\n"
tempstring = tempstring + " AC_DEFINE(LV_HAVE_" + arch.swapcase() + ", 1, [" + arch + " flag set])\n";
tempstring = tempstring + " ADDONS=\"${ADDONS} -" + flag + "\"\n";
+ tempstring = tempstring + " BUILT_ARCHS=\"${BUILT_ARCHS} " + arch + "\"";
tempstring = tempstring + " LV_HAVE_" + arch.swapcase() + "=yes\n";
tempstring = tempstring + " fi\n"
tempstring = tempstring + " indCC=no\n"