--- configure.in.orig	Thu Feb 17 07:51:53 2000
+++ configure.in	Sun Mar 10 22:33:14 2002
@@ -21,21 +21,17 @@ dnl Checks for libraries.
     AC_CHECK_LIB(m, pow, [MATH_LIB="${MATH_LIB} -lm"
                  COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gifclrmp gifrotat"] )
 
-if test ${MATH_LIB}; then
-    AC_CHECK_LIB(rle, rle_hdr_init, [RLE_LIB="${RLE_LIBS} -lrle -lm"
-                 COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2rle rle2gif"],
-                 ,"-lm" )
-fi
-
 dnl I don't have this on my system.  Could someone else configure it and
 dnl check that it works?
     AC_CHECK_LIB(gl_s, main, [GL_S_LIB="${GL_S_LIB} -lgl_s $X_LIBS"
                              AC_DEFINE(HAVE_LIBGL_S)
                  COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2iris"],, $X_LIBS)
 
+    if test "x$with_x" != xno; then
     AC_CHECK_LIB(X11, main, [X11_LIB="${X11_LIB} $X_LIBS -lX11"
                              AC_DEFINE(HAVE_LIBX11)
                  COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2x11"],, $X_LIBS)
+    fi
     DEVS="${GL_S_LIB} ${X11_LIB}" 
     AC_SUBST(DEVS)
     AC_SUBST(COMPILABLE_EXTRAS)
