diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2009-09-10 15:56:52 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-09-10 17:28:35 -0400 |
commit | 0ec9546099dc0fc9685188cbe12175f7bfd9a47c (patch) | |
tree | 5fdee74d1e1eb0601d2163933edf20d65db37ece /server/external | |
parent | 514dcddae17141f286f70228ebce885256373be8 (diff) | |
download | sssd-0ec9546099dc0fc9685188cbe12175f7bfd9a47c.tar.gz sssd-0ec9546099dc0fc9685188cbe12175f7bfd9a47c.tar.xz sssd-0ec9546099dc0fc9685188cbe12175f7bfd9a47c.zip |
Add strtoint32 and strtouint32 convenience functions
Diffstat (limited to 'server/external')
-rw-r--r-- | server/external/sizes.m4 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/server/external/sizes.m4 b/server/external/sizes.m4 new file mode 100644 index 000000000..53df61ded --- /dev/null +++ b/server/external/sizes.m4 @@ -0,0 +1,44 @@ +# Solaris needs HAVE_LONG_LONG defined +AC_CHECK_TYPES(long long) + +AC_CHECK_SIZEOF(int) +AC_CHECK_SIZEOF(char) +AC_CHECK_SIZEOF(short) +AC_CHECK_SIZEOF(long) +AC_CHECK_SIZEOF(long long) + +if test $ac_cv_sizeof_long_long -lt 8 ; then +AC_MSG_ERROR([SSSD requires long long of 64-bits]) +fi + +AC_CHECK_TYPE(uint_t, unsigned int) +AC_CHECK_TYPE(int8_t, char) +AC_CHECK_TYPE(uint8_t, unsigned char) +AC_CHECK_TYPE(int16_t, short) +AC_CHECK_TYPE(uint16_t, unsigned short) + +if test $ac_cv_sizeof_int -eq 4 ; then +AC_CHECK_TYPE(int32_t, int) +AC_CHECK_TYPE(uint32_t, unsigned int) +elif test $ac_cv_size_long -eq 4 ; then +AC_CHECK_TYPE(int32_t, long) +AC_CHECK_TYPE(uint32_t, unsigned long) +else +AC_MSG_ERROR([LIBREPLACE no 32-bit type found]) +fi + +AC_CHECK_TYPE(int64_t, long long) +AC_CHECK_TYPE(uint64_t, unsigned long long) + +AC_CHECK_TYPE(size_t, unsigned int) +AC_CHECK_TYPE(ssize_t, int) + +AC_CHECK_SIZEOF(off_t) +AC_CHECK_SIZEOF(size_t) +AC_CHECK_SIZEOF(ssize_t) + +AC_CHECK_TYPE(intptr_t, long long) +AC_CHECK_TYPE(uintptr_t, unsigned long long) +AC_CHECK_TYPE(ptrdiff_t, unsigned long long) + + |