View | Details | Raw Unified | Return to bug 183088
Collapse All | Expand All

(-)Makefile (-1 / +7 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	lutok
4
PORTNAME=	lutok
5
PORTVERSION=	0.2
5
PORTVERSION=	0.3
6
CATEGORIES=	devel
6
CATEGORIES=	devel
7
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
7
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
8
8
Lines 29-34 Link Here
29
# TODO: install the tests, once FreeBSD has a system for ports to install tests
29
# TODO: install the tests, once FreeBSD has a system for ports to install tests
30
CONFIGURE_ARGS+=	--without-atf
30
CONFIGURE_ARGS+=	--without-atf
31
31
32
# Force the use of the lua version we have chosen via USE_LUA.  If we allow
33
# lutok's configure script search for one using pkgconfig files, it might pick
34
# a different version.
35
CONFIGURE_ARGS+=	LUA_CFLAGS="-I${LUA_INCDIR}"
36
CONFIGURE_ARGS+=	LUA_LIBS="-L${LUA_LIBDIR} -llua -lm"
37
32
MAKE_FLAGS+=	examplesdir=${EXAMPLESDIR}
38
MAKE_FLAGS+=	examplesdir=${EXAMPLESDIR}
33
.if ! ${PORT_OPTIONS:MDOCS}
39
.if ! ${PORT_OPTIONS:MDOCS}
34
MAKE_FLAGS+=	doc_DATA=
40
MAKE_FLAGS+=	doc_DATA=
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (lutok-0.2.tar.gz) = df6f175fdd417ff830ec46509816a40b92fec816de726e815b4ae4f7fea405bd
1
SHA256 (lutok-0.3.tar.gz) = 32d8e823432560dae3606094f1203cfab0f23c889440cc7b92a1739a68c2369e
2
SIZE (lutok-0.2.tar.gz) = 492333
2
SIZE (lutok-0.3.tar.gz) = 523296
(-)files/patch-configure (-830 lines)
Lines 1-830 Link Here
1
--- configure.old	2012-05-30 16:35:18.000000000 -0600
2
+++ configure	2013-04-02 17:30:03.558130055 -0600
3
@@ -1,13 +1,11 @@
4
 #! /bin/sh
5
 # Guess values for system-dependent variables and create Makefiles.
6
-# Generated by GNU Autoconf 2.68 for Lutok 0.2.
7
+# Generated by GNU Autoconf 2.69 for Lutok 0.2.
8
 #
9
 # Report bugs to <lutok-discuss@googlegroups.com>.
10
 #
11
 #
12
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
13
-# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14
-# Foundation, Inc.
15
+# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
16
 #
17
 #
18
 # This configure script is free software; the Free Software Foundation
19
@@ -138,6 +136,31 @@
20
 # CDPATH.
21
 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22
 
23
+# Use a proper internal environment variable to ensure we don't fall
24
+  # into an infinite loop, continuously re-executing ourselves.
25
+  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
26
+    _as_can_reexec=no; export _as_can_reexec;
27
+    # We cannot yet assume a decent shell, so we have to provide a
28
+# neutralization value for shells without unset; and this also
29
+# works around shells that cannot unset nonexistent variables.
30
+# Preserve -v and -x to the replacement shell.
31
+BASH_ENV=/dev/null
32
+ENV=/dev/null
33
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
34
+case $- in # ((((
35
+  *v*x* | *x*v* ) as_opts=-vx ;;
36
+  *v* ) as_opts=-v ;;
37
+  *x* ) as_opts=-x ;;
38
+  * ) as_opts= ;;
39
+esac
40
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
41
+# Admittedly, this is quite paranoid, since all the known shells bail
42
+# out after a failed `exec'.
43
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
44
+as_fn_exit 255
45
+  fi
46
+  # We don't want this to propagate to other subprocesses.
47
+          { _as_can_reexec=; unset _as_can_reexec;}
48
 if test "x$CONFIG_SHELL" = x; then
49
   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
50
   emulate sh
51
@@ -171,7 +194,8 @@
52
 else
53
   exitcode=1; echo positional parameters were not saved.
