$Log$
+Revision 211.3 2000/02/11 23:45:04 nbryant
+* Makefile.in, configure.in: add, like, some *more* code for FreeBSD
+* tcp_sockets.c: include <arpa/inet.h>
+
Revision 211.2 2000/02/11 23:30:04 nbryant
configure.in: added some code for FreeBSD
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
DEFS=@DEFS@
LIBOBJS=@LIBOBJS@
LIBS=@LIBS@
+PTHREAD_DEFS=@PTHREAD_DEFS@
srcdir=@srcdir@
# End of configuration section
$(LIBOBJS) $(LIBS) -o webserver
.c.o:
- $(CC) $(CFLAGS) $(DEFS) -c -D_REENTRANT -DWEBCITDIR=\"`pwd`\" $<
+ $(CC) $(CFLAGS) $(DEFS) -c $(PTHREAD_DEFS) -DWEBCITDIR=\"`pwd`\" $<
Makefile: $(srcdir)/Makefile.in config.status
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
dnl Set some system-specific variables which are OK to set before compiler
dnl checks:
+PTHREAD_DEFS=-D_REENTRANT
case "$host" in
dnl Tru64 Unix requires we use -pthread instead of linking the threads
dnl libraries directly, and we can't build threaded programs with gcc
dnl FreeBSD is similar:
*-*-freebsd*)
LIBS=-pthread
+ PTHREAD_DEFS=-D_THREAD_SAFE
;;
esac
+AC_SUBST(PTHREAD_DEFS)
dnl Checks for programs.
AC_PROG_CC
#include <sys/time.h>
#include <limits.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include <pwd.h>