blob: 3bc4dea4baacd2111599dbe274ba6ffae0a9a849 (
plain) (
blame)
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
31
32
33
34
35
|
--- samples/runConfigure.orig Mon May 12 09:44:18 2003
+++ samples/runConfigure Tue Feb 17 20:26:46 2004
@@ -262,8 +262,13 @@ else
;;
esac
elif test $platform = "freebsd"; then
- threadingLibs="-pthread -lc_r"
- threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
+ if test -n "${PTHREAD_LIBS}" ; then
+ threadingLibs="${PTHREAD_LIBS}"
+ threadingDefines="${PTHREAD_CFLAGS} -DXML_USE_PTHREADS"
+ else
+ threadingLibs="-lpthread"
+ threadingDefines="-DXML_USE_PTHREADS"
+ fi
elif test $platform = "netbsd"; then
threadingLibs="-pthread"
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
--- src/xercesc/runConfigure.orig Tue Feb 17 20:05:09 2004
+++ src/xercesc/runConfigure Tue Feb 17 20:27:13 2004
@@ -303,8 +303,13 @@ else
;;
esac
elif test $platform = "freebsd"; then
- threadingLibs="-pthread -lc_r"
+ if test -n "${PTHREAD_LIBS}" ; then
+ threadingLibs="${PTHREAD_LIBS}"
+ threadingDefines="${PTHREAD_CFLAGS} -DXML_USE_PTHREADS"
+ else
+ threadingLibs="-lpthread"
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
+ fi
elif test $platform = "netbsd"; then
threadingLibs="-pthread -lpthread"
threadingDefines="-D_THREAD_SAFE -DXML_USE_PTHREADS"
|