aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-06-12 08:13:57 +0000
committerGlenn Morris2007-06-12 08:13:57 +0000
commit47d1e061e766523d4104f7c413e4a15d70b0e638 (patch)
treed470d96f008508251f157de442c7b9e112b7ea95
parentc8791c6a508cfe45dda766c2f3b9e1dbb314fc4e (diff)
downloademacs-47d1e061e766523d4104f7c413e4a15d70b0e638.tar.gz
emacs-47d1e061e766523d4104f7c413e4a15d70b0e638.zip
(HAVE_GIF): If -lungif fails, try -lgif.
-rw-r--r--configure.in28
-rw-r--r--src/ChangeLog5
2 files changed, 25 insertions, 8 deletions
diff --git a/configure.in b/configure.in
index c65091a69ec..240682b632b 100644
--- a/configure.in
+++ b/configure.in
@@ -110,7 +110,7 @@ AC_ARG_WITH(jpeg,
110AC_ARG_WITH(tiff, 110AC_ARG_WITH(tiff,
111[ --with-tiff use -ltiff for displaying TIFF images]) 111[ --with-tiff use -ltiff for displaying TIFF images])
112AC_ARG_WITH(gif, 112AC_ARG_WITH(gif,
113[ --with-gif use -lungif for displaying GIF images]) 113[ --with-gif use -lungif (or -lgif) for displaying GIF images])
114AC_ARG_WITH(png, 114AC_ARG_WITH(png,
115[ --with-png use -lpng for displaying PNG images]) 115[ --with-png use -lpng for displaying PNG images])
116AC_ARG_WITH(gpm, 116AC_ARG_WITH(gpm,
@@ -2527,18 +2527,30 @@ if test "${HAVE_X11}" = "yes"; then
2527 fi 2527 fi
2528fi 2528fi
2529 2529
2530### Use -lgif if available, unless `--with-gif=no'. 2530### Use -lgif or -lungif if available, unless `--with-gif=no'.
2531HAVE_GIF=no 2531HAVE_GIF=no
2532if test "${HAVE_X11}" = "yes"; then 2532if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
2533 if test "${with_gif}" != "no"; then 2533 AC_CHECK_HEADER(gif_lib.h,
2534 AC_CHECK_HEADER(gif_lib.h,
2535# EGifPutExtensionLast only exists from version libungif-4.1.0b1. 2534# EGifPutExtensionLast only exists from version libungif-4.1.0b1.
2536# Earlier versions can crash Emacs. 2535# Earlier versions can crash Emacs.
2537 AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes)) 2536 AC_CHECK_LIB(ungif, EGifPutExtensionLast, HAVE_GIF=yes, try_libgif=yes))
2537
2538 if test "$HAVE_GIF" = yes; then
2539 ac_gif_lib_name="-lungif"
2540 fi
2541
2542# If gif_lib.h but no libungif, try libgif.
2543 if test x"$try_libgif" = xyes; then
2544 AC_CHECK_LIB(gif, EGifPutExtensionLast, HAVE_GIF=yes)
2545
2546 if test "$HAVE_GIF" = yes; then
2547 AC_DEFINE(LIBGIF, -lgif, [Compiler option to link with the gif library (if not -lungif).])
2548 ac_gif_lib_name="-lgif"
2549 fi
2538 fi 2550 fi
2539 2551
2540 if test "${HAVE_GIF}" = "yes"; then 2552 if test "${HAVE_GIF}" = "yes"; then
2541 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have the ungif library (-lungif).]) 2553 AC_DEFINE(HAVE_GIF, 1, [Define to 1 if you have a gif library (default -lungif; otherwise specify with LIBGIF).])
2542 fi 2554 fi
2543fi 2555fi
2544 2556
@@ -3311,7 +3323,7 @@ echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
3311echo " Does Emacs use -lXpm? ${HAVE_XPM}" 3323echo " Does Emacs use -lXpm? ${HAVE_XPM}"
3312echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" 3324echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
3313echo " Does Emacs use -ltiff? ${HAVE_TIFF}" 3325echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
3314echo " Does Emacs use -lungif? ${HAVE_GIF}" 3326echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
3315echo " Does Emacs use -lpng? ${HAVE_PNG}" 3327echo " Does Emacs use -lpng? ${HAVE_PNG}"
3316echo " Does Emacs use -lgpm? ${HAVE_GPM}" 3328echo " Does Emacs use -lgpm? ${HAVE_GPM}"
3317echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" 3329echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
diff --git a/src/ChangeLog b/src/ChangeLog
index 0c23f57099e..26b07eb45e8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12007-06-12 Glenn Morris <rgm@gnu.org>
2
3 * config.in (HAVE_GIF): Doc fix.
4 (LIBGIF): New (already used by Makefile.in).
5
12007-06-11 Stefan Monnier <monnier@iro.umontreal.ca> 62007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * term.c: Include intervals.h to declare Fget_text_property. 8 * term.c: Include intervals.h to declare Fget_text_property.