Subject: bug#20124: Building emacs and libjpeg not found on Fedora 22

From: Paul Eggert <[email-masked]>
Date: Mon, 23 Mar 2015 00:24:40 -0700

> emacs configure scripts does not work well some times.

Yes, that's most likely the problem here.  Have you tried my suggestion?

http://bugs.gnu.org/20124#22