54
 fi
55
-test x\$exitcode = x0 || exit 1"
56
+test x\$exitcode = x0 || exit 1
57
+test -x / || exit 1"
58
   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
59
   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
60
   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
61
@@ -224,21 +248,25 @@
62
 
63
 
64
       if test "x$CONFIG_SHELL" != x; then :
65
-  # We cannot yet assume a decent shell, so we have to provide a
66
-	# neutralization value for shells without unset; and this also
67
-	# works around shells that cannot unset nonexistent variables.
68
-	# Preserve -v and -x to the replacement shell.
69
-	BASH_ENV=/dev/null
70
-	ENV=/dev/null
71
-	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
72
-	export CONFIG_SHELL
73
-	case $- in # ((((
74
-	  *v*x* | *x*v* ) as_opts=-vx ;;
75
-	  *v* ) as_opts=-v ;;
76
-	  *x* ) as_opts=-x ;;
77
-	  * ) as_opts= ;;
78
-	esac
79
-	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
80
+  export CONFIG_SHELL
81
+             # We cannot yet assume a decent shell, so we have to provide a
82
+# neutralization value for shells without unset; and this also
83
+# works around shells that cannot unset nonexistent variables.
84
+# Preserve -v and -x to the replacement shell.
85
+BASH_ENV=/dev/null
86
+ENV=/dev/null
87
+(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
88
+case $- in # ((((
89
+  *v*x* | *x*v* ) as_opts=-vx ;;
90
+  *v* ) as_opts=-v ;;
91
+  *x* ) as_opts=-x ;;
92
+  * ) as_opts= ;;
93
+esac
94
+exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
95
+# Admittedly, this is quite paranoid, since all the known shells bail
96
+# out after a failed `exec'.
97
+$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
98
+exit 255
99
 fi
100
 
101
     if test x$as_have_required = xno; then :
102
@@ -341,6 +369,14 @@
103
 
104
 
105
 } # as_fn_mkdir_p
106
+
107
+# as_fn_executable_p FILE
108
+# -----------------------
109
+# Test if FILE is an executable regular file.
110
+as_fn_executable_p ()
111
+{
112
+  test -f "$1" && test -x "$1"
113
+} # as_fn_executable_p
114
 # as_fn_append VAR VALUE
115
 # ----------------------
116
 # Append the text in VALUE to the end of the definition contained in VAR. Take
117
@@ -462,6 +498,10 @@
118
   chmod +x "$as_me.lineno" ||
119
     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
120
 
121
+  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
122
+  # already done that, so ensure we don't try to do so again and fall
123
+  # in an infinite loop.  This has already happened in practice.
124
+  _as_can_reexec=no; export _as_can_reexec
125
   # Don't try to exec as it changes $[0], causing all sort of problems
126
   # (the dirname of $[0] is not the place where we might find the
127
   # original and so on.  Autoconf is especially sensitive to this).
128
@@ -496,16 +536,16 @@
129
     # ... but there are two gotchas:
130
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
131
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
132
-    # In both cases, we have to default to `cp -p'.
133
+    # In both cases, we have to default to `cp -pR'.
134
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
135
-      as_ln_s='cp -p'
136
+      as_ln_s='cp -pR'
137
   elif ln conf$$.file conf$$ 2>/dev/null; then
138
     as_ln_s=ln
139
   else
140
-    as_ln_s='cp -p'
141
+    as_ln_s='cp -pR'
142
   fi
143
 else
144
-  as_ln_s='cp -p'
145
+  as_ln_s='cp -pR'
146
 fi
147
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
148
 rmdir conf$$.dir 2>/dev/null
149
@@ -517,28 +557,8 @@
150
   as_mkdir_p=false
151
 fi
152
 
