Compiling and installing Xalan on OS X

Because I couldn't find simple documentation for building Xerces-C++ and Xalan-C++ (XSLT processor):

setenv XERCESCROOT ~/Source/xerces-c-src_2_7_0/
cd ~/Source/xerces-c-src_2_7_0/src/xercesc
./runConfigure -p macosx -n native -t native -c gcc -x g++
make
(rerun make if errors)
sudo make install
setenv XALANCROOT ~/Source/xml-xalan/c
cd ~/Source/xml-xalan/c
./runConfigure -p macosx -c gcc -x g++
make
(rerun make if errors)
sudo make install