~ubuntu-branches/ubuntu/wily/sflphone/wily

« back to all changes in this revision

Viewing changes to daemon/m4/ax_cxx_compile_stdcxx_11.m4

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-01-07 14:51:16 UTC
  • mfrom: (4.3.5 sid)
  • Revision ID: package-import@ubuntu.com-20150107145116-yxnafinf4lrdvrmx
Tags: 1.4.1-0.1ubuntu1
* Merge with Debian, remaining changes:
 - Drop soprano, nepomuk build-dep
* Drop ubuntu patches, now upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#   Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
28
28
#   Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
29
29
#   Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
 
30
#   Copyright (c) 2014 Alexey Sokolov <sokolov@google.com>
30
31
#
31
32
#   Copying and distribution of this file, with or without modification, are
32
33
#   permitted in any medium without royalty provided the copyright notice
33
34
#   and this notice are preserved. This file is offered as-is, without any
34
35
#   warranty.
35
36
 
36
 
#serial 3
 
37
#serial 4
37
38
 
38
 
m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [
 
39
m4_define([_AX_CXX_COMPILE_STDCXX_11_testbody], [[
39
40
  template <typename T>
40
41
    struct check
41
42
    {
52
53
    check_type&& cr = static_cast<check_type&&>(c);
53
54
 
54
55
    auto d = a;
55
 
])
 
56
    auto l = [](){};
 
57
]])
56
58
 
57
59
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
58
60
  m4_if([$1], [], [],
62
64
  m4_if([$2], [], [ax_cxx_compile_cxx11_required=true],
63
65
        [$2], [mandatory], [ax_cxx_compile_cxx11_required=true],
64
66
        [$2], [optional], [ax_cxx_compile_cxx11_required=false],
65
 
        [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])dnl
 
67
        [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])
66
68
  AC_LANG_PUSH([C++])dnl
67
69
  ac_success=no
68
70
  AC_CACHE_CHECK(whether $CXX supports C++11 features by default,