1998-09-29 Nathan Bryant <bryant@cs.usm.maine.edu>
- * user_ops.c: fix compiler warning and potential memory leak
+ * user_ops.c: fix compiler warning and potential memory leak,
+ include sysdep.h
+ * configure.in, Makefile.in: only build the server if we find pthreads
Tue Sep 29 13:20:14 EDT 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* Removed code from some of the utilities which was still attempting
#
########################################################################
-all: client server utils serv_modules
+TARGETS=@TARGETS@
+
+all: $(TARGETS)
CLIENT_TARGETS=citadel whobbs
SERVER_TARGETS=citserver setup
fi
AC_PROG_RANLIB
+TARGETS=client
+
dnl Checks for libraries.
AC_CHECK_LIB(crypt, crypt)
AC_CHECK_LIB(dl, dlopen)
AC_CHECK_LIB(gdbm, gdbm_open)
AC_CHECK_LIB(curses, initscr, CURSES=-lcurses)
-AC_CHECK_LIB(pthread, pthread_create)
-AC_CHECK_LIB(pthreads, pthread_create)
+AC_CHECK_LIB(pthread, pthread_create, [LIBS="$LIBS -lpthread"
+ TARGETS="client server utils serv_modules"])
+AC_CHECK_LIB(pthreads, pthread_create, [LIBS="$LIBS -lpthreads"
+ TARGETS="client server utils serv_modules"])
dnl Checks for header files.
AC_HEADER_DIRENT
AC_CHECK_FUNCS(mkdir mktime rmdir select socket strerror)
AC_SUBST(CURSES)
+AC_SUBST(TARGETS)
AC_CONFIG_HEADER(sysdep.h)
AC_OUTPUT(Makefile)