<p>Sorry, life's extremely busy for me. Looks good at a glance. I didn't check if GL is hardcoded in spots where $(GL_LIB) should be used or anything like that, though.</p>
<p>Reviewed-by: Dan Nicholson <<a href="mailto:dbn.lists@gmail.com">dbn.lists@gmail.com</a>></p>
<div class="gmail_quote">On Oct 12, 2011 1:30 PM, "tom fogal" <<a href="mailto:tfogal@sci.utah.edu">tfogal@sci.utah.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
*ping* any review?<br>
<br>
Dan, I think you're probably the best to review this, if you have a<br>
minute.<br>
<br>
-tom<br>
<br>
<a href="mailto:tfogal@sci.utah.edu">tfogal@sci.utah.edu</a> writes:<br>
> From: Tom Fogal <<a href="mailto:tfogal@alumni.unh.edu">tfogal@alumni.unh.edu</a>><br>
><br>
> In addition to setting up the flags correctly, this renames the<br>
> generated libraries to ensure they get 'Mangled' in the name.<br>
> This is very useful for distros and the like, where mangled Mesa<br>
> and non-mangled GL libraries typically need to be installed<br>
> side-by-side.<br>
> ---<br>
> configs/<a href="http://autoconf.in" target="_blank">autoconf.in</a> | 4 ++--<br>
> <a href="http://configure.ac" target="_blank">configure.ac</a> | 27 ++++++++++++++++++++++++---<br>
> 2 files changed, 26 insertions(+), 5 deletions(-)<br>
><br>
> diff --git a/configs/<a href="http://autoconf.in" target="_blank">autoconf.in</a> b/configs/<a href="http://autoconf.in" target="_blank">autoconf.in</a><br>
> index 9bbafc9..96fe5da 100644<br>
> --- a/configs/<a href="http://autoconf.in" target="_blank">autoconf.in</a><br>
> +++ b/configs/<a href="http://autoconf.in" target="_blank">autoconf.in</a><br>
> @@ -64,8 +64,8 @@ FLEX = @FLEX@<br>
> BISON = @BISON@<br>
><br>
> # Library names (base name)<br>
> -GL_LIB = GL<br>
> -GLU_LIB = GLU<br>
> +GL_LIB = @GL_LIB@<br>
> +GLU_LIB = @GLU_LIB@<br>
> GLW_LIB = GLw<br>
> OSMESA_LIB = @OSMESA_LIB@<br>
> GLESv1_CM_LIB = GLESv1_CM<br>
> diff --git a/<a href="http://configure.ac" target="_blank">configure.ac</a> b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
> index 49e81ad..df909dd 100644<br>
> --- a/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
> +++ b/<a href="http://configure.ac" target="_blank">configure.ac</a><br>
> @@ -342,6 +342,28 @@ else<br>
> fi<br>
><br>
> dnl<br>
> +dnl Mangled Mesa support<br>
> +dnl<br>
> +AC_ARG_ENABLE([mangling],<br>
> + [AS_HELP_STRING([--enable-mangling],<br>
> + [enable mangled symbols and library name @<:@default=disabled@:>@])],<br>
> + [enable_mangling="${enableval}"],<br>
> + [enable_mangling=no]<br>
> +)<br>
> +GL_LIB="GL"<br>
> +GLU_LIB="GLU"<br>
> +OSMESA_LIB="OSMesa"<br>
> +if test "x${enable_mangling}" = "xyes" ; then<br>
> + DEFINES="${DEFINES} -DUSE_MGL_NAMESPACE"<br>
> + GL_LIB="MangledGL"<br>
> + GLU_LIB="MangledGLU"<br>
> + OSMESA_LIB="MangledOSMesa"<br>
> +fi<br>
> +AC_SUBST([GL_LIB])<br>
> +AC_SUBST([GLU_LIB])<br>
> +AC_SUBST([OSMESA_LIB])<br>
> +<br>
> +dnl<br>
> dnl potentially-infringing-but-nobody-knows-for-sure stuff<br>
> dnl<br>
> AC_ARG_ENABLE([texture-float],<br>
> @@ -1280,17 +1302,16 @@ if test "x$osmesa_bits" != x8; then<br>
> fi<br>
> case "x$osmesa_bits" in<br>
> x8)<br>
> - OSMESA_LIB=OSMesa<br>
> + OSMESA_LIB="${OSMESA_LIB}"<br>
> ;;<br>
> x16|x32)<br>
> - OSMESA_LIB="OSMesa$osmesa_bits"<br>
> + OSMESA_LIB="${OSMESA_LIB}$osmesa_bits"<br>
> DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS<br>
> =31"<br>
> ;;<br>
> *)<br>
> AC_MSG_ERROR([OSMesa bits '$osmesa_bits' is not a valid option])<br>
> ;;<br>
> esac<br>
> -AC_SUBST([OSMESA_LIB])<br>
><br>
> if test "x$enable_osmesa" = xyes; then<br>
> # only link libraries with osmesa if shared<br>
> --<br>
> 1.7.3.4<br>
</blockquote></div>