emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configure tests for graphics libraries


From: Dave Love
Subject: Re: configure tests for graphics libraries
Date: 28 Feb 2002 21:24:23 +0000
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.95

Richard Stallman <address@hidden> writes:

> Would you like to adapt Dave's configure.in patch to test
> EGifPutExtensionLast, and install it?  There is a simple
> autoconf macro to do that kind of test, and I think Emacs
> already uses it.

It's trivial.  You should include the jpeg test too.

Index: configure.in
===================================================================
RCS file: /cvs/emacs/configure.in,v
retrieving revision 1.267.4.7
diff -u -p -c -r1.267.4.7 configure.in
cvs server: conflicting specifications of output style
*** configure.in        28 Jan 2002 16:37:30 -0000      1.267.4.7
--- configure.in        28 Feb 2002 21:20:54 -0000
*************** if test "${HAVE_X11}" = "yes"; then
*** 1851,1856 ****
--- 1851,1866 ----
  
    if test "${HAVE_JPEG}" = "yes"; then
      AC_DEFINE(HAVE_JPEG)
+     AC_EGREP_CPP(
+ changequote({, })dnl avoid leadingspace on the next line
+ {version= *(6[2-9]|[7-9][0-9])},
+ changequote([, ])dnl
+         [#include <jpeglib.h>
+        version=JPEG_LIB_VERSION
+ ],    
+         AC_DEFINE(HAVE_JPEG),
+         [AC_MSG_WARN([libjpeg found, but not version 6b or later])
+         HAVE_JPEG=no])
    fi
  fi
    
*************** HAVE_GIF=no
*** 1888,1894 ****
  if test "${HAVE_X11}" = "yes"; then
    if test "${with_gif}" != "no"; then
      AC_CHECK_HEADER(gif_lib.h,
!       AC_CHECK_LIB(ungif, DGifOpen, HAVE_GIF=yes))
    fi
  
    if test "${HAVE_GIF}" = "yes"; then
--- 1898,1906 ----
  if test "${HAVE_X11}" = "yes"; then
    if test "${with_gif}" != "no"; then
      AC_CHECK_HEADER(gif_lib.h,
! # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
! # Earlier versions can crash Emacs.
!       AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes))
    fi
  
    if test "${HAVE_GIF}" = "yes"; then



reply via email to

[Prev in Thread] Current Thread [Next in Thread]