Update to glew 1.10.0 for the mac builds.

Note: other builds may want to test to ensure that they do not build against glew 1.9.0 since it can cause crashes.
Update png to 1.5.17.
Fix ups.

 * Add underscore.sty into 3rdparty
 * Use a quoted here doc in CS-ID
 * Try not to blowup quite so spectacularly building the docs without a network connection.
Update the xcode project file to the 3.2 format.
Eliminate a few warnings in 3rdparty code.
Update ogg to 1.3.1 for the mac build.
Update autorevision to 1.5.
Use Gist as the primary location for the vorbis patch.
Check Moc after downloading Qt.
Update autorevision to 1.6.
Stop refusing to build with recent versions of automake
Simplify build process by getting rid of bison/flex dependencies.

Fixes both MSVC and autotools (automake 1.12+).

Revert "Abort autogen.sh when automake 1.12+ is found."

This reverts commit 978ed8f1f90544162c327f334bd590cd7b944ce1.
Should now work with automake 1.11+

fixes ticket:3887
fixes ticket:3538
closes ticket:3950

(cherry picked from commit 372eff6693e633e8d0d1d0b8a9ceb996a5c3f49f)

Forgot to push these changes for commit 372eff6693e633e8d0d1d0b8a9ceb996a5c3f49f

(cherry picked from commit e397b24d4724d835d6cdc39a92800e64c0551dab)

Out of tree builds ?  Who needs them. :P

refs: 372eff6693e633e8d0d1d0b8a9ceb996a5c3f49f
(cherry picked from commit 20317c2a6f2c700042a727c6d719056ab3c90dcb)
Merge branch 'bugfixes' into 3.1

* bugfixes:
  Simplify build process by getting rid of bison/flex dependencies.
  Update autorevision to 1.6.
  Check Moc after downloading Qt.
  Use Gist as the primary location for the vorbis patch.
  Update autorevision to 1.5.
  Update ogg to 1.3.1 for the mac build.
  Eliminate a few warnings in 3rdparty code.
  Update the xcode project file to the 3.2 format.
  Fix ups.
  Update png to 1.5.17.
  Update to glew 1.10.0 for the mac builds.
qtscript: fix description of getStructureLimit()
Merge branch 'bugfixes' into 3.1
French translation update by cpasmoi/machintruc.

Closes pull request 35.
Italian translation update by Alpha93.

Closes #4074.
Hungarian translation update by mtomi78.

Closes #3909.
Portuguese translation update by HolyDragoon.

Closes #4050.
Merge branch 'bugfixes' into 3.1