]> granicus.if.org Git - python/commitdiff
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 3 Jun 2006 07:37:13 +0000 (07:37 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 3 Jun 2006 07:37:13 +0000 (07:37 +0000)
Misc/NEWS
configure
configure.in

index d54928e3b7857b9a106816143b202aeaf5b218ae..86967844e2e8de1f6d4d13c874a6522a57ea8280 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -149,6 +149,8 @@ Library
 Build
 -----
 
+- OpenBSD 3.9 is supported now.
+
 - Patch #1492356: Port to Windows CE.
 
 - Bug/Patch #1481770: Use .so extension for shared libraries on HP-UX for ia64.
index 02ab57a214df8264023c2a6844a5c6d2338c58ac..9404d5facb8b6c95b9bcd7494cc6af8e19da1a5b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 46046 .
+# From configure.in Revision: 46295 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.5.
 #
@@ -1529,7 +1529,7 @@ case $ac_sys_system/$ac_sys_release in
   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   # even though select is a POSIX function. Reported by J. Ribbens.
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
-  OpenBSD/2.* | OpenBSD/3.[012345678])
+  OpenBSD/2.* | OpenBSD/3.[0123456789])
     define_xopen_source=no;;
   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
   # of union __?sigval. Reported by Stuart Bishop.
@@ -10990,13 +10990,27 @@ then
                ;;
        Linux*|GNU*) LDSHARED='$(CC) -shared';;
        BSD/OS*/4*) LDSHARED="gcc -shared";;
-       OpenBSD*|FreeBSD*)
+       FreeBSD*)
                if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
                then
                        LDSHARED="$CC -shared ${LDFLAGS}"
                else
                        LDSHARED="ld -Bshareable ${LDFLAGS}"
                fi;;
+       OpenBSD*)
+               if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
+               then
+                               LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
+               else
+                               case `uname -r` in
+                               [01].* | 2.[0-7] | 2.[0-7].*)
+                                  LDSHARED="ld -Bshareable ${LDFLAGS}"
+                                  ;;
+                               *)
+                                  LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
+                                  ;;
+                               esac
+               fi;;
        NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
        OpenUNIX*|UnixWare*)
                if test "$GCC" = "yes"
index 010844e440fc7f59b003be9d43838ae922ffac74..b3a5ae2073d86ce6614a9de2da1b9979c16da360 100644 (file)
@@ -177,7 +177,7 @@ case $ac_sys_system/$ac_sys_release in
   # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
   # even though select is a POSIX function. Reported by J. Ribbens.
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
-  OpenBSD/2.* | OpenBSD/3.@<:@012345678@:>@) 
+  OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@) 
     define_xopen_source=no;;
   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
   # of union __?sigval. Reported by Stuart Bishop.
@@ -1474,13 +1474,27 @@ then
                ;;
        Linux*|GNU*) LDSHARED='$(CC) -shared';;
        BSD/OS*/4*) LDSHARED="gcc -shared";;
-       OpenBSD*|FreeBSD*)
+       FreeBSD*)
                if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
                then
                        LDSHARED="$CC -shared ${LDFLAGS}"
                else
                        LDSHARED="ld -Bshareable ${LDFLAGS}"
                fi;;
+       OpenBSD*)
+               if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
+               then
+                               LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
+               else
+                               case `uname -r` in
+                               [[01]].* | 2.[[0-7]] | 2.[[0-7]].*)
+                                  LDSHARED="ld -Bshareable ${LDFLAGS}"
+                                  ;;
+                               *)
+                                  LDSHARED='$(CC) -shared $(CCSHARED) ${LDFLAGS}'
+                                  ;;
+                               esac
+               fi;;
        NetBSD*|DragonFly*) LDSHARED="cc -shared ${LDFLAGS}";;
        OpenUNIX*|UnixWare*)
                if test "$GCC" = "yes"