fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / coinmp / macosx.build.patch.1
blob81308366abca3009d754b5485a4ef05debce21bc
1 --- coinmp/BuildTools/config.guess
2 +++ coinmp/BuildTools/config.guess
3 @@ -1232,9 +1232,31 @@
4         exit ;;
5      *:Darwin:*:*)
6         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
7 +       eval $set_cc_for_build
8 +       if test "$UNAME_PROCESSOR" = unknown ; then
9 +           UNAME_PROCESSOR=powerpc
10 +       fi
11 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
12 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
13 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
14 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
15 +                   grep IS_64BIT_ARCH >/dev/null
16 +               then
17         case $UNAME_PROCESSOR in
18 -           unknown) UNAME_PROCESSOR=powerpc ;;
19 +                       i386) UNAME_PROCESSOR=x86_64 ;;
20 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
21         esac
22 +               fi
23 +           fi
24 +       elif test "$UNAME_PROCESSOR" = i386 ; then
25 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
26 +           # that puts up a graphical alert prompting to install
27 +           # developer tools.  Any system running Mac OS X 10.7 or
28 +           # later (Darwin 11 and later) is required to have a 64-bit
29 +           # processor. This is not true of the ARM version of Darwin
30 +           # that Apple uses in portable devices.
31 +           UNAME_PROCESSOR=x86_64
32 +       fi
33         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
34         exit ;;
35      *:procnto*:*:* | *:QNX:[0123456789]*:*)
36 --- coinmp/Cbc/config.guess
37 +++ coinmp/Cbc/config.guess
38 @@ -1232,9 +1232,31 @@
39         exit ;;
40      *:Darwin:*:*)
41         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
42 +       eval $set_cc_for_build
43 +       if test "$UNAME_PROCESSOR" = unknown ; then
44 +           UNAME_PROCESSOR=powerpc
45 +       fi
46 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
47 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
48 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
49 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
50 +                   grep IS_64BIT_ARCH >/dev/null
51 +               then
52         case $UNAME_PROCESSOR in
53 -           unknown) UNAME_PROCESSOR=powerpc ;;
54 +                       i386) UNAME_PROCESSOR=x86_64 ;;
55 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
56         esac
57 +               fi
58 +           fi
59 +       elif test "$UNAME_PROCESSOR" = i386 ; then
60 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
61 +           # that puts up a graphical alert prompting to install
62 +           # developer tools.  Any system running Mac OS X 10.7 or
63 +           # later (Darwin 11 and later) is required to have a 64-bit
64 +           # processor. This is not true of the ARM version of Darwin
65 +           # that Apple uses in portable devices.
66 +           UNAME_PROCESSOR=x86_64
67 +       fi
68         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
69         exit ;;
70      *:procnto*:*:* | *:QNX:[0123456789]*:*)
71 --- coinmp/Cgl/config.guess
72 +++ coinmp/Cgl/config.guess
73 @@ -1232,9 +1232,31 @@
74         exit ;;
75      *:Darwin:*:*)
76         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
77 +       eval $set_cc_for_build
78 +       if test "$UNAME_PROCESSOR" = unknown ; then
79 +           UNAME_PROCESSOR=powerpc
80 +       fi
81 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
82 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
83 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
84 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
85 +                   grep IS_64BIT_ARCH >/dev/null
86 +               then
87         case $UNAME_PROCESSOR in
88 -           unknown) UNAME_PROCESSOR=powerpc ;;
89 +                       i386) UNAME_PROCESSOR=x86_64 ;;
90 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
91         esac
92 +               fi
93 +           fi
94 +       elif test "$UNAME_PROCESSOR" = i386 ; then
95 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
96 +           # that puts up a graphical alert prompting to install
97 +           # developer tools.  Any system running Mac OS X 10.7 or
98 +           # later (Darwin 11 and later) is required to have a 64-bit
99 +           # processor. This is not true of the ARM version of Darwin
100 +           # that Apple uses in portable devices.
101 +           UNAME_PROCESSOR=x86_64
102 +       fi
103         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
104         exit ;;
105      *:procnto*:*:* | *:QNX:[0123456789]*:*)
106 --- coinmp/Clp/config.guess
107 +++ coinmp/Clp/config.guess
108 @@ -1232,9 +1232,31 @@
109         exit ;;
110      *:Darwin:*:*)
111         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
112 +       eval $set_cc_for_build
113 +       if test "$UNAME_PROCESSOR" = unknown ; then
114 +           UNAME_PROCESSOR=powerpc
115 +       fi
116 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
117 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
118 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
119 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
120 +                   grep IS_64BIT_ARCH >/dev/null
121 +               then
122         case $UNAME_PROCESSOR in
123 -           unknown) UNAME_PROCESSOR=powerpc ;;
124 +                       i386) UNAME_PROCESSOR=x86_64 ;;
125 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
126         esac
127 +               fi
128 +           fi
129 +       elif test "$UNAME_PROCESSOR" = i386 ; then
130 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
131 +           # that puts up a graphical alert prompting to install
132 +           # developer tools.  Any system running Mac OS X 10.7 or
133 +           # later (Darwin 11 and later) is required to have a 64-bit
134 +           # processor. This is not true of the ARM version of Darwin
135 +           # that Apple uses in portable devices.
136 +           UNAME_PROCESSOR=x86_64
137 +       fi
138         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
139         exit ;;
140      *:procnto*:*:* | *:QNX:[0123456789]*:*)
141 --- coinmp/CoinMP/config.guess
142 +++ coinmp/CoinMP/config.guess
143 @@ -1232,9 +1232,31 @@
144         exit ;;
145      *:Darwin:*:*)
146         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
147 +       eval $set_cc_for_build
148 +       if test "$UNAME_PROCESSOR" = unknown ; then
149 +           UNAME_PROCESSOR=powerpc
150 +       fi
151 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
152 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
153 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
154 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
155 +                   grep IS_64BIT_ARCH >/dev/null
156 +               then
157         case $UNAME_PROCESSOR in
158 -           unknown) UNAME_PROCESSOR=powerpc ;;
159 +                       i386) UNAME_PROCESSOR=x86_64 ;;
160 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
161         esac
162 +               fi
163 +           fi
164 +       elif test "$UNAME_PROCESSOR" = i386 ; then
165 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
166 +           # that puts up a graphical alert prompting to install
167 +           # developer tools.  Any system running Mac OS X 10.7 or
168 +           # later (Darwin 11 and later) is required to have a 64-bit
169 +           # processor. This is not true of the ARM version of Darwin
170 +           # that Apple uses in portable devices.
171 +           UNAME_PROCESSOR=x86_64
172 +       fi
173         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
174         exit ;;
175      *:procnto*:*:* | *:QNX:[0123456789]*:*)
176 --- coinmp/CoinUtils/config.guess
177 +++ coinmp/CoinUtils/config.guess
178 @@ -1232,9 +1232,31 @@
179         exit ;;
180      *:Darwin:*:*)
181         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
182 +       eval $set_cc_for_build
183 +       if test "$UNAME_PROCESSOR" = unknown ; then
184 +           UNAME_PROCESSOR=powerpc
185 +       fi
186 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
187 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
188 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
189 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
190 +                   grep IS_64BIT_ARCH >/dev/null
191 +               then
192         case $UNAME_PROCESSOR in
193 -           unknown) UNAME_PROCESSOR=powerpc ;;
194 +                       i386) UNAME_PROCESSOR=x86_64 ;;
195 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
196         esac
197 +               fi
198 +           fi
199 +       elif test "$UNAME_PROCESSOR" = i386 ; then
200 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
201 +           # that puts up a graphical alert prompting to install
202 +           # developer tools.  Any system running Mac OS X 10.7 or
203 +           # later (Darwin 11 and later) is required to have a 64-bit
204 +           # processor. This is not true of the ARM version of Darwin
205 +           # that Apple uses in portable devices.
206 +           UNAME_PROCESSOR=x86_64
207 +       fi
208         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
209         exit ;;
210      *:procnto*:*:* | *:QNX:[0123456789]*:*)
211 --- coinmp/Data/Sample/config.guess
212 +++ coinmp/Data/Sample/config.guess
213 @@ -1232,9 +1232,31 @@
214         exit ;;
215      *:Darwin:*:*)
216         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
217 +       eval $set_cc_for_build
218 +       if test "$UNAME_PROCESSOR" = unknown ; then
219 +           UNAME_PROCESSOR=powerpc
220 +       fi
221 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
222 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
223 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
224 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
225 +                   grep IS_64BIT_ARCH >/dev/null
226 +               then
227         case $UNAME_PROCESSOR in
228 -           unknown) UNAME_PROCESSOR=powerpc ;;
229 +                       i386) UNAME_PROCESSOR=x86_64 ;;
230 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
231         esac
232 +               fi
233 +           fi
234 +       elif test "$UNAME_PROCESSOR" = i386 ; then
235 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
236 +           # that puts up a graphical alert prompting to install
237 +           # developer tools.  Any system running Mac OS X 10.7 or
238 +           # later (Darwin 11 and later) is required to have a 64-bit
239 +           # processor. This is not true of the ARM version of Darwin
240 +           # that Apple uses in portable devices.
241 +           UNAME_PROCESSOR=x86_64
242 +       fi
243         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
244         exit ;;
245      *:procnto*:*:* | *:QNX:[0123456789]*:*)
246 --- coinmp/Osi/config.guess
247 +++ coinmp/Osi/config.guess
248 @@ -1232,9 +1232,31 @@
249         exit ;;
250      *:Darwin:*:*)
251         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
252 +       eval $set_cc_for_build
253 +       if test "$UNAME_PROCESSOR" = unknown ; then
254 +           UNAME_PROCESSOR=powerpc
255 +       fi
256 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
257 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
258 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
259 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
260 +                   grep IS_64BIT_ARCH >/dev/null
261 +               then
262         case $UNAME_PROCESSOR in
263 -           unknown) UNAME_PROCESSOR=powerpc ;;
264 +                       i386) UNAME_PROCESSOR=x86_64 ;;
265 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
266         esac
267 +               fi
268 +           fi
269 +       elif test "$UNAME_PROCESSOR" = i386 ; then
270 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
271 +           # that puts up a graphical alert prompting to install
272 +           # developer tools.  Any system running Mac OS X 10.7 or
273 +           # later (Darwin 11 and later) is required to have a 64-bit
274 +           # processor. This is not true of the ARM version of Darwin
275 +           # that Apple uses in portable devices.
276 +           UNAME_PROCESSOR=x86_64
277 +       fi
278         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
279         exit ;;
280      *:procnto*:*:* | *:QNX:[0123456789]*:*)
281 --- coinmp/config.guess
282 +++ coinmp/config.guess
283 @@ -1232,9 +1232,31 @@
284         exit ;;
285      *:Darwin:*:*)
286         UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
287 +       eval $set_cc_for_build
288 +       if test "$UNAME_PROCESSOR" = unknown ; then
289 +           UNAME_PROCESSOR=powerpc
290 +       fi
291 +       if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
292 +           if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
293 +               if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
294 +                   (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
295 +                   grep IS_64BIT_ARCH >/dev/null
296 +               then
297         case $UNAME_PROCESSOR in
298 -           unknown) UNAME_PROCESSOR=powerpc ;;
299 +                       i386) UNAME_PROCESSOR=x86_64 ;;
300 +                       powerpc) UNAME_PROCESSOR=powerpc64 ;;
301         esac
302 +               fi
303 +           fi
304 +       elif test "$UNAME_PROCESSOR" = i386 ; then
305 +           # Avoid executing cc on OS X 10.9, as it ships with a stub
306 +           # that puts up a graphical alert prompting to install
307 +           # developer tools.  Any system running Mac OS X 10.7 or
308 +           # later (Darwin 11 and later) is required to have a 64-bit
309 +           # processor. This is not true of the ARM version of Darwin
310 +           # that Apple uses in portable devices.
311 +           UNAME_PROCESSOR=x86_64
312 +       fi
313         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
314         exit ;;
315      *:procnto*:*:* | *:QNX:[0123456789]*:*)