~brianaker/gearmand/warning-usage

« back to all changes in this revision

Viewing changes to m4/have_cinttypes.m4

  • Committer: Brian Aker
  • Date: 2013-10-11 11:02:53 UTC
  • mto: This revision was merged to the branch mainline in revision 888.
  • Revision ID: brian@tangent.org-20131011110253-ygzujjvwj07wdkf9
Update save/restore m4. Extend bits for OSX 9.

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
AC_DEFUN([AX_CXX_CINTTYPES], [
46
46
    AC_REQUIRE([AC_PROG_CXX])
59
59
        [ac_cxx_cinttypes_cinttypes="<cinttypes>"])
60
60
 
61
61
# Look for tr1/cinttypes
62
 
      AC_COMPILE_IFELSE([
63
 
        AC_LANG_PROGRAM([#include <tr1/cinttypes>], [
64
 
          uint32_t foo= UINT32_C(1);
65
 
          ])],
66
 
        [ac_cxx_cinttypes_tr1_cinttypes="<tr1/cinttypes>"])
 
62
      AS_IF([test -z "$ac_cxx_cinttypes_cinttypes"],[
 
63
            AC_COMPILE_IFELSE([
 
64
                              AC_LANG_PROGRAM([#include <tr1/cinttypes>], [
 
65
                                              uint32_t foo= UINT32_C(1);
 
66
                                              ])],
 
67
                              [ac_cxx_cinttypes_tr1_cinttypes="<tr1/cinttypes>"])
67
68
 
68
69
# Look for boost/cinttypes.hpp
69
 
      AC_COMPILE_IFELSE([
70
 
        AC_LANG_PROGRAM([#include <boost/cinttypes.hpp>], [
71
 
          uint32_t foo= UINT32_C(1); 
72
 
          ])],
73
 
        [ac_cxx_cinttypes_boost_cinttypes_hpp="<boost/cinttypes.hpp>"])
 
70
            AS_IF([test -z "$ac_cxx_cinttypes_tr1_cinttypes"],[
 
71
                  AC_COMPILE_IFELSE([
 
72
                                    AC_LANG_PROGRAM([#include <boost/cinttypes.hpp>], [
 
73
                                                    uint32_t foo= UINT32_C(1); 
 
74
                                                    ])],
 
75
                                    [ac_cxx_cinttypes_boost_cinttypes_hpp="<boost/cinttypes.hpp>"])
 
76
                  ])
 
77
            ])
74
78
 
75
79
      AC_LANG_POP
76
80
      AX_RESTORE_FLAGS