On OS X it's easier to use Homebrew instead of trying to build from scratch - I just checked and they have a formula for libmicrohttpd
.
Note that by default Homebrew puts headers and libraries under /usr/local/include
and /usr/local/lib
- gcc will find libraries and headers here by default, or you can add the paths explicitly if you prefer (-I
for include paths, -L
for library paths).