Request for review: glpk

Quentin Spencer qspencer at ieee.org
Mon Aug 1 17:55:44 UTC 2005


Ralf Corsepius wrote:

>On Mon, 2005-08-01 at 12:20 -0500, Tom 'spot' Callaway wrote:
>  
>
>>On Mon, 2005-08-01 at 11:41 -0500, Quentin Spencer wrote:
>>
>>    
>>
>>>I agree, but this poses a bit of a problem. My indended application for 
>>>this library is octave 2.9.x. The octave configure script can't find the 
>>>headers if I move them into a subdirectory of /usr/include. I happen to 
>>>know the main developer of octave uses Debian, and the Debian package 
>>>for GLPK puts them in /usr/include like the upstream source. So, I would 
>>>have to lobby for some or all of these upstream maintainers to change 
>>>this, or I would have to maintain patches in octave to make this work. 
>>>Does anyone know another way around this?
>>>      
>>>
>If octave's configure script is properly written
>CPPFLAGS=-I/usr/include/glpk ./configure
>should work out of the box.
>  
>

Unfortunately, it doesn't work, as illustrated by the following excerpt 
from config.log:
configure:8588: checking glpk.h usability
configure:8600: gcc -c -I/usr/include/glpk  conftest.c >&5
<snip>
configure:8633: checking glpk.h presence
configure:8643: gcc -E  conftest.c

For some reason, the second check throws out the flags that I passed in. 
I have to admit I don't know much about autotools. Is this normal in a 
configure script?

-Quentin




More information about the fedora-extras-list mailing list