[LLVMdev] configure/cmake help :)

Chris Lattner clattner at apple.com
Sun Aug 23 19:10:51 PDT 2009


On Aug 23, 2009, at 5:58 PM, Daniel Dunbar wrote:
>>> 2. Daniel's regex email.  I think the right answer is to just
>>> autodetect whether regcomp/regexec etc are available (his #2).   
>>> Could
>>> someone add support to autoconf/cmake to detect whether the platform
>>> already supports these?
>>
>> As I have no idea about what headers or functions have to need  
>> detected,
>> after the changes are installed on the configure build I'll replicate
>> them on the cmake build.
>
> Ok. I'm trying to decide where the cleanest place to slot the lib in
> so it can conditionally be part of Support. I'm thinking of something
> like putting it in lib/Support/Regex, which would only be part of the
> build if needed, and would compile to LLVMSupportRegex which
> llvm-config would know to add to the link line. Chris, does this seem
> ok?

I'd just drop it in as lib/Support/regex.c[pp].  The file would just  
#include config.h, and #ifndef the entire body of the file.

-Chris



More information about the llvm-dev mailing list