153
-if test -x / >/dev/null 2>&1; then
154
-  as_test_x='test -x'
155
-else
156
-  if ls -dL / >/dev/null 2>&1; then
157
-    as_ls_L_option=L
158
-  else
159
-    as_ls_L_option=
160
-  fi
161
-  as_test_x='
162
-    eval sh -c '\''
163
-      if test -d "$1"; then
164
-	test -d "$1/.";
165
-      else
166
-	case $1 in #(
167
-	-*)set "./$1";;
168
-	esac;
169
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
170
-	???[sx]*):;;*)false;;esac;fi
171
-    '\'' sh
172
-  '
173
-fi
174
-as_executable_p=$as_test_x
175
+as_test_x='test -x'
176
+as_executable_p=as_fn_executable_p
177
 
178
 # Sed expression to map a string onto a valid CPP name.
179
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
180
@@ -1248,8 +1268,6 @@
181
 if test "x$host_alias" != x; then
182
   if test "x$build_alias" = x; then
183
     cross_compiling=maybe
184
-    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
185
-    If a cross compiler is detected then cross compile mode will be used" >&2
186
   elif test "x$build_alias" != "x$host_alias"; then
187
     cross_compiling=yes
188
   fi
189
@@ -1526,9 +1544,9 @@
190
 if $ac_init_version; then
191
   cat <<\_ACEOF
192
 Lutok configure 0.2
193
-generated by GNU Autoconf 2.68
194
+generated by GNU Autoconf 2.69
195
 
196
-Copyright (C) 2010 Free Software Foundation, Inc.
197
+Copyright (C) 2012 Free Software Foundation, Inc.
198
 This configure script is free software; the Free Software Foundation
199
 gives unlimited permission to copy, distribute and modify it.
200
 
201
@@ -1606,7 +1624,7 @@
202
 	 test ! -s conftest.err
203
        } && test -s conftest$ac_exeext && {
204
 	 test "$cross_compiling" = yes ||
205
-	 $as_test_x conftest$ac_exeext
206
+	 test -x conftest$ac_exeext
207
        }; then :
208
   ac_retval=0
209
 else
210
@@ -1904,7 +1922,7 @@
211
 	 test ! -s conftest.err
212
        } && test -s conftest$ac_exeext && {
213
 	 test "$cross_compiling" = yes ||
214
-	 $as_test_x conftest$ac_exeext
215
+	 test -x conftest$ac_exeext
216
        }; then :
217
   ac_retval=0
218
 else
219
@@ -1927,7 +1945,7 @@
220
 running configure, to aid debugging if configure makes a mistake.
221
 
222
 It was created by Lutok $as_me 0.2, which was
223
-generated by GNU Autoconf 2.68.  Invocation command line was
224
+generated by GNU Autoconf 2.69.  Invocation command line was
225
 
226
   $ $0 $@
227
 
228
@@ -2354,7 +2372,7 @@
229
     # by default.
230
     for ac_prog in ginstall scoinst install; do
231
       for ac_exec_ext in '' $ac_executable_extensions; do
232
-	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
233
+	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
234
 	  if test $ac_prog = install &&
235
 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
236
 	    # AIX install.  It has an incompatible calling convention.
237
@@ -2523,7 +2541,7 @@
238
   IFS=$as_save_IFS
239
   test -z "$as_dir" && as_dir=.
240
     for ac_exec_ext in '' $ac_executable_extensions; do
241
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
242
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
243
     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
244
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
245
     break 2
246
@@ -2563,7 +2581,7 @@
247
   IFS=$as_save_IFS
248
   test -z "$as_dir" && as_dir=.
249
     for ac_exec_ext in '' $ac_executable_extensions; do
250
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
251
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
252
     ac_cv_prog_ac_ct_STRIP="strip"
253
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
254
     break 2
255
@@ -2614,7 +2632,7 @@
256
   test -z "$as_dir" && as_dir=.
257
     for ac_prog in mkdir gmkdir; do
258
 	 for ac_exec_ext in '' $ac_executable_extensions; do
259
-	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
260
+	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
261
 	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
262
 	     'mkdir (GNU coreutils) '* | \
263
 	     'mkdir (coreutils) '* | \
264
@@ -2667,7 +2685,7 @@
265
   IFS=$as_save_IFS
266
   test -z "$as_dir" && as_dir=.
267
     for ac_exec_ext in '' $ac_executable_extensions; do
