Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 75a5cbf

Browse files
committed
Enable thread testing outside the source tree.
1 parent e27338f commit 75a5cbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17904,7 +17904,7 @@ else
1790417904
cat >conftest.$ac_ext <<_ACEOF
1790517905
#line $LINENO "configure"
1790617906
#include "confdefs.h"
17907-
#include "src/tools/thread/thread_test.c"
17907+
#include "$srcdir/src/tools/thread/thread_test.c"
1790817908
_ACEOF
1790917909
rm -f conftest$ac_exeext
1791017910
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dnl Process this file with autoconf to produce a configure script.
2-
dnl $PostgreSQL: pgsql/configure.in,v 1.337 2004/04/27 19:51:12 momjian Exp $
2+
dnl $PostgreSQL: pgsql/configure.in,v 1.338 2004/04/27 20:06:52 momjian Exp $
33
dnl
44
dnl Developers, please strive to achieve this order:
55
dnl
@@ -1188,7 +1188,7 @@ _CFLAGS="$CFLAGS"
11881188
_LIBS="$LIBS"
11891189
CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
11901190
LIBS="$LIBS $PTHREAD_LIBS"
1191-
AC_TRY_RUN([#include "src/tools/thread/thread_test.c"],
1191+
AC_TRY_RUN([#include "$srcdir/src/tools/thread/thread_test.c"],
11921192
[AC_MSG_RESULT(yes)],
11931193
[AC_MSG_RESULT(no)
11941194
AC_MSG_ERROR([Thread test program failed. Your platform is not thread-safe. See 'config.log])],

0 commit comments

Comments
 (0)