1
- diff -urN libffi.orig/configure libffi/configure
2
- --- libffi.orig/configure 2010-03-19 18:29:54.588499862 +0100
3
- +++ libffi/configure 2010 -03-19 18:32:09.113499479 +0100
4
- @@ -11228,6 +11228,9 @@
5
- i?86-*-solaris2.1[0-9]*)
6
- TARGET=X86_64; TARGETDIR=x86
1
+ diff -r -N -u libffi.orig/autom4te.cache/output.0 libffi/autom4te.cache/output.0
2
+ diff -r -N -u libffi.orig/configure libffi/configure
3
+ --- libffi.orig /configure 2013 -03-17 15:37:50.000000000 -0700
4
+ +++ libffi/configure 2013-03-18 15:11:39.611575163 -0700
5
+ @@ -13368,6 +13368,10 @@
6
+ fi
7
7
;;
8
+
8
9
+ i*86-*-nto-qnx*)
9
10
+ TARGET=X86; TARGETDIR=x86
10
11
+ ;;
11
- i?86-*-*)
12
- TARGET=X86; TARGETDIR=x86
12
+ +
13
+ x86_64-*-darwin*)
14
+ TARGET=X86_DARWIN; TARGETDIR=x86
13
15
;;
14
- @@ -11245 ,12 +11248 ,12 @@
16
+ @@ -13426 ,12 +13430 ,12 @@
15
17
;;
16
18
17
- mips-sgi-irix5.* | mips-sgi-irix6.*)
19
+ mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems* )
18
20
- TARGET=MIPS; TARGETDIR=mips
19
21
+ TARGET=MIPS_IRIX; TARGETDIR=mips
20
22
;;
21
- mips*-*-linux*)
23
+ mips*-*-linux* | mips*-*-openbsd* )
22
24
# Support 128-bit long double for NewABI.
23
25
HAVE_LONG_DOUBLE='defined(__mips64)'
24
26
- TARGET=MIPS; TARGETDIR=mips
25
27
+ TARGET=MIPS_IRIX; TARGETDIR=mips
26
28
;;
27
29
28
30
powerpc*-*-linux* | powerpc-*-sysv*)
29
- @@ -11307 ,7 +11310 ,7 @@
30
- as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
31
+ @@ -13491 ,7 +13495 ,7 @@
32
+ as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
31
33
fi
32
34
33
35
- if test x$TARGET = xMIPS; then
34
36
+ if expr x$TARGET : 'xMIPS' > /dev/null; then
35
37
MIPS_TRUE=
36
38
MIPS_FALSE='#'
37
39
else
38
- @@ -12422 ,6 +12425 ,12 @@
40
+ @@ -14862 ,6 +14866 ,12 @@
39
41
ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
40
42
41
43
@@ -48,61 +50,62 @@ diff -urN libffi.orig/configure libffi/configure
48
50
cat >confcache <<\_ACEOF
49
51
# This file is a shell script that caches the results of configure
50
52
# tests run on this system so they can be shared between configure
51
- @@ -13521 ,6 +13530 ,8 @@
53
+ @@ -16047 ,6 +16057 ,8 @@
52
54
"testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
53
55
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
54
56
"libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
55
57
+ "include/ffi_common.h") CONFIG_LINKS="$CONFIG_LINKS include/ffi_common.h:include/ffi_common.h" ;;
56
58
+ "fficonfig.py") CONFIG_FILES="$CONFIG_FILES fficonfig.py" ;;
57
59
58
- *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
60
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
59
61
esac
60
- diff -urN libffi.orig/configure.ac libffi/configure.ac
61
- --- libffi.orig/configure.ac 2010 -03-19 18:27:44.988498585 +0100
62
- +++ libffi/configure.ac 2010 -03-19 18:31:29.252505178 +0100
62
+ diff -r -N -u libffi.orig/configure.ac libffi/configure.ac
63
+ --- libffi.orig/configure.ac 2013 -03-17 15:37:50.000000000 -0700
64
+ +++ libffi/configure.ac 2013 -03-18 15:11:11.392989136 -0700
63
65
@@ -1,4 +1,7 @@
64
66
dnl Process this with autoconf to create configure
65
67
+ #
66
- + # file from libffi - slightly patched for ctypes
68
+ + # file from libffi - slightly patched for Python's ctypes
67
69
+ #
68
70
69
- AC_PREREQ(2.63 )
71
+ AC_PREREQ(2.68 )
70
72
71
- @@ -91,6 +94,9 @@
72
- i?86-*-solaris2.1[[0-9]]*)
73
- TARGET=X86_64; TARGETDIR=x86
73
+ @@ -146,6 +149,10 @@
74
+ fi
74
75
;;
76
+
75
77
+ i*86-*-nto-qnx*)
76
78
+ TARGET=X86; TARGETDIR=x86
77
79
+ ;;
78
- i?86-*-*)
79
- TARGET=X86; TARGETDIR=x86
80
+ +
81
+ x86_64-*-darwin*)
82
+ TARGET=X86_DARWIN; TARGETDIR=x86
80
83
;;
81
- @@ -108 ,12 +114 ,12 @@
84
+ @@ -204 ,12 +211 ,12 @@
82
85
;;
83
86
84
- mips-sgi-irix5.* | mips-sgi-irix6.*)
87
+ mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems* )
85
88
- TARGET=MIPS; TARGETDIR=mips
86
89
+ TARGET=MIPS_IRIX; TARGETDIR=mips
87
90
;;
88
- mips*-*-linux*)
91
+ mips*-*-linux* | mips*-*-openbsd* )
89
92
# Support 128-bit long double for NewABI.
90
93
HAVE_LONG_DOUBLE='defined(__mips64)'
91
94
- TARGET=MIPS; TARGETDIR=mips
92
95
+ TARGET=MIPS_IRIX; TARGETDIR=mips
93
96
;;
94
97
95
98
powerpc*-*-linux* | powerpc-*-sysv*)
96
- @@ -170 ,7 +176 ,7 @@
99
+ @@ -269 ,7 +276 ,7 @@
97
100
AC_MSG_ERROR(["libffi has not been ported to $host."])
98
101
fi
99
102
100
103
- AM_CONDITIONAL(MIPS, test x$TARGET = xMIPS)
101
104
+ AM_CONDITIONAL(MIPS,[expr x$TARGET : 'xMIPS' > /dev/null])
105
+ AM_CONDITIONAL(BFIN, test x$TARGET = xBFIN)
102
106
AM_CONDITIONAL(SPARC, test x$TARGET = xSPARC)
103
107
AM_CONDITIONAL(X86, test x$TARGET = xX86)
104
- AM_CONDITIONAL(X86_FREEBSD, test x$TARGET = xX86_FREEBSD)
105
- @@ -401,4 +407,8 @@
108
+ @@ -567,4 +574,8 @@
106
109
107
110
AC_CONFIG_FILES(include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc)
108
111
0 commit comments