From: sparky Date: Tue, 4 Nov 2008 22:13:02 +0000 (+0000) Subject: - fix configure --without-x X-Git-Tag: auto/th/giflib-4_1_4-7~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=b644cb9fc5f23fad9cb9914f90d76c5301c28f7f;p=packages%2Fgiflib.git - fix configure --without-x Changed files: giflib-no_x11.patch -> 1.1 --- diff --git a/giflib-no_x11.patch b/giflib-no_x11.patch new file mode 100644 index 0000000..35f4411 --- /dev/null +++ b/giflib-no_x11.patch @@ -0,0 +1,15 @@ +--- giflib-4.1.4/configure.ac~orig 2008-11-04 23:06:29.000000000 +0100 ++++ giflib-4.1.4/configure.ac 2008-11-04 23:07:37.000000000 +0100 +@@ -31,9 +31,12 @@ + AC_DEFINE(HAVE_LIBGL_S, [1], [Define if the gl_s library is installed (SGI GL library)]) + COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2iris"],, $X_LIBS) + ++ X11_LIB="" ++if test "x$with_x" != xno; then + AC_CHECK_LIB(X11, main, [X11_LIB="${X11_LIB} $X_LIBS ${X_EXTRA_LIBS} -lX11" + AC_DEFINE(HAVE_LIBX11, [1], [Define if the X11 library is installed]) + COMPILABLE_EXTRAS="${COMPILABLE_EXTRAS} gif2x11"],, $X_LIBS) ++fi + DEVS="${GL_S_LIB} ${X11_LIB}" + AC_SUBST(DEVS) + AC_SUBST(COMPILABLE_EXTRAS)