Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id EC9F4BEAE5A for ; Wed, 25 Jul 2012 07:09:10 -0300 (ADT) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1StyWj-0003bO-Tu for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 10:09:10 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1StyWX-0000qW-KT for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 10:08:57 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1StyWW-0004wn-RB for pgsql-bugs@postgresql.org; Wed, 25 Jul 2012 10:08:56 +0000 Date: Wed, 25 Jul 2012 10:08:56 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6759: configure script fails to detect xlc compiler version To: pgsql-bugs@postgresql.org From: jez.wain@bull.net X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201207/190 X-Sequence-Number: 33666 The following bug has been logged on the website: Bug reference: 6759 Logged by: jez wain Email address: jez.wain@bull.net PostgreSQL version: 9.1.4 Operating system: AIX 7.1 Description: = The configure script (near line 3247) detects the compiler version with = --version, -v, and -V IBM's xlc compiler uses "-qversion" flag to display its version. This produces: bash-4.2$ xlc -qversion IBM XL C/C++ for AIX, V11.1 (5724-X13) Version: 11.01.0000.0000 If you require additional information, there is a verbose switch, -qversion=3Dverbose, which produces: = bash-4.2$ xlc -qversion=3Dverbose IBM XL C/C++ for AIX, V11.1 (5724-X13) Version: 11.01.0000.0000 Driver Version: 11.01(C/C++) Level: 100304 C Front End Version: 11.00(C/C++) Level: 100301 High-Level Optimizer Version: 11.01(C/C++) and 13.01(Fortran) Level: 100301 Low-Level Optimizer Version: 11.01(C/C++) and 13.01(Fortran) Level: 100304 bash-4.2$ = When faced with a flag it doesn't recognize, xlc prints the man page. Thus the --version, -v, -V tests result in a particularly large config.log file