I'm trying to use the GNU autoconf/automake toolchain for the first time, so the answer to my question might be trivial.
The program needs OpenGL/GLUT where the headers and libraries are installed in a non standard location. I found these macros that should do all the checking for me. I'm simply calling it with *AX_CHECK_GLUT*. How do I make the macro find the libraries? I'm looking for something like
./configure --with-glut-dir=/home/hanno/glut
More generally: What is the normal way of dealing with non-standard library locations in an autoconf script? Of course, I can play around with CPPFLAGS and LIBS variables, but I have the feeling that I'm missing something.