Vincent Lefevre on Wed, 02 Nov 2005 04:35:01 +0100


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

Re: Configure bug when CPPFLAGS is set


On 2005-10-31 01:54:27 +0100, Vincent Lefevre wrote:
> I think that Pari's Configure script should take into account
> $C_INCLUDE_PATH, and should take an argument --with-includedir=DIR
> that the user (or a program) should use if he uses a -I flag in
> $CFLAGS or $CPPFLAGS.

I propose the attached patch concerning $C_INCLUDE_PATH. If users
add the directories given as -I flags to this environment variable,
this should work. This solves the problem here.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
--- config/get_readline.orig	2005-11-02 03:50:33.000000000 +0100
+++ config/get_readline	2005-11-02 03:50:45.000000000 +0100
@@ -31,7 +31,7 @@
       $cygtop/usr/include\
       $cygtop/H-${arch}-cygwin32/${arch}-cygwin32/include\
       ";;
-    *) incpth="\
+    *) incpth="`echo $C_INCLUDE_PATH | sed -e 's%\([^:]*\):*%\1 \1/readline %g'`\
       /usr/local/include/readline\
       /usr/include/readline\
       /opt/include/readline\