Once you have setup a system with build tools (gcc, make, ...) repeat a few times this procedure:
1) launch configure 2) install the "devel" version of the missing
Before building Octave from scratch on a Mac OS X platform you need to install several GNU programs and libraries that are not shipped with your Mac. This
description will guide you through the procedure of GNUifying your Mac OS X step by step, so that you are then be able to configure, compile, install and run the Octave program.