let ipkg fail when a package file to be installed is not found
[openwrt.git] / openwrt / package / glib / patches / 02-cross-compile-fix.patch
1 diff -urN glib-1.2.10.old/configure glib-1.2.10/configure
2 --- glib-1.2.10.old/configure   2005-04-03 01:09:18.000000000 +0200
3 +++ glib-1.2.10/configure       2005-04-03 01:09:37.000000000 +0200
4 @@ -6025,7 +6025,7 @@
5  glib_save_LIBS=$LIBS
6  LIBS="$LIBS -lm"
7  if test "$cross_compiling" = yes; then
8 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
9 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
10  else
11    cat > conftest.$ac_ext <<EOF
12  #line 6032 "configure"
13 @@ -6043,7 +6043,7 @@
14    glib_save_CFLAGS=$CFLAGS
15       CFLAGS="$CFLAGS -std1"
16       if test "$cross_compiling" = yes; then
17 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
18 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
19  else
20    cat > conftest.$ac_ext <<EOF
21  #line 6050 "configure"
22 @@ -6390,7 +6390,7 @@
23    echo $ac_n "(cached) $ac_c" 1>&6
24  else
25    if test "$cross_compiling" = yes; then
26 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
27 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
28  else
29    cat > conftest.$ac_ext <<EOF
30  #line 6397 "configure"
31 @@ -6430,7 +6430,7 @@
32    echo $ac_n "(cached) $ac_c" 1>&6
33  else
34    if test "$cross_compiling" = yes; then
35 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
36 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
37  else
38    cat > conftest.$ac_ext <<EOF
39  #line 6437 "configure"
40 @@ -6470,7 +6470,7 @@
41    echo $ac_n "(cached) $ac_c" 1>&6
42  else
43    if test "$cross_compiling" = yes; then
44 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
45 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
46  else
47    cat > conftest.$ac_ext <<EOF
48  #line 6477 "configure"
49 @@ -6510,7 +6510,7 @@
50    echo $ac_n "(cached) $ac_c" 1>&6
51  else
52    if test "$cross_compiling" = yes; then
53 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
54 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
55  else
56    cat > conftest.$ac_ext <<EOF
57  #line 6517 "configure"
58 @@ -6550,7 +6550,7 @@
59    echo $ac_n "(cached) $ac_c" 1>&6
60  else
61    if test "$cross_compiling" = yes; then
62 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
63 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
64  else
65    cat > conftest.$ac_ext <<EOF
66  #line 6557 "configure"
67 @@ -6590,7 +6590,7 @@
68    echo $ac_n "(cached) $ac_c" 1>&6
69  else
70    if test "$cross_compiling" = yes; then
71 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
72 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
73  else
74    cat > conftest.$ac_ext <<EOF
75  #line 6597 "configure"
76 @@ -6708,7 +6708,7 @@
77  else
78    
79          if test "$cross_compiling" = yes; then
80 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
81 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
82  else
83    cat > conftest.$ac_ext <<EOF
84  #line 6715 "configure"
85 @@ -6749,7 +6749,7 @@
86  else
87    
88          if test "$cross_compiling" = yes; then
89 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
90 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
91  else
92    cat > conftest.$ac_ext <<EOF
93  #line 6756 "configure"
94 @@ -6790,7 +6790,7 @@
95  else
96    
97          if test "$cross_compiling" = yes; then
98 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
99 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
100  else
101    cat > conftest.$ac_ext <<EOF
102  #line 6797 "configure"
103 @@ -6876,7 +6876,7 @@
104  rm -f conftest*
105  if test $ac_cv_c_bigendian = unknown; then
106  if test "$cross_compiling" = yes; then
107 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
108 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
109  else
110    cat > conftest.$ac_ext <<EOF
111  #line 6883 "configure"
112 @@ -7767,7 +7767,7 @@
113  else
114    
115         if test "$cross_compiling" = yes; then
116 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
117 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
118  else
119    cat > conftest.$ac_ext <<EOF
120  #line 7774 "configure"
121 @@ -7809,7 +7809,7 @@
122  else
123    
124         if test "$cross_compiling" = yes; then
125 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
126 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
127  else
128    cat > conftest.$ac_ext <<EOF
129  #line 7816 "configure"
130 @@ -7854,7 +7854,7 @@
131  else
132    
133         if test "$cross_compiling" = yes; then
134 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
135 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
136  else
137    cat > conftest.$ac_ext <<EOF
138  #line 7861 "configure"
139 @@ -7899,7 +7899,7 @@
140  else
141    
142         if test "$cross_compiling" = yes; then
143 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
144 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
145  else
146    cat > conftest.$ac_ext <<EOF
147  #line 7906 "configure"
148 @@ -8254,7 +8254,7 @@
149  else
150    
151                  if test "$cross_compiling" = yes; then
152 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
153 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
154  else
155    cat > conftest.$ac_ext <<EOF
156  #line 8261 "configure"
157 @@ -8306,7 +8306,7 @@
158  else
159    
160                 if test "$cross_compiling" = yes; then
161 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
162 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
163  else
164    cat > conftest.$ac_ext <<EOF
165  #line 8313 "configure"
166 @@ -9137,7 +9137,7 @@
167    echo $ac_n "(cached) $ac_c" 1>&6
168  else
169    if test "$cross_compiling" = yes; then
170 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
171 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
172  else
173    cat > conftest.$ac_ext <<EOF
174  #line 9144 "configure"
175 @@ -9237,7 +9237,7 @@
176  echo "configure:9238: checking whether pthread_mutex_trylock is posix like" >&5
177                 # DCE Threads return 1 as success, posix 0. what a mess.
178                 if test "$cross_compiling" = yes; then
179 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
180 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
181  else
182    cat > conftest.$ac_ext <<EOF
183  #line 9244 "configure"
184 @@ -9267,7 +9267,7 @@
185  echo "configure:9268: checking whether pthread_cond_timedwait is posix like" >&5
186                 # DCE Threads return -1 as failure, posix ETIMEDOUT.
187                 if test "$cross_compiling" = yes; then
188 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
189 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
190  else
191    cat > conftest.$ac_ext <<EOF
192  #line 9274 "configure"
193 @@ -9332,7 +9332,7 @@
194    echo $ac_n "(cached) $ac_c" 1>&6
195  else
196    if test "$cross_compiling" = yes; then
197 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
198 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
199  else
200    cat > conftest.$ac_ext <<EOF
201  #line 9339 "configure"
202 @@ -9452,7 +9452,7 @@
203  done
204  echo "return 0; }" >>confrun.c
205  if test "$cross_compiling" = yes; then
206 -    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
207 +    { echo "configure: error: can not run test program while cross compiling" 1>&2; }
208  else
209    cat > conftest.$ac_ext <<EOF
210  #line 9459 "configure"