[LLVMdev] Adding ClamAV to the llvm testsuite (long)

Török Edwin edwintorok at gmail.com
Mon Dec 17 11:24:53 PST 2007


Evan Cheng wrote:
> We always welcome more tests. But it looks like there are two issues  
> here.
>
> 1. The autoconf requirement. Is it possible to get one configuration  
> working without the need for autoconf?
>   
I could make an clamav-config.h that should work if compiled with llvm-gcc.
Can I assume <endian.h> exists on all your platforms?
[or how else can I detect endianness by using only macros from headers?]

I've seen a Makefile having if $(ENDIAN), can I use that to pass
-DWORDS_BIGENDIAN=... to the compiler?

Or I can create a config.h that assumes the platform is bigendian
(assuming little-endian would SIGBUS on Sparc).

Thoughts?

Thanks,
Edwin




More information about the llvm-dev mailing list