diff --git a/configure b/configure index f3f3b52a..6d01127d 100755 --- a/configure +++ b/configure @@ -23672,7 +23672,7 @@ fi # Check whether --enable-old-jpeg or --disable-old-jpeg was given. if test "${enable_old_jpeg+set}" = set; then enableval="$enable_old_jpeg" - HAVE_OJPEG=yes + HAVE_OJPEG=$enableval else HAVE_OJPEG=no fi; diff --git a/configure.ac b/configure.ac index 345c89b9..730d7f67 100644 --- a/configure.ac +++ b/configure.ac @@ -291,7 +291,7 @@ dnl --------------------------------------------------------------------------- dnl Check for Old JPEG. dnl --------------------------------------------------------------------------- -AC_ARG_ENABLE(old-jpeg, AS_HELP_STRING([--enable-old-jpeg], [enable support for Old JPEG compresson (read contrib/ojpeg/README first! Compilation fails with unpatched IJG JPEG library)]), [HAVE_OJPEG=yes], [HAVE_OJPEG=no]) +AC_ARG_ENABLE(old-jpeg, AS_HELP_STRING([--enable-old-jpeg], [enable support for Old JPEG compresson (read contrib/ojpeg/README first! Compilation fails with unpatched IJG JPEG library)]), [HAVE_OJPEG=$enableval], [HAVE_OJPEG=no]) if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then AC_DEFINE(OJPEG_SUPPORT,1,[Support Old JPEG compresson (read contrib/ojpeg/README first! Compilation fails with unpatched IJG JPEG library)])