• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1X-Git-Url: https://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git;a=blobdiff_plain;f=m4%2Fax_create_stdint_h.m4;h=94fbeb404829c232787e27193d6c24b2509a6f24;hp=8fccde1d4121ab374aed30b4c78cf287ce3be7c9;hb=b26684dc2f29222d9581089ea8cfb2fc54319fb4;hpb=68e93457f1d6f73f8e5019e7a0a97851085dc0fa
2
3diff --git a/m4/ax_create_stdint_h.m4 b/m4/ax_create_stdint_h.m4
4index 8fccde1..94fbeb4 100644
5--- a/m4/ax_create_stdint_h.m4
6+++ b/m4/ax_create_stdint_h.m4
7@@ -53,7 +53,7 @@
8 #   and this notice are preserved.  This file is offered as-is, without any
9 #   warranty.
10
11-#serial 20
12+#serial 21
13
14 AC_DEFUN([AX_CHECK_DATA_MODEL],[
15    AC_CHECK_SIZEOF(char)
16@@ -152,14 +152,14 @@ AC_CACHE_VAL([ac_cv_header_stdint_t],[
17 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
18 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
19 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
20-AC_TRY_COMPILE([#include <stdint.h>],[int_least32_t v = 0;],
21+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[int_least32_t v = 0;]])],
22 [ac_cv_stdint_result="(assuming C99 compatible system)"
23- ac_cv_header_stdint_t="stdint.h"; ],
24-[ac_cv_header_stdint_t=""])
25+ ac_cv_header_stdint_t="stdint.h";],
26+ [ac_cv_header_stdint_t=""])
27 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
28 CFLAGS="-std=c99"
29-AC_TRY_COMPILE([#include <stdint.h>],[int_least32_t v = 0;],
30-[AC_MSG_WARN(your GCC compiler has a defunct stdint.h for its default-mode)])
31+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[int_least32_t v = 0;]])],
32+[AC_MSG_WARN(your GCC compiler has a defunct stdint.h for its default-mode)], [])
33 fi
34 CXXFLAGS="$old_CXXFLAGS"
35 CPPFLAGS="$old_CPPFLAGS"
36