which doesn't exist on some older autoconf's.
Merge of master-melb:xfs-cmds:28226a by kenmcd.
Need to check for __u32 in our own m4 macro instead of using AC_CHECK_TYPES
which doesn't exist on some older autoconf's.
], AC_DEFINE(HAVE___PSUNSIGNED_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
])
+#
+# Check if we have a type for __u32
+#
+AC_DEFUN([AC_TYPE_U32],
+ [ AC_MSG_CHECKING([for __u32 ])
+ AC_TRY_COMPILE([
+#include <asm/types.h>
+#include <stdlib.h>
+#include <stddef.h>
+ ], [
+ __u32 u32;
+ ], AC_DEFINE(HAVE___U32_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
+ ])
+
#
# Check type sizes
#
AC_TYPE_PSINT
AC_TYPE_PSUNSIGNED
-AC_CHECK_TYPES(__u32,,,[#include <asm/types.h>])
+AC_TYPE_U32
AC_SIZEOF_POINTERS_AND_LONG
AC_MANUAL_FORMAT
xfsprogs-2.8.XX
- Fix xfs_quota gracetime reporting.
Thanks to Utako Kusaka <utako@tnes.nec.co.jp> for this.
+ - Instead of using AC_CHECK_TYPES which isn't supported for
+ older versions of autoconf, add our own type check in the
+ m4/package_types.m4 file for __u32.
+ Suggested by Nathan Scott and discovered by wookey@aleph1.co.uk.
xfsprogs-2.8.19 (31 January 2007)
- Fix pthread stack size setting in xfs_repair.
], AC_DEFINE(HAVE___PSUNSIGNED_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
])
+#
+# Check if we have a type for __u32
+#
+AC_DEFUN([AC_TYPE_U32],
+ [ AC_MSG_CHECKING([for __u32 ])
+ AC_TRY_COMPILE([
+#include <asm/types.h>
+#include <stdlib.h>
+#include <stddef.h>
+ ], [
+ __u32 u32;
+ ], AC_DEFINE(HAVE___U32_T) AC_MSG_RESULT(yes) , AC_MSG_RESULT(no))
+ ])
+
#
# Check type sizes
#