268
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
269
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
270
     ac_cv_prog_AWK="$ac_prog"
271
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
272
     break 2
273
@@ -3043,7 +3061,7 @@
274
   IFS=$as_save_IFS
275
   test -z "$as_dir" && as_dir=.
276
     for ac_exec_ext in '' $ac_executable_extensions; do
277
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
279
     ac_cv_prog_CC="${ac_tool_prefix}gcc"
280
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
281
     break 2
282
@@ -3083,7 +3101,7 @@
283
   IFS=$as_save_IFS
284
   test -z "$as_dir" && as_dir=.
285
     for ac_exec_ext in '' $ac_executable_extensions; do
286
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
287
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
288
     ac_cv_prog_ac_ct_CC="gcc"
289
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
290
     break 2
291
@@ -3136,7 +3154,7 @@
292
   IFS=$as_save_IFS
293
   test -z "$as_dir" && as_dir=.
294
     for ac_exec_ext in '' $ac_executable_extensions; do
295
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
296
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
297
     ac_cv_prog_CC="${ac_tool_prefix}cc"
298
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
299
     break 2
300
@@ -3177,7 +3195,7 @@
301
   IFS=$as_save_IFS
302
   test -z "$as_dir" && as_dir=.
303
     for ac_exec_ext in '' $ac_executable_extensions; do
304
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
305
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
306
     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
307
        ac_prog_rejected=yes
308
        continue
309
@@ -3235,7 +3253,7 @@
310
   IFS=$as_save_IFS
311
   test -z "$as_dir" && as_dir=.
312
     for ac_exec_ext in '' $ac_executable_extensions; do
313
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
314
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
315
     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
316
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
317
     break 2
318
@@ -3279,7 +3297,7 @@
319
   IFS=$as_save_IFS
320
   test -z "$as_dir" && as_dir=.
321
     for ac_exec_ext in '' $ac_executable_extensions; do
322
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
323
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
324
     ac_cv_prog_ac_ct_CC="$ac_prog"
325
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
326
     break 2
327
@@ -3725,8 +3743,7 @@
328
 /* end confdefs.h.  */
329
 #include <stdarg.h>
330
 #include <stdio.h>
331
-#include <sys/types.h>
332
-#include <sys/stat.h>
333
+struct stat;
334
 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
335
 struct buf { int x; };
336
 FILE * (*rcsopen) (struct buf *, struct stat *, int);
337
@@ -3961,7 +3978,7 @@
338
     for ac_prog in sed gsed; do
339
     for ac_exec_ext in '' $ac_executable_extensions; do
340
       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
341
-      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
342
+      as_fn_executable_p "$ac_path_SED" || continue
343
 # Check for GNU ac_path_SED and select it if it is found.
344
   # Check for GNU $ac_path_SED
345
 case `"$ac_path_SED" --version 2>&1` in
346
@@ -4037,7 +4054,7 @@
347
     for ac_prog in grep ggrep; do
348
     for ac_exec_ext in '' $ac_executable_extensions; do
349
       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
350
-      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
351
+      as_fn_executable_p "$ac_path_GREP" || continue
352
 # Check for GNU ac_path_GREP and select it if it is found.
353
   # Check for GNU $ac_path_GREP
354
 case `"$ac_path_GREP" --version 2>&1` in
355
@@ -4103,7 +4120,7 @@
356
     for ac_prog in egrep; do
357
     for ac_exec_ext in '' $ac_executable_extensions; do
358
       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
359
-      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
360
+      as_fn_executable_p "$ac_path_EGREP" || continue
361
 # Check for GNU ac_path_EGREP and select it if it is found.
362
   # Check for GNU $ac_path_EGREP
363
 case `"$ac_path_EGREP" --version 2>&1` in
364
@@ -4170,7 +4187,7 @@
365
     for ac_prog in fgrep; do
366
     for ac_exec_ext in '' $ac_executable_extensions; do
367
       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
368
-      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
369
+      as_fn_executable_p "$ac_path_FGREP" || continue
370
 # Check for GNU ac_path_FGREP and select it if it is found.
