Some electrons claimed that Jean-Marc Lasgouttes write: > > Ben> 2) does not define HAVE_DECL_MKSTEMP, but my system has it. > > Lars, the LYX_DECL_HDR is broken: it does not create a define in > config.h. I do not know what to do about it, actually > > JMarc >
Do you need some compile time switches to expose the mkstemp declaration, or it is a different header file from the one that the LYX_DECL_HDR macro thinks? Given detials I can probably fix the LYX_DECL_HDR macro (aka WTX_CHECK_DECL with a few name changes). There is also WTX_CHECK_DECL_HDRS which tests several headers if you need this to fix the problem. I could turn WTX_CHECK_HDRS into LYX_DECL_HDRS quickly if you asked (WTX_CHECK_DECL_HDRS internally uses WTX_CHECK_DECL_HDR). The LYX_DECL_HDR/WTC_CHECK_DECL_HDR macro is a wrapper arround AC_EGREP_HEADER and does not know about the autoconf-2.53 moves for putting material into config.h. LYX_CHECK_DECL/WTX_CHECK_DECL_HDR uses the only approach documented when it was written, namely a section of acconfig.h for each things it might want to #define/#undef. This is now depreciated. Autconf 2.53 has grown it's own macro for checking for a declaration, I think. I would guess it works in a similar manner, i.e. invokes AC_EGREP_HEADER at some stage, so is likely to have similar limitations. I suspect Lars is not an expert on the LYX_DECL_HDR macro unless it has changed a lot since is was a "rebranded" version of WTX_CHECK_DECL_HDR, which I constructed for the same problem in word2x (which I will hopefully have some time to advance now a major distraction is just about out of the way). Before that happens I will have to put a release of mpkern (a "real work" parallel programming library, which has a reduced "real world" problem as it's benchmark/rigged demo). CVS users have been able to obtain the library from sourceforge for quite a while, but I think almost everynbody in unaware of it at the moment. -- Duncan (-: "software industry, the: unique industry where selling substandard goods is legal and you can charge extra for fixing the problems."
