only check for tjpeg if --enable-tjpeg is passed

This commit is contained in:
Jay Sorg 2014-03-24 12:03:17 -07:00
parent 1b3dd12568
commit e270ccbde7
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,8 @@ then
fi fi
# checking for TurboJPEG # checking for TurboJPEG
if ! test -z "$enable_tpeg"
then
if test ! -z "$TURBOJPEG_PATH" if test ! -z "$TURBOJPEG_PATH"
then then
# env var TURBOJPEG_PATH has been defined, use that # env var TURBOJPEG_PATH has been defined, use that
@ -153,6 +155,7 @@ else
AC_SUBST(TurboJpegIncDir, [""]) AC_SUBST(TurboJpegIncDir, [""])
AC_SUBST(TurboJpegLibDir, [""]) AC_SUBST(TurboJpegLibDir, [""])
fi fi
fi
# checking for Xlib, Xfixes # checking for Xlib, Xfixes
AC_CHECK_HEADER([X11/Xlib.h], [], AC_CHECK_HEADER([X11/Xlib.h], [],