diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-06-03 07:37:13 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-06-03 07:37:13 (GMT) |
commit | 222c51549308c14bc387087d097081bf71ecf1d5 (patch) | |
tree | 27983f9646a930e2f42d37cf8133a929e7b6bc27 /configure | |
parent | a4136e14b96f67f5f229144b64c6e137713444f8 (diff) | |
download | cpython-222c51549308c14bc387087d097081bf71ecf1d5.zip cpython-222c51549308c14bc387087d097081bf71ecf1d5.tar.gz cpython-222c51549308c14bc387087d097081bf71ecf1d5.tar.bz2 |
Port to OpenBSD 3.9. Patch from Aldo Cortesi.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -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" |