@@ -3903,41 +3903,24 @@ echo "$as_me: error: pthread.h not found, required for --with-threads" >&2;}
3903
3903
fi
3904
3904
3905
3905
3906
- case $host_os in
3907
- netbsd* |bsdi* )
3908
- # these require no special flags or libraries
3909
- NEED_REENTRANT_FUNC_NAMES=no
3910
- ;;
3911
- freebsd2* |freebsd3* |freebsd4* )
3912
- THREAD_CFLAGS=" -pthread"
3913
- NEED_REENTRANT_FUNC_NAMES=yes
3914
- ;;
3915
- freebsd* )
3916
- THREAD_LIBS=" -lc_r"
3917
- NEED_REENTRANT_FUNC_NAMES=yes
3918
- ;;
3919
- linux* ) THREAD_CFLAGS=" -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
3920
- THREAD_LIBS=" -lpthread"
3921
- NEED_REENTRANT_FUNC_NAMES=yes
3922
- ;;
3923
- * )
3924
- # other operating systems might fail because they have pthread.h but need
3925
- # special libs we don't know about yet.
3926
- { { echo " $as_me :$LINENO : error:
3906
+
3907
+ if test " $SUPPORTS_THREADS " ! = yes; then
3908
+ { { echo " $as_me :$LINENO : error:
3927
3909
Cannot enable threads on your platform.
3928
3910
Please report your platform threading info to the PostgreSQL mailing lists
3929
- so it can be added to the next release. Report any compile or link flags,
3930
- or libraries required for threading support.
3911
+ so it can be added to the next release. Report any compile flags, link flags,
3912
+ functions, or libraries required for threading support.
3931
3913
" >&5
3932
3914
echo " $as_me : error:
3933
3915
Cannot enable threads on your platform.
3934
3916
Please report your platform threading info to the PostgreSQL mailing lists
3935
- so it can be added to the next release. Report any compile or link flags,
3936
- or libraries required for threading support.
3917
+ so it can be added to the next release. Report any compile flags, link flags,
3918
+ functions, or libraries required for threading support.
3937
3919
" >&2 ; }
3938
3920
{ (exit 1); exit 1; }; }
3939
- esac
3940
3921
fi
3922
+ fi
3923
+
3941
3924
3942
3925
3943
3926
0 commit comments