diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-12-02 13:02:32 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-12-02 13:02:32 (GMT) |
commit | 06f15bbcc42941e315aec086c4b238eb49cd25e3 (patch) | |
tree | 377ffe621182c1e48cf6c6683fd5abe7fee0bbc0 | |
parent | b3cfc1d7eab506cbdd6c579b12e0f2f265f5f2c5 (diff) | |
download | cpython-06f15bbcc42941e315aec086c4b238eb49cd25e3.zip cpython-06f15bbcc42941e315aec086c4b238eb49cd25e3.tar.gz cpython-06f15bbcc42941e315aec086c4b238eb49cd25e3.tar.bz2 |
Compute thread headers through shell expansion in configure.
Fixes #485679.
-rw-r--r-- | Makefile.pre.in | 2 | ||||
-rwxr-xr-x | configure | 12 | ||||
-rw-r--r-- | configure.in | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index bc1e151..a9528a6 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -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 @@ -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 diff --git a/configure.in b/configure.in index 349042b..adfb2fd 100644 --- a/configure.in +++ b/configure.in @@ -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) |