diff --git a/configure b/configure index ba669311..55e67207 100755 --- a/configure +++ b/configure @@ -14824,7 +14824,7 @@ fi # Check whether --enable-old-jpeg was given. if test "${enable_old_jpeg+set}" = set; then - enableval=$enable_old_jpeg; HAVE_OJPEG=no + enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval} else HAVE_OJPEG=yes fi diff --git a/configure.ac b/configure.ac index 4600363e..7b03fbde 100644 --- a/configure.ac +++ b/configure.ac @@ -392,7 +392,7 @@ dnl --------------------------------------------------------------------------- AC_ARG_ENABLE(old-jpeg, AS_HELP_STRING([--disable-old-jpeg], [disable support for Old JPEG compresson (read-only, enabled by default)]), - [HAVE_OJPEG=no], [HAVE_OJPEG=yes]) + [HAVE_OJPEG=${enableval}], [HAVE_OJPEG=yes]) if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then AC_DEFINE(OJPEG_SUPPORT, 1,