$ make clean bootstrap install
[...]
gcc -I/sw/include -L/sw/lib -prebind -framework Carbon -framework QuickTime -Xlinker -headerpad -Xlinker 690 -o temacs pre-crt0.o dispnew.o frame.o scroll.o xdisp.o window.o charset.o coding.o category.o ccl.o cm.o term.o xfaces.o emacs.o keyboard.o macros.o keymap.o sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o print.o lread.o abbrev.o syntax.o unexmacosx.o bytecode.o process.o callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o textprop.o composite.o md5.o mac.o macterm.o macfns.o macmenu.o macselect.o fontset.o fringe.o image.o terminfo.o lastfile.o LIBGPM -lncurses
i686-apple-darwin8-gcc-4.0.1: LIBGPM: No such file or directory
make[2]: *** [temacs] Error 1
make[1]: *** [bootstrap-build] Error 2
make: *** [bootstrap] Error 2
What's that "LIBPGM" doing in there?