Template:FAQ:Compiling 01
From Net-SNMP Wiki
Run configure with --with-cc=cc
Note that if you've already run configure once, it will probably have
detected the presence of 'gcc', cached this information, and may still
try to use this anyway. In which case, simply remove the 'config.cache'
file before re-running configure.