Hi,

On Dec 17, 2003, at 1:10 AM, Jesse Norell wrote:
Hello,

  The gist is to edit acinclude.m4 and I believe define a function,
which runs the commands and saves data to variables, then use those
(probably by adding -D defines to cflags or somesuch), and I think
have your function called from configure.in, then run commands
along these lines:
<snip>
I've done some autotools stuff for the 2.0 branch, but it sometimes still is black (or at least gray :) ) magic to me. I'll experiment with setting -D flags some time.

(that's on a debian box where eg. "aclocal" is a different version,
and dbmail currently needs 1.4, so "aclocal-1.4" is the right command).
Why does it need 1.4? This might explain why I've had some builds break on different boxes after running aclocal and friends.

  If you work on this, one thing that's been missing along these same
lines is the use of the {my,pg}sqllibpaths variables defined in
configure.in, like it does for {my,pg}sqlheaderpaths.  In fact, it'd
probably be cool to use mysql_config for header locations and library
path too, and fallback to the hard-coded locations if still not
working.
DBMail 2.0 uses mysql_config and pg_config for this :). I managed to learn just enough about m4 macros to get that in.

  I really don't know much on the specifics, m4 syntax, etc., that's
just what I gather in having looked them over a bit.  Ryan Butler may
be able to offer some corrections or additional info, as he did the
original automake setup (though as he admits, he was learning it as
he went along too).
I've also done some things, learning along the way. I reckoned that there must be somebody on this list with more experience in using autotools.

Ilja

--
IC&S
Stadhouderslaan 57
3583 JD Utrecht
telnr. 030-6355730
faxnr. 030-6355731

PGP-key:
http://www.ic-s.nl/keys/ilja.txt

Reply via email to