ok, so it's libjpeg you want to install, and it's devel package.
these error messages generated by configure are normally very straight forward. it's told you what's missing, so install it. simple as that. just when you install from rpm they don't installed the development side of the pacakge that is required for source installs, so there will normally be a blah-devel package to partner it.