blob: 5dc152215c64045d19e62c5195bef2022005350c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#! /bin/sh
# /*@@
# @file setup.sh
# @date Wed Oct 25 16:32:39 2000
# @author Tom Goodale
# @desc
# Setup for compilation with pthreads
# @enddesc
# @@*/
if test "X$PTHREADS" = "Xyes"; then
echo "Configuring with PTHREADS"
# Write the data out to the header and make files.
CCTK_WriteLine cctk_Extradefs.h "#define CCTK_PTHREADS 1"
# the PTHREADS_DEFINE variable is set by configure
if test "X$PTHREADS_DEFINE" != "X"; then
CCTK_WriteLine cctk_Extradefs.h "#define $PTHREADS_DEFINE 1"
fi
# the PTHREAD_LIBS variable is set by configure
CCTK_WriteLine make.extra.defn "PTHREADS_LIBS = $PTHREAD_LIBS"
CCTK_WriteLine make.extra.defn ""
CCTK_WriteLine make.extra.defn 'LIBS += $(PTHREADS_LIBS)'
fi # if PTHREADS
|