Vincent Lefevre on Sun, 30 Oct 2005 15:11:37 +0100

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Configure bug when CPPFLAGS is set

On 2005-10-28 18:29:12 +0200, Karim Belabas wrote:
> As a temporary workaround, you can presumably get the effect you
> wanted with
>   env LDFLAGS=-L/opt/local/lib CFLAGS=-I/opt/local/include ./Configure

This doesn't work either. I've edited the get_readline file to output
more data:

echo "Path: $pth"
  x=`./locate 'readline.h' '' $pth`

and I get:

Path:   /opt/local/var/db/dports/build/file._Users_vinc17_wd_macosx_dports_math_pari/work/pari-2.2.11.alpha/readline-darwin-ppc /opt/local/var/db/dports/build/file._Users_vinc17_wd_macosx_dports_math_pari/work/pari-2.2.11.alpha/readline       /usr/local/include/readline      /usr/include/readline      /opt/include/readline      /opt/local/include/readline      /opt/gnu/include/readline      /usr/unsupported/include/readline      /usr/local/include      /usr/include      /opt/include      /opt/local/include      /opt/gnu/include      
CFLAGS = -O3 -DGCC_INLINE -Wall -fno-strict-aliasing -fomit-frame-pointer  -no-cpp-precomp -I/opt/local/include
...Found readline header in /usr/include/readline

i.e. $CFLAGS isn't taken into account to search for the headers.

> (sudo shouldn't be necessary for this).

I need the sudo here since I'm in a directory defined by DarwinPorts
(to get the same conditions...).

Vincent Lefèvre <> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA