1 dnl@synopsis RSSH_ENABLE_PTHREADS
3 dnl modify CFLAGS, CXXFLAGS and LIBS for compiling pthread-based programs.
5 dnl@author (C) Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>, 1998, 2000
6 dnl@id $Id: RSSH_ENABLE_PTHREADS.m4,v 1.7 2001/03/28 12:20:12 rssh Exp $
9 AC_DEFUN([RSSH_ENABLE_PTHREADS],[
10 AC_REQUIRE([RSSH_CHECK_PTHREADS])
12 if test -z "$rssh_enable_pthreads_done"
14 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
15 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
16 LIBS="$LIBS $LIBS_PTHREADS"
18 rssh_enable_pthreads_done=yes
20 rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="