monit-general
[Top][All Lists]
Advanced

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

Re: time offsets


From: Rory Toma
Subject: Re: time offsets
Date: 14 Aug 2002 14:57:48 -0700

I ended up fixing this with a test for tm_gmtoff and figured out
AC_SUBST. I looked at doing a config.h, but I don't have the time to
figure that out right now, so I wanted something that would compile
cleanly everywhere (well...) and shouldn't have to re-touch util.c when
we re-work with config.h.

On Wed, 2002-08-14 at 14:52, Jan-Henrik Haukeland wrote:
> Rory Toma <address@hidden> writes:
> 
> > I decided I wanted to split the difference, and do the following:
> > 
> > if test "$ARCH" = "FREEBSD"
> > then
> >         LIBS="-pthread $LIBS"
> >         EXTRA_DEFINES="-DHAVE_TM_GMTOFF"
> > fi
> > 
> > then have util.c as the test against HAVE_TM_GMTOFF. However, I can't
> > seem to get the EXTRA_DEFINES into the Makefile at all. I would suspect
> > that in Makefile.in:
> > 
> > DEFINES         = address@hidden@ @EXTRA_DEFINES@ 
> > 
> > that this would work, but it does not. How do I get the extra value
> > specified in configure.in into the Makefile?
> 
> The original plan was that we tested against the architecture. If this
> isn't good enough and we need stuff like HAVE_XYZ we should do it
> proper and create a config.h with all those defines, to avoid having a
> to long compile line. But if I understod Mark, he's going to fix this.
> 
> BTW, you must use AC_SUBST(VARIABLE) for autoconf to replace the
> @VARIABLE@ in the output files, like I did with ARCH. Or you can put
> it into some known autoconf variable like CFLAGS.
> 
> -- 
> Jan-Henrik Haukeland
> 
> 
> --
> To unsubscribe:
> http://mail.freesoftware.fsf.org/mailman/listinfo/monit-general
> 
-- 
Rory Toma               address@hidden
VP of Run Level 5       http://www.trs80.net
Digeo Digital           http://www.digeo.com

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]