Skip to content

Commit 0bc2246

Browse files
committed
autoconf: Don't use generated file as sentinel
`autoreconf` generates `pyconfig.h.in` so it shouldn't be used to sanity check the presence of the CPython source.
1 parent e3aa23c commit 0bc2246

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoconf/entry.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ AUTOCONF=$BIN/autoconf
88
AUTORECONF=$BIN/autoreconf
99

1010
if [ "$#" = "0" ]; then
11-
SENTINEL=/src/pyconfig.h.in
11+
# This is the same sentinel used for AC_CONFIG_SRCDIR in CPython's
12+
# configure.ac.
13+
SENTINEL=/src/Include/object.h
1214

1315
if [ ! -e ${SENTINEL} ]; then
1416
echo "ERROR: ${SENTINEL} not found "
@@ -24,4 +26,3 @@ if [ "$#" = "0" ]; then
2426
fi
2527

2628
exec "$@"
27-

0 commit comments

Comments
 (0)