diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-09-27 07:55:48 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-09-27 07:57:25 +0200 |
commit | 93f9451340957dae29a6b3ccec127a99a03ffd31 (patch) | |
tree | c2a61be33bf0027bf2b3138225cd631b80df00e7 /configure.ac | |
parent | 425711faddb208efa97e869b885919fff9e570d0 (diff) |
fdo#84008: make configure fail if no std::shared_ptr available for collada
To avoid that missing std::shared_ptr support disables collada support
silently. I guess this caused the prolems with the linux packages.
In 4.3.1 packages it causes crash because there disabled
collada support was not handled very well (UI part of dae/kmz
support was not disabled, so user can insert a file, but the
converter libraries are missing)
In 4.3.2 packages collada support is also disabled, but in this case
the option to insert dae/kmz file is not available either.
Change-Id: Ic74e935ab639c348f1c55dc206d5fffa439d240d
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 3981c498ae77..4b81b0e87348 100644 --- a/configure.ac +++ b/configure.ac @@ -10368,7 +10368,10 @@ dnl Check whether to enable COLLADA support dnl =================================================================== AC_MSG_CHECKING([whether to enable COLLADA support]) ENABLE_COLLADA= -if test "$enable_collada" != "no" -a "$ENABLE_GLTF" = "TRUE" -a "$have_std_shared_ptr" = "yes"; then +if test "$enable_collada" != "no" -a "$ENABLE_GLTF" = "TRUE"; then + if test "$have_std_shared_ptr" = "no"; then + AC_MSG_ERROR([Collada support needs std::shared_ptr. Use a newer C++ compiler]) + fi AC_MSG_RESULT([yes]) ENABLE_COLLADA=TRUE AC_DEFINE(HAVE_FEATURE_COLLADA,1) |