pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Firefox24 build breaking because of non-existent strcasestr function
On Thu, May 14, 2015 at 10:17:02AM -0700, Ibraheem Saleh wrote:
> My Firefox24 build is breaking on Solaris 10 Sparc with gcc4.9.2 due
> to the use of the strcasestr extension which doesn't exist on Solaris
> 10. Does anybody know a quick & valid fix for this?
>
> It happens when compiling this file:
> mozilla-esr24/widget/xpwidgets/GfxInfoX11.cpp
>
> Here's the code block in question:
> whereToReadVersionNumbers = Mesa_in_version_string + strlen("Mesa");
> if (strcasestr(mVendor.get(), "nouveau"))
> mIsNouveau = true;
> if (strcasestr(mRenderer.get(), "intel")) // yes, intel is in
> the renderer string
> mIsIntel = true;
> if (strcasestr(mRenderer.get(), "llvmpipe"))
> mIsLlvmpipe = true;
> if (strcasestr(mRenderer.get(), "software rasterizer"))
> mIsOldSwrast = true;
> } else if (strstr(mVendor.get(), "NVIDIA Corporation")) {
>
> I appreciate the help :)
gnulib tries to provide (GPL'd) replacements e.g.
https://www.gnu.org/software/gnulib/manual/html_node/strcasecmp.html
which go well with AC_REPLACE_FUNCS.
Cheers,
Patrick
Home |
Main Index |
Thread Index |
Old Index