BUG #6759: configure script fails to detect xlc compiler version - Mailing list pgsql-bugs

From jez.wain@bull.net
Subject BUG #6759: configure script fails to detect xlc compiler version
Date
Msg-id E1StyWW-0004wn-RB@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6759: configure script fails to detect xlc compiler version  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
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:=20=20=20=20=20=20=20=20

The configure script (near line 3247) detects the compiler version with=20

--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:=20

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$=20



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

pgsql-bugs by date:

Previous
From: pilum.70@uni-muenster.de
Date:
Subject: BUG #6751: usage flaws in pg_restore
Next
From: bert@brothom.nl
Date:
Subject: BUG #6761: unexpected behaviour of 'now'::timestamp