rubinius/rubinius — pull request #1879 by r-stu31 (2012-08-27 22:48:56+00:00)
Title: configure: add CPPFLAGS and LDFLAGS where missing

In my setup, the needed libraries are not under /lib or /usr/lib, so for "configure" and "rake" I use a wrapper, which looks like:

````
#!/bin/sh
env LDFLAGS="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" ./configure
env LDFLAGS="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" rake
````

Without the proposed patch, some libraries are not found by the configure script. The "CFLAGS --> CXXFLAGS" change is just cosmetics, feel free to omit it, my setup does not depend on it, but i think, that this way is more correct.