pcp
[Top] [All Lists]

Re: configure.in

To: Alan Hoyt <ahoyt@xxxxxxxxxxxxx>
Subject: Re: configure.in
From: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>
Date: Thu, 19 Jun 2003 09:48:09 +1000
Cc: pcp@xxxxxxxxxxx, Mark Goodwin <markgw@xxxxxxxxxxxxxxxxx>
In-reply-to: <3EF0B744.1060501@xxxxxxxxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
Alan ... where did your configure.in come from?

I'm puzzled because our top-of-tree version internally has this
problem fixed and the code fragments you're mailing look like an
old version ... are you using the latest source from oss.sgi.com?

If so, could you please send me the whole configure.in file you have?

Our latest version works on all versions of RH we've been able to
hit with a big stick, and IRIX ... and that's the version we believe
is on oss.sgi.com.


On Wed, 18 Jun 2003, Alan Hoyt wrote:

> Using the pcp-2.3.0-14 build:
>
> Redhat 7.x uses autoconf 2.1x and returns vaules for $ac_n and $ac_c  -
> so flags are set correctly
> Redhat 8.x uses autoconf 2.5x and returns null for $ac_n and $ac_c -
> clearing the prior echo flag values - so nothing gets set in pcp.conf
> Solaris 8.x uses autoconf 2.5x and also returns nulls for $ac_n and
> $ac_c - nothing gets set like above.
>
> Don't currently have access to a Redhat 9.0 box so I haven't checked.
>
> By removing the $ac_n and $ac_c assignments within configure.in - it
> will return correct results for all three cases above resulting in the
> correct pcp.conf. flag settings.
>
>  - Alan -
>
> Alan Hoyt wrote:
>
> > Have you looked at /etc/pcp.conf  - do you realize the pcp echo flags
> > (i.e. PCP_ECHO_N and PCP_ECHO_C) are not being set following a clean
> > make/make install?
> >
> > Has this already been fixed?
> >
> >  - Alan -
> >
> > Alan Hoyt wrote:
> >
> >> this works for me unless you wanted something like:
> >>
> >> if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null;
> >> then
> >>   ac_n= ac_c='
> >> ' ac_t=' '
> >> else
> >>   ac_n=-n ac_c= ac_t=
> >> fi
> >> else
> >> ac_n= ac_c='\c' ac_t=
> >> fi
> >>
> >> - Alan -
> >>
> >> Alan Hoyt wrote:
> >>
> >>> In configure.in, what's with $ac_n and $ac_c - these values are null
> >>> and clear the echo flag settings made in the prior statement:
> >>>
> >>> if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
> >>> then
> >>> if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn
> >>> >/dev/null
> >>> then
> >>>   echo_n= echo_c=
> >>> else
> >>>   echo_n=-n echo_c=
> >>> fi
> >>> else
> >>> echo_n= echo_c='\c'
> >>> fi
> >>>
> >>> dnl echo_n set to -n if echo understands -n to supress newline
> >>> echo_n=$ac_n
> >>> AC_SUBST(echo_n)
> >>> dnl echo_c set to \c if echo understands \c to supress newline
> >>> echo_c=$ac_c
> >>> AC_SUBST(echo_c)
> >>>
> >>> Easy fix unless you need them for something.
> >>>
> >>> - Alan -
> >>>
> >>>
> >>>
> >>>
> >>>
> >> ------------------------------------------------------------------------
> >>
> >> --- configure.in.orig    2003-06-16 14:52:49.540007000 +0000
> >> +++ configure.in    2003-06-16 22:42:12.070002000 +0000
> >> @@ -320,12 +320,7 @@
> >> else
> >>   echo_n= echo_c='\c'
> >> fi
> >> -
> >> -dnl echo_n set to -n if echo understands -n to supress newline
> >> -echo_n=$ac_n
> >> AC_SUBST(echo_n)
> >> -dnl echo_c set to \c if echo understands \c to supress newline
> >> -echo_c=$ac_c
> >> AC_SUBST(echo_c)
> >>
> >> dnl if /proc is not mounted, try and mount it
> >>
> >>
> >
>


<Prev in Thread] Current Thread [Next in Thread>