including the host triple in "include/llvm/Config/config.h"

I was wondering if would be possible to get the host's triple captured as a string in include/llvm/Config/config.h. Autoconf currently generates this file, and capturing the host triple would be extremely useful for use in the new C frontend.

I am not an autoconf expert. Does anyone have any pointers on how this could be added to the LLVM configuration scripts? Thanks.

Ted

I'm testing something for you right now...

-eric

Here you go, it will output something like:

#define LLVM_HOSTTRIPLE "i686-apple-darwin9.1.0"

Anyone care if this is checked in or not?

-eric

configure.ac.diff.txt (13.6 KB)

Sounds great, please commit! Thanks Eric,

-Chris