openbsd-ports/lang/ocaml/patches/patch-configure
avsm 25c5604b41 update ocaml to 3.11.0
tested by krw@ and Richard Bonichon <richard.bonichon@gmail.com>
2009-03-11 21:19:49 +00:00

42 lines
1.9 KiB
Plaintext

$OpenBSD: patch-configure,v 1.11 2009/03/11 21:19:49 avsm Exp $
--- configure.orig Wed Dec 10 09:41:04 2008
+++ configure Wed Dec 10 09:50:14 2008
@@ -635,9 +635,12 @@ case "$host" in
powerpc-*-netbsd*) arch=power; model=ppc; system=elf;;
powerpc-*-rhapsody*) arch=power; model=ppc; system=rhapsody;;
powerpc-*-darwin*) arch=power; system=rhapsody
- if $arch64; then model=ppc64; else model=ppc; fi;;
+ if $arch64; then model=ppc64; else
+ model=ppc; fi;;
+ powerpc-*-openbsd*) arch=power; model=ppc; system=bsd;;
arm*-*-linux*) arch=arm; system=linux;;
arm*-*-gnu*) arch=arm; system=gnu;;
+ zaurus*-*-openbsd*) arch=arm; system=openbsd;;
ia64-*-linux*) arch=ia64; system=linux;;
ia64-*-gnu*) arch=ia64; system=gnu;;
ia64-*-freebsd*) arch=ia64; system=freebsd;;
@@ -647,6 +650,7 @@ case "$host" in
x86_64-*-netbsd*) arch=amd64; system=netbsd;;
x86_64-*-openbsd*) arch=amd64; system=openbsd;;
x86_64-*-darwin9.5) arch=amd64; system=macosx;;
+ amd64-*-openbsd*) arch=amd64; system=openbsd;;
esac
# Some platforms exist both in 32-bit and 64-bit variants, not distinguished
@@ -734,11 +738,15 @@ if test -n "$asppoption"; then aspp="$asppoption"; fi
cc_profile='-pg'
case "$arch,$model,$system" in
alpha,*,digital) profiling='prof';;
+ alpha,*,openbsd) profiling='prof';;
i386,*,linux_elf) profiling='prof';;
i386,*,gnu) profiling='prof';;
i386,*,bsd_elf) profiling='prof';;
amd64,*,macosx) profiling='prof';;
i386,*,macosx) profiling='prof';;
+ amd64,*,openbsd) profiling='prof';;
+ power,*,bsd) profiling='prof';;
+ sparc,*,bsd) profiling='prof';;
sparc,*,solaris)
profiling='prof'
case "$nativecc" in gcc*) ;; *) cc_profile='-xpg';; esac;;