[geos-devel] Building Geos 64-bit using Oracle Developer Studio 12.5 on Solaris11

Andrew Watkins andrew at dcs.bbk.ac.uk
Sun Jul 10 06:02:41 PDT 2016

On 08/07/2016 17:32, Sandro Santilli wrote:
> On Fri, Jul 08, 2016 at 12:52:56PM +0100, Andrew Watkins wrote:
>> The reason is "-ansi" is not a flag with CC, but I am not sure how
>> to clearly remove it. I did a dirty version by removing it from
>> configure!
> See configure.ac, search "ansi", you'll find this:
> AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -ansi], [dummy_cv_ansi], [-ansi], [], [WARNFLAGS="$WARNFLAGS -ansi"], [])
> So it looks AC_LIBTOOL_COMPILER_OPTION thinks -ansi is supported,
> while you're saying it is not, correct ? Could be worth reporting
> this upstream, to the libtool developers.
> --strk;
I just looked at it a little more and to me the configure is check the C 
compiler and not C++ compiler:
Looking at config.log

# ./configure CC='cc' CXX='CC'
configure:17560: checking if CC supports -ansi
configure:17578: cc -c -g  -ansi conftest.c >&5
configure:17582: $? = 0
configure:17594: result: yes

double checked with gcc:
# ./configure
configure:17575: checking if g++ supports -ansi
configure:17593: gcc -c -g -O2  -ansi conftest.c >&5
configure:17597: $? = 0
configure:17610: result: yes

Unless, i am looking at the wrong things?


Andrew Watkins * Birkbeck, University of London * Computer Science *
* http://notallmicrosoft.blogspot.com *
* UKOUG Systems SIG Chair * formaly Solaris SIG *
* UKOUG Tech15 committee *

More information about the geos-devel mailing list