371
   # Check for GNU $ac_path_FGREP
372
 case `"$ac_path_FGREP" --version 2>&1` in
373
@@ -4426,7 +4443,7 @@
374
   IFS=$as_save_IFS
375
   test -z "$as_dir" && as_dir=.
376
     for ac_exec_ext in '' $ac_executable_extensions; do
377
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
378
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
379
     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
380
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
381
     break 2
382
@@ -4470,7 +4487,7 @@
383
   IFS=$as_save_IFS
384
   test -z "$as_dir" && as_dir=.
385
     for ac_exec_ext in '' $ac_executable_extensions; do
386
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
387
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
388
     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
389
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
390
     break 2
391
@@ -4894,7 +4911,7 @@
392
   IFS=$as_save_IFS
393
   test -z "$as_dir" && as_dir=.
394
     for ac_exec_ext in '' $ac_executable_extensions; do
395
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
396
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
397
     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
398
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
399
     break 2
400
@@ -4934,7 +4951,7 @@
401
   IFS=$as_save_IFS
402
   test -z "$as_dir" && as_dir=.
403
     for ac_exec_ext in '' $ac_executable_extensions; do
404
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
405
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
406
     ac_cv_prog_ac_ct_OBJDUMP="objdump"
407
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
408
     break 2
409
@@ -5240,7 +5257,7 @@
410
   IFS=$as_save_IFS
411
   test -z "$as_dir" && as_dir=.
412
     for ac_exec_ext in '' $ac_executable_extensions; do
413
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
414
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
415
     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
416
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
417
     break 2
418
@@ -5280,7 +5297,7 @@
419
   IFS=$as_save_IFS
420
   test -z "$as_dir" && as_dir=.
421
     for ac_exec_ext in '' $ac_executable_extensions; do
422
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
423
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
424
     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
425
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
426
     break 2
427
@@ -5384,7 +5401,7 @@
428
   IFS=$as_save_IFS
429
   test -z "$as_dir" && as_dir=.
430
     for ac_exec_ext in '' $ac_executable_extensions; do
431
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
432
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
433
     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
434
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
435
     break 2
436
@@ -5428,7 +5445,7 @@
437
   IFS=$as_save_IFS
438
   test -z "$as_dir" && as_dir=.
439
     for ac_exec_ext in '' $ac_executable_extensions; do
440
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
441
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
442
     ac_cv_prog_ac_ct_AR="$ac_prog"
443
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
444
     break 2
445
@@ -5553,7 +5570,7 @@
446
   IFS=$as_save_IFS
447
   test -z "$as_dir" && as_dir=.
448
     for ac_exec_ext in '' $ac_executable_extensions; do
449
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
450
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
451
     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
452
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
453
     break 2
454
@@ -5593,7 +5610,7 @@
455
   IFS=$as_save_IFS
456
   test -z "$as_dir" && as_dir=.
457
     for ac_exec_ext in '' $ac_executable_extensions; do
458
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
459
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
460
     ac_cv_prog_ac_ct_STRIP="strip"
461
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
462
     break 2
463
@@ -5652,7 +5669,7 @@
464
   IFS=$as_save_IFS
465
   test -z "$as_dir" && as_dir=.
466
     for ac_exec_ext in '' $ac_executable_extensions; do
467
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
468
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
469
     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
470
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
471
     break 2
472
@@ -5692,7 +5709,7 @@
473
   IFS=$as_save_IFS
474
   test -z "$as_dir" && as_dir=.
475
     for ac_exec_ext in '' $ac_executable_extensions; do
476
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
477
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
478
     ac_cv_prog_ac_ct_RANLIB="ranlib"
479
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
480
     break 2
481
@@ -6341,7 +6358,7 @@
482
   IFS=$as_save_IFS
483
   test -z "$as_dir" && as_dir=.
484
     for ac_exec_ext in '' $ac_executable_extensions; do
485
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
486
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
487
     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
488
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
489
     break 2
490
@@ -6381,7 +6398,7 @@
491
   IFS=$as_save_IFS
492
   test -z "$as_dir" && as_dir=.
