diff options
author | Andreas Schwab <schwab@suse.de> | 2015-03-23 11:55:24 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2015-03-23 12:08:41 +0100 |
commit | ff3878d749591ebf78da532ec1eb6fa00cb5757d (patch) | |
tree | 2b7e61aaaf9b53582c06f77fe74b4c53996c67b6 /configure.ac | |
parent | 90b46f5b54b8eda06e2c5bcd13d9c6475afe767b (diff) | |
download | emacs-ff3878d749591ebf78da532ec1eb6fa00cb5757d.tar.gz |
* configure.ac: Fix jpeg version check to work with gcc >= 5.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/configure.ac b/configure.ac index 209bae9eef9..dd1ab324688 100644 --- a/configure.ac +++ b/configure.ac @@ -3075,10 +3075,12 @@ if test "${opsys}" = "mingw32"; then AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl if test "${HAVE_JPEG}" = "yes"; then AC_DEFINE(HAVE_JPEG) - AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], - [#include <jpeglib.h> - version=JPEG_LIB_VERSION -], + AC_EGREP_CPP([version 6b or later], + [#include <jpeglib.h> + #if JPEG_LIB_VERSION >= 62 + version 6b or later + #endif + ], [AC_DEFINE(HAVE_JPEG)], [AC_MSG_WARN([libjpeg found, but not version 6b or later]) HAVE_JPEG=no]) @@ -3094,10 +3096,12 @@ elif test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then AH_TEMPLATE(HAVE_JPEG, [Define to 1 if you have the jpeg library (-ljpeg).])dnl if test "${HAVE_JPEG}" = "yes"; then AC_DEFINE(HAVE_JPEG) - AC_EGREP_CPP([version= *(6[2-9]|[7-9][0-9])], + AC_EGREP_CPP([version 6b or later], [#include <jpeglib.h> - version=JPEG_LIB_VERSION -], + #if JPEG_LIB_VERSION >= 62 + version 6b or later + #endif + ], [AC_DEFINE(HAVE_JPEG)], [AC_MSG_WARN([libjpeg found, but not version 6b or later]) HAVE_JPEG=no]) |