Module: wine
Branch: master
Commit: 476a2bee645df5e53126779704838be6d62f987c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=476a2bee645df5e5312677970…
Author: Joel Holdsworth <joel(a)airwebreathe.org.uk>
Date: Mon Apr 5 11:15:03 2010 +0100
configure: Maintainer mode requires imagemagick.
---
Make.rules.in | 1 +
configure | 45 +++++++++++++++++++++++++++++++++++++++++++++
configure.ac | 2 ++
3 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/Make.rules.in b/Make.rules.in
index f658412..654dbc3 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -48,6 +48,7 @@ LINT = @LINT@
LINTFLAGS = @LINTFLAGS@
FONTFORGE = @FONTFORGE@
RSVG = @RSVG@
+CONVERT = @CONVERT@
ICOTOOL = @ICOTOOL@
CROSSCC = @CROSSCC@
CROSSTARGET = @CROSSTARGET@
diff --git a/configure b/configure
index f8968ba..07f7df5 100755
--- a/configure
+++ b/configure
@@ -671,6 +671,7 @@ OPENGL_LIBS
XLIB
PRELINK
ICOTOOL
+CONVERT
RSVG
PKG_CONFIG
FONTFORGE
@@ -5020,6 +5021,49 @@ fi
done
test -n "$RSVG" || RSVG="false"
+for ac_prog in convert
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if test "${ac_cv_prog_CONVERT+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -n "$CONVERT"; then
+ ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
+else
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CONVERT="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
+
+fi
+fi
+CONVERT=$ac_cv_prog_CONVERT
+if test -n "$CONVERT"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
+$as_echo "$CONVERT" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+
+
+ test -n "$CONVERT" && break
+done
+test -n "$CONVERT" || CONVERT="false"
+
for ac_prog in icotool
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@@ -5068,6 +5112,7 @@ 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 "$ICOTOOL" = false
then
diff --git a/configure.ac b/configure.ac
index 7500828..7650ffa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -281,12 +281,14 @@ dnl Check for various programs
AC_CHECK_PROGS(FONTFORGE, fontforge, false)
AC_CHECK_PROGS(PKG_CONFIG, pkg-config, false)
AC_CHECK_PROGS(RSVG, rsvg, false)
+AC_CHECK_PROGS(CONVERT, convert, false)
AC_CHECK_PROGS(ICOTOOL, icotool, false)
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 icotool version
if test "$ICOTOOL" = false
Module: wine
Branch: master
Commit: 425f138402bd61c69ddd48c1ebb4d1dd4549ca6a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=425f138402bd61c69ddd48c1e…
Author: Joel Holdsworth <joel(a)airwebreathe.org.uk>
Date: Mon Apr 5 11:14:47 2010 +0100
configure: Maintainer mode requires icotool v0.29.0 or newer.
---
configure | 29 ++++++++++++++++++++++++++++-
configure.ac | 27 ++++++++++++++++++++++++++-
2 files changed, 54 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 6a32ba5..f8968ba 100755
--- a/configure
+++ b/configure
@@ -5068,7 +5068,34 @@ 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 "$ICOTOOL" = "false"; then as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."; fi
+
+ if test "$ICOTOOL" = false
+ then
+ as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
+$as_echo_n "checking for recent enough icotool... " >&6; }
+ icotool_version=`icotool --version | head -n1`
+ if test "x$icotool_version" != "x"
+ then
+ icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\).[0-9]*'`
+ icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*.\([0-9]*\)'`
+ if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
+ then
+ ICOTOOL=false
+ as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
+ fi
+ fi
+ if test "$ICOTOOL" = false
+ then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
+$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
+$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
+ fi
+ fi
+
fi
case $host_cpu in
diff --git a/configure.ac b/configure.ac
index 2a9c3d3..7500828 100644
--- a/configure.ac
+++ b/configure.ac
@@ -287,7 +287,32 @@ 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 "$ICOTOOL" = "false"; then WINE_WARNING([icotool is missing, icons can't be rebuilt.]); fi
+
+ dnl Check the icotool version
+ if test "$ICOTOOL" = false
+ then
+ WINE_WARNING([icotool is missing, icons can't be rebuilt.])
+ else
+ AC_MSG_CHECKING([for recent enough icotool])
+ icotool_version=`icotool --version | head -n1`
+ if test "x$icotool_version" != "x"
+ then
+ icotool_version_major=`expr "$icotool_version" : '.* \([[0-9]]*\).[[0-9]]*'`
+ icotool_version_minor=`expr "$icotool_version" : '.* [[0-9]]*.\([[0-9]]*\)'`
+ if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
+ then
+ ICOTOOL=false
+ WINE_WARNING([icotool version 0.29.0 or newer is needed to rebuild icons.])
+ fi
+ fi
+ if test "$ICOTOOL" = false
+ then
+ AC_MSG_RESULT([no ($icotool_version_major.$icotool_version_minor)])
+ else
+ AC_MSG_RESULT([yes ($icotool_version_major.$icotool_version_minor)])
+ fi
+ fi
+
fi
case $host_cpu in