~d-ci/libmemcached/pushtest

« back to all changes in this revision

Viewing changes to m4/have_cstdint.m4

  • Committer: Continuous Integration
  • Date: 2013-11-04 17:14:31 UTC
  • mfrom: (1079.33.11 workspace)
  • Revision ID: ci@tangent.org-20131104171431-yj69t4kajuanut6c
Merge lp:libmemcached/1.0 Build: jenkins-Libmemcached-377

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#   modified version of the Autoconf Macro, you may extend this special
41
41
#   exception to the GPL to apply to your modified version as well.
42
42
 
43
 
#serial 2
 
43
#serial 3
44
44
 
45
45
 
46
46
AC_DEFUN([AX_CXX_CSTDINT], [
53
53
      CXXFLAGS="${CXX_STANDARD} ${CXXFLAGS}"
54
54
 
55
55
      AC_COMPILE_IFELSE([
56
 
        AC_LANG_PROGRAM([#include <cstdint>], [ uint32_t t ])],
 
56
        AC_LANG_PROGRAM([#include <cstdint>], [
 
57
        uint32_t t 
 
58
        ])],
57
59
        [ac_cxx_cstdint_cstdint="<cstdint>"])
58
60
 
59
 
      AC_COMPILE_IFELSE([
60
 
        AC_LANG_PROGRAM([#include <tr1/cstdint>], [ uint32_t t ])],
61
 
        [ac_cxx_cstdint_tr1_cstdint="<tr1/cstdint>"])
 
61
      AS_IF([test -z "$ac_cxx_cstdint_cstdint"],[
 
62
            AC_COMPILE_IFELSE([
 
63
                              AC_LANG_PROGRAM([#include <tr1/cstdint>], [ uint32_t t ])],
 
64
                              [ac_cxx_cstdint_tr1_cstdint="<tr1/cstdint>"])
62
65
 
63
 
      AC_COMPILE_IFELSE([
64
 
        AC_LANG_PROGRAM([#include <boost/cstdint.hpp>], [ uint32_t t ])],
65
 
        [ac_cxx_cstdint_boost_cstdint_hpp="<boost/cstdint.hpp>"])
 
66
            AS_IF([test -z "$ac_cxx_cstdint_tr1_cstdint"],[
 
67
                  AC_COMPILE_IFELSE([
 
68
                                    AC_LANG_PROGRAM([#include <boost/cstdint.hpp>], [ uint32_t t ])],
 
69
                                    [ac_cxx_cstdint_boost_cstdint_hpp="<boost/cstdint.hpp>"])
 
70
                  ])
 
71
            ])
66
72
 
67
73
      AC_LANG_POP
68
74
      AX_RESTORE_FLAGS