From: Eric Blake Date: Thu, 12 Sep 2013 15:23:35 +0000 (-0600) Subject: AC_PROG_CC: also try $CC -version, for cl6x compiler X-Git-Tag: v2.69b~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5b1ea679360db7a6714bbf3953f4fe1a3174844;p=thirdparty%2Fautoconf.git AC_PROG_CC: also try $CC -version, for cl6x compiler 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 --- diff --git a/THANKS b/THANKS index f41f16c0..7f440aea 100644 --- a/THANKS +++ b/THANKS @@ -29,6 +29,7 @@ Alfred G. de Wijn dwijn@iluvatar.eu.org Alfred M. Szmidt ams@gnu.org Allan Caffee allan.caffee@gmail.com Allan Clark allanc@chickenandporn.com +Anaïs Bouque anais.bouque@fr.thalesgroup.com Anders Kaseorg andersk@MIT.EDU Andreas Buening andreas.buening@nexgo.de Andreas Jaeger aj@suse.de diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 53fec833..25780f9c 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