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:
make distclean rm pgsql/Makefile.in mysql/Makefile.in Makefile.in configure config.in aclocal.m4 stamp-h.in buildtools/* aclocal-1.4 autoconf2.13 autoheader2.13 automake-1.4 --add-missing (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). 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. 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). jn ---- Original Message ---- From: Ilja Booij <dbmail@dbmail.org> To: dbmail@dbmail.org Subject: Re: [Dbmail] Latest dbmail-2 from CVS doesn't like to work with MySQL Sent: Tue, 16 Dec 2003 17:04:35 +0100 > Hi, > On Dec 16, 2003, at 4:58 PM, Christian G. Warden wrote: > > > On Tue, Dec 16, 2003 at 12:16:21PM +0100, Ilja Booij wrote: > >> I've changed dbmysql.c to be a bit more vocal if a connection over a > >> local socket is attempted without setting sqlsocket=.. > >> Also, it will default to port 3306. > >> > >> Also, the dbmail.conf has some comments on sqlport and sqlsocket > >> > >> The changes are in CVS > > > > When dbmail is built, can you set the default socket and port to the > > values returned by `mysql_config --socket --port`? > You mean, automatically? I'm not that much of an autotools-guru to know > how to do this. It should be possible though. Anyone have an idea? > > Ilja > -- > IC&S > Stadhouderslaan 57 > 3583 JD Utrecht > telnr. 030-6355730 > faxnr. 030-6355731 > > PGP-key: > http://www.ic-s.nl/keys/ilja.txt > > _______________________________________________ > Dbmail mailing list > Dbmail@dbmail.org > https://mailman.fastxs.nl/mailman/listinfo/dbmail > -- End Original Message -- -- Jesse Norell jesse (at) kci.net