diff options
Diffstat (limited to 'meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch')
-rw-r--r-- | meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch b/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch new file mode 100644 index 000000000..aa1a12441 --- /dev/null +++ b/meta-oe/recipes-graphics/gphoto2/libgphoto2-2.4.11/allow.to.disable.gd.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | --- libgphoto2-2.4.11.orig/configure.ac 2013-07-19 21:59:10.857223729 +0200 | ||
2 | +++ libgphoto2-2.4.11/configure.ac 2013-07-19 22:06:13.873233928 +0200 | ||
3 | @@ -270,15 +270,21 @@ | ||
4 | dnl --------------------------------------------------------------------------- | ||
5 | dnl check for libgd | ||
6 | dnl --------------------------------------------------------------------------- | ||
7 | -LIBGD="" | ||
8 | -libgd_msg="no" | ||
9 | -AC_SUBST(LIBGD) | ||
10 | -AC_CHECK_LIB(gd,gdImageCreateTrueColor,[ | ||
11 | - AC_CHECK_HEADER(gd.h,[ | ||
12 | - AC_DEFINE(HAVE_GD,1,[define if we have LIBGD and its headers]) | ||
13 | - LIBGD="-lgd" | ||
14 | - libgd_msg="yes" | ||
15 | - ]) | ||
16 | +AC_ARG_ENABLE([gd], | ||
17 | +[AS_HELP_STRING([--enable-gd], | ||
18 | + [enable gd support])],[ | ||
19 | + LIBGD="" | ||
20 | + libgd_msg="no" | ||
21 | + AC_SUBST(LIBGD) | ||
22 | + if test "x$enableval" != "xno"; then | ||
23 | + AC_CHECK_LIB(gd,gdImageCreateTrueColor,[ | ||
24 | + AC_CHECK_HEADER(gd.h,[ | ||
25 | + AC_DEFINE(HAVE_GD,1,[define if we have LIBGD and its headers]) | ||
26 | + LIBGD="-lgd" | ||
27 | + libgd_msg="yes" | ||
28 | + ]) | ||
29 | + ]) | ||
30 | + fi | ||
31 | ]) | ||
32 | GP_CONFIG_MSG([GD conversion support],[${libgd_msg}]) | ||
33 | |||