summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-05-29 19:07:20 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2011-05-29 19:09:22 +0200
commit4e85b56b3baf14a0a23d57e218acd57823913e41 (patch)
treec7165187bf1f0a25f686691999c5437d9f315a92
parent98bbdc8bcb74722e30940d747467007c3369fa9c (diff)
also commit the actual part of the librsvg check...
-rwxr-xr-xconfigure.in76
1 files changed, 29 insertions, 47 deletions
diff --git a/configure.in b/configure.in
index 8487bbc08a62..6a94d9bfcb03 100755
--- a/configure.in
+++ b/configure.in
@@ -6558,30 +6558,6 @@ fi
AC_SUBST(ENABLE_GSTREAMER)
dnl ===================================================================
-dnl Check whether the librsvg libraries are available.
-dnl ===================================================================
-
-ENABLE_LIBRSVG=""
-LIBRSVG_CFLAGS=""
-LIBRSVG_LIBS=""
-
-if test "$test_librsvg" = "yes"; then
- AC_MSG_CHECKING([whether to use librsvg])
- if test "x$enable_librsvg" != "xno" ; then
- PKG_CHECK_MODULES( LIBRSVG, librsvg-2.0 >= 2.14,,AC_MSG_ERROR([requirements to build with librsvg support not met. Use --disable-librsvg or install the missing packages]))
- ENABLE_LIBRSVG="TRUE"
- AC_MSG_RESULT([yes])
- BUILD_TYPE="$BUILD_TYPE LIBRSVG"
- else
- AC_MSG_RESULT([no])
- fi
-fi
-
-AC_SUBST(ENABLE_LIBRSVG)
-AC_SUBST(LIBRSVG_CFLAGS)
-AC_SUBST(LIBRSVG_LIBS)
-
-dnl ===================================================================
dnl Check whether the OpenGL libraries are available
dnl ===================================================================
@@ -7945,34 +7921,40 @@ fi
AC_SUBST(USE_XINERAMA)
AC_SUBST(XINERAMA_LINK)
-dnl ===================================================================
-dnl Test whether to build librsvg or rely on the system version
-dnl ===================================================================
-
-dnl FIXME: Overlaps and conflicts with librsvg checks above. Needs to
-dnl be unified.
+# ===================================================================
+# Check whether to enable librsvg
+# ===================================================================
-AC_MSG_CHECKING([whether to use the system librsvg])
+ENABLE_LIBRSVG=""
+LIBRSVG_CFLAGS=""
+LIBRSVG_LIBS=""
-if test "$with_system_librsvg" = yes -o \( "$with_system_libs" = yes -a "$with_system_librsvg" != no \); then
- SYSTEM_LIBRSVG=YES
- AC_MSG_RESULT([yes])
-else
- case "$_os" in
- WINNT*)
- SYSTEM_LIBRSVG=NO
- AC_MSG_RESULT([no])
- ;;
- Darwin*)
- SYSTEM_LIBRSVG=NO
- AC_MSG_RESULT([no])
- ;;
- *)
+if test "$test_librsvg" = "yes"; then
+ AC_MSG_CHECKING([whether to use librsvg])
+ if test "x$enable_librsvg" != "xno" ; then
+ ENABLE_LIBRSVG="TRUE"
+ AC_MSG_RESULT([yes])
+ # ===================================================================
+ # Test whether to build librsvg or rely on the system version
+ # ===================================================================
+ AC_MSG_CHECKING([whether to use the system librsvg])
+ if test "$with_system_librsvg" = yes -o \( "$with_system_libs" = yes -a "$with_system_librsvg" != no \); then
SYSTEM_LIBRSVG=YES
AC_MSG_RESULT([yes])
- ;;
- esac
+ PKG_CHECK_MODULES( LIBRSVG, librsvg-2.0 >= 2.14,,AC_MSG_ERROR([requirements to build with system librsvg support not met. Use shipped version or use --disable-librsvg or install the missing packages]))
+ else
+ SYSTEM_LIBRSVG=NO
+ AC_MSG_RESULT([no])
+ BUILD_TYPE="$BUILD_TYPE LIBRSVG"
+ fi
+ else
+ AC_MSG_RESULT([no])
+ fi
fi
+
+AC_SUBST(ENABLE_LIBRSVG)
+AC_SUBST(LIBRSVG_CFLAGS)
+AC_SUBST(LIBRSVG_LIBS)
AC_SUBST(SYSTEM_LIBRSVG)
dnl ===================================================================