diff options
author | Rene Engelhard <rene@debian.org> | 2014-08-05 20:05:35 +0200 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2014-08-05 20:06:17 +0200 |
commit | 97bda8e081fd746e9ef743b165b5bf621fc21fbb (patch) | |
tree | 8a7600a45cb1af03149a830995d6b57c473487bc /configure.ac | |
parent | 2f247407662922fe84bcc0e2aac3372d9ca1cb7b (diff) |
implement --with-system-gltf
Change-Id: Ic842006b28f8043bcbbaa81ab5a20e15aa52ac82
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 73705b3057ce..e91773f61276 100644 --- a/configure.ac +++ b/configure.ac @@ -1595,6 +1595,11 @@ AC_ARG_WITH(system-jpeg, [Use jpeg already on system.]),, [with_system_jpeg=auto]) +AC_ARG_WITH(system-libgltf, + AS_HELP_STRING([--with-system-libgltf], + [Use libgltf already on system.]),, + [with_system_libgltf=auto]) + AC_ARG_WITH(system-clucene, AS_HELP_STRING([--with-system-clucene], [Use clucene already on system.]),, @@ -10617,7 +10622,12 @@ if test "x$enable_gltf" != "xno" -a $_os != iOS -a $_os != Android; then ENABLE_GLTF=TRUE AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_FEATURE_GLTF,1) - BUILD_TYPE="$BUILD_TYPE LIBGLTF" + if test "$with_system_libgltf" = "yes"; then + SYSTEM_LIBGLTF=TRUE + PKG_CHECK_MODULES( LIBGLTF, libgltf-0.0 ) + else + BUILD_TYPE="$BUILD_TYPE LIBGLTF" + fi # otherwise build fails in collada2gltf external because of std::shared_ptr if test "$have_std_shared_ptr" = "yes"; then BUILD_TYPE="$BUILD_TYPE COLLADA2GLTF" @@ -10626,6 +10636,9 @@ else AC_MSG_RESULT([no]) fi AC_SUBST(ENABLE_GLTF) +AC_SUBST(SYSTEM_LIBGLTF) +AC_SUBST(LIBGLTF_CFLAGS) +AC_SUBST(LIBGLTF_LIBS) # pdf import? AC_MSG_CHECKING([whether to build the PDF import feature]) |