]> SALOME platform Git repositories - modules/kernel.git/blob - salome_adm/unix/config_files/enable_pthreads.m4
Salome HOME
6c1073b0a9dab6ad9098226d40c0c432a60ac61e
[modules/kernel.git] / salome_adm / unix / config_files / enable_pthreads.m4
1 dnl@synopsis ENABLE_PTHREADS
2 dnl
3 dnl modify CFLAGS, CXXFLAGS and LIBS for compiling pthread-based programs.
4 dnl
5 dnl@author  (C) Ruslan Shevchenko <Ruslan@Shevchenko.Kiev.UA>, 1998, 2000
6 dnl@id  $Id$
7 dnl
8 dnl
9 AC_DEFUN([ENABLE_PTHREADS],[
10 AC_REQUIRE([CHECK_PTHREADS])
11
12 if test -z "$enable_pthreads_done"
13 then
14  CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
15  CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
16  LIBS="$LIBS $LIBS_PTHREADS"
17 fi
18 enable_pthreads_done=yes
19 ])dnl
20 dnl