|
From: Geoff H. <ghu...@ws...> - 2002-09-12 02:46:23
|
On Thu, 12 Sep 2002, Brian White wrote: > the "Yes" and "No" responses as expected ) but I have > no idea how to propogate my AC_DEFINE down to the > C++ code. Run "autoheader" and it will update the include/htconfig.h.in , which becomes htconfig.h which is #included in the code. You should get your DEFINE set, and then you can #ifdef, #ifndef, etc. > Are there any problems with doing this? Are there > any conventions I should be following that I am not? Personally, if I don't have a system-level file-locking system, I'd implement one in user code, say with a .lock file in the same directory (if writable) or using TMPDIR and something like $TMPDIR/path-to-file.lock for locking /path/to/file. I've actually felt this might not be a bad addition to the htdig code anyway, since the databases really should be locked against multi-write until they have granularity. Does that make any sense? -Geoff |