summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-08-16 15:35:51 +0000
committerBruce Momjian <bruce@momjian.us>2003-08-16 15:35:51 +0000
commitedc999b09a7e217d7fe1199faa5f87f4abacf6b3 (patch)
tree0bcdb3834389114441db4603f297f7048c659a2e /src/template
parentdcfa89537a7d3fbd5117748c266ff86cd8cfb880 (diff)
downloadpostgresql-edc999b09a7e217d7fe1199faa5f87f4abacf6b3.tar.gz
Make NEED_REENTRANT_FUNC_NAMES _require_ *_r functions, and add tests to
configure to report if they are not found.
Diffstat (limited to 'src/template')
-rw-r--r--src/template/bsdi1
-rw-r--r--src/template/freebsd4
-rw-r--r--src/template/linux2
-rw-r--r--src/template/netbsd1
-rw-r--r--src/template/osf3
-rw-r--r--src/template/unixware2
6 files changed, 6 insertions, 7 deletions
diff --git a/src/template/bsdi b/src/template/bsdi
index ec73bc60d0..ab6e92f2f1 100644
--- a/src/template/bsdi
+++ b/src/template/bsdi
@@ -12,4 +12,3 @@ esac
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=no
-
diff --git a/src/template/freebsd b/src/template/freebsd
index f35b76a999..e96e5c2fa5 100644
--- a/src/template/freebsd
+++ b/src/template/freebsd
@@ -5,13 +5,13 @@ case $host_cpu in
esac
SUPPORTS_THREADS=yes
+NEED_REENTRANT_FUNC_NAMES=no
+
case $host_os in
freebsd2*|freebsd3*|freebsd4*)
THREAD_CFLAGS="-pthread"
- NEED_REENTRANT_FUNC_NAMES=yes
;;
*)
THREAD_LIBS="-lc_r"
- NEED_REENTRANT_FUNC_NAMES=yes
;;
esac
diff --git a/src/template/linux b/src/template/linux
index fc5c874d84..070e260a27 100644
--- a/src/template/linux
+++ b/src/template/linux
@@ -1,7 +1,7 @@
CFLAGS=-O2
SUPPORTS_THREADS=yes
+NEED_REENTRANT_FUNC_NAMES=yes
THREAD_CFLAGS="-D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
THREAD_LIBS="-lpthread"
-NEED_REENTRANT_FUNC_NAMES=yes
diff --git a/src/template/netbsd b/src/template/netbsd
index c18fccb9be..9a3869dfe7 100644
--- a/src/template/netbsd
+++ b/src/template/netbsd
@@ -2,4 +2,3 @@ CFLAGS='-O2 -pipe'
SUPPORTS_THREADS=yes
NEED_REENTRANT_FUNC_NAMES=no
-
diff --git a/src/template/osf b/src/template/osf
index 8a65f114c5..a930bf4e08 100644
--- a/src/template/osf
+++ b/src/template/osf
@@ -4,6 +4,7 @@ else
CC="$CC -std"
CFLAGS='-O4 -Olimit 2000'
fi
+
SUPPORTS_THREADS=yes
+NEED_REENTRANT_FUNC_NAMES=no
THREAD_CFLAGS="-pthread"
-
diff --git a/src/template/unixware b/src/template/unixware
index a948761596..d86e346d8d 100644
--- a/src/template/unixware
+++ b/src/template/unixware
@@ -10,5 +10,5 @@ else
fi
SUPPORTS_THREADS=yes
-THREAD_CFLAGS += -D_REENTRANT
NEED_REENTRANT_FUNC_NAMES=yes
+THREAD_CFLAGS += -D_REENTRANT