493
     for ac_exec_ext in '' $ac_executable_extensions; do
494
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
495
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
496
     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
497
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
498
     break 2
499
@@ -6461,7 +6478,7 @@
500
   IFS=$as_save_IFS
501
   test -z "$as_dir" && as_dir=.
502
     for ac_exec_ext in '' $ac_executable_extensions; do
503
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
504
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
505
     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
506
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
507
     break 2
508
@@ -6501,7 +6518,7 @@
509
   IFS=$as_save_IFS
510
   test -z "$as_dir" && as_dir=.
511
     for ac_exec_ext in '' $ac_executable_extensions; do
512
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
513
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
514
     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
515
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
516
     break 2
517
@@ -6553,7 +6570,7 @@
518
   IFS=$as_save_IFS
519
   test -z "$as_dir" && as_dir=.
520
     for ac_exec_ext in '' $ac_executable_extensions; do
521
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
522
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
523
     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
524
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
525
     break 2
526
@@ -6593,7 +6610,7 @@
527
   IFS=$as_save_IFS
528
   test -z "$as_dir" && as_dir=.
529
     for ac_exec_ext in '' $ac_executable_extensions; do
530
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
531
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
532
     ac_cv_prog_ac_ct_NMEDIT="nmedit"
533
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
534
     break 2
535
@@ -6645,7 +6662,7 @@
536
   IFS=$as_save_IFS
537
   test -z "$as_dir" && as_dir=.
538
     for ac_exec_ext in '' $ac_executable_extensions; do
539
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
540
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
541
     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
542
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
543
     break 2
544
@@ -6685,7 +6702,7 @@
545
   IFS=$as_save_IFS
546
   test -z "$as_dir" && as_dir=.
547
     for ac_exec_ext in '' $ac_executable_extensions; do
548
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
549
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
550
     ac_cv_prog_ac_ct_LIPO="lipo"
551
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
552
     break 2
553
@@ -6737,7 +6754,7 @@
554
   IFS=$as_save_IFS
555
   test -z "$as_dir" && as_dir=.
556
     for ac_exec_ext in '' $ac_executable_extensions; do
557
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
558
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
559
     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
560
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
561
     break 2
562
@@ -6777,7 +6794,7 @@
563
   IFS=$as_save_IFS
564
   test -z "$as_dir" && as_dir=.
565
     for ac_exec_ext in '' $ac_executable_extensions; do
566
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
567
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
568
     ac_cv_prog_ac_ct_OTOOL="otool"
569
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
570
     break 2
571
@@ -6829,7 +6846,7 @@
572
   IFS=$as_save_IFS
573
   test -z "$as_dir" && as_dir=.
574
     for ac_exec_ext in '' $ac_executable_extensions; do
575
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
576
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
577
     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
578
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
579
     break 2
580
@@ -6869,7 +6886,7 @@
581
   IFS=$as_save_IFS
582
   test -z "$as_dir" && as_dir=.
583
     for ac_exec_ext in '' $ac_executable_extensions; do
584
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
585
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
586
     ac_cv_prog_ac_ct_OTOOL64="otool64"
587
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
588
     break 2
589
@@ -11396,7 +11413,7 @@
590
   IFS=$as_save_IFS
591
   test -z "$as_dir" && as_dir=.
592
     for ac_exec_ext in '' $ac_executable_extensions; do
593
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
594
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
595
     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
596
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
597
     break 2
598
@@ -11440,7 +11457,7 @@
599
   IFS=$as_save_IFS
600
   test -z "$as_dir" && as_dir=.
601
     for ac_exec_ext in '' $ac_executable_extensions; do
602
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
603
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
604
     ac_cv_prog_ac_ct_CXX="$ac_prog"
605
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
606
     break 2
607
@@ -15218,7 +15235,7 @@
608
   IFS=$as_save_IFS
609
   test -z "$as_dir" && as_dir=.
610
     for ac_exec_ext in '' $ac_executable_extensions; do
611
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
612
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
613
     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
614
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
615
     break 2
616
@@ -15261,7 +15278,7 @@
617
   IFS=$as_save_IFS
618
   test -z "$as_dir" && as_dir=.
619
     for ac_exec_ext in '' $ac_executable_extensions; do
620
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
621
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
622
     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
623
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
624
     break 2
625
@@ -15498,7 +15515,7 @@
626
   IFS=$as_save_IFS
627
   test -z "$as_dir" && as_dir=.
628
     for ac_exec_ext in '' $ac_executable_extensions; do
629
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
630
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
631
     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
632
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
633
     break 2
634
@@ -15542,7 +15559,7 @@
635
   IFS=$as_save_IFS
636
   test -z "$as_dir" && as_dir=.
637
     for ac_exec_ext in '' $ac_executable_extensions; do
638
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
639
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
640
     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
641
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
642
     break 2
643
@@ -15669,6 +15686,78 @@
644
     pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
645
  elif test -n "$PKG_CONFIG"; then
646
     if test -n "$PKG_CONFIG" && \
647
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
648
+  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
649
+  ac_status=$?
650
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
651
+  test $ac_status = 0; }; then
652
+  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1 >= 5.1" 2>/dev/null`
653
+else
654
+  pkg_failed=yes
655
+fi
656
+ else
657
+    pkg_failed=untried
658
+fi
659
+if test -n "$LUA_LIBS"; then
660
+    pkg_cv_LUA_LIBS="$LUA_LIBS"
661
+ elif test -n "$PKG_CONFIG"; then
662
+    if test -n "$PKG_CONFIG" && \
663
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1 >= 5.1\""; } >&5
664
+  ($PKG_CONFIG --exists --print-errors "lua-5.1 >= 5.1") 2>&5
665
+  ac_status=$?
666
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
667
+  test $ac_status = 0; }; then
668
+  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1 >= 5.1" 2>/dev/null`
669
+else
670
+  pkg_failed=yes
671
+fi
672
+ else
673
+    pkg_failed=untried
674
+fi
675
+
676
+
677
+
678
+if test $pkg_failed = yes; then
679
+   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
680
+$as_echo "no" >&6; }
681
+
682
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
683
+        _pkg_short_errors_supported=yes
684
+else
685
+        _pkg_short_errors_supported=no
686
+fi
687
+        if test $_pkg_short_errors_supported = yes; then
688
+	        LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua-5.1 >= 5.1" 2>&1`
689
+        else
690
+	        LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua-5.1 >= 5.1" 2>&1`
691
+        fi
692
+	# Put the nasty error message in config.log where it belongs
693
+	echo "$LUA_PKG_ERRORS" >&5
694
+
695
+	true
696
+elif test $pkg_failed = untried; then
697
+     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
698
+$as_echo "no" >&6; }
699
+	true
700
+else
701
+	LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
702
+	LUA_LIBS=$pkg_cv_LUA_LIBS
703
+        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
704
+$as_echo "yes" >&6; }
705
+	lua_found=yes
706
+fi
707
+    fi
708
+
709
+   if test "${lua_found}" = no; then
710
+
711
+pkg_failed=no
712
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5
713
+$as_echo_n "checking for LUA... " >&6; }
714
+
715
+if test -n "$LUA_CFLAGS"; then
716
+    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
717
+ elif test -n "$PKG_CONFIG"; then
718
+    if test -n "$PKG_CONFIG" && \
719
     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\""; } >&5
720
   ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
721
   ac_status=$?
722
@@ -15752,7 +15841,7 @@
723
   IFS=$as_save_IFS
724
   test -z "$as_dir" && as_dir=.
725
     for ac_exec_ext in '' $ac_executable_extensions; do
726
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
727
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
728
     ac_cv_path_LUA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
729
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
730
     break 2
731
@@ -15814,7 +15903,7 @@
732
   IFS=$as_save_IFS
733
   test -z "$as_dir" && as_dir=.
734
     for ac_exec_ext in '' $ac_executable_extensions; do
735
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
736
+  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
737
     ac_cv_path_GIT="$as_dir/$ac_word$ac_exec_ext"
738
     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
739
     break 2
