summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/gmp/gmp/configure.patch
diff options
context:
space:
mode:
authorMarko Lindqvist <cazfi74@gmail.com>2013-01-02 20:37:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-07 11:09:40 +0000
commit9f5e0b8fec193846d531ac59c2f91297325eff6c (patch)
treed142f6a0f75e6aa8cd207022d35a8c08605ea183 /meta/recipes-support/gmp/gmp/configure.patch
parent60284f0ac8f90f891f530d614f3b3f7ccc1288b7 (diff)
downloadpoky-9f5e0b8fec193846d531ac59c2f91297325eff6c.tar.gz
gmp: update to upstream version 5.1.0
New version of configure.patch added for gmp-5.1.0. Old patch moved to gmp-4.2.1 specific directory. gmp_fix_for_automake-1.12.patch part of upstŕeam so removed gmp-5 version, gmp-4.2.1 version remains. (From OE-Core rev: ebd56f6a12c55982467b34b9c4feae03358738fe) Signed-off-by: Marko Lindqvist <cazfi74@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gmp/gmp/configure.patch')
-rw-r--r--meta/recipes-support/gmp/gmp/configure.patch209
1 files changed, 0 insertions, 209 deletions
diff --git a/meta/recipes-support/gmp/gmp/configure.patch b/meta/recipes-support/gmp/gmp/configure.patch
deleted file mode 100644
index 7597a935a2..0000000000
--- a/meta/recipes-support/gmp/gmp/configure.patch
+++ /dev/null
@@ -1,209 +0,0 @@
1Upstream-Status: Pending
2
3 acinclude.m4 | 26 ++++++++++++++------------
4 configure.in | 24 +++++++++---------------
5 2 files changed, 23 insertions(+), 27 deletions(-)
6
7Index: gmp-5.0.3/acinclude.m4
8===================================================================
9--- gmp-5.0.3.orig/acinclude.m4
10+++ gmp-5.0.3/acinclude.m4
11@@ -30,29 +30,29 @@ dnl a_out.exe - OpenVMS DEC C called
12 dnl conftest.exe - various DOS compilers
13
14
15-define(IA64_PATTERN,
16+define([IA64_PATTERN],
17 [[ia64*-*-* | itanium-*-* | itanium2-*-*]])
18
19 dnl Need to be careful not to match m6811, m6812, m68hc11 and m68hc12, all
20 dnl of which config.sub accepts. (Though none of which are likely to work
21 dnl with GMP.)
22 dnl
23-define(M68K_PATTERN,
24+define([M68K_PATTERN],
25 [[m68k-*-* | m68[0-9][0-9][0-9]-*-*]])
26
27-define(POWERPC64_PATTERN,
28+define([POWERPC64_PATTERN],
29 [[powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*]])
30
31-define(S390_PATTERN,
32+define([S390_PATTERN],
33 [[s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-*]])
34
35-define(S390X_PATTERN,
36+define([S390X_PATTERN],
37 [[s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*]])
38
39-define(X86_PATTERN,
40+define([X86_PATTERN],
41 [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*]])
42
43-define(X86_64_PATTERN,
44+define([X86_64_PATTERN],
45 [[athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*]])
46
47 dnl GMP_FAT_SUFFIX(DSTVAR, DIRECTORY)
48@@ -70,7 +70,7 @@ dnl x86 -> x86
49 dnl x86/k6 -> k6
50 dnl x86/k6/mmx -> k6_mmx
51
52-define(GMP_FAT_SUFFIX,
53+define([GMP_FAT_SUFFIX],
54 [[$1=`echo $2 | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`]])
55
56
57@@ -79,7 +79,7 @@ dnl ----------------------------------
58 dnl Emit code to remove any occurrence of ITEM from $LISTVAR. ITEM can be a
59 dnl shell expression like $foo if desired.
60
61-define(GMP_REMOVE_FROM_LIST,
62+define([GMP_REMOVE_FROM_LIST],
63 [remove_from_list_tmp=
64 for remove_from_list_i in $[][$1]; do
65 if test $remove_from_list_i = [$2]; then :;
66@@ -95,12 +95,12 @@ dnl GMP_STRIP_PATH(subdir)
67 dnl ----------------------
68 dnl Strip entries */subdir from $path and $fat_path.
69
70-define(GMP_STRIP_PATH,
71+define([GMP_STRIP_PATH],
72 [GMP_STRIP_PATH_VAR(path, [$1])
73 GMP_STRIP_PATH_VAR(fat_path, [$1])
74 ])
75
76-define(GMP_STRIP_PATH_VAR,
77+define([GMP_STRIP_PATH_VAR],
78 [tmp_path=
79 for i in $[][$1]; do
80 case $i in
81@@ -121,7 +121,7 @@ dnl
82 dnl Dummy value for GMP_LIMB_BITS is enough
83 dnl for all current configure-time uses of gmp.h.
84
85-define(GMP_INCLUDE_GMP_H,
86+define([GMP_INCLUDE_GMP_H],
87 [[#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
88 #define GMP_NAIL_BITS $GMP_NAIL_BITS
89 #define GMP_LIMB_BITS 123
90@@ -136,7 +136,7 @@ dnl Expand at autoconf time to the valu
91 dnl FILE. The regexps here aren't very rugged, but are enough for gmp.
92 dnl /dev/null as a parameter prevents a hang if $2 is accidentally omitted.
93
94-define(GMP_HEADER_GETVAL,
95+define([GMP_HEADER_GETVAL],
96 [patsubst(patsubst(
97 esyscmd([grep "^#define $1 " $2 /dev/null 2>/dev/null]),
98 [^.*$1[ ]+],[]),
99@@ -150,7 +150,7 @@ dnl The gmp version number, extracted f
100 dnl autoconf time. Two digits like 3.0 if patchlevel <= 0, or three digits
101 dnl like 3.0.1 if patchlevel > 0.
102
103-define(GMP_VERSION,
104+define([GMP_VERSION],
105 [GMP_HEADER_GETVAL(__GNU_MP_VERSION,gmp-h.in)[]dnl
106 .GMP_HEADER_GETVAL(__GNU_MP_VERSION_MINOR,gmp-h.in)[]dnl
107 .GMP_HEADER_GETVAL(__GNU_MP_VERSION_PATCHLEVEL,gmp-h.in)])
108@@ -1512,7 +1512,9 @@ esac
109 echo ["define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)"] >>$gmp_tmpconfigm4
110
111 # All CPUs use asm-defs.m4
112-echo ["include][(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')"] >>$gmp_tmpconfigm4i
113+echo -n ["include("] >>$gmp_tmpconfigm4i
114+echo -n ["CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4'"] >>$gmp_tmpconfigm4i
115+echo [")"] >>$gmp_tmpconfigm4i
116 ])
117
118
119Index: gmp-5.0.3/configure.in
120===================================================================
121--- gmp-5.0.3.orig/configure.in
122+++ gmp-5.0.3/configure.in
123@@ -29,12 +29,6 @@ AC_REVISION($Revision$)
124 AC_PREREQ(2.59)
125 AC_INIT(GNU MP, GMP_VERSION, [gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html], gmp)
126 AC_CONFIG_SRCDIR(gmp-impl.h)
127-m4_pattern_forbid([^[ \t]*GMP_])
128-m4_pattern_allow(GMP_LDFLAGS)
129-m4_pattern_allow(GMP_LIMB_BITS)
130-m4_pattern_allow(GMP_MPARAM_H_SUGGEST)
131-m4_pattern_allow(GMP_NAIL_BITS)
132-m4_pattern_allow(GMP_NUMB_BITS)
133
134 # If --target is not used then $target_alias is empty, but if say
135 # "./configure athlon-pc-freebsd3.5" is used, then all three of
136@@ -311,7 +305,7 @@ AH_VERBATIM([HAVE_HOST_CPU_1],
137 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
138 # called. User selections of CC etc are respected.
139 #
140-# Care is taken not to use macros like AC_TRY_COMPILE during the GMP
141+# Care is taken not to use macros like AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[],[]) during the GMP
142 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
143 # them cache their results, which is not wanted.
144 #
145@@ -403,7 +397,7 @@ abilist="standard"
146 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
147 # c89 over cc here. But note that on HP-UX c89 provides a castrated
148 # environment, and would want to be excluded somehow. Maybe
149-# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
150+# already does enough to stick cc into ANSI mode and
151 # we don't need to worry.
152 #
153 cclist="gcc cc"
154@@ -1666,7 +1660,7 @@ esac
155 CFLAGS_or_unset=${CFLAGS-'(unset)'}
156 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
157
158-cat >&AC_FD_CC <<EOF
159+cat >&AS_MESSAGE_LOG_FD() <<EOF
160 User:
161 ABI=$ABI
162 CC=$CC
163@@ -2073,7 +2067,6 @@ AC_SUBST(DEFN_LONG_LONG_LIMB)
164
165 # The C compiler and preprocessor, put into ANSI mode if possible.
166 AC_PROG_CC
167-AC_PROG_CC_STDC
168 AC_PROG_CPP
169 GMP_H_ANSI
170
171@@ -2096,11 +2089,11 @@ AC_SUBST(CCAS)
172
173 # The C++ compiler, if desired.
174 want_cxx=no
175+AC_PROG_CXX
176 if test $enable_cxx != no; then
177 test_CXXFLAGS=${CXXFLAGS+set}
178- AC_PROG_CXX
179
180- echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AC_FD_CC
181+ echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&AS_MESSAGE_LOG_FD()
182 cxxflags_ac_prog_cxx=$CXXFLAGS
183 cxxflags_list=ac_prog_cxx
184
185@@ -2206,7 +2199,7 @@ case $host in
186 esac
187
188
189-cat >&AC_FD_CC <<EOF
190+cat >&AS_MESSAGE_LOG_FD() <<EOF
191 Decided:
192 ABI=$ABI
193 CC=$CC
194@@ -3465,7 +3458,7 @@ GMP_FINISH
195 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
196 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
197
198-AC_OUTPUT(Makefile \
199+AC_CONFIG_FILES([Makefile \
200 mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile \
201 mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile \
202 tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile \
203@@ -3474,4 +3467,5 @@ AC_OUTPUT(Makefile \
204 tests/cxx/Makefile \
205 doc/Makefile tune/Makefile \
206 demos/Makefile demos/calc/Makefile demos/expr/Makefile \
207- gmp.h:gmp-h.in mp.h:mp-h.in)
208+ gmp.h:gmp-h.in mp.h:mp-h.in])
209+AC_OUTPUT