<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Tue, 2010-06-22 at 23:41 +0300, Martin-&#201;ric Racine wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On Tue, Jun 22, 2010 at 11:27 PM, Gaetan Nadon &lt;<A HREF="mailto:memsize@videotron.ca">memsize@videotron.ca</A>&gt; wrote:
&gt; On Tue, 2010-06-22 at 22:12 +0300, Martin-&#201;ric Racine wrote:
&gt;
&gt; In addition to exiting gracefully with a warning at ./configure time
&gt; if the build host is non-x86, what if we enforced -march=geode if GCC
&gt;
&gt; You may want to look at AX_GCC_X86_CPUID and AX_GCC_ARCHFLAG which would do
&gt; that for you.
&gt; <A HREF="http://www.gnu.org/software/autoconf-archive/The-Macros.html#The-Macros">http://www.gnu.org/software/autoconf-archive/The-Macros.html#The-Macros</A>

Unless I misunderstood the description, these macros guess the target
based on the build host's architecture?
</PRE>
</BLOCKQUOTE>
<BR>
They use host_cpu (e.g. i*86) first and then look at the cpuid. You might have cross-compiling in mind. <BR>
Generally speaking, there is not much one can do in configure.ac for cross-compiling.
<BLOCKQUOTE TYPE=CITE>
<PRE>

Martin-&#201;ric
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>