]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
FreeBSD 4.8 and MacOS X 10.2 have a broken ncurses.h - if you don't
authorAnthony Baxter <anthonybaxter@gmail.com>
Sat, 4 Oct 2003 07:56:14 +0000 (07:56 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Sat, 4 Oct 2003 07:56:14 +0000 (07:56 +0000)
define _XOPEN_EXTENDED_SOURCE, the bug isn't triggered. Testing on
FreeBSD shows that nothing is broken by this change.

configure
configure.in

index 4d3987b8072c0758f73864cd3632e83a9d0f48e1..97f3966c6ae675166557b1ac11e4cdb78cadc59d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.427.4.6 .
+# From configure.in Revision: 1.427.4.7 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.57 for python 2.3.
 #
@@ -1452,6 +1452,12 @@ case $ac_sys_system/$ac_sys_release in
   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
   SCO_SV/3.2)
     define_xopen_source=no;;
+  # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
+  # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
+  # this is fixed in 10.3, which identifies itself as Darwin/7.*
+  # This should hopefully be fixed in FreeBSD 4.9
+  FreeBSD/4.8* | Darwin/6* )
+    define_xopen_source=no;;
 esac
 
 if test $define_xopen_source = yes
index 2b49449021c377d8abc8445b0489fad463dc3779..e4b02a928e7a0ee7b7b1e6119385cbaaafef0104 100644 (file)
@@ -150,6 +150,12 @@ case $ac_sys_system/$ac_sys_release in
   # but used in struct sockaddr.sa_family. Reported by Tim Rice.
   SCO_SV/3.2)
     define_xopen_source=no;;
+  # On FreeBSD 4.8 and MacOS X 10.2, a bug in ncurses.h means that
+  # it craps out if _XOPEN_EXTENDED_SOURCE is defined. Apparently,
+  # this is fixed in 10.3, which identifies itself as Darwin/7.*
+  # This should hopefully be fixed in FreeBSD 4.9
+  FreeBSD/4.8* | Darwin/6* )
+    define_xopen_source=no;;
 esac
 
 if test $define_xopen_source = yes