summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-09-18 10:07:03 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-09-18 10:07:03 (GMT)
commit5d52e781d9c2b11ce5a1296a1f9e10e3fac99b54 (patch)
tree8ba5798471bf4e6ccedc2621f24cab144c1f2584 /configure.in
parentae2830c55cbc630cd639ae0127a59fc7bad4495f (diff)
downloadcpython-5d52e781d9c2b11ce5a1296a1f9e10e3fac99b54.zip
cpython-5d52e781d9c2b11ce5a1296a1f9e10e3fac99b54.tar.gz
cpython-5d52e781d9c2b11ce5a1296a1f9e10e3fac99b54.tar.bz2
Make curses.h inclusion conditional as in the original patch #1012280.
Backported to 2.3.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 5c9fa3d..f5f4ffc 100644
--- a/configure.in
+++ b/configure.in
@@ -968,7 +968,11 @@ AC_HEADER_DIRENT
AC_HEADER_MAJOR
# On Solaris, term.h requires curses.h
-AC_CHECK_HEADERS(term.h,,,[#include <curses.h>])
+AC_CHECK_HEADER(term.h,,,[
+#ifdef HAVE_CURSES_H
+#include <curses.h>
+#endif
+])
# checks for typedefs
was_it_defined=no