]> code.delx.au - gnu-emacs/commitdiff
(HAVE_JPEG): Turn it off if libjpeg version < 6b.
authorRichard M. Stallman <rms@gnu.org>
Fri, 1 Mar 2002 16:24:37 +0000 (16:24 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 1 Mar 2002 16:24:37 +0000 (16:24 +0000)
(HAVE_GIF): Don't use old libungif versions that crash.

ChangeLog
configure.in

index 02de981078be3a5b82e434628a568f190279bd9c..696d226c8e01e4a6dc1361cefb8f8da336b70259 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-03-01  Richard M. Stallman  <rms@gnu.org>
+
+       * configure.in (HAVE_JPEG): Turn it off if libjpeg version < 6b.
+       (HAVE_GIF): Don't use old libungif versions that crash.
+
 2002-02-26  Richard M. Stallman  <rms@gnu.org>
 
        * configure.in <making srcdir absolute>: Verify that PWD is correct,
index 74b953c9e378be8a4c67285187a0fad07877f36f..c59caae1e5dfdb4056e7b69c171540f9d5bb5a09 100644 (file)
@@ -1878,6 +1878,16 @@ if test "${HAVE_X11}" = "yes"; then
 
   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
   
@@ -1915,7 +1925,9 @@ HAVE_GIF=no
 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))
+# 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