[patch #8321] Fix ax_ext.m4 when AX_GCC_X86_CPUID(0x00000001) returns 'unknown'

anonymous <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/patch/?8321>

                 Summary: Fix ax_ext.m4 when AX_GCC_X86_CPUID(0x00000001)
returns 'unknown'
                 Project: GNU Autoconf Archive
            Submitted by: None
            Submitted on: Sat 22 Feb 2014 04:06:29 PM UTC
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: [email protected]
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

On platforms where
AX_GCC_X86_CPUID(0x00000001)
returns 'unknown', the AX_EXT macro would currently break configure with an
error:

[eg see https://pm.bsc.es/projects/mcxx/ticket/1201]
checking for x86 cpuid  output... unknown
checking for x86 cpuid 0x00000001 output... unknown
checking whether mmx is supported... ../mcxx/configure: 0xunknown: value too
great for base (error token is "0xunknown")

The fix is trivial, simply handle the special return value 'unknown'
properly.

The attached patch implements this [taken from
https://pm.bsc.es/projects/mcxx/ticket/1201
https://pm.bsc.es/projects/mcxx/changeset/12fd7dc2ac9336fdd296e117165daba4bb2dcdac]

I have verified that this patch fixes the problem.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 22 Feb 2014 04:06:29 PM UTC  Name:
changeset_12fd7dc2ac9336fdd296e117165daba4bb2dcdac.diff  Size: 722B   By: None

<http://savannah.gnu.org/patch/download.php?file_id=30638>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8321>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.