Kaydet (Commit) 9cacd767 authored tarafından Riccardo Magliocchetti's avatar Riccardo Magliocchetti Kaydeden (comit) Michael Stahl

configure: accept building without themes

If --with-theme=no is specified disallow any check for valid themes
which would otherwise give an error.

Change-Id: I45d2872145f3bd15e17beac4f69f8b4b1855d9a3
Reviewed-on: https://gerrit.libreoffice.org/1879Tested-by: 's avatarLibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 69bb1336
...@@ -10824,14 +10824,16 @@ if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then ...@@ -10824,14 +10824,16 @@ if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
fi fi
WITH_THEMES="" WITH_THEMES=""
for theme in $with_theme; do if test "x$with_theme" != "xno"; then
case $theme in for theme in $with_theme; do
crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango|tango_testing) : ;; case $theme in
*) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;; crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango|tango_testing) : ;;
esac *) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
WITH_THEMES="$WITH_THEMES $theme" esac
SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[[:lower:]]' '[[:upper:]]'`" WITH_THEMES="$WITH_THEMES $theme"
done SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[[:lower:]]' '[[:upper:]]'`"
done
fi
AC_MSG_RESULT([$WITH_THEMES]) AC_MSG_RESULT([$WITH_THEMES])
AC_SUBST([WITH_THEMES]) AC_SUBST([WITH_THEMES])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment