Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/celestia/files/celestia-1.6.1-lua-5.2.patch
16462 views
1
diff -Naur celestia-1.6.1.orig/configure celestia-1.6.1/configure
2
--- celestia-1.6.1.orig/configure 2011-06-05 20:33:27.000000000 +0200
3
+++ celestia-1.6.1/configure 2013-08-22 06:31:25.124482730 +0200
4
@@ -28444,6 +28444,3350 @@
5
pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
6
elif test -n "$PKG_CONFIG"; then
7
if test -n "$PKG_CONFIG" && \
8
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2 >= 5.2.0\""; } >&5
9
+ ($PKG_CONFIG --exists --print-errors "lua5.2 >= 5.2.0") 2>&5
10
+ ac_status=$?
11
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12
+ test $ac_status = 0; }; then
13
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2 >= 5.2.0" 2>/dev/null`
14
+else
15
+ pkg_failed=yes
16
+fi
17
+ else
18
+ pkg_failed=untried
19
+fi
20
+if test -n "$LUA_LIBS"; then
21
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
22
+ elif test -n "$PKG_CONFIG"; then
23
+ if test -n "$PKG_CONFIG" && \
24
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2 >= 5.2.0\""; } >&5
25
+ ($PKG_CONFIG --exists --print-errors "lua5.2 >= 5.2.0") 2>&5
26
+ ac_status=$?
27
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28
+ test $ac_status = 0; }; then
29
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2 >= 5.2.0" 2>/dev/null`
30
+else
31
+ pkg_failed=yes
32
+fi
33
+ else
34
+ pkg_failed=untried
35
+fi
36
+
37
+
38
+
39
+if test $pkg_failed = yes; then
40
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41
+$as_echo "no" >&6; }
42
+
43
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44
+ _pkg_short_errors_supported=yes
45
+else
46
+ _pkg_short_errors_supported=no
47
+fi
48
+ if test $_pkg_short_errors_supported = yes; then
49
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.2 >= 5.2.0" 2>&1`
50
+ else
51
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.2 >= 5.2.0" 2>&1`
52
+ fi
53
+ # Put the nasty error message in config.log where it belongs
54
+ echo "$LUA_PKG_ERRORS" >&5
55
+
56
+
57
+pkg_failed=no
58
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
59
+$as_echo_n "checking for LUA... " >&6; }
60
+
61
+if test -n "$LUA_CFLAGS"; then
62
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
63
+ elif test -n "$PKG_CONFIG"; then
64
+ if test -n "$PKG_CONFIG" && \
65
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2.0\""; } >&5
66
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.2.0") 2>&5
67
+ ac_status=$?
68
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69
+ test $ac_status = 0; }; then
70
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2.0" 2>/dev/null`
71
+else
72
+ pkg_failed=yes
73
+fi
74
+ else
75
+ pkg_failed=untried
76
+fi
77
+if test -n "$LUA_LIBS"; then
78
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
79
+ elif test -n "$PKG_CONFIG"; then
80
+ if test -n "$PKG_CONFIG" && \
81
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2.0\""; } >&5
82
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.2.0") 2>&5
83
+ ac_status=$?
84
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
85
+ test $ac_status = 0; }; then
86
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.2.0" 2>/dev/null`
87
+else
88
+ pkg_failed=yes
89
+fi
90
+ else
91
+ pkg_failed=untried
92
+fi
93
+
94
+
95
+
96
+if test $pkg_failed = yes; then
97
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
98
+$as_echo "no" >&6; }
99
+
100
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
101
+ _pkg_short_errors_supported=yes
102
+else
103
+ _pkg_short_errors_supported=no
104
+fi
105
+ if test $_pkg_short_errors_supported = yes; then
106
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.2.0" 2>&1`
107
+ else
108
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.2.0" 2>&1`
109
+ fi
110
+ # Put the nasty error message in config.log where it belongs
111
+ echo "$LUA_PKG_ERRORS" >&5
112
+
113
+
114
+pkg_failed=no
115
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
116
+$as_echo_n "checking for LUA... " >&6; }
117
+
118
+if test -n "$LUA_CFLAGS"; then
119
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
120
+ elif test -n "$PKG_CONFIG"; then
121
+ if test -n "$PKG_CONFIG" && \
122
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
123
+ ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
124
+ ac_status=$?
125
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
126
+ test $ac_status = 0; }; then
127
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null`
128
+else
129
+ pkg_failed=yes
130
+fi
131
+ else
132
+ pkg_failed=untried
133
+fi
134
+if test -n "$LUA_LIBS"; then
135
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
136
+ elif test -n "$PKG_CONFIG"; then
137
+ if test -n "$PKG_CONFIG" && \
138
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
139
+ ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
140
+ ac_status=$?
141
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
142
+ test $ac_status = 0; }; then
143
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null`
144
+else
145
+ pkg_failed=yes
146
+fi
147
+ else
148
+ pkg_failed=untried
149
+fi
150
+
151
+
152
+
153
+if test $pkg_failed = yes; then
154
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
155
+$as_echo "no" >&6; }
156
+
157
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
158
+ _pkg_short_errors_supported=yes
159
+else
160
+ _pkg_short_errors_supported=no
161
+fi
162
+ if test $_pkg_short_errors_supported = yes; then
163
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1`
164
+ else
165
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1`
166
+ fi
167
+ # Put the nasty error message in config.log where it belongs
168
+ echo "$LUA_PKG_ERRORS" >&5
169
+
170
+
171
+pkg_failed=no
172
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
173
+$as_echo_n "checking for LUA... " >&6; }
174
+
175
+if test -n "$LUA_CFLAGS"; then
176
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
177
+ elif test -n "$PKG_CONFIG"; then
178
+ if test -n "$PKG_CONFIG" && \
179
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
180
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
181
+ ac_status=$?
182
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
183
+ test $ac_status = 0; }; then
184
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
185
+else
186
+ pkg_failed=yes
187
+fi
188
+ else
189
+ pkg_failed=untried
190
+fi
191
+if test -n "$LUA_LIBS"; then
192
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
193
+ elif test -n "$PKG_CONFIG"; then
194
+ if test -n "$PKG_CONFIG" && \
195
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
196
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
197
+ ac_status=$?
198
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
199
+ test $ac_status = 0; }; then
200
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
201
+else
202
+ pkg_failed=yes
203
+fi
204
+ else
205
+ pkg_failed=untried
206
+fi
207
+
208
+
209
+
210
+if test $pkg_failed = yes; then
211
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
212
+$as_echo "no" >&6; }
213
+
214
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
215
+ _pkg_short_errors_supported=yes
216
+else
217
+ _pkg_short_errors_supported=no
218
+fi
219
+ if test $_pkg_short_errors_supported = yes; then
220
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
221
+ else
222
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
223
+ fi
224
+ # Put the nasty error message in config.log where it belongs
225
+ echo "$LUA_PKG_ERRORS" >&5
226
+
227
+
228
+pkg_failed=no
229
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
230
+$as_echo_n "checking for LUA... " >&6; }
231
+
232
+if test -n "$LUA_CFLAGS"; then
233
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
234
+ elif test -n "$PKG_CONFIG"; then
235
+ if test -n "$PKG_CONFIG" && \
236
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
237
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
238
+ ac_status=$?
239
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
240
+ test $ac_status = 0; }; then
241
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
242
+else
243
+ pkg_failed=yes
244
+fi
245
+ else
246
+ pkg_failed=untried
247
+fi
248
+if test -n "$LUA_LIBS"; then
249
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
250
+ elif test -n "$PKG_CONFIG"; then
251
+ if test -n "$PKG_CONFIG" && \
252
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
253
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
254
+ ac_status=$?
255
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
256
+ test $ac_status = 0; }; then
257
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
258
+else
259
+ pkg_failed=yes
260
+fi
261
+ else
262
+ pkg_failed=untried
263
+fi
264
+
265
+
266
+
267
+if test $pkg_failed = yes; then
268
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
269
+$as_echo "no" >&6; }
270
+
271
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
272
+ _pkg_short_errors_supported=yes
273
+else
274
+ _pkg_short_errors_supported=no
275
+fi
276
+ if test $_pkg_short_errors_supported = yes; then
277
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
278
+ else
279
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
280
+ fi
281
+ # Put the nasty error message in config.log where it belongs
282
+ echo "$LUA_PKG_ERRORS" >&5
283
+
284
+
285
+pkg_failed=no
286
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
287
+$as_echo_n "checking for LUA... " >&6; }
288
+
289
+if test -n "$LUA_CFLAGS"; then
290
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
291
+ elif test -n "$PKG_CONFIG"; then
292
+ if test -n "$PKG_CONFIG" && \
293
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
294
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
295
+ ac_status=$?
296
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
297
+ test $ac_status = 0; }; then
298
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
299
+else
300
+ pkg_failed=yes
301
+fi
302
+ else
303
+ pkg_failed=untried
304
+fi
305
+if test -n "$LUA_LIBS"; then
306
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
307
+ elif test -n "$PKG_CONFIG"; then
308
+ if test -n "$PKG_CONFIG" && \
309
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
310
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
311
+ ac_status=$?
312
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
313
+ test $ac_status = 0; }; then
314
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
315
+else
316
+ pkg_failed=yes
317
+fi
318
+ else
319
+ pkg_failed=untried
320
+fi
321
+
322
+
323
+
324
+if test $pkg_failed = yes; then
325
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
326
+$as_echo "no" >&6; }
327
+
328
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
329
+ _pkg_short_errors_supported=yes
330
+else
331
+ _pkg_short_errors_supported=no
332
+fi
333
+ if test $_pkg_short_errors_supported = yes; then
334
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
335
+ else
336
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
337
+ fi
338
+ # Put the nasty error message in config.log where it belongs
339
+ echo "$LUA_PKG_ERRORS" >&5
340
+
341
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
342
+$as_echo "no" >&6; }
343
+elif test $pkg_failed = untried; then
344
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
345
+$as_echo "no" >&6; }
346
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
347
+$as_echo "no" >&6; }
348
+else
349
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
350
+ LUA_LIBS=$pkg_cv_LUA_LIBS
351
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
352
+$as_echo "yes" >&6; }
353
+ LUA_VER=0x050000
354
+fi
355
+
356
+elif test $pkg_failed = untried; then
357
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
358
+$as_echo "no" >&6; }
359
+
360
+pkg_failed=no
361
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
362
+$as_echo_n "checking for LUA... " >&6; }
363
+
364
+if test -n "$LUA_CFLAGS"; then
365
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
366
+ elif test -n "$PKG_CONFIG"; then
367
+ if test -n "$PKG_CONFIG" && \
368
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
369
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
370
+ ac_status=$?
371
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
372
+ test $ac_status = 0; }; then
373
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
374
+else
375
+ pkg_failed=yes
376
+fi
377
+ else
378
+ pkg_failed=untried
379
+fi
380
+if test -n "$LUA_LIBS"; then
381
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
382
+ elif test -n "$PKG_CONFIG"; then
383
+ if test -n "$PKG_CONFIG" && \
384
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
385
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
386
+ ac_status=$?
387
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
388
+ test $ac_status = 0; }; then
389
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
390
+else
391
+ pkg_failed=yes
392
+fi
393
+ else
394
+ pkg_failed=untried
395
+fi
396
+
397
+
398
+
399
+if test $pkg_failed = yes; then
400
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
401
+$as_echo "no" >&6; }
402
+
403
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
404
+ _pkg_short_errors_supported=yes
405
+else
406
+ _pkg_short_errors_supported=no
407
+fi
408
+ if test $_pkg_short_errors_supported = yes; then
409
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
410
+ else
411
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
412
+ fi
413
+ # Put the nasty error message in config.log where it belongs
414
+ echo "$LUA_PKG_ERRORS" >&5
415
+
416
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
417
+$as_echo "no" >&6; }
418
+elif test $pkg_failed = untried; then
419
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
420
+$as_echo "no" >&6; }
421
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
422
+$as_echo "no" >&6; }
423
+else
424
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
425
+ LUA_LIBS=$pkg_cv_LUA_LIBS
426
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
427
+$as_echo "yes" >&6; }
428
+ LUA_VER=0x050000
429
+fi
430
+
431
+else
432
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
433
+ LUA_LIBS=$pkg_cv_LUA_LIBS
434
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
435
+$as_echo "yes" >&6; }
436
+ LUA_VER=0x050000
437
+fi
438
+
439
+elif test $pkg_failed = untried; then
440
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
441
+$as_echo "no" >&6; }
442
+
443
+pkg_failed=no
444
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
445
+$as_echo_n "checking for LUA... " >&6; }
446
+
447
+if test -n "$LUA_CFLAGS"; then
448
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
449
+ elif test -n "$PKG_CONFIG"; then
450
+ if test -n "$PKG_CONFIG" && \
451
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
452
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
453
+ ac_status=$?
454
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
455
+ test $ac_status = 0; }; then
456
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
457
+else
458
+ pkg_failed=yes
459
+fi
460
+ else
461
+ pkg_failed=untried
462
+fi
463
+if test -n "$LUA_LIBS"; then
464
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
465
+ elif test -n "$PKG_CONFIG"; then
466
+ if test -n "$PKG_CONFIG" && \
467
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
468
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
469
+ ac_status=$?
470
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
471
+ test $ac_status = 0; }; then
472
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
473
+else
474
+ pkg_failed=yes
475
+fi
476
+ else
477
+ pkg_failed=untried
478
+fi
479
+
480
+
481
+
482
+if test $pkg_failed = yes; then
483
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
484
+$as_echo "no" >&6; }
485
+
486
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
487
+ _pkg_short_errors_supported=yes
488
+else
489
+ _pkg_short_errors_supported=no
490
+fi
491
+ if test $_pkg_short_errors_supported = yes; then
492
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
493
+ else
494
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
495
+ fi
496
+ # Put the nasty error message in config.log where it belongs
497
+ echo "$LUA_PKG_ERRORS" >&5
498
+
499
+
500
+pkg_failed=no
501
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
502
+$as_echo_n "checking for LUA... " >&6; }
503
+
504
+if test -n "$LUA_CFLAGS"; then
505
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
506
+ elif test -n "$PKG_CONFIG"; then
507
+ if test -n "$PKG_CONFIG" && \
508
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
509
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
510
+ ac_status=$?
511
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
512
+ test $ac_status = 0; }; then
513
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
514
+else
515
+ pkg_failed=yes
516
+fi
517
+ else
518
+ pkg_failed=untried
519
+fi
520
+if test -n "$LUA_LIBS"; then
521
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
522
+ elif test -n "$PKG_CONFIG"; then
523
+ if test -n "$PKG_CONFIG" && \
524
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
525
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
526
+ ac_status=$?
527
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
528
+ test $ac_status = 0; }; then
529
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
530
+else
531
+ pkg_failed=yes
532
+fi
533
+ else
534
+ pkg_failed=untried
535
+fi
536
+
537
+
538
+
539
+if test $pkg_failed = yes; then
540
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
541
+$as_echo "no" >&6; }
542
+
543
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
544
+ _pkg_short_errors_supported=yes
545
+else
546
+ _pkg_short_errors_supported=no
547
+fi
548
+ if test $_pkg_short_errors_supported = yes; then
549
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
550
+ else
551
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
552
+ fi
553
+ # Put the nasty error message in config.log where it belongs
554
+ echo "$LUA_PKG_ERRORS" >&5
555
+
556
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
557
+$as_echo "no" >&6; }
558
+elif test $pkg_failed = untried; then
559
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
560
+$as_echo "no" >&6; }
561
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
562
+$as_echo "no" >&6; }
563
+else
564
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
565
+ LUA_LIBS=$pkg_cv_LUA_LIBS
566
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
567
+$as_echo "yes" >&6; }
568
+ LUA_VER=0x050000
569
+fi
570
+
571
+elif test $pkg_failed = untried; then
572
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
573
+$as_echo "no" >&6; }
574
+
575
+pkg_failed=no
576
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
577
+$as_echo_n "checking for LUA... " >&6; }
578
+
579
+if test -n "$LUA_CFLAGS"; then
580
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
581
+ elif test -n "$PKG_CONFIG"; then
582
+ if test -n "$PKG_CONFIG" && \
583
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
584
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
585
+ ac_status=$?
586
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
587
+ test $ac_status = 0; }; then
588
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
589
+else
590
+ pkg_failed=yes
591
+fi
592
+ else
593
+ pkg_failed=untried
594
+fi
595
+if test -n "$LUA_LIBS"; then
596
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
597
+ elif test -n "$PKG_CONFIG"; then
598
+ if test -n "$PKG_CONFIG" && \
599
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
600
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
601
+ ac_status=$?
602
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
603
+ test $ac_status = 0; }; then
604
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
605
+else
606
+ pkg_failed=yes
607
+fi
608
+ else
609
+ pkg_failed=untried
610
+fi
611
+
612
+
613
+
614
+if test $pkg_failed = yes; then
615
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
616
+$as_echo "no" >&6; }
617
+
618
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
619
+ _pkg_short_errors_supported=yes
620
+else
621
+ _pkg_short_errors_supported=no
622
+fi
623
+ if test $_pkg_short_errors_supported = yes; then
624
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
625
+ else
626
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
627
+ fi
628
+ # Put the nasty error message in config.log where it belongs
629
+ echo "$LUA_PKG_ERRORS" >&5
630
+
631
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
632
+$as_echo "no" >&6; }
633
+elif test $pkg_failed = untried; then
634
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
635
+$as_echo "no" >&6; }
636
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
637
+$as_echo "no" >&6; }
638
+else
639
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
640
+ LUA_LIBS=$pkg_cv_LUA_LIBS
641
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
642
+$as_echo "yes" >&6; }
643
+ LUA_VER=0x050000
644
+fi
645
+
646
+else
647
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
648
+ LUA_LIBS=$pkg_cv_LUA_LIBS
649
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
650
+$as_echo "yes" >&6; }
651
+ LUA_VER=0x050000
652
+fi
653
+
654
+else
655
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
656
+ LUA_LIBS=$pkg_cv_LUA_LIBS
657
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
658
+$as_echo "yes" >&6; }
659
+ LUA_VER=0x050100
660
+fi
661
+
662
+elif test $pkg_failed = untried; then
663
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
664
+$as_echo "no" >&6; }
665
+
666
+pkg_failed=no
667
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
668
+$as_echo_n "checking for LUA... " >&6; }
669
+
670
+if test -n "$LUA_CFLAGS"; then
671
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
672
+ elif test -n "$PKG_CONFIG"; then
673
+ if test -n "$PKG_CONFIG" && \
674
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
675
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
676
+ ac_status=$?
677
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
678
+ test $ac_status = 0; }; then
679
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
680
+else
681
+ pkg_failed=yes
682
+fi
683
+ else
684
+ pkg_failed=untried
685
+fi
686
+if test -n "$LUA_LIBS"; then
687
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
688
+ elif test -n "$PKG_CONFIG"; then
689
+ if test -n "$PKG_CONFIG" && \
690
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
691
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
692
+ ac_status=$?
693
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
694
+ test $ac_status = 0; }; then
695
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
696
+else
697
+ pkg_failed=yes
698
+fi
699
+ else
700
+ pkg_failed=untried
701
+fi
702
+
703
+
704
+
705
+if test $pkg_failed = yes; then
706
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
707
+$as_echo "no" >&6; }
708
+
709
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
710
+ _pkg_short_errors_supported=yes
711
+else
712
+ _pkg_short_errors_supported=no
713
+fi
714
+ if test $_pkg_short_errors_supported = yes; then
715
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
716
+ else
717
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
718
+ fi
719
+ # Put the nasty error message in config.log where it belongs
720
+ echo "$LUA_PKG_ERRORS" >&5
721
+
722
+
723
+pkg_failed=no
724
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
725
+$as_echo_n "checking for LUA... " >&6; }
726
+
727
+if test -n "$LUA_CFLAGS"; then
728
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
729
+ elif test -n "$PKG_CONFIG"; then
730
+ if test -n "$PKG_CONFIG" && \
731
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
732
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
733
+ ac_status=$?
734
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
735
+ test $ac_status = 0; }; then
736
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
737
+else
738
+ pkg_failed=yes
739
+fi
740
+ else
741
+ pkg_failed=untried
742
+fi
743
+if test -n "$LUA_LIBS"; then
744
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
745
+ elif test -n "$PKG_CONFIG"; then
746
+ if test -n "$PKG_CONFIG" && \
747
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
748
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
749
+ ac_status=$?
750
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
751
+ test $ac_status = 0; }; then
752
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
753
+else
754
+ pkg_failed=yes
755
+fi
756
+ else
757
+ pkg_failed=untried
758
+fi
759
+
760
+
761
+
762
+if test $pkg_failed = yes; then
763
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
764
+$as_echo "no" >&6; }
765
+
766
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
767
+ _pkg_short_errors_supported=yes
768
+else
769
+ _pkg_short_errors_supported=no
770
+fi
771
+ if test $_pkg_short_errors_supported = yes; then
772
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
773
+ else
774
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
775
+ fi
776
+ # Put the nasty error message in config.log where it belongs
777
+ echo "$LUA_PKG_ERRORS" >&5
778
+
779
+
780
+pkg_failed=no
781
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
782
+$as_echo_n "checking for LUA... " >&6; }
783
+
784
+if test -n "$LUA_CFLAGS"; then
785
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
786
+ elif test -n "$PKG_CONFIG"; then
787
+ if test -n "$PKG_CONFIG" && \
788
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
789
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
790
+ ac_status=$?
791
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
792
+ test $ac_status = 0; }; then
793
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
794
+else
795
+ pkg_failed=yes
796
+fi
797
+ else
798
+ pkg_failed=untried
799
+fi
800
+if test -n "$LUA_LIBS"; then
801
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
802
+ elif test -n "$PKG_CONFIG"; then
803
+ if test -n "$PKG_CONFIG" && \
804
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
805
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
806
+ ac_status=$?
807
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
808
+ test $ac_status = 0; }; then
809
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
810
+else
811
+ pkg_failed=yes
812
+fi
813
+ else
814
+ pkg_failed=untried
815
+fi
816
+
817
+
818
+
819
+if test $pkg_failed = yes; then
820
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
821
+$as_echo "no" >&6; }
822
+
823
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
824
+ _pkg_short_errors_supported=yes
825
+else
826
+ _pkg_short_errors_supported=no
827
+fi
828
+ if test $_pkg_short_errors_supported = yes; then
829
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
830
+ else
831
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
832
+ fi
833
+ # Put the nasty error message in config.log where it belongs
834
+ echo "$LUA_PKG_ERRORS" >&5
835
+
836
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
837
+$as_echo "no" >&6; }
838
+elif test $pkg_failed = untried; then
839
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
840
+$as_echo "no" >&6; }
841
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
842
+$as_echo "no" >&6; }
843
+else
844
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
845
+ LUA_LIBS=$pkg_cv_LUA_LIBS
846
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
847
+$as_echo "yes" >&6; }
848
+ LUA_VER=0x050000
849
+fi
850
+
851
+elif test $pkg_failed = untried; then
852
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
853
+$as_echo "no" >&6; }
854
+
855
+pkg_failed=no
856
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
857
+$as_echo_n "checking for LUA... " >&6; }
858
+
859
+if test -n "$LUA_CFLAGS"; then
860
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
861
+ elif test -n "$PKG_CONFIG"; then
862
+ if test -n "$PKG_CONFIG" && \
863
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
864
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
865
+ ac_status=$?
866
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
867
+ test $ac_status = 0; }; then
868
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
869
+else
870
+ pkg_failed=yes
871
+fi
872
+ else
873
+ pkg_failed=untried
874
+fi
875
+if test -n "$LUA_LIBS"; then
876
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
877
+ elif test -n "$PKG_CONFIG"; then
878
+ if test -n "$PKG_CONFIG" && \
879
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
880
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
881
+ ac_status=$?
882
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
883
+ test $ac_status = 0; }; then
884
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
885
+else
886
+ pkg_failed=yes
887
+fi
888
+ else
889
+ pkg_failed=untried
890
+fi
891
+
892
+
893
+
894
+if test $pkg_failed = yes; then
895
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
896
+$as_echo "no" >&6; }
897
+
898
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
899
+ _pkg_short_errors_supported=yes
900
+else
901
+ _pkg_short_errors_supported=no
902
+fi
903
+ if test $_pkg_short_errors_supported = yes; then
904
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
905
+ else
906
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
907
+ fi
908
+ # Put the nasty error message in config.log where it belongs
909
+ echo "$LUA_PKG_ERRORS" >&5
910
+
911
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
912
+$as_echo "no" >&6; }
913
+elif test $pkg_failed = untried; then
914
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
915
+$as_echo "no" >&6; }
916
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
917
+$as_echo "no" >&6; }
918
+else
919
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
920
+ LUA_LIBS=$pkg_cv_LUA_LIBS
921
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
922
+$as_echo "yes" >&6; }
923
+ LUA_VER=0x050000
924
+fi
925
+
926
+else
927
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
928
+ LUA_LIBS=$pkg_cv_LUA_LIBS
929
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
930
+$as_echo "yes" >&6; }
931
+ LUA_VER=0x050000
932
+fi
933
+
934
+elif test $pkg_failed = untried; then
935
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
936
+$as_echo "no" >&6; }
937
+
938
+pkg_failed=no
939
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
940
+$as_echo_n "checking for LUA... " >&6; }
941
+
942
+if test -n "$LUA_CFLAGS"; then
943
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
944
+ elif test -n "$PKG_CONFIG"; then
945
+ if test -n "$PKG_CONFIG" && \
946
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
947
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
948
+ ac_status=$?
949
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
950
+ test $ac_status = 0; }; then
951
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
952
+else
953
+ pkg_failed=yes
954
+fi
955
+ else
956
+ pkg_failed=untried
957
+fi
958
+if test -n "$LUA_LIBS"; then
959
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
960
+ elif test -n "$PKG_CONFIG"; then
961
+ if test -n "$PKG_CONFIG" && \
962
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
963
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
964
+ ac_status=$?
965
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
966
+ test $ac_status = 0; }; then
967
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
968
+else
969
+ pkg_failed=yes
970
+fi
971
+ else
972
+ pkg_failed=untried
973
+fi
974
+
975
+
976
+
977
+if test $pkg_failed = yes; then
978
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
979
+$as_echo "no" >&6; }
980
+
981
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
982
+ _pkg_short_errors_supported=yes
983
+else
984
+ _pkg_short_errors_supported=no
985
+fi
986
+ if test $_pkg_short_errors_supported = yes; then
987
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
988
+ else
989
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
990
+ fi
991
+ # Put the nasty error message in config.log where it belongs
992
+ echo "$LUA_PKG_ERRORS" >&5
993
+
994
+
995
+pkg_failed=no
996
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
997
+$as_echo_n "checking for LUA... " >&6; }
998
+
999
+if test -n "$LUA_CFLAGS"; then
1000
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1001
+ elif test -n "$PKG_CONFIG"; then
1002
+ if test -n "$PKG_CONFIG" && \
1003
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1004
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1005
+ ac_status=$?
1006
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1007
+ test $ac_status = 0; }; then
1008
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1009
+else
1010
+ pkg_failed=yes
1011
+fi
1012
+ else
1013
+ pkg_failed=untried
1014
+fi
1015
+if test -n "$LUA_LIBS"; then
1016
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1017
+ elif test -n "$PKG_CONFIG"; then
1018
+ if test -n "$PKG_CONFIG" && \
1019
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1020
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1021
+ ac_status=$?
1022
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1023
+ test $ac_status = 0; }; then
1024
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1025
+else
1026
+ pkg_failed=yes
1027
+fi
1028
+ else
1029
+ pkg_failed=untried
1030
+fi
1031
+
1032
+
1033
+
1034
+if test $pkg_failed = yes; then
1035
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1036
+$as_echo "no" >&6; }
1037
+
1038
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1039
+ _pkg_short_errors_supported=yes
1040
+else
1041
+ _pkg_short_errors_supported=no
1042
+fi
1043
+ if test $_pkg_short_errors_supported = yes; then
1044
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1045
+ else
1046
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1047
+ fi
1048
+ # Put the nasty error message in config.log where it belongs
1049
+ echo "$LUA_PKG_ERRORS" >&5
1050
+
1051
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1052
+$as_echo "no" >&6; }
1053
+elif test $pkg_failed = untried; then
1054
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1055
+$as_echo "no" >&6; }
1056
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1057
+$as_echo "no" >&6; }
1058
+else
1059
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1060
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1061
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1062
+$as_echo "yes" >&6; }
1063
+ LUA_VER=0x050000
1064
+fi
1065
+
1066
+elif test $pkg_failed = untried; then
1067
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1068
+$as_echo "no" >&6; }
1069
+
1070
+pkg_failed=no
1071
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1072
+$as_echo_n "checking for LUA... " >&6; }
1073
+
1074
+if test -n "$LUA_CFLAGS"; then
1075
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1076
+ elif test -n "$PKG_CONFIG"; then
1077
+ if test -n "$PKG_CONFIG" && \
1078
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1079
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1080
+ ac_status=$?
1081
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1082
+ test $ac_status = 0; }; then
1083
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1084
+else
1085
+ pkg_failed=yes
1086
+fi
1087
+ else
1088
+ pkg_failed=untried
1089
+fi
1090
+if test -n "$LUA_LIBS"; then
1091
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1092
+ elif test -n "$PKG_CONFIG"; then
1093
+ if test -n "$PKG_CONFIG" && \
1094
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1095
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1096
+ ac_status=$?
1097
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1098
+ test $ac_status = 0; }; then
1099
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1100
+else
1101
+ pkg_failed=yes
1102
+fi
1103
+ else
1104
+ pkg_failed=untried
1105
+fi
1106
+
1107
+
1108
+
1109
+if test $pkg_failed = yes; then
1110
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1111
+$as_echo "no" >&6; }
1112
+
1113
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1114
+ _pkg_short_errors_supported=yes
1115
+else
1116
+ _pkg_short_errors_supported=no
1117
+fi
1118
+ if test $_pkg_short_errors_supported = yes; then
1119
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1120
+ else
1121
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1122
+ fi
1123
+ # Put the nasty error message in config.log where it belongs
1124
+ echo "$LUA_PKG_ERRORS" >&5
1125
+
1126
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1127
+$as_echo "no" >&6; }
1128
+elif test $pkg_failed = untried; then
1129
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1130
+$as_echo "no" >&6; }
1131
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1132
+$as_echo "no" >&6; }
1133
+else
1134
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1135
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1136
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1137
+$as_echo "yes" >&6; }
1138
+ LUA_VER=0x050000
1139
+fi
1140
+
1141
+else
1142
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1143
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1144
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1145
+$as_echo "yes" >&6; }
1146
+ LUA_VER=0x050000
1147
+fi
1148
+
1149
+else
1150
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1151
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1152
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1153
+$as_echo "yes" >&6; }
1154
+ LUA_VER=0x050100
1155
+fi
1156
+
1157
+else
1158
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1159
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1160
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1161
+$as_echo "yes" >&6; }
1162
+ LUA_VER=0x050100
1163
+fi
1164
+
1165
+elif test $pkg_failed = untried; then
1166
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1167
+$as_echo "no" >&6; }
1168
+
1169
+pkg_failed=no
1170
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1171
+$as_echo_n "checking for LUA... " >&6; }
1172
+
1173
+if test -n "$LUA_CFLAGS"; then
1174
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1175
+ elif test -n "$PKG_CONFIG"; then
1176
+ if test -n "$PKG_CONFIG" && \
1177
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
1178
+ ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
1179
+ ac_status=$?
1180
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1181
+ test $ac_status = 0; }; then
1182
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null`
1183
+else
1184
+ pkg_failed=yes
1185
+fi
1186
+ else
1187
+ pkg_failed=untried
1188
+fi
1189
+if test -n "$LUA_LIBS"; then
1190
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1191
+ elif test -n "$PKG_CONFIG"; then
1192
+ if test -n "$PKG_CONFIG" && \
1193
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
1194
+ ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
1195
+ ac_status=$?
1196
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1197
+ test $ac_status = 0; }; then
1198
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null`
1199
+else
1200
+ pkg_failed=yes
1201
+fi
1202
+ else
1203
+ pkg_failed=untried
1204
+fi
1205
+
1206
+
1207
+
1208
+if test $pkg_failed = yes; then
1209
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1210
+$as_echo "no" >&6; }
1211
+
1212
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1213
+ _pkg_short_errors_supported=yes
1214
+else
1215
+ _pkg_short_errors_supported=no
1216
+fi
1217
+ if test $_pkg_short_errors_supported = yes; then
1218
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1`
1219
+ else
1220
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1`
1221
+ fi
1222
+ # Put the nasty error message in config.log where it belongs
1223
+ echo "$LUA_PKG_ERRORS" >&5
1224
+
1225
+
1226
+pkg_failed=no
1227
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1228
+$as_echo_n "checking for LUA... " >&6; }
1229
+
1230
+if test -n "$LUA_CFLAGS"; then
1231
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1232
+ elif test -n "$PKG_CONFIG"; then
1233
+ if test -n "$PKG_CONFIG" && \
1234
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
1235
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
1236
+ ac_status=$?
1237
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1238
+ test $ac_status = 0; }; then
1239
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
1240
+else
1241
+ pkg_failed=yes
1242
+fi
1243
+ else
1244
+ pkg_failed=untried
1245
+fi
1246
+if test -n "$LUA_LIBS"; then
1247
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1248
+ elif test -n "$PKG_CONFIG"; then
1249
+ if test -n "$PKG_CONFIG" && \
1250
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
1251
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
1252
+ ac_status=$?
1253
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1254
+ test $ac_status = 0; }; then
1255
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
1256
+else
1257
+ pkg_failed=yes
1258
+fi
1259
+ else
1260
+ pkg_failed=untried
1261
+fi
1262
+
1263
+
1264
+
1265
+if test $pkg_failed = yes; then
1266
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1267
+$as_echo "no" >&6; }
1268
+
1269
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1270
+ _pkg_short_errors_supported=yes
1271
+else
1272
+ _pkg_short_errors_supported=no
1273
+fi
1274
+ if test $_pkg_short_errors_supported = yes; then
1275
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
1276
+ else
1277
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
1278
+ fi
1279
+ # Put the nasty error message in config.log where it belongs
1280
+ echo "$LUA_PKG_ERRORS" >&5
1281
+
1282
+
1283
+pkg_failed=no
1284
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1285
+$as_echo_n "checking for LUA... " >&6; }
1286
+
1287
+if test -n "$LUA_CFLAGS"; then
1288
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1289
+ elif test -n "$PKG_CONFIG"; then
1290
+ if test -n "$PKG_CONFIG" && \
1291
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
1292
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
1293
+ ac_status=$?
1294
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1295
+ test $ac_status = 0; }; then
1296
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
1297
+else
1298
+ pkg_failed=yes
1299
+fi
1300
+ else
1301
+ pkg_failed=untried
1302
+fi
1303
+if test -n "$LUA_LIBS"; then
1304
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1305
+ elif test -n "$PKG_CONFIG"; then
1306
+ if test -n "$PKG_CONFIG" && \
1307
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
1308
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
1309
+ ac_status=$?
1310
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1311
+ test $ac_status = 0; }; then
1312
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
1313
+else
1314
+ pkg_failed=yes
1315
+fi
1316
+ else
1317
+ pkg_failed=untried
1318
+fi
1319
+
1320
+
1321
+
1322
+if test $pkg_failed = yes; then
1323
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1324
+$as_echo "no" >&6; }
1325
+
1326
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1327
+ _pkg_short_errors_supported=yes
1328
+else
1329
+ _pkg_short_errors_supported=no
1330
+fi
1331
+ if test $_pkg_short_errors_supported = yes; then
1332
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
1333
+ else
1334
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
1335
+ fi
1336
+ # Put the nasty error message in config.log where it belongs
1337
+ echo "$LUA_PKG_ERRORS" >&5
1338
+
1339
+
1340
+pkg_failed=no
1341
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1342
+$as_echo_n "checking for LUA... " >&6; }
1343
+
1344
+if test -n "$LUA_CFLAGS"; then
1345
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1346
+ elif test -n "$PKG_CONFIG"; then
1347
+ if test -n "$PKG_CONFIG" && \
1348
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1349
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1350
+ ac_status=$?
1351
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1352
+ test $ac_status = 0; }; then
1353
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1354
+else
1355
+ pkg_failed=yes
1356
+fi
1357
+ else
1358
+ pkg_failed=untried
1359
+fi
1360
+if test -n "$LUA_LIBS"; then
1361
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1362
+ elif test -n "$PKG_CONFIG"; then
1363
+ if test -n "$PKG_CONFIG" && \
1364
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1365
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1366
+ ac_status=$?
1367
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1368
+ test $ac_status = 0; }; then
1369
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1370
+else
1371
+ pkg_failed=yes
1372
+fi
1373
+ else
1374
+ pkg_failed=untried
1375
+fi
1376
+
1377
+
1378
+
1379
+if test $pkg_failed = yes; then
1380
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1381
+$as_echo "no" >&6; }
1382
+
1383
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1384
+ _pkg_short_errors_supported=yes
1385
+else
1386
+ _pkg_short_errors_supported=no
1387
+fi
1388
+ if test $_pkg_short_errors_supported = yes; then
1389
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1390
+ else
1391
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1392
+ fi
1393
+ # Put the nasty error message in config.log where it belongs
1394
+ echo "$LUA_PKG_ERRORS" >&5
1395
+
1396
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1397
+$as_echo "no" >&6; }
1398
+elif test $pkg_failed = untried; then
1399
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1400
+$as_echo "no" >&6; }
1401
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1402
+$as_echo "no" >&6; }
1403
+else
1404
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1405
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1406
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1407
+$as_echo "yes" >&6; }
1408
+ LUA_VER=0x050000
1409
+fi
1410
+
1411
+elif test $pkg_failed = untried; then
1412
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1413
+$as_echo "no" >&6; }
1414
+
1415
+pkg_failed=no
1416
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1417
+$as_echo_n "checking for LUA... " >&6; }
1418
+
1419
+if test -n "$LUA_CFLAGS"; then
1420
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1421
+ elif test -n "$PKG_CONFIG"; then
1422
+ if test -n "$PKG_CONFIG" && \
1423
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1424
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1425
+ ac_status=$?
1426
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1427
+ test $ac_status = 0; }; then
1428
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1429
+else
1430
+ pkg_failed=yes
1431
+fi
1432
+ else
1433
+ pkg_failed=untried
1434
+fi
1435
+if test -n "$LUA_LIBS"; then
1436
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1437
+ elif test -n "$PKG_CONFIG"; then
1438
+ if test -n "$PKG_CONFIG" && \
1439
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1440
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1441
+ ac_status=$?
1442
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1443
+ test $ac_status = 0; }; then
1444
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1445
+else
1446
+ pkg_failed=yes
1447
+fi
1448
+ else
1449
+ pkg_failed=untried
1450
+fi
1451
+
1452
+
1453
+
1454
+if test $pkg_failed = yes; then
1455
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1456
+$as_echo "no" >&6; }
1457
+
1458
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1459
+ _pkg_short_errors_supported=yes
1460
+else
1461
+ _pkg_short_errors_supported=no
1462
+fi
1463
+ if test $_pkg_short_errors_supported = yes; then
1464
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1465
+ else
1466
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1467
+ fi
1468
+ # Put the nasty error message in config.log where it belongs
1469
+ echo "$LUA_PKG_ERRORS" >&5
1470
+
1471
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1472
+$as_echo "no" >&6; }
1473
+elif test $pkg_failed = untried; then
1474
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1475
+$as_echo "no" >&6; }
1476
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1477
+$as_echo "no" >&6; }
1478
+else
1479
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1480
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1481
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1482
+$as_echo "yes" >&6; }
1483
+ LUA_VER=0x050000
1484
+fi
1485
+
1486
+else
1487
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1488
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1489
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1490
+$as_echo "yes" >&6; }
1491
+ LUA_VER=0x050000
1492
+fi
1493
+
1494
+elif test $pkg_failed = untried; then
1495
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1496
+$as_echo "no" >&6; }
1497
+
1498
+pkg_failed=no
1499
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1500
+$as_echo_n "checking for LUA... " >&6; }
1501
+
1502
+if test -n "$LUA_CFLAGS"; then
1503
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1504
+ elif test -n "$PKG_CONFIG"; then
1505
+ if test -n "$PKG_CONFIG" && \
1506
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
1507
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
1508
+ ac_status=$?
1509
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1510
+ test $ac_status = 0; }; then
1511
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
1512
+else
1513
+ pkg_failed=yes
1514
+fi
1515
+ else
1516
+ pkg_failed=untried
1517
+fi
1518
+if test -n "$LUA_LIBS"; then
1519
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1520
+ elif test -n "$PKG_CONFIG"; then
1521
+ if test -n "$PKG_CONFIG" && \
1522
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
1523
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
1524
+ ac_status=$?
1525
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526
+ test $ac_status = 0; }; then
1527
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
1528
+else
1529
+ pkg_failed=yes
1530
+fi
1531
+ else
1532
+ pkg_failed=untried
1533
+fi
1534
+
1535
+
1536
+
1537
+if test $pkg_failed = yes; then
1538
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1539
+$as_echo "no" >&6; }
1540
+
1541
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1542
+ _pkg_short_errors_supported=yes
1543
+else
1544
+ _pkg_short_errors_supported=no
1545
+fi
1546
+ if test $_pkg_short_errors_supported = yes; then
1547
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
1548
+ else
1549
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
1550
+ fi
1551
+ # Put the nasty error message in config.log where it belongs
1552
+ echo "$LUA_PKG_ERRORS" >&5
1553
+
1554
+
1555
+pkg_failed=no
1556
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1557
+$as_echo_n "checking for LUA... " >&6; }
1558
+
1559
+if test -n "$LUA_CFLAGS"; then
1560
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1561
+ elif test -n "$PKG_CONFIG"; then
1562
+ if test -n "$PKG_CONFIG" && \
1563
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1564
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1565
+ ac_status=$?
1566
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567
+ test $ac_status = 0; }; then
1568
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1569
+else
1570
+ pkg_failed=yes
1571
+fi
1572
+ else
1573
+ pkg_failed=untried
1574
+fi
1575
+if test -n "$LUA_LIBS"; then
1576
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1577
+ elif test -n "$PKG_CONFIG"; then
1578
+ if test -n "$PKG_CONFIG" && \
1579
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1580
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1581
+ ac_status=$?
1582
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583
+ test $ac_status = 0; }; then
1584
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1585
+else
1586
+ pkg_failed=yes
1587
+fi
1588
+ else
1589
+ pkg_failed=untried
1590
+fi
1591
+
1592
+
1593
+
1594
+if test $pkg_failed = yes; then
1595
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1596
+$as_echo "no" >&6; }
1597
+
1598
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1599
+ _pkg_short_errors_supported=yes
1600
+else
1601
+ _pkg_short_errors_supported=no
1602
+fi
1603
+ if test $_pkg_short_errors_supported = yes; then
1604
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1605
+ else
1606
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1607
+ fi
1608
+ # Put the nasty error message in config.log where it belongs
1609
+ echo "$LUA_PKG_ERRORS" >&5
1610
+
1611
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1612
+$as_echo "no" >&6; }
1613
+elif test $pkg_failed = untried; then
1614
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1615
+$as_echo "no" >&6; }
1616
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1617
+$as_echo "no" >&6; }
1618
+else
1619
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1620
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1621
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1622
+$as_echo "yes" >&6; }
1623
+ LUA_VER=0x050000
1624
+fi
1625
+
1626
+elif test $pkg_failed = untried; then
1627
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1628
+$as_echo "no" >&6; }
1629
+
1630
+pkg_failed=no
1631
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1632
+$as_echo_n "checking for LUA... " >&6; }
1633
+
1634
+if test -n "$LUA_CFLAGS"; then
1635
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1636
+ elif test -n "$PKG_CONFIG"; then
1637
+ if test -n "$PKG_CONFIG" && \
1638
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1639
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1640
+ ac_status=$?
1641
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642
+ test $ac_status = 0; }; then
1643
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1644
+else
1645
+ pkg_failed=yes
1646
+fi
1647
+ else
1648
+ pkg_failed=untried
1649
+fi
1650
+if test -n "$LUA_LIBS"; then
1651
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1652
+ elif test -n "$PKG_CONFIG"; then
1653
+ if test -n "$PKG_CONFIG" && \
1654
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1655
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1656
+ ac_status=$?
1657
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658
+ test $ac_status = 0; }; then
1659
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1660
+else
1661
+ pkg_failed=yes
1662
+fi
1663
+ else
1664
+ pkg_failed=untried
1665
+fi
1666
+
1667
+
1668
+
1669
+if test $pkg_failed = yes; then
1670
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1671
+$as_echo "no" >&6; }
1672
+
1673
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1674
+ _pkg_short_errors_supported=yes
1675
+else
1676
+ _pkg_short_errors_supported=no
1677
+fi
1678
+ if test $_pkg_short_errors_supported = yes; then
1679
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1680
+ else
1681
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1682
+ fi
1683
+ # Put the nasty error message in config.log where it belongs
1684
+ echo "$LUA_PKG_ERRORS" >&5
1685
+
1686
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1687
+$as_echo "no" >&6; }
1688
+elif test $pkg_failed = untried; then
1689
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1690
+$as_echo "no" >&6; }
1691
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1692
+$as_echo "no" >&6; }
1693
+else
1694
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1695
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1696
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1697
+$as_echo "yes" >&6; }
1698
+ LUA_VER=0x050000
1699
+fi
1700
+
1701
+else
1702
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1703
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1704
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1705
+$as_echo "yes" >&6; }
1706
+ LUA_VER=0x050000
1707
+fi
1708
+
1709
+else
1710
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1711
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1712
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1713
+$as_echo "yes" >&6; }
1714
+ LUA_VER=0x050100
1715
+fi
1716
+
1717
+elif test $pkg_failed = untried; then
1718
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1719
+$as_echo "no" >&6; }
1720
+
1721
+pkg_failed=no
1722
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1723
+$as_echo_n "checking for LUA... " >&6; }
1724
+
1725
+if test -n "$LUA_CFLAGS"; then
1726
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1727
+ elif test -n "$PKG_CONFIG"; then
1728
+ if test -n "$PKG_CONFIG" && \
1729
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
1730
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
1731
+ ac_status=$?
1732
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733
+ test $ac_status = 0; }; then
1734
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
1735
+else
1736
+ pkg_failed=yes
1737
+fi
1738
+ else
1739
+ pkg_failed=untried
1740
+fi
1741
+if test -n "$LUA_LIBS"; then
1742
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1743
+ elif test -n "$PKG_CONFIG"; then
1744
+ if test -n "$PKG_CONFIG" && \
1745
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
1746
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
1747
+ ac_status=$?
1748
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749
+ test $ac_status = 0; }; then
1750
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
1751
+else
1752
+ pkg_failed=yes
1753
+fi
1754
+ else
1755
+ pkg_failed=untried
1756
+fi
1757
+
1758
+
1759
+
1760
+if test $pkg_failed = yes; then
1761
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1762
+$as_echo "no" >&6; }
1763
+
1764
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1765
+ _pkg_short_errors_supported=yes
1766
+else
1767
+ _pkg_short_errors_supported=no
1768
+fi
1769
+ if test $_pkg_short_errors_supported = yes; then
1770
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
1771
+ else
1772
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
1773
+ fi
1774
+ # Put the nasty error message in config.log where it belongs
1775
+ echo "$LUA_PKG_ERRORS" >&5
1776
+
1777
+
1778
+pkg_failed=no
1779
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1780
+$as_echo_n "checking for LUA... " >&6; }
1781
+
1782
+if test -n "$LUA_CFLAGS"; then
1783
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1784
+ elif test -n "$PKG_CONFIG"; then
1785
+ if test -n "$PKG_CONFIG" && \
1786
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
1787
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
1788
+ ac_status=$?
1789
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790
+ test $ac_status = 0; }; then
1791
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
1792
+else
1793
+ pkg_failed=yes
1794
+fi
1795
+ else
1796
+ pkg_failed=untried
1797
+fi
1798
+if test -n "$LUA_LIBS"; then
1799
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1800
+ elif test -n "$PKG_CONFIG"; then
1801
+ if test -n "$PKG_CONFIG" && \
1802
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
1803
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
1804
+ ac_status=$?
1805
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806
+ test $ac_status = 0; }; then
1807
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
1808
+else
1809
+ pkg_failed=yes
1810
+fi
1811
+ else
1812
+ pkg_failed=untried
1813
+fi
1814
+
1815
+
1816
+
1817
+if test $pkg_failed = yes; then
1818
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1819
+$as_echo "no" >&6; }
1820
+
1821
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1822
+ _pkg_short_errors_supported=yes
1823
+else
1824
+ _pkg_short_errors_supported=no
1825
+fi
1826
+ if test $_pkg_short_errors_supported = yes; then
1827
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
1828
+ else
1829
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
1830
+ fi
1831
+ # Put the nasty error message in config.log where it belongs
1832
+ echo "$LUA_PKG_ERRORS" >&5
1833
+
1834
+
1835
+pkg_failed=no
1836
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1837
+$as_echo_n "checking for LUA... " >&6; }
1838
+
1839
+if test -n "$LUA_CFLAGS"; then
1840
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1841
+ elif test -n "$PKG_CONFIG"; then
1842
+ if test -n "$PKG_CONFIG" && \
1843
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1844
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1845
+ ac_status=$?
1846
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847
+ test $ac_status = 0; }; then
1848
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1849
+else
1850
+ pkg_failed=yes
1851
+fi
1852
+ else
1853
+ pkg_failed=untried
1854
+fi
1855
+if test -n "$LUA_LIBS"; then
1856
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1857
+ elif test -n "$PKG_CONFIG"; then
1858
+ if test -n "$PKG_CONFIG" && \
1859
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1860
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1861
+ ac_status=$?
1862
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863
+ test $ac_status = 0; }; then
1864
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1865
+else
1866
+ pkg_failed=yes
1867
+fi
1868
+ else
1869
+ pkg_failed=untried
1870
+fi
1871
+
1872
+
1873
+
1874
+if test $pkg_failed = yes; then
1875
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1876
+$as_echo "no" >&6; }
1877
+
1878
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1879
+ _pkg_short_errors_supported=yes
1880
+else
1881
+ _pkg_short_errors_supported=no
1882
+fi
1883
+ if test $_pkg_short_errors_supported = yes; then
1884
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1885
+ else
1886
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1887
+ fi
1888
+ # Put the nasty error message in config.log where it belongs
1889
+ echo "$LUA_PKG_ERRORS" >&5
1890
+
1891
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1892
+$as_echo "no" >&6; }
1893
+elif test $pkg_failed = untried; then
1894
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1895
+$as_echo "no" >&6; }
1896
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1897
+$as_echo "no" >&6; }
1898
+else
1899
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1900
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1901
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1902
+$as_echo "yes" >&6; }
1903
+ LUA_VER=0x050000
1904
+fi
1905
+
1906
+elif test $pkg_failed = untried; then
1907
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1908
+$as_echo "no" >&6; }
1909
+
1910
+pkg_failed=no
1911
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1912
+$as_echo_n "checking for LUA... " >&6; }
1913
+
1914
+if test -n "$LUA_CFLAGS"; then
1915
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1916
+ elif test -n "$PKG_CONFIG"; then
1917
+ if test -n "$PKG_CONFIG" && \
1918
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1919
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1920
+ ac_status=$?
1921
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922
+ test $ac_status = 0; }; then
1923
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1924
+else
1925
+ pkg_failed=yes
1926
+fi
1927
+ else
1928
+ pkg_failed=untried
1929
+fi
1930
+if test -n "$LUA_LIBS"; then
1931
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
1932
+ elif test -n "$PKG_CONFIG"; then
1933
+ if test -n "$PKG_CONFIG" && \
1934
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
1935
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
1936
+ ac_status=$?
1937
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938
+ test $ac_status = 0; }; then
1939
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
1940
+else
1941
+ pkg_failed=yes
1942
+fi
1943
+ else
1944
+ pkg_failed=untried
1945
+fi
1946
+
1947
+
1948
+
1949
+if test $pkg_failed = yes; then
1950
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1951
+$as_echo "no" >&6; }
1952
+
1953
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
1954
+ _pkg_short_errors_supported=yes
1955
+else
1956
+ _pkg_short_errors_supported=no
1957
+fi
1958
+ if test $_pkg_short_errors_supported = yes; then
1959
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1960
+ else
1961
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
1962
+ fi
1963
+ # Put the nasty error message in config.log where it belongs
1964
+ echo "$LUA_PKG_ERRORS" >&5
1965
+
1966
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1967
+$as_echo "no" >&6; }
1968
+elif test $pkg_failed = untried; then
1969
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1970
+$as_echo "no" >&6; }
1971
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1972
+$as_echo "no" >&6; }
1973
+else
1974
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1975
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1976
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1977
+$as_echo "yes" >&6; }
1978
+ LUA_VER=0x050000
1979
+fi
1980
+
1981
+else
1982
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
1983
+ LUA_LIBS=$pkg_cv_LUA_LIBS
1984
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1985
+$as_echo "yes" >&6; }
1986
+ LUA_VER=0x050000
1987
+fi
1988
+
1989
+elif test $pkg_failed = untried; then
1990
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1991
+$as_echo "no" >&6; }
1992
+
1993
+pkg_failed=no
1994
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
1995
+$as_echo_n "checking for LUA... " >&6; }
1996
+
1997
+if test -n "$LUA_CFLAGS"; then
1998
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
1999
+ elif test -n "$PKG_CONFIG"; then
2000
+ if test -n "$PKG_CONFIG" && \
2001
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2002
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2003
+ ac_status=$?
2004
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005
+ test $ac_status = 0; }; then
2006
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2007
+else
2008
+ pkg_failed=yes
2009
+fi
2010
+ else
2011
+ pkg_failed=untried
2012
+fi
2013
+if test -n "$LUA_LIBS"; then
2014
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2015
+ elif test -n "$PKG_CONFIG"; then
2016
+ if test -n "$PKG_CONFIG" && \
2017
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2018
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2019
+ ac_status=$?
2020
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2021
+ test $ac_status = 0; }; then
2022
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2023
+else
2024
+ pkg_failed=yes
2025
+fi
2026
+ else
2027
+ pkg_failed=untried
2028
+fi
2029
+
2030
+
2031
+
2032
+if test $pkg_failed = yes; then
2033
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2034
+$as_echo "no" >&6; }
2035
+
2036
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2037
+ _pkg_short_errors_supported=yes
2038
+else
2039
+ _pkg_short_errors_supported=no
2040
+fi
2041
+ if test $_pkg_short_errors_supported = yes; then
2042
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2043
+ else
2044
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2045
+ fi
2046
+ # Put the nasty error message in config.log where it belongs
2047
+ echo "$LUA_PKG_ERRORS" >&5
2048
+
2049
+
2050
+pkg_failed=no
2051
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2052
+$as_echo_n "checking for LUA... " >&6; }
2053
+
2054
+if test -n "$LUA_CFLAGS"; then
2055
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2056
+ elif test -n "$PKG_CONFIG"; then
2057
+ if test -n "$PKG_CONFIG" && \
2058
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2059
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2060
+ ac_status=$?
2061
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2062
+ test $ac_status = 0; }; then
2063
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2064
+else
2065
+ pkg_failed=yes
2066
+fi
2067
+ else
2068
+ pkg_failed=untried
2069
+fi
2070
+if test -n "$LUA_LIBS"; then
2071
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2072
+ elif test -n "$PKG_CONFIG"; then
2073
+ if test -n "$PKG_CONFIG" && \
2074
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2075
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2076
+ ac_status=$?
2077
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078
+ test $ac_status = 0; }; then
2079
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2080
+else
2081
+ pkg_failed=yes
2082
+fi
2083
+ else
2084
+ pkg_failed=untried
2085
+fi
2086
+
2087
+
2088
+
2089
+if test $pkg_failed = yes; then
2090
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2091
+$as_echo "no" >&6; }
2092
+
2093
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2094
+ _pkg_short_errors_supported=yes
2095
+else
2096
+ _pkg_short_errors_supported=no
2097
+fi
2098
+ if test $_pkg_short_errors_supported = yes; then
2099
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2100
+ else
2101
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2102
+ fi
2103
+ # Put the nasty error message in config.log where it belongs
2104
+ echo "$LUA_PKG_ERRORS" >&5
2105
+
2106
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2107
+$as_echo "no" >&6; }
2108
+elif test $pkg_failed = untried; then
2109
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2110
+$as_echo "no" >&6; }
2111
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2112
+$as_echo "no" >&6; }
2113
+else
2114
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2115
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2116
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2117
+$as_echo "yes" >&6; }
2118
+ LUA_VER=0x050000
2119
+fi
2120
+
2121
+elif test $pkg_failed = untried; then
2122
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2123
+$as_echo "no" >&6; }
2124
+
2125
+pkg_failed=no
2126
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2127
+$as_echo_n "checking for LUA... " >&6; }
2128
+
2129
+if test -n "$LUA_CFLAGS"; then
2130
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2131
+ elif test -n "$PKG_CONFIG"; then
2132
+ if test -n "$PKG_CONFIG" && \
2133
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2134
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2135
+ ac_status=$?
2136
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137
+ test $ac_status = 0; }; then
2138
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2139
+else
2140
+ pkg_failed=yes
2141
+fi
2142
+ else
2143
+ pkg_failed=untried
2144
+fi
2145
+if test -n "$LUA_LIBS"; then
2146
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2147
+ elif test -n "$PKG_CONFIG"; then
2148
+ if test -n "$PKG_CONFIG" && \
2149
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2150
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2151
+ ac_status=$?
2152
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2153
+ test $ac_status = 0; }; then
2154
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2155
+else
2156
+ pkg_failed=yes
2157
+fi
2158
+ else
2159
+ pkg_failed=untried
2160
+fi
2161
+
2162
+
2163
+
2164
+if test $pkg_failed = yes; then
2165
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2166
+$as_echo "no" >&6; }
2167
+
2168
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2169
+ _pkg_short_errors_supported=yes
2170
+else
2171
+ _pkg_short_errors_supported=no
2172
+fi
2173
+ if test $_pkg_short_errors_supported = yes; then
2174
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2175
+ else
2176
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2177
+ fi
2178
+ # Put the nasty error message in config.log where it belongs
2179
+ echo "$LUA_PKG_ERRORS" >&5
2180
+
2181
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2182
+$as_echo "no" >&6; }
2183
+elif test $pkg_failed = untried; then
2184
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2185
+$as_echo "no" >&6; }
2186
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2187
+$as_echo "no" >&6; }
2188
+else
2189
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2190
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2191
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2192
+$as_echo "yes" >&6; }
2193
+ LUA_VER=0x050000
2194
+fi
2195
+
2196
+else
2197
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2198
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2199
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2200
+$as_echo "yes" >&6; }
2201
+ LUA_VER=0x050000
2202
+fi
2203
+
2204
+else
2205
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2206
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2207
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2208
+$as_echo "yes" >&6; }
2209
+ LUA_VER=0x050100
2210
+fi
2211
+
2212
+else
2213
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2214
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2215
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2216
+$as_echo "yes" >&6; }
2217
+ LUA_VER=0x050100
2218
+fi
2219
+
2220
+else
2221
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2222
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2223
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2224
+$as_echo "yes" >&6; }
2225
+ LUA_VER=0x050200
2226
+fi
2227
+
2228
+elif test $pkg_failed = untried; then
2229
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2230
+$as_echo "no" >&6; }
2231
+
2232
+pkg_failed=no
2233
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2234
+$as_echo_n "checking for LUA... " >&6; }
2235
+
2236
+if test -n "$LUA_CFLAGS"; then
2237
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2238
+ elif test -n "$PKG_CONFIG"; then
2239
+ if test -n "$PKG_CONFIG" && \
2240
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2.0\""; } >&5
2241
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.2.0") 2>&5
2242
+ ac_status=$?
2243
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2244
+ test $ac_status = 0; }; then
2245
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.2.0" 2>/dev/null`
2246
+else
2247
+ pkg_failed=yes
2248
+fi
2249
+ else
2250
+ pkg_failed=untried
2251
+fi
2252
+if test -n "$LUA_LIBS"; then
2253
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2254
+ elif test -n "$PKG_CONFIG"; then
2255
+ if test -n "$PKG_CONFIG" && \
2256
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.2.0\""; } >&5
2257
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.2.0") 2>&5
2258
+ ac_status=$?
2259
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260
+ test $ac_status = 0; }; then
2261
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.2.0" 2>/dev/null`
2262
+else
2263
+ pkg_failed=yes
2264
+fi
2265
+ else
2266
+ pkg_failed=untried
2267
+fi
2268
+
2269
+
2270
+
2271
+if test $pkg_failed = yes; then
2272
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2273
+$as_echo "no" >&6; }
2274
+
2275
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2276
+ _pkg_short_errors_supported=yes
2277
+else
2278
+ _pkg_short_errors_supported=no
2279
+fi
2280
+ if test $_pkg_short_errors_supported = yes; then
2281
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.2.0" 2>&1`
2282
+ else
2283
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.2.0" 2>&1`
2284
+ fi
2285
+ # Put the nasty error message in config.log where it belongs
2286
+ echo "$LUA_PKG_ERRORS" >&5
2287
+
2288
+
2289
+pkg_failed=no
2290
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2291
+$as_echo_n "checking for LUA... " >&6; }
2292
+
2293
+if test -n "$LUA_CFLAGS"; then
2294
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2295
+ elif test -n "$PKG_CONFIG"; then
2296
+ if test -n "$PKG_CONFIG" && \
2297
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
2298
+ ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
2299
+ ac_status=$?
2300
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2301
+ test $ac_status = 0; }; then
2302
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1.0" 2>/dev/null`
2303
+else
2304
+ pkg_failed=yes
2305
+fi
2306
+ else
2307
+ pkg_failed=untried
2308
+fi
2309
+if test -n "$LUA_LIBS"; then
2310
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2311
+ elif test -n "$PKG_CONFIG"; then
2312
+ if test -n "$PKG_CONFIG" && \
2313
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
2314
+ ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
2315
+ ac_status=$?
2316
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317
+ test $ac_status = 0; }; then
2318
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1.0" 2>/dev/null`
2319
+else
2320
+ pkg_failed=yes
2321
+fi
2322
+ else
2323
+ pkg_failed=untried
2324
+fi
2325
+
2326
+
2327
+
2328
+if test $pkg_failed = yes; then
2329
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2330
+$as_echo "no" >&6; }
2331
+
2332
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2333
+ _pkg_short_errors_supported=yes
2334
+else
2335
+ _pkg_short_errors_supported=no
2336
+fi
2337
+ if test $_pkg_short_errors_supported = yes; then
2338
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1.0" 2>&1`
2339
+ else
2340
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1.0" 2>&1`
2341
+ fi
2342
+ # Put the nasty error message in config.log where it belongs
2343
+ echo "$LUA_PKG_ERRORS" >&5
2344
+
2345
+
2346
+pkg_failed=no
2347
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2348
+$as_echo_n "checking for LUA... " >&6; }
2349
+
2350
+if test -n "$LUA_CFLAGS"; then
2351
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2352
+ elif test -n "$PKG_CONFIG"; then
2353
+ if test -n "$PKG_CONFIG" && \
2354
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
2355
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
2356
+ ac_status=$?
2357
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2358
+ test $ac_status = 0; }; then
2359
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
2360
+else
2361
+ pkg_failed=yes
2362
+fi
2363
+ else
2364
+ pkg_failed=untried
2365
+fi
2366
+if test -n "$LUA_LIBS"; then
2367
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2368
+ elif test -n "$PKG_CONFIG"; then
2369
+ if test -n "$PKG_CONFIG" && \
2370
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
2371
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
2372
+ ac_status=$?
2373
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2374
+ test $ac_status = 0; }; then
2375
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
2376
+else
2377
+ pkg_failed=yes
2378
+fi
2379
+ else
2380
+ pkg_failed=untried
2381
+fi
2382
+
2383
+
2384
+
2385
+if test $pkg_failed = yes; then
2386
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2387
+$as_echo "no" >&6; }
2388
+
2389
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2390
+ _pkg_short_errors_supported=yes
2391
+else
2392
+ _pkg_short_errors_supported=no
2393
+fi
2394
+ if test $_pkg_short_errors_supported = yes; then
2395
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
2396
+ else
2397
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
2398
+ fi
2399
+ # Put the nasty error message in config.log where it belongs
2400
+ echo "$LUA_PKG_ERRORS" >&5
2401
+
2402
+
2403
+pkg_failed=no
2404
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2405
+$as_echo_n "checking for LUA... " >&6; }
2406
+
2407
+if test -n "$LUA_CFLAGS"; then
2408
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2409
+ elif test -n "$PKG_CONFIG"; then
2410
+ if test -n "$PKG_CONFIG" && \
2411
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2412
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2413
+ ac_status=$?
2414
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2415
+ test $ac_status = 0; }; then
2416
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2417
+else
2418
+ pkg_failed=yes
2419
+fi
2420
+ else
2421
+ pkg_failed=untried
2422
+fi
2423
+if test -n "$LUA_LIBS"; then
2424
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2425
+ elif test -n "$PKG_CONFIG"; then
2426
+ if test -n "$PKG_CONFIG" && \
2427
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2428
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2429
+ ac_status=$?
2430
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431
+ test $ac_status = 0; }; then
2432
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2433
+else
2434
+ pkg_failed=yes
2435
+fi
2436
+ else
2437
+ pkg_failed=untried
2438
+fi
2439
+
2440
+
2441
+
2442
+if test $pkg_failed = yes; then
2443
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444
+$as_echo "no" >&6; }
2445
+
2446
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2447
+ _pkg_short_errors_supported=yes
2448
+else
2449
+ _pkg_short_errors_supported=no
2450
+fi
2451
+ if test $_pkg_short_errors_supported = yes; then
2452
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2453
+ else
2454
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2455
+ fi
2456
+ # Put the nasty error message in config.log where it belongs
2457
+ echo "$LUA_PKG_ERRORS" >&5
2458
+
2459
+
2460
+pkg_failed=no
2461
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2462
+$as_echo_n "checking for LUA... " >&6; }
2463
+
2464
+if test -n "$LUA_CFLAGS"; then
2465
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2466
+ elif test -n "$PKG_CONFIG"; then
2467
+ if test -n "$PKG_CONFIG" && \
2468
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2469
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2470
+ ac_status=$?
2471
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472
+ test $ac_status = 0; }; then
2473
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2474
+else
2475
+ pkg_failed=yes
2476
+fi
2477
+ else
2478
+ pkg_failed=untried
2479
+fi
2480
+if test -n "$LUA_LIBS"; then
2481
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2482
+ elif test -n "$PKG_CONFIG"; then
2483
+ if test -n "$PKG_CONFIG" && \
2484
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2485
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2486
+ ac_status=$?
2487
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2488
+ test $ac_status = 0; }; then
2489
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2490
+else
2491
+ pkg_failed=yes
2492
+fi
2493
+ else
2494
+ pkg_failed=untried
2495
+fi
2496
+
2497
+
2498
+
2499
+if test $pkg_failed = yes; then
2500
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2501
+$as_echo "no" >&6; }
2502
+
2503
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2504
+ _pkg_short_errors_supported=yes
2505
+else
2506
+ _pkg_short_errors_supported=no
2507
+fi
2508
+ if test $_pkg_short_errors_supported = yes; then
2509
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2510
+ else
2511
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2512
+ fi
2513
+ # Put the nasty error message in config.log where it belongs
2514
+ echo "$LUA_PKG_ERRORS" >&5
2515
+
2516
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517
+$as_echo "no" >&6; }
2518
+elif test $pkg_failed = untried; then
2519
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520
+$as_echo "no" >&6; }
2521
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522
+$as_echo "no" >&6; }
2523
+else
2524
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2525
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2526
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527
+$as_echo "yes" >&6; }
2528
+ LUA_VER=0x050000
2529
+fi
2530
+
2531
+elif test $pkg_failed = untried; then
2532
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2533
+$as_echo "no" >&6; }
2534
+
2535
+pkg_failed=no
2536
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2537
+$as_echo_n "checking for LUA... " >&6; }
2538
+
2539
+if test -n "$LUA_CFLAGS"; then
2540
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2541
+ elif test -n "$PKG_CONFIG"; then
2542
+ if test -n "$PKG_CONFIG" && \
2543
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2544
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2545
+ ac_status=$?
2546
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2547
+ test $ac_status = 0; }; then
2548
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2549
+else
2550
+ pkg_failed=yes
2551
+fi
2552
+ else
2553
+ pkg_failed=untried
2554
+fi
2555
+if test -n "$LUA_LIBS"; then
2556
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2557
+ elif test -n "$PKG_CONFIG"; then
2558
+ if test -n "$PKG_CONFIG" && \
2559
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2560
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2561
+ ac_status=$?
2562
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2563
+ test $ac_status = 0; }; then
2564
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2565
+else
2566
+ pkg_failed=yes
2567
+fi
2568
+ else
2569
+ pkg_failed=untried
2570
+fi
2571
+
2572
+
2573
+
2574
+if test $pkg_failed = yes; then
2575
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576
+$as_echo "no" >&6; }
2577
+
2578
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2579
+ _pkg_short_errors_supported=yes
2580
+else
2581
+ _pkg_short_errors_supported=no
2582
+fi
2583
+ if test $_pkg_short_errors_supported = yes; then
2584
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2585
+ else
2586
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2587
+ fi
2588
+ # Put the nasty error message in config.log where it belongs
2589
+ echo "$LUA_PKG_ERRORS" >&5
2590
+
2591
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592
+$as_echo "no" >&6; }
2593
+elif test $pkg_failed = untried; then
2594
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595
+$as_echo "no" >&6; }
2596
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597
+$as_echo "no" >&6; }
2598
+else
2599
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2600
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2601
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2602
+$as_echo "yes" >&6; }
2603
+ LUA_VER=0x050000
2604
+fi
2605
+
2606
+else
2607
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2608
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2609
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2610
+$as_echo "yes" >&6; }
2611
+ LUA_VER=0x050000
2612
+fi
2613
+
2614
+elif test $pkg_failed = untried; then
2615
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616
+$as_echo "no" >&6; }
2617
+
2618
+pkg_failed=no
2619
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2620
+$as_echo_n "checking for LUA... " >&6; }
2621
+
2622
+if test -n "$LUA_CFLAGS"; then
2623
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2624
+ elif test -n "$PKG_CONFIG"; then
2625
+ if test -n "$PKG_CONFIG" && \
2626
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2627
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2628
+ ac_status=$?
2629
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2630
+ test $ac_status = 0; }; then
2631
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2632
+else
2633
+ pkg_failed=yes
2634
+fi
2635
+ else
2636
+ pkg_failed=untried
2637
+fi
2638
+if test -n "$LUA_LIBS"; then
2639
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2640
+ elif test -n "$PKG_CONFIG"; then
2641
+ if test -n "$PKG_CONFIG" && \
2642
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2643
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2644
+ ac_status=$?
2645
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2646
+ test $ac_status = 0; }; then
2647
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2648
+else
2649
+ pkg_failed=yes
2650
+fi
2651
+ else
2652
+ pkg_failed=untried
2653
+fi
2654
+
2655
+
2656
+
2657
+if test $pkg_failed = yes; then
2658
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659
+$as_echo "no" >&6; }
2660
+
2661
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2662
+ _pkg_short_errors_supported=yes
2663
+else
2664
+ _pkg_short_errors_supported=no
2665
+fi
2666
+ if test $_pkg_short_errors_supported = yes; then
2667
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2668
+ else
2669
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2670
+ fi
2671
+ # Put the nasty error message in config.log where it belongs
2672
+ echo "$LUA_PKG_ERRORS" >&5
2673
+
2674
+
2675
+pkg_failed=no
2676
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2677
+$as_echo_n "checking for LUA... " >&6; }
2678
+
2679
+if test -n "$LUA_CFLAGS"; then
2680
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2681
+ elif test -n "$PKG_CONFIG"; then
2682
+ if test -n "$PKG_CONFIG" && \
2683
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2684
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2685
+ ac_status=$?
2686
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2687
+ test $ac_status = 0; }; then
2688
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2689
+else
2690
+ pkg_failed=yes
2691
+fi
2692
+ else
2693
+ pkg_failed=untried
2694
+fi
2695
+if test -n "$LUA_LIBS"; then
2696
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2697
+ elif test -n "$PKG_CONFIG"; then
2698
+ if test -n "$PKG_CONFIG" && \
2699
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2700
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2701
+ ac_status=$?
2702
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2703
+ test $ac_status = 0; }; then
2704
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2705
+else
2706
+ pkg_failed=yes
2707
+fi
2708
+ else
2709
+ pkg_failed=untried
2710
+fi
2711
+
2712
+
2713
+
2714
+if test $pkg_failed = yes; then
2715
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716
+$as_echo "no" >&6; }
2717
+
2718
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2719
+ _pkg_short_errors_supported=yes
2720
+else
2721
+ _pkg_short_errors_supported=no
2722
+fi
2723
+ if test $_pkg_short_errors_supported = yes; then
2724
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2725
+ else
2726
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2727
+ fi
2728
+ # Put the nasty error message in config.log where it belongs
2729
+ echo "$LUA_PKG_ERRORS" >&5
2730
+
2731
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732
+$as_echo "no" >&6; }
2733
+elif test $pkg_failed = untried; then
2734
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735
+$as_echo "no" >&6; }
2736
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737
+$as_echo "no" >&6; }
2738
+else
2739
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2740
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2741
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2742
+$as_echo "yes" >&6; }
2743
+ LUA_VER=0x050000
2744
+fi
2745
+
2746
+elif test $pkg_failed = untried; then
2747
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748
+$as_echo "no" >&6; }
2749
+
2750
+pkg_failed=no
2751
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2752
+$as_echo_n "checking for LUA... " >&6; }
2753
+
2754
+if test -n "$LUA_CFLAGS"; then
2755
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2756
+ elif test -n "$PKG_CONFIG"; then
2757
+ if test -n "$PKG_CONFIG" && \
2758
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2759
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2760
+ ac_status=$?
2761
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2762
+ test $ac_status = 0; }; then
2763
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2764
+else
2765
+ pkg_failed=yes
2766
+fi
2767
+ else
2768
+ pkg_failed=untried
2769
+fi
2770
+if test -n "$LUA_LIBS"; then
2771
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2772
+ elif test -n "$PKG_CONFIG"; then
2773
+ if test -n "$PKG_CONFIG" && \
2774
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2775
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2776
+ ac_status=$?
2777
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2778
+ test $ac_status = 0; }; then
2779
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2780
+else
2781
+ pkg_failed=yes
2782
+fi
2783
+ else
2784
+ pkg_failed=untried
2785
+fi
2786
+
2787
+
2788
+
2789
+if test $pkg_failed = yes; then
2790
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791
+$as_echo "no" >&6; }
2792
+
2793
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2794
+ _pkg_short_errors_supported=yes
2795
+else
2796
+ _pkg_short_errors_supported=no
2797
+fi
2798
+ if test $_pkg_short_errors_supported = yes; then
2799
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2800
+ else
2801
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
2802
+ fi
2803
+ # Put the nasty error message in config.log where it belongs
2804
+ echo "$LUA_PKG_ERRORS" >&5
2805
+
2806
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807
+$as_echo "no" >&6; }
2808
+elif test $pkg_failed = untried; then
2809
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810
+$as_echo "no" >&6; }
2811
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812
+$as_echo "no" >&6; }
2813
+else
2814
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2815
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2816
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817
+$as_echo "yes" >&6; }
2818
+ LUA_VER=0x050000
2819
+fi
2820
+
2821
+else
2822
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2823
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2824
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2825
+$as_echo "yes" >&6; }
2826
+ LUA_VER=0x050000
2827
+fi
2828
+
2829
+else
2830
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
2831
+ LUA_LIBS=$pkg_cv_LUA_LIBS
2832
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833
+$as_echo "yes" >&6; }
2834
+ LUA_VER=0x050100
2835
+fi
2836
+
2837
+elif test $pkg_failed = untried; then
2838
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839
+$as_echo "no" >&6; }
2840
+
2841
+pkg_failed=no
2842
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2843
+$as_echo_n "checking for LUA... " >&6; }
2844
+
2845
+if test -n "$LUA_CFLAGS"; then
2846
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2847
+ elif test -n "$PKG_CONFIG"; then
2848
+ if test -n "$PKG_CONFIG" && \
2849
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
2850
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
2851
+ ac_status=$?
2852
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853
+ test $ac_status = 0; }; then
2854
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1.0" 2>/dev/null`
2855
+else
2856
+ pkg_failed=yes
2857
+fi
2858
+ else
2859
+ pkg_failed=untried
2860
+fi
2861
+if test -n "$LUA_LIBS"; then
2862
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2863
+ elif test -n "$PKG_CONFIG"; then
2864
+ if test -n "$PKG_CONFIG" && \
2865
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1.0\""; } >&5
2866
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.1.0") 2>&5
2867
+ ac_status=$?
2868
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2869
+ test $ac_status = 0; }; then
2870
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1.0" 2>/dev/null`
2871
+else
2872
+ pkg_failed=yes
2873
+fi
2874
+ else
2875
+ pkg_failed=untried
2876
+fi
2877
+
2878
+
2879
+
2880
+if test $pkg_failed = yes; then
2881
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882
+$as_echo "no" >&6; }
2883
+
2884
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2885
+ _pkg_short_errors_supported=yes
2886
+else
2887
+ _pkg_short_errors_supported=no
2888
+fi
2889
+ if test $_pkg_short_errors_supported = yes; then
2890
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1.0" 2>&1`
2891
+ else
2892
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1.0" 2>&1`
2893
+ fi
2894
+ # Put the nasty error message in config.log where it belongs
2895
+ echo "$LUA_PKG_ERRORS" >&5
2896
+
2897
+
2898
+pkg_failed=no
2899
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2900
+$as_echo_n "checking for LUA... " >&6; }
2901
+
2902
+if test -n "$LUA_CFLAGS"; then
2903
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2904
+ elif test -n "$PKG_CONFIG"; then
2905
+ if test -n "$PKG_CONFIG" && \
2906
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2907
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2908
+ ac_status=$?
2909
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2910
+ test $ac_status = 0; }; then
2911
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2912
+else
2913
+ pkg_failed=yes
2914
+fi
2915
+ else
2916
+ pkg_failed=untried
2917
+fi
2918
+if test -n "$LUA_LIBS"; then
2919
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2920
+ elif test -n "$PKG_CONFIG"; then
2921
+ if test -n "$PKG_CONFIG" && \
2922
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
2923
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
2924
+ ac_status=$?
2925
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926
+ test $ac_status = 0; }; then
2927
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
2928
+else
2929
+ pkg_failed=yes
2930
+fi
2931
+ else
2932
+ pkg_failed=untried
2933
+fi
2934
+
2935
+
2936
+
2937
+if test $pkg_failed = yes; then
2938
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939
+$as_echo "no" >&6; }
2940
+
2941
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2942
+ _pkg_short_errors_supported=yes
2943
+else
2944
+ _pkg_short_errors_supported=no
2945
+fi
2946
+ if test $_pkg_short_errors_supported = yes; then
2947
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2948
+ else
2949
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
2950
+ fi
2951
+ # Put the nasty error message in config.log where it belongs
2952
+ echo "$LUA_PKG_ERRORS" >&5
2953
+
2954
+
2955
+pkg_failed=no
2956
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
2957
+$as_echo_n "checking for LUA... " >&6; }
2958
+
2959
+if test -n "$LUA_CFLAGS"; then
2960
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
2961
+ elif test -n "$PKG_CONFIG"; then
2962
+ if test -n "$PKG_CONFIG" && \
2963
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2964
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2965
+ ac_status=$?
2966
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2967
+ test $ac_status = 0; }; then
2968
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2969
+else
2970
+ pkg_failed=yes
2971
+fi
2972
+ else
2973
+ pkg_failed=untried
2974
+fi
2975
+if test -n "$LUA_LIBS"; then
2976
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
2977
+ elif test -n "$PKG_CONFIG"; then
2978
+ if test -n "$PKG_CONFIG" && \
2979
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
2980
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
2981
+ ac_status=$?
2982
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983
+ test $ac_status = 0; }; then
2984
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
2985
+else
2986
+ pkg_failed=yes
2987
+fi
2988
+ else
2989
+ pkg_failed=untried
2990
+fi
2991
+
2992
+
2993
+
2994
+if test $pkg_failed = yes; then
2995
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996
+$as_echo "no" >&6; }
2997
+
2998
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
2999
+ _pkg_short_errors_supported=yes
3000
+else
3001
+ _pkg_short_errors_supported=no
3002
+fi
3003
+ if test $_pkg_short_errors_supported = yes; then
3004
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3005
+ else
3006
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3007
+ fi
3008
+ # Put the nasty error message in config.log where it belongs
3009
+ echo "$LUA_PKG_ERRORS" >&5
3010
+
3011
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012
+$as_echo "no" >&6; }
3013
+elif test $pkg_failed = untried; then
3014
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015
+$as_echo "no" >&6; }
3016
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017
+$as_echo "no" >&6; }
3018
+else
3019
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3020
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3021
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3022
+$as_echo "yes" >&6; }
3023
+ LUA_VER=0x050000
3024
+fi
3025
+
3026
+elif test $pkg_failed = untried; then
3027
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028
+$as_echo "no" >&6; }
3029
+
3030
+pkg_failed=no
3031
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
3032
+$as_echo_n "checking for LUA... " >&6; }
3033
+
3034
+if test -n "$LUA_CFLAGS"; then
3035
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
3036
+ elif test -n "$PKG_CONFIG"; then
3037
+ if test -n "$PKG_CONFIG" && \
3038
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
3039
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
3040
+ ac_status=$?
3041
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042
+ test $ac_status = 0; }; then
3043
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
3044
+else
3045
+ pkg_failed=yes
3046
+fi
3047
+ else
3048
+ pkg_failed=untried
3049
+fi
3050
+if test -n "$LUA_LIBS"; then
3051
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
3052
+ elif test -n "$PKG_CONFIG"; then
3053
+ if test -n "$PKG_CONFIG" && \
3054
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
3055
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
3056
+ ac_status=$?
3057
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058
+ test $ac_status = 0; }; then
3059
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
3060
+else
3061
+ pkg_failed=yes
3062
+fi
3063
+ else
3064
+ pkg_failed=untried
3065
+fi
3066
+
3067
+
3068
+
3069
+if test $pkg_failed = yes; then
3070
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071
+$as_echo "no" >&6; }
3072
+
3073
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3074
+ _pkg_short_errors_supported=yes
3075
+else
3076
+ _pkg_short_errors_supported=no
3077
+fi
3078
+ if test $_pkg_short_errors_supported = yes; then
3079
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3080
+ else
3081
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3082
+ fi
3083
+ # Put the nasty error message in config.log where it belongs
3084
+ echo "$LUA_PKG_ERRORS" >&5
3085
+
3086
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087
+$as_echo "no" >&6; }
3088
+elif test $pkg_failed = untried; then
3089
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090
+$as_echo "no" >&6; }
3091
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092
+$as_echo "no" >&6; }
3093
+else
3094
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3095
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3096
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3097
+$as_echo "yes" >&6; }
3098
+ LUA_VER=0x050000
3099
+fi
3100
+
3101
+else
3102
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3103
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3104
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3105
+$as_echo "yes" >&6; }
3106
+ LUA_VER=0x050000
3107
+fi
3108
+
3109
+elif test $pkg_failed = untried; then
3110
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3111
+$as_echo "no" >&6; }
3112
+
3113
+pkg_failed=no
3114
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
3115
+$as_echo_n "checking for LUA... " >&6; }
3116
+
3117
+if test -n "$LUA_CFLAGS"; then
3118
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
3119
+ elif test -n "$PKG_CONFIG"; then
3120
+ if test -n "$PKG_CONFIG" && \
3121
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
3122
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
3123
+ ac_status=$?
3124
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3125
+ test $ac_status = 0; }; then
3126
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
3127
+else
3128
+ pkg_failed=yes
3129
+fi
3130
+ else
3131
+ pkg_failed=untried
3132
+fi
3133
+if test -n "$LUA_LIBS"; then
3134
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
3135
+ elif test -n "$PKG_CONFIG"; then
3136
+ if test -n "$PKG_CONFIG" && \
3137
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua50 >= 5.0.0 lua50 < 5.1.0\""; } >&5
3138
+ ($PKG_CONFIG --exists --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0") 2>&5
3139
+ ac_status=$?
3140
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141
+ test $ac_status = 0; }; then
3142
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua50 >= 5.0.0 lua50 < 5.1.0" 2>/dev/null`
3143
+else
3144
+ pkg_failed=yes
3145
+fi
3146
+ else
3147
+ pkg_failed=untried
3148
+fi
3149
+
3150
+
3151
+
3152
+if test $pkg_failed = yes; then
3153
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154
+$as_echo "no" >&6; }
3155
+
3156
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3157
+ _pkg_short_errors_supported=yes
3158
+else
3159
+ _pkg_short_errors_supported=no
3160
+fi
3161
+ if test $_pkg_short_errors_supported = yes; then
3162
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
3163
+ else
3164
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua50 >= 5.0.0 lua50 < 5.1.0" 2>&1`
3165
+ fi
3166
+ # Put the nasty error message in config.log where it belongs
3167
+ echo "$LUA_PKG_ERRORS" >&5
3168
+
3169
+
3170
+pkg_failed=no
3171
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
3172
+$as_echo_n "checking for LUA... " >&6; }
3173
+
3174
+if test -n "$LUA_CFLAGS"; then
3175
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
3176
+ elif test -n "$PKG_CONFIG"; then
3177
+ if test -n "$PKG_CONFIG" && \
3178
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
3179
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
3180
+ ac_status=$?
3181
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182
+ test $ac_status = 0; }; then
3183
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
3184
+else
3185
+ pkg_failed=yes
3186
+fi
3187
+ else
3188
+ pkg_failed=untried
3189
+fi
3190
+if test -n "$LUA_LIBS"; then
3191
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
3192
+ elif test -n "$PKG_CONFIG"; then
3193
+ if test -n "$PKG_CONFIG" && \
3194
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
3195
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
3196
+ ac_status=$?
3197
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198
+ test $ac_status = 0; }; then
3199
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
3200
+else
3201
+ pkg_failed=yes
3202
+fi
3203
+ else
3204
+ pkg_failed=untried
3205
+fi
3206
+
3207
+
3208
+
3209
+if test $pkg_failed = yes; then
3210
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211
+$as_echo "no" >&6; }
3212
+
3213
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3214
+ _pkg_short_errors_supported=yes
3215
+else
3216
+ _pkg_short_errors_supported=no
3217
+fi
3218
+ if test $_pkg_short_errors_supported = yes; then
3219
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3220
+ else
3221
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3222
+ fi
3223
+ # Put the nasty error message in config.log where it belongs
3224
+ echo "$LUA_PKG_ERRORS" >&5
3225
+
3226
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227
+$as_echo "no" >&6; }
3228
+elif test $pkg_failed = untried; then
3229
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230
+$as_echo "no" >&6; }
3231
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232
+$as_echo "no" >&6; }
3233
+else
3234
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3235
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3236
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3237
+$as_echo "yes" >&6; }
3238
+ LUA_VER=0x050000
3239
+fi
3240
+
3241
+elif test $pkg_failed = untried; then
3242
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243
+$as_echo "no" >&6; }
3244
+
3245
+pkg_failed=no
3246
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
3247
+$as_echo_n "checking for LUA... " >&6; }
3248
+
3249
+if test -n "$LUA_CFLAGS"; then
3250
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
3251
+ elif test -n "$PKG_CONFIG"; then
3252
+ if test -n "$PKG_CONFIG" && \
3253
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
3254
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
3255
+ ac_status=$?
3256
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257
+ test $ac_status = 0; }; then
3258
+ pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
3259
+else
3260
+ pkg_failed=yes
3261
+fi
3262
+ else
3263
+ pkg_failed=untried
3264
+fi
3265
+if test -n "$LUA_LIBS"; then
3266
+ pkg_cv_LUA_LIBS="$LUA_LIBS"
3267
+ elif test -n "$PKG_CONFIG"; then
3268
+ if test -n "$PKG_CONFIG" && \
3269
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.0.0 lua < 5.1.0\""; } >&5
3270
+ ($PKG_CONFIG --exists --print-errors "lua >= 5.0.0 lua < 5.1.0") 2>&5
3271
+ ac_status=$?
3272
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273
+ test $ac_status = 0; }; then
3274
+ pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.0.0 lua < 5.1.0" 2>/dev/null`
3275
+else
3276
+ pkg_failed=yes
3277
+fi
3278
+ else
3279
+ pkg_failed=untried
3280
+fi
3281
+
3282
+
3283
+
3284
+if test $pkg_failed = yes; then
3285
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286
+$as_echo "no" >&6; }
3287
+
3288
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3289
+ _pkg_short_errors_supported=yes
3290
+else
3291
+ _pkg_short_errors_supported=no
3292
+fi
3293
+ if test $_pkg_short_errors_supported = yes; then
3294
+ LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3295
+ else
3296
+ LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.0.0 lua < 5.1.0" 2>&1`
3297
+ fi
3298
+ # Put the nasty error message in config.log where it belongs
3299
+ echo "$LUA_PKG_ERRORS" >&5
3300
+
3301
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302
+$as_echo "no" >&6; }
3303
+elif test $pkg_failed = untried; then
3304
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305
+$as_echo "no" >&6; }
3306
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307
+$as_echo "no" >&6; }
3308
+else
3309
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3310
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3311
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3312
+$as_echo "yes" >&6; }
3313
+ LUA_VER=0x050000
3314
+fi
3315
+
3316
+else
3317
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3318
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3319
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320
+$as_echo "yes" >&6; }
3321
+ LUA_VER=0x050000
3322
+fi
3323
+
3324
+else
3325
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3326
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3327
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328
+$as_echo "yes" >&6; }
3329
+ LUA_VER=0x050100
3330
+fi
3331
+
3332
+else
3333
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3334
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3335
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336
+$as_echo "yes" >&6; }
3337
+ LUA_VER=0x050100
3338
+fi
3339
+
3340
+elif test $pkg_failed = untried; then
3341
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342
+$as_echo "no" >&6; }
3343
+
3344
+pkg_failed=no
3345
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
3346
+$as_echo_n "checking for LUA... " >&6; }
3347
+
3348
+if test -n "$LUA_CFLAGS"; then
3349
+ pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
3350
+ elif test -n "$PKG_CONFIG"; then
3351
+ if test -n "$PKG_CONFIG" && \
3352
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1.0\""; } >&5
3353
($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1.0") 2>&5
3354
ac_status=$?
3355
@@ -29486,6 +32830,22 @@
3356
$as_echo "yes" >&6; }
3357
LUA_VER=0x050100
3358
fi
3359
+
3360
+else
3361
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3362
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3363
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364
+$as_echo "yes" >&6; }
3365
+ LUA_VER=0x050200
3366
+fi
3367
+
3368
+else
3369
+ LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
3370
+ LUA_LIBS=$pkg_cv_LUA_LIBS
3371
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3372
+$as_echo "yes" >&6; }
3373
+ LUA_VER=0x050200
3374
+fi
3375
if (test "$LUA_VER" = "0x050000"); then
3376
3377
pkg_failed=no
3378
diff -Naur celestia-1.6.1.orig/src/celengine/scriptorbit.cpp celestia-1.6.1/src/celengine/scriptorbit.cpp
3379
--- celestia-1.6.1.orig/src/celengine/scriptorbit.cpp 2011-06-05 18:11:09.000000000 +0200
3380
+++ celestia-1.6.1/src/celengine/scriptorbit.cpp 2013-08-22 06:31:25.112482528 +0200
3381
@@ -73,8 +73,7 @@
3382
3383
if (!moduleName.empty())
3384
{
3385
- lua_pushstring(luaState, "require");
3386
- lua_gettable(luaState, LUA_GLOBALSINDEX);
3387
+ lua_getglobal(luaState, "require");
3388
if (!lua_isfunction(luaState, -1))
3389
{
3390
clog << "Cannot load ScriptedOrbit package: 'require' function is unavailable\n";
3391
@@ -92,8 +91,7 @@
3392
}
3393
3394
// Get the orbit generator function
3395
- lua_pushstring(luaState, funcName.c_str());
3396
- lua_gettable(luaState, LUA_GLOBALSINDEX);
3397
+ lua_getglobal(luaState, funcName.c_str());
3398
3399
if (lua_isfunction(luaState, -1) == 0)
3400
{
3401
@@ -157,9 +155,8 @@
3402
luaOrbitObjectName = GenerateScriptObjectName();
3403
3404
// Attach the name to the script orbit
3405
- lua_pushstring(luaState, luaOrbitObjectName.c_str());
3406
lua_pushvalue(luaState, -2); // dup the orbit object on top of stack
3407
- lua_settable(luaState, LUA_GLOBALSINDEX);
3408
+ lua_setglobal(luaState, luaOrbitObjectName.c_str());
3409
3410
// Now, call orbit object methods to get the bounding radius
3411
// and valid time range.
3412
@@ -206,8 +203,7 @@
3413
{
3414
Point3d pos(0.0, 0.0, 0.0);
3415
3416
- lua_pushstring(luaState, luaOrbitObjectName.c_str());
3417
- lua_gettable(luaState, LUA_GLOBALSINDEX);
3418
+ lua_getglobal(luaState, luaOrbitObjectName.c_str());
3419
if (lua_istable(luaState, -1))
3420
{
3421
lua_pushstring(luaState, "position");
3422
diff -Naur celestia-1.6.1.orig/src/celengine/scriptrotation.cpp celestia-1.6.1/src/celengine/scriptrotation.cpp
3423
--- celestia-1.6.1.orig/src/celengine/scriptrotation.cpp 2011-06-05 18:11:09.000000000 +0200
3424
+++ celestia-1.6.1/src/celengine/scriptrotation.cpp 2013-08-22 06:31:25.112482528 +0200
3425
@@ -74,8 +74,7 @@
3426
3427
if (!moduleName.empty())
3428
{
3429
- lua_pushstring(luaState, "require");
3430
- lua_gettable(luaState, LUA_GLOBALSINDEX);
3431
+ lua_getglobal(luaState, "require");
3432
if (!lua_isfunction(luaState, -1))
3433
{
3434
clog << "Cannot load ScriptedRotation package: 'require' function is unavailable\n";
3435
@@ -93,8 +92,7 @@
3436
}
3437
3438
// Get the rotation generator function
3439
- lua_pushstring(luaState, funcName.c_str());
3440
- lua_gettable(luaState, LUA_GLOBALSINDEX);
3441
+ lua_getglobal(luaState, funcName.c_str());
3442
3443
if (lua_isfunction(luaState, -1) == 0)
3444
{
3445
@@ -131,9 +129,8 @@
3446
luaRotationObjectName = GenerateScriptObjectName();
3447
3448
// Attach the name to the script rotation
3449
- lua_pushstring(luaState, luaRotationObjectName.c_str());
3450
lua_pushvalue(luaState, -2); // dup the rotation object on top of stack
3451
- lua_settable(luaState, LUA_GLOBALSINDEX);
3452
+ lua_setglobal(luaState, luaRotationObjectName.c_str());
3453
3454
// Get the rest of the rotation parameters; they are all optional.
3455
period = SafeGetLuaNumber(luaState, -1, "period", 0.0);
3456
@@ -160,8 +157,7 @@
3457
{
3458
if (tjd != lastTime || !cacheable)
3459
{
3460
- lua_pushstring(luaState, luaRotationObjectName.c_str());
3461
- lua_gettable(luaState, LUA_GLOBALSINDEX);
3462
+ lua_getglobal(luaState, luaRotationObjectName.c_str());
3463
if (lua_istable(luaState, -1))
3464
{
3465
lua_pushstring(luaState, "orientation");
3466
diff -Naur celestia-1.6.1.orig/src/celestia/celx.cpp celestia-1.6.1/src/celestia/celx.cpp
3467
--- celestia-1.6.1.orig/src/celestia/celx.cpp 2011-06-05 18:11:13.000000000 +0200
3468
+++ celestia-1.6.1/src/celestia/celx.cpp 2013-08-22 06:31:25.114482561 +0200
3469
@@ -51,6 +51,10 @@
3470
#include "celx.h"
3471
#include "celestiacore.h"
3472
3473
+#ifndef lua_open
3474
+#define lua_open() luaL_newstate()
3475
+#endif
3476
+
3477
using namespace std;
3478
3479
const char* CelxLua::ClassNames[] =
3480
@@ -294,14 +298,7 @@
3481
3482
static void getField(lua_State* l, int index, const char* key)
3483
{
3484
- // When we move to Lua 5.1, this will be replaced by:
3485
- // lua_getfield(l, index, key);
3486
- lua_pushstring(l, key);
3487
-
3488
- if (index != LUA_GLOBALSINDEX && index != LUA_REGISTRYINDEX)
3489
- lua_gettable(l, index - 1);
3490
- else
3491
- lua_gettable(l, index);
3492
+ lua_getfield(l, index, key);
3493
}
3494
3495
3496
@@ -583,8 +580,7 @@
3497
lua_pop(state,1);
3498
}
3499
}
3500
- lua_pushstring(costate, CleanupCallback);
3501
- lua_gettable(costate, LUA_GLOBALSINDEX);
3502
+ lua_getglobal(costate, CleanupCallback);
3503
if (lua_isnil(costate, -1))
3504
{
3505
return;
3506
@@ -654,7 +650,11 @@
3507
// luaL_error(L, "too many arguments to resume");
3508
lua_xmove(L, co, narg);
3509
3510
+#if LUA_VER >= 0x050200
3511
+ status = lua_resume(co, NULL, narg);
3512
+#else
3513
status = lua_resume(co, narg);
3514
+#endif
3515
#if LUA_VER >= 0x050100
3516
if (status == 0 || status == LUA_YIELD)
3517
#else
3518
@@ -768,8 +768,7 @@
3519
int stack_top = lua_gettop(costate);
3520
#endif
3521
bool result = true;
3522
- lua_pushstring(costate, KbdCallback);
3523
- lua_gettable(costate, LUA_GLOBALSINDEX);
3524
+ lua_getglobal(costate, KbdCallback);
3525
lua_pushstring(costate, c_p);
3526
timeout = getTime() + 1.0;
3527
if (lua_pcall(costate, 1, 1, 0) != 0)
3528
@@ -961,8 +960,11 @@
3529
lua_pushstring(state, streamname.c_str());
3530
lua_settable(state, LUA_REGISTRYINDEX);
3531
}
3532
-
3533
+#if LUA_VER >= 0x050200
3534
+ int status = lua_load(state, readStreamChunk, &info, streamname.c_str(), NULL);
3535
+#else
3536
int status = lua_load(state, readStreamChunk, &info, streamname.c_str());
3537
+#endif
3538
if (status != 0)
3539
cout << "Error loading script: " << lua_tostring(state, -1) << '\n';
3540
3541
@@ -3157,8 +3159,7 @@
3542
if (lua_toboolean(l, 2))
3543
{
3544
// Check for existence of charEntered:
3545
- lua_pushstring(l, KbdCallback);
3546
- lua_gettable(l, LUA_GLOBALSINDEX);
3547
+ lua_getglobal(l, KbdCallback);
3548
if (lua_isnil(l, -1))
3549
{
3550
Celx_DoError(l, "script requested keyboard, but did not provide callback");
3551
@@ -3559,16 +3560,14 @@
3552
return false;
3553
}
3554
3555
- lua_pushstring(state, "KM_PER_MICROLY");
3556
lua_pushnumber(state, (lua_Number)KM_PER_LY/1e6);
3557
- lua_settable(state, LUA_GLOBALSINDEX);
3558
+ lua_setglobal(state, "KM_PER_MICROLY");
3559
3560
loadLuaLibs(state);
3561
3562
// Create the celestia object
3563
- lua_pushstring(state, "celestia");
3564
celestia_new(state, appCore);
3565
- lua_settable(state, LUA_GLOBALSINDEX);
3566
+ lua_setglobal(state, "celestia");
3567
// add reference to appCore in the registry
3568
lua_pushstring(state, "celestia-appcore");
3569
lua_pushlightuserdata(state, static_cast<void*>(appCore));
3570
@@ -3604,7 +3603,7 @@
3571
void LuaState::setLuaPath(const string& s)
3572
{
3573
#if LUA_VER >= 0x050100
3574
- lua_getfield(state, LUA_GLOBALSINDEX, "package");
3575
+ lua_getglobal(state, "package");
3576
lua_pushstring(state, s.c_str());
3577
lua_setfield(state, -2, "path");
3578
lua_pop(state, 1);
3579
@@ -4118,7 +4117,7 @@
3580
openLuaLibrary(state, LUA_LOADLIBNAME, luaopen_package);
3581
3582
// Disallow loadlib
3583
- lua_getfield(state, LUA_GLOBALSINDEX, "package");
3584
+ lua_getglobal(state, "package");
3585
lua_pushnil(state);
3586
lua_setfield(state, -2, "loadlib");
3587
lua_pop(state, 1);
3588
diff -Naur celestia-1.6.1.orig/src/celestia/celx_gl.cpp celestia-1.6.1/src/celestia/celx_gl.cpp
3589
--- celestia-1.6.1.orig/src/celestia/celx_gl.cpp 2011-06-05 18:11:13.000000000 +0200
3590
+++ celestia-1.6.1/src/celestia/celx_gl.cpp 2013-08-22 06:31:25.114482561 +0200
3591
@@ -221,7 +221,6 @@
3592
void LoadLuaGraphicsLibrary(lua_State* l)
3593
{
3594
CelxLua celx(l);
3595
- lua_pushstring(l, "gl");
3596
lua_newtable(l);
3597
3598
celx.registerMethod("Frustum", gl_Frustum);
3599
@@ -259,11 +258,10 @@
3600
celx.registerValue("NEAREST", GL_NEAREST);
3601
celx.registerValue("SRC_ALPHA", GL_SRC_ALPHA);
3602
celx.registerValue("ONE_MINUS_SRC_ALPHA", GL_ONE_MINUS_SRC_ALPHA);
3603
- lua_settable(l, LUA_GLOBALSINDEX);
3604
+ lua_setglobal(l, "gl");
3605
3606
- lua_pushstring(l, "glu");
3607
lua_newtable(l);
3608
celx.registerMethod("LookAt", glu_LookAt);
3609
celx.registerMethod("Ortho2D", glu_Ortho2D);
3610
- lua_settable(l, LUA_GLOBALSINDEX);
3611
+ lua_setglobal(l, "glu");
3612
}
3613
3614