Trying to compile thttpd 2.27 on Mac OS X 10.11
You have at least two options:


Install MacPorts. Install thttpd with this command:

sudo port install thttpd


I am not using MacPorts and this is untested.
Download config.sub.diff and config.guess.diff and put them into thttpd source directory. Execute these commands to patch the config files:

patch -R &lt; config.sub.diff
patch -R &lt; config.guess.diff
./configure
make


It will compile the source. You may now consider to install compiled binary.


[Original source of diff files is here.]