diff options
author | Koen Kooi <koen@openembedded.org> | 2006-12-12 20:27:47 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2006-12-12 20:27:47 +0000 |
commit | 44fd0a5b1ae5367de691e3437ae9832d800c22e7 (patch) | |
tree | 109ae8782937b1d768db72b56496fe921bc912d4 /contrib/site-conf/m4 | |
parent | 33a1e2e14f1d92a015887d13ff228e2771573683 (diff) | |
parent | 3eda560ee66482cb9954d538b5c2743942dda260 (diff) |
merge of '45fb4fa94d52a65c3a3fa636c6122139173dfa8d'
and 'aa6010d679e0e80d63f4e63191b66e5759482858'
Diffstat (limited to 'contrib/site-conf/m4')
-rw-r--r-- | contrib/site-conf/m4/gnu.m4 | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/contrib/site-conf/m4/gnu.m4 b/contrib/site-conf/m4/gnu.m4 new file mode 100644 index 0000000000..1f9331e2ef --- /dev/null +++ b/contrib/site-conf/m4/gnu.m4 @@ -0,0 +1,35 @@ +# Collection of binutils, gcc, glibc + + +AC_DEFUN([BINUTILS_CHECK_UINT64], +[AC_TRY_COMPILE( +[#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif], +[extern uint64_t foo;], +liberty_cv_uint64=uint64_t, +[AC_TRY_COMPILE( +[#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif +#ifndef CHAR_BIT +#define CHAR_BIT 8 +#endif], +[extern char foo[sizeof(long) * CHAR_BIT >= 64 ? 1 : -1];], +liberty_cv_uint64="unsigned long", +[AC_TRY_COMPILE( +[#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif +#ifndef CHAR_BIT +#define CHAR_BIT 8 +#endif], +[extern char foo[sizeof(long long) * CHAR_BIT >= 64 ? 1 : -1];], +liberty_cv_uint64="unsigned long long", liberty_cv_uint64=none)])])]) + +AC_DEFUN([OE_CHECK_GNU], +[ +AC_CHECK_SIZEOF([int]) +AC_CHECK_TYPE(uintptr_t, unsigned long) +BINUTILS_CHECK_UINT64 +]) |