[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problem with ./configure
From: |
Eric Blake |
Subject: |
Re: problem with ./configure |
Date: |
Thu, 12 Sep 2013 09:25:48 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
On 07/19/2013 07:03 AM, Eric Blake wrote:
> On 07/19/2013 06:55 AM, BOUQUE Anais wrote:
>> Hello,
>> I use autoreconf and configure, and I have a problem using configure : I use
>> the cl6x compiler, (./configure --host=c6x CC=cl6x) but when configure does
>> "cl6x -version" or "cl6x-v" or "cl6x -V", there is an error, because the
>> correct option to have the version of cl6x is "cl6x -version".
>
> Well, maybe we should tweak autoconf to add '-version' to the list of
> options attempted.
Revisiting this mail; I'm pushing the following patch (plus a change to
the THANKS file, not shown here, to make life harder for spam harvesters):
From e5e99e3587c06b6d67c352b08d70a10329844bac Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Thu, 12 Sep 2013 09:23:35 -0600
Subject: [PATCH] AC_PROG_CC: also try $CC -version, for cl6x compiler
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Anaïs Bouque reported that the cl6x compiler only understands -version:
https://lists.gnu.org/archive/html/bug-autoconf/2013-07/msg00003.html
* c.m4 (AC_PROG_CC): Add another version probe.
* THANKS: Update.
Signed-off-by: Eric Blake <address@hidden>
---
lib/autoconf/c.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4
index 53fec83..25780f9 100644
--- a/lib/autoconf/c.m4
+++ b/lib/autoconf/c.m4
@@ -465,7 +465,7 @@ test -z "$CC" && AC_MSG_FAILURE([no acceptable C
compiler found in \$PATH])
_AS_ECHO_LOG([checking for _AC_LANG compiler version])
set X $ac_compile
ac_compiler=$[2]
-for ac_option in --version -v -V -qversion; do
+for ac_option in --version -v -V -qversion -version; do
_AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD])
done
--
1.8.3.1
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: problem with ./configure,
Eric Blake <=