]> granicus.if.org Git - python/commitdiff
Compute thread headers through shell expansion in configure.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 2 Dec 2001 13:02:32 +0000 (13:02 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 2 Dec 2001 13:02:32 +0000 (13:02 +0000)
Fixes #485679.

Makefile.pre.in
configure
configure.in

index bc1e1513919f03849a6675185950717b5438311d..a9528a63f798beac7a07d9851ab0b404f44804a7 100644 (file)
@@ -894,6 +894,6 @@ funny:
 
 # Dependencies
 
-Python/thread.o: $(srcdir)/Python/thread_*.h
+Python/thread.o: @THREADHEADERS@
 
 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
index a20911b343ca41184dd4b1cc25382912caf02b66..85aca3e96280c18bde5dadd7f9161f1f953b1881 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
 #! /bin/sh
 
-# From configure.in Revision: 1.281 
+# From configure.in Revision: 1.282 
 
 # Guess values for system-dependent variables and create Makefiles.
 # Generated automatically using autoconf version 2.13 
@@ -7513,9 +7513,16 @@ done
 #fi
 
 
+
+for h in `(cd $srcdir;echo Python/thread_*.h)`
+do
+  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
+done
+
+
 SRCDIRS="Parser Grammar Objects Python Modules"
 echo $ac_n "checking for build directories""... $ac_c" 1>&6
-echo "configure:7519: checking for build directories" >&5
+echo "configure:7526: checking for build directories" >&5
 for dir in $SRCDIRS; do
     if test ! -d $dir; then
         mkdir $dir
@@ -7706,6 +7713,7 @@ s%@HAVE_GETHOSTBYNAME@%$HAVE_GETHOSTBYNAME%g
 s%@LIBM@%$LIBM%g
 s%@LIBC@%$LIBC%g
 s%@UNICODE_OBJS@%$UNICODE_OBJS%g
+s%@THREADHEADERS@%$THREADHEADERS%g
 s%@SRCDIRS@%$SRCDIRS%g
 
 CEOF
index 349042b49dd61d6f1f5feb5a4df2358eba7b45c0..adfb2fd39c7a3931aa23c5f28c21daaccdf02cdc 100644 (file)
@@ -2018,6 +2018,13 @@ done
 #    AC_MSG_RESULT(already exists)
 #fi
 
+AC_SUBST(THREADHEADERS)
+
+for h in `(cd $srcdir;echo Python/thread_*.h)`
+do
+  THREADHEADERS="$THREADHEADERS \$(srcdir)/$h"
+done
+
 AC_SUBST(SRCDIRS)
 SRCDIRS="Parser Grammar Objects Python Modules"
 AC_MSG_CHECKING(for build directories)