mupdf 1.13 includes some freeglut-only code. While commit http://git.ghostscript.com/?p=mupdf.git;a=commit;h=65be3177c793bb132c36f3e6bb87c3a6947be4e0 fixed compatibility with Mac OS X, the following commit, http://git.ghostscript.com/?p=mupdf.git;a=commit;h=c4d4d6cfcacdbeb277ab6624dc33d0b490024f9b, added the use of the freeglut-only glutSetOption function and two freeglut-only constants. This breaks the build on OS X. The freeglut documentation for this function notes that it's not implemented in GLUT: http://freeglut.sourceforge.net/docs/api.php#StateSetting
*** This bug has been marked as a duplicate of bug 699726 ***