* aclocal.m4: Fixes for building with coop threads in a
[bpt/guile.git] / configure
index 06d1c7d..1579efb 100755 (executable)
--- a/configure
+++ b/configure
@@ -3168,11 +3168,11 @@ test -n "$use_threads" || use_threads=qt
 threads_package=unknown
 if test "$use_threads" != no; then
   if test "$use_threads" = yes || test "$use_threads" = qt; then
-     # Look for qt in source directory.  This is a hack: we look in
-     # "./qt" because this check might be run at the top level.
-     if test -f $srcdir/../qt/qt.c || test -f $srcdir/qt/qt.c; then
+     # Look for qt in source directory. 
+     if test -f $srcdir/qt/qt.c; then
+       qtsrcdir="`(cd $srcdir; pwd)`/qt"
        threads_package=COOP
-       cy_cv_threads_cflags="-I$srcdir/../qt -I../qt"
+       cy_cv_threads_cflags="-I$qtsrcdir -I../qt"
        cy_cv_threads_libs="../qt/libqt.a"
      fi
   else