aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-10-05 16:59:37 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-10-05 16:59:37 +0000
commit6fa7555a9f1a6754faadf1dfda3d31a384de8876 (patch)
treedb19f1b491a8dbef90dc75ef01c435bf61890a7e /acinclude.m4
parent* scripts/w3mman/w3mman.1.in: (diff)
downloadw3m-6fa7555a9f1a6754faadf1dfda3d31a384de8876.tar.gz
w3m-6fa7555a9f1a6754faadf1dfda3d31a384de8876.zip
* --with-imagelib request on [w3m-dev 03981]
from Mamoru KOMACHI <usata@sodan.ecc.u-tokyo.ac.jp> * acinclude.m4 (AC_W3M_IMAGE): add --with-imagelib From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--acinclude.m457
1 files changed, 44 insertions, 13 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 8ec3ac3..ca92158 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -614,31 +614,62 @@ AC_DEFUN([AC_W3M_IMAGE],
IFS="$save_ifs"
enable_image=yes
AC_DEFINE(USE_IMAGE)
- if test x"$IMLIB_CONFIG" = x; then
- IMLIB_CONFIG=imlib-config
- fi
- if test x"$IMLIB2_CONFIG" = x; then
- IMLIB2_CONFIG=imlib2-config
- fi
- if test x"$GDKPIXBUF_CONFIG" = x; then
- GDKPIXBUF_CONFIG=gdk-pixbuf-config
+ AC_MSG_CHECKING(image library)
+ AC_ARG_WITH(imagelib,
+ [ --with-imagelib=IMAGELIBS image library
+ IMAGELIBS may be space separeted list of:
+ gdk-pixbuf imlib imlib2],,
+
+ [with_imagelib="yes"])
+ if test x"$with_imagelib" = xyes; then
+ with_imagelib="gdk-pixbuf imlib imlib2"
fi
+ AC_MSG_RESULT($with_imagelib)
+ with_imlib=no
+ with_imlib2=no
+ with_gdkpixbuf=no
+ for imagelib in $with_imagelib
+ do
+ case "$imagelib" in
+ imlib)
+ with_imlib="yes"
+ if test x"$IMLIB_CONFIG" = x; then
+ IMLIB_CONFIG=imlib-config
+ fi;;
+ imlib2)
+ with_imlib2="yes"
+ if test x"$IMLIB2_CONFIG" = x; then
+ IMLIB2_CONFIG=imlib2-config
+ fi;;
+ gdk-pixbuf)
+ with_gdkpixbuf="yes"
+ if test x"$GDKPIXBUF_CONFIG" = x; then
+ GDKPIXBUF_CONFIG=gdk-pixbuf-config
+ fi;;
+ esac
+ done
IMGTARGETS=""
- AC_W3M_CHECK_VER([GdkPixbuf],
+ if test x"$with_gdkpixbuf" = xyes; then
+ AC_W3M_CHECK_VER([GdkPixbuf],
[`$GDKPIXBUF_CONFIG --version 2>/dev/null`],
0, 16, 0,
[have_gdkpixbuf="yes"],
- [have_gdkpixbuf="no"
- AC_W3M_CHECK_VER([Imlib],
+ [have_gdkpixbuf="no"])
+ fi
+ if test x"$with_imlib" = xyes; then
+ AC_W3M_CHECK_VER([Imlib],
[`$IMLIB_CONFIG --version 2>/dev/null`],
1, 9, 8,
[have_imlib="yes"],
[have_imlib="no"])
- AC_W3M_CHECK_VER([Imlib2],
+ fi
+ if test x"$with_imlib2" = xyes; then
+ AC_W3M_CHECK_VER([Imlib2],
[`$IMLIB2_CONFIG --version 2>/dev/null`],
1, 0, 5,
[have_imlib2="yes"],
- [have_imlib2="no"])])
+ [have_imlib2="no"])
+ fi
if test x"$x11" = xyes; then
if test x"$have_gdkpixbuf" = xyes; then
AC_DEFINE(USE_W3MIMG_X11)