X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fhave_cstdint.m4;h=cdd63c72a1596ac78c3d112da85fbd6b01463ded;hb=72b5f539eb3e4e8342de549c486cd19fbef1eb43;hp=11d9616f2abdddd885e0df3e8a3a7e9355795648;hpb=f5f501a500797876891b7aa153934e9855073603;p=awesomized%2Flibmemcached diff --git a/m4/have_cstdint.m4 b/m4/have_cstdint.m4 index 11d9616f..cdd63c72 100644 --- a/m4/have_cstdint.m4 +++ b/m4/have_cstdint.m4 @@ -40,7 +40,7 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 2 +#serial 3 AC_DEFUN([AX_CXX_CSTDINT], [ @@ -53,16 +53,22 @@ AC_DEFUN([AX_CXX_CSTDINT], [ CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}" AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([#include ], [ uint32_t t ])], + AC_LANG_PROGRAM([#include ], [ + uint32_t t + ])], [ac_cxx_cstdint_cstdint=""]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([#include ], [ uint32_t t ])], - [ac_cxx_cstdint_tr1_cstdint=""]) + AS_IF([test -z "$ac_cxx_cstdint_cstdint"],[ + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([#include ], [ uint32_t t ])], + [ac_cxx_cstdint_tr1_cstdint=""]) - AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([#include ], [ uint32_t t ])], - [ac_cxx_cstdint_boost_cstdint_hpp=""]) + AS_IF([test -z "$ac_cxx_cstdint_tr1_cstdint"],[ + AC_COMPILE_IFELSE([ + AC_LANG_PROGRAM([#include ], [ uint32_t t ])], + [ac_cxx_cstdint_boost_cstdint_hpp=""]) + ]) + ]) AC_LANG_POP AX_RESTORE_FLAGS