What is the correct syntax to add CFLAGS and LDFLAGS to "configure"?
It completely depends on the configure script. If the configure script was generated by autoconf, then the "correct" way to ensure that /usr/local/lib and /usr/local/include are used in the