aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2015-04-16 19:02:41 +0300
committerEli Zaretskii2015-04-16 19:02:41 +0300
commitabba535271c3bd617d198c237a6fbb7d8dbb8cf7 (patch)
treeb74ed17aaa6979c6ea7b539ab7468f2babe47823
parent3ab1784327d4d40b3e6bc3a14323740c9a62fa16 (diff)
downloademacs-abba535271c3bd617d198c237a6fbb7d8dbb8cf7.tar.gz
emacs-abba535271c3bd617d198c237a6fbb7d8dbb8cf7.zip
Don't link with -ljpeg on MS-Windows, to avoid dependency on DLL
* configure.ac (LIBJPEG): Leave it empty for MinGW.
-rw-r--r--configure.ac7
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 39f3f9f5f2f..4cb3c354da5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3186,7 +3186,6 @@ fi
3186AC_SUBST(LIBXPM) 3186AC_SUBST(LIBXPM)
3187 3187
3188### Use -ljpeg if available, unless `--with-jpeg=no'. 3188### Use -ljpeg if available, unless `--with-jpeg=no'.
3189### mingw32 doesn't use -ljpeg, since it loads the library dynamically.
3190HAVE_JPEG=no 3189HAVE_JPEG=no
3191LIBJPEG= 3190LIBJPEG=
3192if test "${with_jpeg}" != "no"; then 3191if test "${with_jpeg}" != "no"; then
@@ -3222,7 +3221,11 @@ if test "${with_jpeg}" != "no"; then
3222 HAVE_JPEG=yes 3221 HAVE_JPEG=yes
3223 AC_DEFINE([HAVE_JPEG], 1, 3222 AC_DEFINE([HAVE_JPEG], 1,
3224 [Define to 1 if you have the jpeg library (typically -ljpeg).]) 3223 [Define to 1 if you have the jpeg library (typically -ljpeg).])
3225 test "$emacs_cv_jpeglib" != yes && LIBJPEG=$emacs_cv_jpeglib 3224 ### mingw32 doesn't use -ljpeg, since it loads the library
3225 ### dynamically when needed, and doesn't want a run-time
3226 ### dependency on the jpeglib DLL.
3227 test "$emacs_cv_jpeglib" != yes && test "${opsys}" != "mingw32" \
3228 && LIBJPEG=$emacs_cv_jpeglib
3226 fi 3229 fi
3227fi 3230fi
3228AC_SUBST(LIBJPEG) 3231AC_SUBST(LIBJPEG)