Prepare to replace ax_have_opengl by call of ax_check_gl

Add a new parameter --with-mesa in order to be compatible with ax_have_opengl.m4
convention.

This new parameter allow to choose order of detection of opengl lib.
Add ax_check_glx.m4

Allow to detect glx if needed.
Improve compatibility with ax_have_opengl

Create have_* variable

Create even two version for have_glut and have_GLUT (for compatibility reasons)
Use ax_check_gl* for ax_have_opengl

BTW depreceate it.