Hooward pointed out the nice self-contained geos.m4 in GDAL's source tree:
http://trac.osgeo.org/gdal/browser/trunk/gdal/m4/geos.m4