summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2002-09-09 12:10:00 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2002-09-09 12:10:00 (GMT)
commit4013cbd06becfbfbb63b9b524e5c41513f497929 (patch)
treeef21a20aa0e2acc1041b081ca7bf4bbb80d77cff
parent2412853f8e65f7c4359ebf59902ad2553589b908 (diff)
downloadcpython-4013cbd06becfbfbb63b9b524e5c41513f497929.zip
cpython-4013cbd06becfbfbb63b9b524e5c41513f497929.tar.gz
cpython-4013cbd06becfbfbb63b9b524e5c41513f497929.tar.bz2
Include an empty body when checking for a header file
(Bugfix candidate for 2.2, and likely 2.1 as well)
-rw-r--r--Lib/distutils/command/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/command/config.py b/Lib/distutils/command/config.py
index d74aa6a..88b1586 100644
--- a/Lib/distutils/command/config.py
+++ b/Lib/distutils/command/config.py
@@ -346,7 +346,8 @@ class config (Command):
exists and can be found by the preprocessor; return true if so,
false otherwise.
"""
- return self.try_cpp(headers=[header], include_dirs=include_dirs)
+ return self.try_cpp(body="/* No body */", headers=[header],
+ include_dirs=include_dirs)
# class config