740
@@ -16279,16 +16368,16 @@
741
     # ... but there are two gotchas:
742
     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
743
     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
744
-    # In both cases, we have to default to `cp -p'.
745
+    # In both cases, we have to default to `cp -pR'.
746
     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
747
-      as_ln_s='cp -p'
748
+      as_ln_s='cp -pR'
749
   elif ln conf$$.file conf$$ 2>/dev/null; then
750
     as_ln_s=ln
751
   else
752
-    as_ln_s='cp -p'
753
+    as_ln_s='cp -pR'
754
   fi
755
 else
756
-  as_ln_s='cp -p'
757
+  as_ln_s='cp -pR'
758
 fi
759
 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
760
 rmdir conf$$.dir 2>/dev/null
761
@@ -16348,28 +16437,16 @@
762
   as_mkdir_p=false
763
 fi
764
 
765
-if test -x / >/dev/null 2>&1; then
766
-  as_test_x='test -x'
767
-else
768
-  if ls -dL / >/dev/null 2>&1; then
769
-    as_ls_L_option=L
770
-  else
771
-    as_ls_L_option=
772
-  fi
773
-  as_test_x='
774
-    eval sh -c '\''
775
-      if test -d "$1"; then
776
-	test -d "$1/.";
777
-      else
778
-	case $1 in #(
779
-	-*)set "./$1";;
780
-	esac;
781
-	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
782
-	???[sx]*):;;*)false;;esac;fi
783
-    '\'' sh
784
-  '
785
-fi
786
-as_executable_p=$as_test_x
787
+
788
+# as_fn_executable_p FILE
789
+# -----------------------
790
+# Test if FILE is an executable regular file.
791
+as_fn_executable_p ()
792
+{
793
+  test -f "$1" && test -x "$1"
794
+} # as_fn_executable_p
795
+as_test_x='test -x'
796
+as_executable_p=as_fn_executable_p
797
 
798
 # Sed expression to map a string onto a valid CPP name.
799
 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
800
@@ -16391,7 +16468,7 @@
801
 # values after options handling.
802
 ac_log="
803
 This file was extended by Lutok $as_me 0.2, which was
804
-generated by GNU Autoconf 2.68.  Invocation command line was
805
+generated by GNU Autoconf 2.69.  Invocation command line was
806
 
807
   CONFIG_FILES    = $CONFIG_FILES
808
   CONFIG_HEADERS  = $CONFIG_HEADERS
809
@@ -16458,10 +16535,10 @@
810
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
811
 ac_cs_version="\\
812
 Lutok config.status 0.2
813
-configured by $0, generated by GNU Autoconf 2.68,
814
+configured by $0, generated by GNU Autoconf 2.69,
815
   with options \\"\$ac_cs_config\\"
816
 
817
-Copyright (C) 2010 Free Software Foundation, Inc.
818
+Copyright (C) 2012 Free Software Foundation, Inc.
819
 This config.status script is free software; the Free Software Foundation
820
 gives unlimited permission to copy, distribute and modify it."
821
 
822
@@ -16552,7 +16629,7 @@
823
 _ACEOF
824
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
825
 if \$ac_cs_recheck; then
826
-  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
827
+  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
828
   shift
829
   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
830
   CONFIG_SHELL='$SHELL'
(-)files/patch-m4-lua.m4 (-13 lines)
Lines 1-13 Link Here
1
--- m4/lua.m4.old	2013-03-25 16:13:07.943129888 -0600
2
+++ m4/lua.m4	2013-03-25 16:13:20.186640871 -0600
3
@@ -37,6 +37,10 @@
4
     PKG_CHECK_MODULES([LUA], [lua5.1 >= 5.1], [lua_found=yes], [true])
5
 
6
     if test "${lua_found}" = no; then
7
+        PKG_CHECK_MODULES([LUA], [lua-5.1 >= 5.1], [lua_found=yes], [true])
8
+    fi
9
+
10
+   if test "${lua_found}" = no; then
11
         PKG_CHECK_MODULES([LUA], [lua >= 5.1], [lua_found=yes], [true])
12
     fi
13

Return to bug 183088