[mythtv] configure --enable-proc-opt

Daniel Kristjansson danielk at cuymedia.net
Thu Sep 27 18:24:51 UTC 2007

On Thu, 2007-09-27 at 03:02 +0200, Janne Grunau wrote:
> On Thursday 27 September 2007 01:31:13 Daniel Kristjansson wrote:

> > If someone needs a generic binary they can use the 
> > --cpu, --tune, and --arch options, which is what all the
> > distros use anyway. Also gcc has had support for these CPU
> > types for a few years now, so very few people would need
> > to add --cpu and --tune to ./configure in order to compile.
> We could use the add_cflag function for the ARCHFLAGS which only adds 
> its parameters if the compiler support it. ffmpeg's configure does it 
> this way.
> We should at least emit a warning if the compiler doesn't support that 
> flag but compilation wouldn't fail.

That makes sense. Is there any way to implement fall-back using that
functionality? i.e. try "--march=prescott" or "--march=pentium-m" and
if that isn't supported fall-back to "--march=pentium4" and finally
if that isn't supported fall-back to "--march=pentium2"...

-- Daniel

More information about the mythtv-dev mailing list