Skip to content

Instantly share code, notes, and snippets.

@rzl24ozi
Last active September 13, 2017 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rzl24ozi/b0165eaf404a0c5a47ae to your computer and use it in GitHub Desktop.
Save rzl24ozi/b0165eaf404a0c5a47ae to your computer and use it in GitHub Desktop.
add svg support to cygwin emacs-w32
--- ./configure.ac.orig 2017-09-12 01:55:00.000000000 +0900
+++ ./configure.ac 2017-09-13 21:00:13.353677900 +0900
@@ -2382,7 +2382,7 @@
### Use -lrsvg-2 if available, unless '--with-rsvg=no' is specified.
HAVE_RSVG=no
-if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${opsys}" = "mingw32"; then
+if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes" || test "${HAVE_W32}" = "yes"; then
if test "${with_rsvg}" != "no"; then
RSVG_REQUIRED=2.11.0
RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
--- ./src/image.c.orig 2017-04-15 00:02:47.000000000 +0900
+++ ./src/image.c 2017-09-13 21:00:13.364700900 +0900
@@ -9907,7 +9907,7 @@
#if defined (HAVE_RSVG)
DEFSYM (Qsvg, "svg");
ADD_IMAGE_TYPE (Qsvg);
-#ifdef HAVE_NTGUI
+#if defined HAVE_NTGUI && !defined CYGWIN
/* Other libraries used directly by svg code. */
DEFSYM (Qgdk_pixbuf, "gdk-pixbuf");
DEFSYM (Qglib, "glib");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment