Commit 5efe9185 5efe9185dca5569c4a08e0483c1ee8de4b30c1ff by Jeff Bailey

Add --disable-pthread flag to configure

1 parent 4e0e1389
......@@ -18,11 +18,23 @@ AC_ARG_ENABLE(pam,
*) AC_MSG_ERROR(bad value ${enableval} for --disable-pam) ;;
esac],[testpam=yes])
AC_ARG_ENABLE(pthread,
[ --disable-pthread disable pthread],
[case "${enableval}" in
yes) usepthread=yes ;;
no) usepthread=no ;;
*) AC_MSG_ERROR(bad value ${enableval} for --disable-pthread) ;;
esac],[usepthread=yes])
if test x"$usepthread" = x"yes"; then
AC_CHECK_HEADERS(pthread.h)
fi
dnl Check for headers
AC_HEADER_STDC
AC_HEADER_DIRENT
AM_C_PROTOTYPES
AC_CHECK_HEADERS(errno.h fcntl.h inttypes.h limits.h malloc.h pthread.h \
AC_CHECK_HEADERS(errno.h fcntl.h inttypes.h limits.h malloc.h \
paths.h shadow.h stdio.h stdlib.h string.h strings.h sys/file.h syslog.h \
unistd.h)
......