Merge pull request #52 from shahn/master

Re-enable checks for initgroups() and unsetenv()
Get rid of some complaints from modern autotools

automake warns that in the future, the subdir-objects option will be
turned on by default, so in order to detect breakage with that option as
it might be introduced lated we can just turn on that option now.

Also do a simple configure.in -> configure.ac rename.

Signed-off-by: Sebastian Hahn <sebastian@torproject.org>
Remove files which get generated by autoreconf

Having the old files around was causing some warnings with modern
autoconf, and it should be completely unnecessary to keep these files
around. The only consequence is that autoreconf takes a second or so
longer the first time one runs autogen.sh.

Also update the gitignore file accordingly

Signed-off-by: Sebastian Hahn <sebastian@torproject.org>
Allow compilation to succeed on OSX

Fix a few instances of unportable Code:

 - make the get_current_dir_name() call dependant on a configure check

 - make time logging code use casts to long uniformly

 - include some headers where needed

 - replace assignment of '\0' with NULL so modern clang doesn't complain
   about assigning null pointers via expressions evaluating to zero

Signed-off-by: Sebastian Hahn <sebastian@torproject.org>
Allow "make check" to succeed on OSX

Fix a few instances of unportable code by replacing uint with unsigned
int and changing function pointer casts for signal(). Fix up some header
includes.

Signed-off-by: Sebastian Hahn <sebastian@torproject.org>