a) for instance no gm2 executable was to be found in my system
i) Look very carefully at the build output, and at what file the final stage created.
ii) Was there a final make install stage or similar, to be run as root? What did it say it was doing and what actually happened?
b) when I tried to compile a sample program it did not work (I tried what you wrote as well, but nothing) -so the switches, probably, were not the actual problem
iii) SO TELL US WHAT HAPPENED FOR $DEITY'S SAKE!!!
Look we're generally interested in sorting this out, but you're really not giving us the info we need to do so.
MarkMLl