autoconf: my turn to ask questions ;-( (actually sed expert question)

Christopher Browne cbbrowne-HInyCGIudOg at public.gmane.org
Mon Oct 4 01:49:24 UTC 2004


> While trying to compile pgsql 7.0.3 (yes it has to be that version) on a 
> modern system I have a sed error during configure run. I debugged the 
> scripts generated by the configure script and the sed error boils down to 
> this: A sed script generated by config.status has these lines:

I reported a similar problem when trying to compile a "pretty old"
PostgreSQL on RHAT 8 a while back.  I think it was 7.1, but it was a
while ago, so I'm not certain...  The problem turned out to be that the
code in configure that was extracting the compiler version assumed that
there would be exactly one line of output from "gcc -v"

Look in the configure script for where it grabs gcc version information.

The relevant line in the latest CVS is thus:

{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5

The fix would be to pipe it to grep and just grab the version
information.
--
If this was helpful, <http://svcs.affero.net/rm.php?r=cbbrowne> rate me
http://www3.sympatico.ca/cbbrowne/linuxxian.html
Never lend your car to anyone  to whom you have given birth to. 
--Erma Bombeck
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list