Module: wine Branch: master Commit: b9eae1ef8ece4eef2ec4a218078cf17be50ff549 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9eae1ef8ece4eef2ec4a21807...
Author: Joel Holdsworth joel@airwebreathe.org.uk Date: Sun May 16 23:07:40 2010 +0100
configure: Added a check for ImageMagick v6.6 or newer in maintainer mode.
---
configure | 28 +++++++++++++++++++++++++++- configure.ac | 26 +++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 2 deletions(-)
diff --git a/configure b/configure index fa0d59a..9de0946 100755 --- a/configure +++ b/configure @@ -5110,7 +5110,33 @@ if test "${enable_maintainer_mode+set}" = set then if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi - if test "$CONVERT" = "false"; then as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."; fi + + if test "$CONVERT" = false + then + as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt." + else + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5 +$as_echo_n "checking for recent enough imagemagick... " >&6; } + convert_version=`convert --version | head -n1` + if test "x$convert_version" != "x" + then + convert_version_major=`expr "$convert_version" : '.* ([0-9]*).[0-9]*'` + convert_version_minor=`expr "$convert_version" : '.* [0-9]*.([0-9]*)'` + if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 + then + CONVERT=false + as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons." + fi + fi + if test "$CONVERT" = false + then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5 +$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; } + else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5 +$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; } + fi + fi
if test "$ICOTOOL" = false then diff --git a/configure.ac b/configure.ac index 006a325..46dca8e 100644 --- a/configure.ac +++ b/configure.ac @@ -285,7 +285,31 @@ if test "${enable_maintainer_mode+set}" = set then if test "$FONTFORGE" = "false"; then WINE_WARNING([fontforge is missing, fonts can't be rebuilt.]); fi if test "$RSVG" = "false"; then WINE_WARNING([rsvg is missing, icons can't be rebuilt.]); fi - if test "$CONVERT" = "false"; then WINE_WARNING([imagemagick is missing, icons can't be rebuilt.]); fi + + dnl Check the imagemagick version + if test "$CONVERT" = false + then + WINE_WARNING([imagemagick is missing, icons can't be rebuilt.]) + else + AC_MSG_CHECKING([for recent enough imagemagick]) + convert_version=`convert --version | head -n1` + if test "x$convert_version" != "x" + then + convert_version_major=`expr "$convert_version" : '.* ([[0-9]]*).[[0-9]]*'` + convert_version_minor=`expr "$convert_version" : '.* [[0-9]]*.([[0-9]]*)'` + if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6 + then + CONVERT=false + WINE_WARNING([imagemagick version 6.6 or newer is needed to rebuild icons.]) + fi + fi + if test "$CONVERT" = false + then + AC_MSG_RESULT([no ($convert_version_major.$convert_version_minor)]) + else + AC_MSG_RESULT([yes ($convert_version_major.$convert_version_minor)]) + fi + fi
dnl Check the icotool version if test "$ICOTOOL" = false