* ipc_c_tcp.c: fix DEC compiler warning wrt unsigned char
* stats.c: add semicolon to placate DREC compiler
* user_ops.c: define _POSIX_C_SOURCE, include <limits.h>
+ * configure.in: pass -pthread to DEC compiler, don't check for
+ libpthread[s] on DEC Unix
1998-09-30 Nathan Bryant <bryant@cs.usm.maine.edu>
* Makefile.in: new variable PTHREAD_DEFS for portability
AC_DEFINE(ANSI_COLOR)
fi])
+TARGETS=client
+
AC_CANONICAL_HOST
case "$host" in
alpha*-dec-osf*)
if test -z "$CC"; then
CC=cc
fi
+ SERVER_LDFLAGS=-pthread
+ TARGETS="client server utils serv_modules"
;;
esac
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, [LIBS="$LIBS -lpthread"
- TARGETS="client server utils serv_modules"])
-AC_CHECK_LIB(pthreads, pthread_create, [LIBS="$LIBS -lpthreads"
- TARGETS="client server utils serv_modules"])
+if test "$SERVER_LDFLAGS" != -pthread; then
+ 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"])
+fi
dnl Checks for header files.
AC_HEADER_DIRENT