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