diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-02-16 11:05:18 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-02-16 15:43:26 +0000 |
commit | 0bdd042e3802e27dcb55bae542d845c8db0183a1 (patch) | |
tree | 2191982cb893e4ebf942e49fd1a585d2312b0686 /configure | |
parent | Indentation and wording fixes for configure --help (diff) | |
download | w3m-0bdd042e3802e27dcb55bae542d845c8db0183a1.tar.gz w3m-0bdd042e3802e27dcb55bae542d845c8db0183a1.zip |
Prefer Imlib2 over GTK2 by default
Bug-Debian: https://github.com/tats/w3m/issues/95
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672121
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -7650,7 +7650,16 @@ $as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= fi fi if test x"$x11" = xyes; then - if test x"$have_gtk2" = xyes; then + if test x"$have_imlib2" = xyes; then + $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h + + IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" + IMGTARGETS="x11" + $as_echo "#define USE_IMLIB2 1" >>confdefs.h + + IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`" + IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs imlib2`" + elif test x"$have_gtk2" = xyes; then $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" @@ -7680,22 +7689,23 @@ $as_echo "$as_me: WARNING: Imlib2 is not installed. Install Imlib2 (version >= IMGX11CFLAGS="`${IMLIB_CONFIG} --cflags`" IMGX11LDFLAGS="`${IMLIB_CONFIG} --libs`" IMGTARGETS="x11" - elif test x"$have_imlib2" = xyes; then - $as_echo "#define USE_W3MIMG_X11 1" >>confdefs.h - - IMGOBJS="$IMGOBJS x11/x11_w3mimg.o" - IMGTARGETS="x11" - $as_echo "#define USE_IMLIB2 1" >>confdefs.h - - IMGX11CFLAGS="`${IMLIB2_CONFIG} --cflags`" - IMGX11LDFLAGS="-lX11 `${PKG_CONFIG} --libs imlib2`" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with X11 support" >&5 $as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;} fi fi if test x"$fb" = xyes; then - if test x"$have_gtk2" = xyes; then + if test x"$have_imlib2" = xyes; then + $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h + + IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" + IMGTARGETS="${IMGTARGETS} fb" + $as_echo "#define USE_IMLIB2 1" >>confdefs.h + + IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" + IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`" + IMGFBLDFLAGS="`${PKG_CONFIG} --libs imlib2`" + elif test x"$have_gtk2" = xyes; then $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" @@ -7715,16 +7725,6 @@ $as_echo "$as_me: WARNING: unable to build w3mimgdisplay with X11 support" >&2;} IMGFBCFLAGS="`${GDKPIXBUF_CONFIG} --cflags`" IMGFBLDFLAGS="`${GDKPIXBUF_CONFIG} --libs`" - elif test x"$have_imlib2" = xyes; then - $as_echo "#define USE_W3MIMG_FB 1" >>confdefs.h - - IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" - IMGTARGETS="${IMGTARGETS} fb" - $as_echo "#define USE_IMLIB2 1" >>confdefs.h - - IMGOBJS="$IMGOBJS fb/fb_w3mimg.o fb/fb.o fb/fb_img.o" - IMGFBCFLAGS="`${IMLIB2_CONFIG} --cflags`" - IMGFBLDFLAGS="`${PKG_CONFIG} --libs imlib2`" else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unable to build w3mimgdisplay with FB support" >&5 $as_echo "$as_me: WARNING: unable to build w3mimgdisplay with FB support" >&2;} |