Upgrade CS_CHECK_LIB_WITH() to support inconsistent OSX framework names.
Upgrade CS_CHECK_LIB_WITH() to support inconsistent OSX framework names.

On Mac OS X, framework names sometimes differ from the more typical
package names on other platforms, and this can adversely affect #include
statements. For instance, on most platforms, OpenGL headers are
#included as <GL/foo.h>, but Mac OS X, with its OpenGL.framework,
requires #include <OpenGL/foo.h>.  Enhance CS_CHECK_LIB_WITH() to assist
with this issue by #defining CS_{LIBNAME}_PATH when attempting
-framework checks on Mac OS X. For instance, for the OpenGL check,
CS_OPENGL_PATH will be defined as "OpenGL". Test code should determine
whether CS_{LIBNAME}_PATH is defined and #include headers from the
indicated path rather than from the typical package location. For the
OpenGL example, when CS_OPENGL_PATH is defined, #include
<CS_OPENGL_PATH/foo.h>.  When not defined, #include <GL/foo.h> as usual.


git-svn-id: 28d9401aa571d5108e51b194aae6f24ca5964c06@35113 8cc4aa7f-3514-0410-904f-f2cc9021211c

crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS,crystalspace/CS