summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-31 01:12:01 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-09 16:30:53 +0200
commit84ef91035f36ca6aed70d17da170d323880c5393 (patch)
treefe33c97ce01603054c554839107daca1ea943448 /src
parent9dbdf62243f01f6aee41c2b5f2976c56da47f25d (diff)
downloadsssd-84ef91035f36ca6aed70d17da170d323880c5393.tar.gz
sssd-84ef91035f36ca6aed70d17da170d323880c5393.tar.bz2
sssd-84ef91035f36ca6aed70d17da170d323880c5393.zip
AUTOTOOLS: add check for type intptr_t
We check whether HAVE_INTPTR_T is defined in definition of macro discard_const_p, but autootols macro AC_CHECK_TYPE did not generate it.
Diffstat (limited to 'src')
-rw-r--r--src/external/sizes.m49
1 files changed, 6 insertions, 3 deletions
diff --git a/src/external/sizes.m4 b/src/external/sizes.m4
index 53df61de..ccbb69ce 100644
--- a/src/external/sizes.m4
+++ b/src/external/sizes.m4
@@ -37,8 +37,11 @@ AC_CHECK_SIZEOF(off_t)
AC_CHECK_SIZEOF(size_t)
AC_CHECK_SIZEOF(ssize_t)
-AC_CHECK_TYPE(intptr_t, long long)
+
+AC_CHECK_TYPES([intptr_t],
+ [],
+ [AC_DEFINE_UNQUOTED([intptr_t], [long long],
+ [Define to `long long'
+ if <stdint.h> does not define.])])
AC_CHECK_TYPE(uintptr_t, unsigned long long)
AC_CHECK_TYPE(ptrdiff_t, unsigned long long)
-
-