Opened 8 years ago

Closed 8 years ago

#6330 closed defect (fixed)

Failed freexl detection on mingw/msys

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.0.2
Component: ConfigBuild Version: unspecified
Severity: normal Keywords:
Cc:

Description

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

Change History (2)

comment:1 by Even Rouault, 8 years ago

trunk r33150, branches/2.0 r33151 "configure: add ${CFLAGS} when compiling program to detect FreeXL version (#6330)"

comment:2 by Even Rouault, 8 years ago

Milestone: 2.0.2
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.