Skip to content

Commit

Permalink
build: drop obsolete --enable-pthreads configure switch
Browse files Browse the repository at this point in the history
Building without pthreads support hasn't been support for a while.
  • Loading branch information
mbiebl authored and rgerhards committed Dec 13, 2012
1 parent adf7ed2 commit a7dfc4b
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -243,22 +243,7 @@ AM_CONDITIONAL(ENABLE_GSSAPI, test x$enable_gssapi_krb5 = xyes)


# multithreading via pthreads
AC_ARG_ENABLE(pthreads,
[AS_HELP_STRING([--enable-pthreads],[Enable multithreading via pthreads @<:@default=yes@:>@])],
[case "${enableval}" in
yes) enable_pthreads="yes" ;;
no) enable_pthreads="no" ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-pthreads) ;;
esac],
[enable_pthreads=yes]
)

if test "x$enable_pthreads" = "xno"; then
AC_MSG_ERROR(rsyslog v3+ does no longer support single threading mode -- use a previous version for that);
fi

if test "x$enable_pthreads" != "xno"; then
AC_CHECK_HEADERS(
AC_CHECK_HEADERS(
[pthread.h],
[
AC_CHECK_LIB(
Expand All @@ -279,8 +264,7 @@ if test "x$enable_pthreads" != "xno"; then
)
],
[AC_MSG_FAILURE([pthread is missing])]
)
fi
)

AC_CHECK_FUNCS(
[pthread_setschedparam],
Expand Down

0 comments on commit a7dfc4b

Please sign in to comment.