[gdal-dev] GDAL/OGR 2.0.2 RC2 Available for Review

a.furieri at lqt.it a.furieri at lqt.it
Sun Jan 24 12:27:28 PST 2016


Hi Even,

I casually noticed that the ./configure script fails to correctly
identify libfreexl on Windows when using the MinGW/MSYS compiler.
this error message is always returned even when the most recent
version of libfreexl is correctly installed:

"freexl too old. Needs freexl >= 1.0"

the cause is rather easy to be identified into configure.in:

line 3432: if test -z "`${CC} testfreexl.c -c 2>&1`" ; then

differently from Linux, MinGW/MSYS doesn't automatically searches
the header files into /usr/local/include, so explicitly setting
this way CFLAGS (or CPPFLAGS, CXXFLAGS) is usually required.

the following patch fixes the MinGW/MSYS issue and seems to be
harmless on Linux:

- if test -z "`${CC} testfreexl.c -c 2>&1`" ; then
+ if test -z "`${CC} $CFLAGS $CPPFLAGS $CXXFLAGS testfreexl.c -c 2>&1`" 
; then

bye Sandro



More information about the gdal-dev mailing list