From baee5f75c5ab2dbd8ae0e84c7172ee0021d0996c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 23 Dec 2003 18:40:53 +0000 Subject: Push responsibility for selecting out-of-line-assembler TAS code out to the platform template files, instead of doing it directly in configure.in. This seems cleaner, and also opens the door to making the choice be dependent on the compiler being used. --- src/template/hpux | 5 +++++ src/template/solaris | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'src') diff --git a/src/template/hpux b/src/template/hpux index 28d836e0120..154b5743aa8 100644 --- a/src/template/hpux +++ b/src/template/hpux @@ -4,3 +4,8 @@ if test "$GCC" != yes ; then CC="$CC -Ae" CFLAGS="+O2" fi + +# Pick right test-and-set (TAS) code. +case $host in + hppa*-*-hpux*) need_tas=yes; tas_file=hpux_hppa.s ;; +esac diff --git a/src/template/solaris b/src/template/solaris index 7609d0e2cbd..7338878e835 100644 --- a/src/template/solaris +++ b/src/template/solaris @@ -3,6 +3,12 @@ if test "$GCC" != yes ; then CFLAGS="-O -v" # -v is like gcc -Wall fi +# Pick right test-and-set (TAS) code. +case $host in + sparc-*-solaris*) need_tas=yes; tas_file=solaris_sparc.s ;; + i?86-*-solaris*) need_tas=yes; tas_file=solaris_i386.s ;; +esac + THREAD_SUPPORT=yes NEED_REENTRANT_FUNCS=yes # 5.6 2003-09-13 THREAD_LIBS="-pthread" -- cgit v1.2.3