X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fhave_cstdint.m4;h=cdd63c72a1596ac78c3d112da85fbd6b01463ded;hb=dbc62573e1a6dc8cbcc97d0898e8615b0916d6ab;hp=11d9616f2abdddd885e0df3e8a3a7e9355795648;hpb=b973bd495b75c6c0f7fd38d32e73a8383d4b1dc8;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