diff options
author | Bruno Haible <bruno@clisp.org> | 2008-12-25 19:31:28 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2008-12-25 19:31:28 +0100 |
commit | 3967960663215f46b78fa0b3bc002065e821dcb9 (patch) | |
tree | 792d5098fcce58be08fe4a43028793de742c4f64 /m4/stdint.m4 | |
parent | bf57161d3867968ecf2a4d666062c41d5a1fbddd (diff) | |
download | gnulib-3967960663215f46b78fa0b3bc002065e821dcb9.tar.gz |
Add support for universal builds to <stdint.h>.
Diffstat (limited to 'm4/stdint.m4')
-rw-r--r-- | m4/stdint.m4 | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/m4/stdint.m4 b/m4/stdint.m4 index b255692567..e507a02eb8 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 31 +# stdint.m4 serial 32 dnl Copyright (C) 2001-2008 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -373,13 +373,22 @@ dnl Compute HAVE_SIGNED_t, BITSIZEOF_t and t_SUFFIX, for all the types t dnl of interest to stdint.in.h. AC_DEFUN([gl_STDINT_TYPE_PROPERTIES], [ - gl_STDINT_BITSIZEOF([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], + AC_REQUIRE([gl_MULTIARCH]) + if test $APPLE_UNIVERSAL_BUILD = 0; then + gl_STDINT_BITSIZEOF([ptrdiff_t size_t], + [gl_STDINT_INCLUDES]) + fi + gl_STDINT_BITSIZEOF([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_CHECK_TYPES_SIGNED([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) gl_cv_type_ptrdiff_t_signed=yes gl_cv_type_size_t_signed=no - gl_INTEGER_TYPE_SUFFIX([ptrdiff_t sig_atomic_t size_t wchar_t wint_t], + if test $APPLE_UNIVERSAL_BUILD = 0; then + gl_INTEGER_TYPE_SUFFIX([ptrdiff_t size_t], + [gl_STDINT_INCLUDES]) + fi + gl_INTEGER_TYPE_SUFFIX([sig_atomic_t wchar_t wint_t], [gl_STDINT_INCLUDES]) ]) |