diff options
| -rw-r--r-- | configure.in | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 9769f29b6ed..4516cf00d6f 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -110,10 +110,12 @@ AC_ARG_WITH(png, | |||
| 110 | [ --with-png use -lpng for displaying PNG images]) | 110 | [ --with-png use -lpng for displaying PNG images]) |
| 111 | AC_ARG_WITH(gpm, | 111 | AC_ARG_WITH(gpm, |
| 112 | [ --with-gpm use -lgpm for mouse support on a GNU/Linux console]) | 112 | [ --with-gpm use -lgpm for mouse support on a GNU/Linux console]) |
| 113 | AC_ARG_WITH(rsvg, | ||
| 114 | [ --with-rsvg use -lrsvg-2 for displaying SVG images]) | ||
| 113 | AC_ARG_WITH(gtk, | 115 | AC_ARG_WITH(gtk, |
| 114 | [ --with-gtk use GTK (same as --with-x-toolkit=gtk)]) | 116 | [ --with-gtk use GTK (same as --with-x-toolkit=gtk)]) |
| 115 | AC_ARG_WITH(pkg-config-prog, | 117 | AC_ARG_WITH(pkg-config-prog, |
| 116 | [ --with-pkg-config-prog Path to pkg-config to use for finding GTK]) | 118 | [ --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg]) |
| 117 | AC_ARG_WITH(toolkit-scroll-bars, | 119 | AC_ARG_WITH(toolkit-scroll-bars, |
| 118 | [ --without-toolkit-scroll-bars | 120 | [ --without-toolkit-scroll-bars |
| 119 | don't use Motif or Xaw3d scroll bars]) | 121 | don't use Motif or Xaw3d scroll bars]) |
| @@ -2122,6 +2124,32 @@ fail; | |||
| 2122 | fi | 2124 | fi |
| 2123 | fi | 2125 | fi |
| 2124 | 2126 | ||
| 2127 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. | ||
| 2128 | HAVE_RSVG=no | ||
| 2129 | if test "${HAVE_X11}" = "yes"; then | ||
| 2130 | if test "${with_rsvg}" != "no"; then | ||
| 2131 | dnl Check if `--with-pkg-config-prog' has been given. | ||
| 2132 | if test "X${with_pkg_config_prog}" != X; then | ||
| 2133 | PKG_CONFIG="${with_pkg_config_prog}" | ||
| 2134 | fi | ||
| 2135 | |||
| 2136 | RSVG_REQUIRED=2.0.0 | ||
| 2137 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" | ||
| 2138 | |||
| 2139 | PKG_CHECK_MODULES(RSVG, $RSVG_MODULE, :, :) | ||
| 2140 | AC_SUBST(RSVG_CFLAGS) | ||
| 2141 | AC_SUBST(RSVG_LIBS) | ||
| 2142 | |||
| 2143 | if test ".${RSVG_CFLAGS}" != "."; then | ||
| 2144 | HAVE_RSVG=yes | ||
| 2145 | AC_DEFINE(HAVE_RSVG, 1, [Define to 1 if using librsvg.]) | ||
| 2146 | CFLAGS="$CFLAGS $RSVG_CFLAGS" | ||
| 2147 | LIBS="$RSVG_LIBS $LIBS" | ||
| 2148 | fi | ||
| 2149 | fi | ||
| 2150 | fi | ||
| 2151 | |||
| 2152 | |||
| 2125 | HAVE_GTK=no | 2153 | HAVE_GTK=no |
| 2126 | if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then | 2154 | if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then |
| 2127 | USE_X_TOOLKIT=none | 2155 | USE_X_TOOLKIT=none |
| @@ -3362,6 +3390,7 @@ echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |||
| 3362 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | 3390 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
| 3363 | echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" | 3391 | echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" |
| 3364 | echo " Does Emacs use -lpng? ${HAVE_PNG}" | 3392 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
| 3393 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" | ||
| 3365 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" | 3394 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
| 3366 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | 3395 | echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
| 3367 | echo | 3396 | echo |