diff options
| author | Mariusz Ceier <mceier+wayland@gmail.com> | 2014-12-15 11:33:53 +0100 |
|---|---|---|
| committer | Daniel Stone <daniels@collabora.com> | 2015-01-27 11:17:42 +0000 |
| commit | e3dc9a7af6f8f88ff7503bc3a70178e47802868d (patch) | |
| tree | a7896e0b4e174ba715450ea8ea11879afe6833aa /configure.ac | |
| parent | tests: Correct return code handling (diff) | |
| download | wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.gz wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.bz2 wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.lz wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.xz wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.tar.zst wayland-e3dc9a7af6f8f88ff7503bc3a70178e47802868d.zip | |
tests: C++ compilation test
This test includes one of wayland headers, which produced
error with C++ compiler. C compiler can't be used for this test,
because it issues only a warning[1] and only when wayland headers
are not installed in system headers path (/usr/include).
[1] wayland-server-protocol.h:201:2: warning: implicit declaration of function ‘wl_resource_post_event’
[daniels: Merged in Marek's follow-up to check for a C++ compiler.]
Signed-off-by: Mariusz Ceier <mceier+wayland@gmail.com>
Signed-off-by: Marek Chalupa <mchqwerty@gmail.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 0249002..e749b00 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,18 @@ AM_SILENT_RULES([yes]) # Check for programs AC_PROG_CC +AC_PROG_CXX + +# check if we have C++ compiler. This is hacky workaround, +# for a reason why it is this way see +# http://lists.gnu.org/archive/html/bug-autoconf/2010-05/msg00001.html +have_cpp_compiler=yes + +if ! which "$CXX" &>/dev/null; then + have_cpp_compiler=no +fi + +AM_CONDITIONAL(ENABLE_CPP_TEST, test "x$have_cpp_compiler" = "xyes") # Initialize libtool LT_PREREQ([2.2]) |
