Snapshot 26Feb98 - configure still broken - Mailing list pgsql-hackers

From Andrew Martin
Subject Snapshot 26Feb98 - configure still broken
Date
Msg-id 199802261546.PAA13529@bsmir06.biochem.ucl.ac.uk
Whole thread Raw
Responses Re: Snapshot 26Feb98 - configure still broken  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
Just tried the 26Feb98 Snapshot under Irix 5.3.

If you request a compiler other than gcc, configure still dies.

After looking at Darren's comment:
>
> I complained about this one a few months back.  There is a test condition
> that needs to be double-quoted.  In my generated configure, it's at line
> #3230 in the test whether gcc needs -traditional.
>
> I seem to recall that it was more a bug in autoconf that in the postgres
> configure script.
>
> darrenk
>

I took another look and fixed the problem by hacking configure.
It clearly is a bug in the routine:
AC_PROG_GCC_TRADITIONAL

The only work around seems to be to hack configure after running autoconf
(or to fix autoconf...).

Here's a patch to configure which fixes the problem:

*** configure.orig      Thu Feb 26 08:02:06 1998
--- configure   Thu Feb 26 15:42:30 1998
***************
*** 3275,3281 ****
  fi
  rm -f conftest*

! if test $ac_cv_prog_gcc = yes; then
      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  echo "configure:3281: checking whether ${CC-cc} needs -traditional" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
--- 3275,3281 ----
  fi
  rm -f conftest*

! if test "$ac_cv_prog_gcc" = yes; then
      echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  echo "configure:3281: checking whether ${CC-cc} needs -traditional" >&5
  if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then




Andrew

----------------------------------------------------------------------------
Dr. Andrew C.R. Martin                             University College London
EMAIL: (Work) martin@biochem.ucl.ac.uk    (Home) andrew@stagleys.demon.co.uk
URL:   http://www.biochem.ucl.ac.uk/~martin
Tel:   (Work) +44(0)171 419 3890                    (Home) +44(0)1372 275775

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] MergeJoin and Mark/Restr scan positions (Re: [PORTS] Port Bug Report)
Next
From: Andrew Martin
Date:
Subject: Snapshot 26Feb98 - another minor showstopper