SysV/m68k, which NetBSD and OpenBSD follow). Add m88k/ELF support. Add vax/a.out support. All tests from the libffi.call dejagnu testsuite pass on these three platforms. ok jasper@
128 lines
3.5 KiB
Plaintext
128 lines
3.5 KiB
Plaintext
$OpenBSD: patch-configure,v 1.5 2013/05/01 10:11:54 miod Exp $
|
|
|
|
Enable libffi on hppa, m88k, mips64(el), powerpc and vax platforms.
|
|
|
|
--- configure.orig Thu Dec 31 12:41:51 2009
|
|
+++ configure Wed Apr 24 15:46:57 2013
|
|
@@ -807,6 +807,8 @@ SH_FALSE
|
|
SH_TRUE
|
|
X86_64_FALSE
|
|
X86_64_TRUE
|
|
+VAX_FALSE
|
|
+VAX_TRUE
|
|
S390_FALSE
|
|
S390_TRUE
|
|
FRV_FALSE
|
|
@@ -825,6 +827,8 @@ POWERPC_AIX_FALSE
|
|
POWERPC_AIX_TRUE
|
|
POWERPC_FALSE
|
|
POWERPC_TRUE
|
|
+M88K_FALSE
|
|
+M88K_TRUE
|
|
M68K_FALSE
|
|
M68K_TRUE
|
|
M32R_FALSE
|
|
@@ -12167,7 +12171,7 @@ case "$host" in
|
|
TARGET=FRV; TARGETDIR=frv
|
|
;;
|
|
|
|
- hppa*-*-linux* | parisc*-*-linux*)
|
|
+ hppa*-*-linux* | hppa*-*-openbsd* | parisc*-*-linux*)
|
|
TARGET=PA_LINUX; TARGETDIR=pa
|
|
;;
|
|
hppa*64-*-hpux*)
|
|
@@ -12207,10 +12211,14 @@ case "$host" in
|
|
TARGET=M68K; TARGETDIR=m68k
|
|
;;
|
|
|
|
+ m88k-*-openbsd*)
|
|
+ TARGET=M88K; TARGETDIR=m88k
|
|
+ ;;
|
|
+
|
|
mips-sgi-irix5.* | mips-sgi-irix6.*)
|
|
TARGET=MIPS; TARGETDIR=mips
|
|
;;
|
|
- mips*-*-linux*)
|
|
+ mips*-*-linux* | mips*-*-openbsd*)
|
|
# Support 128-bit long double for NewABI.
|
|
HAVE_LONG_DOUBLE='defined(__mips64)'
|
|
TARGET=MIPS; TARGETDIR=mips
|
|
@@ -12228,7 +12236,7 @@ case "$host" in
|
|
powerpc-*-aix* | rs6000-*-aix*)
|
|
TARGET=POWERPC_AIX; TARGETDIR=powerpc
|
|
;;
|
|
- powerpc-*-freebsd*)
|
|
+ powerpc-*-freebsd* | powerpc-*-openbsd*)
|
|
TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
|
|
;;
|
|
powerpc*-*-rtems*)
|
|
@@ -12250,6 +12258,10 @@ case "$host" in
|
|
TARGET=SPARC; TARGETDIR=sparc
|
|
;;
|
|
|
|
+ vax-*-openbsd*)
|
|
+ TARGET=VAX; TARGETDIR=vax
|
|
+ ;;
|
|
+
|
|
x86_64-*-darwin*)
|
|
TARGET=X86_DARWIN; TARGETDIR=x86
|
|
;;
|
|
@@ -12360,6 +12372,14 @@ else
|
|
M68K_FALSE=
|
|
fi
|
|
|
|
+ if test x$TARGET = xM88K; then
|
|
+ M88K_TRUE=
|
|
+ M88K_FALSE='#'
|
|
+else
|
|
+ M88K_TRUE='#'
|
|
+ M88K_FALSE=
|
|
+fi
|
|
+
|
|
if test x$TARGET = xPOWERPC; then
|
|
POWERPC_TRUE=
|
|
POWERPC_FALSE='#'
|
|
@@ -12432,6 +12452,14 @@ else
|
|
S390_FALSE=
|
|
fi
|
|
|
|
+ if test x$TARGET = xVAX; then
|
|
+ VAX_TRUE=
|
|
+ VAX_FALSE='#'
|
|
+else
|
|
+ VAX_TRUE='#'
|
|
+ VAX_FALSE=
|
|
+fi
|
|
+
|
|
if test x$TARGET = xX86_64; then
|
|
X86_64_TRUE=
|
|
X86_64_FALSE='#'
|
|
@@ -14887,6 +14915,13 @@ $as_echo "$as_me: error: conditional \"M68K\" was neve
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|
|
+if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
|
|
+ { { $as_echo "$as_me:$LINENO: error: conditional \"M88K\" was never defined.
|
|
+Usually this means the macro was only invoked conditionally." >&5
|
|
+$as_echo "$as_me: error: conditional \"M88K\" was never defined.
|
|
+Usually this means the macro was only invoked conditionally." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+fi
|
|
if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
|
|
{ { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." >&5
|
|
@@ -14947,6 +14982,13 @@ if test -z "${S390_TRUE}" && test -z "${S390_FALSE}";
|
|
{ { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." >&5
|
|
$as_echo "$as_me: error: conditional \"S390\" was never defined.
|
|
+Usually this means the macro was only invoked conditionally." >&2;}
|
|
+ { (exit 1); exit 1; }; }
|
|
+fi
|
|
+if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
|
|
+ { { $as_echo "$as_me:$LINENO: error: conditional \"VAX\" was never defined.
|
|
+Usually this means the macro was only invoked conditionally." >&5
|
|
+$as_echo "$as_me: error: conditional \"VAX\" was never defined.
|
|
Usually this means the macro was only invoked conditionally." >&2;}
|
|
{ (exit 1); exit 1; }; }
|
|
fi
|