]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/lua/files/debian.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / lua / files / debian.patch
1 --- lua-5.0.2.orig/doc/lua.1
2 +++ lua-5.0.2/doc/lua.1
3 @@ -152,6 +152,16 @@
4  .TP
5  .B \-v
6  show version information.
7 +.TP
8 +.B \-C
9 +load the compatibility library into the interpreter. If you specify
10 +this, then you will also need to specify the
11 +.B \-i
12 +option in order to enter an interactive interpreter.
13 +.TP
14 +.B \-P
15 +suppress the creation of a standard LUA_PATH variable. Use this if
16 +you need to run scripts which conflict with system-installed libraries.
17  .SH "SEE ALSO"
18  .BR luac (1)
19  .br
20 @@ -163,5 +173,11 @@
21  L. H. de Figueiredo,
22  and
23  W. Celes
24 -(lua@tecgraf.puc-rio.br)
25 +.LP
26 +.BI <lua@tecgraf.puc-rio.br>
27 +.LP
28 +Debian modifications to the manpage by 
29 +Daniel Silverstone 
30 +.LP
31 +.BI <dsilvers@debian.org>
32  .\" EOF
33 --- lua-5.0.2.orig/src/luac/Makefile
34 +++ lua-5.0.2/src/luac/Makefile
35 @@ -12,8 +12,8 @@
36  
37  all:   $T
38  
39 -$T:    $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
40 -       $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB)
41 +$T:    $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
42 +       $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS)
43  
44  # print.c needs opcode names from lopcodes.c
45  lopcodes.o:    ../lopcodes.c ../lopcodes.h
46 --- lua-5.0.2.orig/src/lib/Makefile
47 +++ lua-5.0.2/src/lib/Makefile
48 @@ -9,16 +9,18 @@
49  OBJS= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o ltablib.o lstrlib.o loadlib.o
50  SRCS= lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c ltablib.c lstrlib.c loadlib.c
51  
52 -T= $(LIB)/liblualib.a
53 +SOBJS := $(patsubst %.o,%.os,$(OBJS))
54 +
55 +T= $(LIB)/liblualib.a
56  
57  all:   $T
58  
59 -$T:    $(OBJS)
60 +$T:    $(OBJS) $(SOBJS)
61         $(AR) $@ $(OBJS)
62         $(RANLIB) $@
63  
64  clean:
65 -       rm -f $(OBJS) $T
66 +       rm -f $(OBJS) $(SOBJS) $T
67  
68  co:
69         co -q -f -M $(SRCS)
70 --- lua-5.0.2.orig/src/lib/liolib.c
71 +++ lua-5.0.2/src/lib/liolib.c
72 @@ -149,7 +149,14 @@
73    if (f == stdin || f == stdout || f == stderr)
74      return 0;  /* file cannot be closed */
75    else {
76 -    int ok = (pclose(f) != -1) || (fclose(f) == 0);
77 +    int ok;
78 +    errno = 0;
79 +    ok = (pclose(f) != -1);
80 +    if (!ok) {
81 +      if (errno == ECHILD) ok = 1; /* pclose worked, but could reap child */
82 +      else ok = (fclose(f) == 0);
83 +    }
84 +    
85      if (ok)
86        *(FILE **)lua_touserdata(L, 1) = NULL;  /* mark file as closed */
87      return ok;
88 --- lua-5.0.2.orig/src/lua/Makefile
89 +++ lua-5.0.2/src/lua/Makefile
90 @@ -12,8 +12,8 @@
91  
92  all:   $T
93  
94 -$T:    $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
95 -       $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB)
96 +$T:    $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
97 +       $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB)
98  
99  $(LIB)/liblua.a:
100         cd ..; $(MAKE)
101 --- lua-5.0.2.orig/src/lua/lua.c
102 +++ lua-5.0.2/src/lua/lua.c
103 @@ -65,7 +65,57 @@
104  
105  static const char *progname = PROGNAME;
106  
107 +/* These bits are added for Debian's -P functionality */
108  
109 +static int done_path = 0;
110 +static int suppress_path = 0;
111 +
112 +static const char* paths[] = {
113 +  "~/.lua",
114 +  "~/share/lua",
115 +  "/usr/share/lua",
116 +  "/usr/local/share/lua",
117 +  NULL
118 +};
119 +
120 +static void do_path()
121 +{
122 +  const char** p = paths;
123 +  int any;
124 +  if( done_path || suppress_path ) return;
125 +  if( ! L ) return;
126 +  done_path = 1;
127 +  lua_pushliteral(L,"LUA_PATH");
128 +  lua_pushliteral(L,"");
129 +  while( *p ) {
130 +    any = 0;
131 +    if( **p == '~' ) {
132 +      const char* home = getenv("HOME");
133 +      if( home ) {
134 +        lua_pushstring(L,home);
135 +        lua_pushstring(L,*p+1);
136 +        lua_pushliteral(L,"/?.lua;");
137 +        lua_pushstring(L,home);
138 +        lua_pushstring(L,*p+1);
139 +        lua_pushliteral(L,"/?;");
140 +        any = 6;
141 +      }
142 +    } else {
143 +      lua_pushstring(L,*p);
144 +      lua_pushliteral(L,"/?.lua;");
145 +      lua_pushstring(L,*p);
146 +      lua_pushliteral(L,"/?;");
147 +      any = 4;
148 +    }
149 +    if( any ) {
150 +      lua_concat(L,any+1);
151 +    }
152 +    p++;
153 +  }
154 +  lua_pushliteral(L, "?.lua;?");
155 +  lua_concat(L,2);
156 +  lua_settable(L, LUA_GLOBALSINDEX);
157 +}
158  
159  static const luaL_reg lualibs[] = {
160    {"base", luaopen_base},
161 @@ -85,13 +135,12 @@
162  static void lstop (lua_State *l, lua_Debug *ar) {
163    (void)ar;  /* unused arg. */
164    lua_sethook(l, NULL, 0, 0);
165 -  luaL_error(l, "interrupted!");
166 +  lua_pushnil(l);
167 +  lua_error(l);
168  }
169  
170  
171  static void laction (int i) {
172 -  signal(i, SIG_DFL); /* if another SIGINT happens before lstop,
173 -                              terminate process (default action) */
174    lua_sethook(L, lstop, LUA_MASKCALL | LUA_MASKRET | LUA_MASKCOUNT, 1);
175  }
176  
177 @@ -105,6 +154,9 @@
178    "  -i       enter interactive mode after executing `script'\n"
179    "  -l name  load and run library `name'\n"
180    "  -v       show version information\n"
181 +  "  -C       load the compatibility library before startup\n"
182 +  "  -P       suppress the setting of LUA_PATH. If not specified\n"
183 +  "           very early, this setting may not take effect.\n"
184    "  --       stop handling options\n" ,
185    progname);
186  }
187 @@ -120,23 +172,42 @@
188    const char *msg;
189    if (status) {
190      msg = lua_tostring(L, -1);
191 -    if (msg == NULL) msg = "(error with no message)";
192 -    l_message(progname, msg);
193 +    if (msg == NULL) {
194 +      const char *str;
195 +      lua_getglobal(L, "LUA_DEFAULT_ERROR");  /* try global variable */
196 +      str = lua_tostring(L, -1);
197 +      lua_pop(L, 1);
198 +      if (str) {
199 +        if (*str != '\0') msg = str;
200 +      } else msg = "(error with no message)";
201 +    }
202 +    if (msg) l_message(progname, msg);
203      lua_pop(L, 1);
204    }
205    return status;
206  }
207  
208 +static void sig_catch(int sig, void (*handler)(int))
209 +{
210 +  struct sigaction sa;
211 +  sa.sa_handler = handler;
212 +  sa.sa_flags = 0;
213 +  sigemptyset(&sa.sa_mask);
214 +  sigaction(sig, &sa, 0);         /* XXX ignores errors */
215 +}
216 +
217  
218  static int lcall (int narg, int clear) {
219    int status;
220    int base = lua_gettop(L) - narg;  /* function index */
221 +  do_path();
222 +  lua_settop(L,base);
223    lua_pushliteral(L, "_TRACEBACK");
224    lua_rawget(L, LUA_GLOBALSINDEX);  /* get traceback function */
225    lua_insert(L, base);  /* put it under chunk and args */
226 -  signal(SIGINT, laction);
227 +  sig_catch(SIGINT, laction);
228    status = lua_pcall(L, narg, (clear ? 0 : LUA_MULTRET), base);
229 -  signal(SIGINT, SIG_DFL);
230 +  sig_catch(SIGINT, SIG_DFL);
231    lua_remove(L, base);  /* remove traceback function */
232    return status;
233  }
234 @@ -179,6 +250,7 @@
235  
236  
237  static int load_file (const char *name) {
238 +  do_path();
239    lua_pushliteral(L, "require");
240    lua_rawget(L, LUA_GLOBALSINDEX);
241    if (!lua_isfunction(L, -1)) {  /* no `require' defined? */
242 @@ -279,6 +351,7 @@
243    int status;
244    const char *oldprogname = progname;
245    progname = NULL;
246 +  do_path();
247    while ((status = load_string()) != -1) {
248      if (status == 0) status = lcall(0, 0);
249      report(status);
250 @@ -352,6 +425,18 @@
251              return 1;  /* stop if file fails */
252            break;
253          }
254 +        case 'C': {
255 +          const char *filename = "compat.lua";
256 +          if (load_file(filename))
257 +            return 1;  /* stop if file fails */
258 +          break;
259 +        }      
260 +        case 'P': {
261 +          if( done_path )
262 +            l_message(progname, "option `-P' is too late, ignored");
263 +          suppress_path = 1;
264 +          break;
265 +        }
266          case 'c': {
267            l_message(progname, "option `-c' is deprecated");
268            break;
269 @@ -413,6 +498,7 @@
270    status = handle_luainit();
271    if (status == 0) {
272      status = handle_argv(s->argv, &interactive);
273 +    do_path();
274      if (status == 0 && interactive) manual_input();
275    }
276    s->status = status;
277 --- lua-5.0.2.orig/src/Makefile
278 +++ lua-5.0.2/src/Makefile
279 @@ -67,16 +67,19 @@
280         lvm.h \
281         lzio.h
282  
283 -T= $(LIB)/liblua.a
284 +T= $(LIB)/liblua.a
285 +
286 +SOBJS := $(patsubst %.o,%.os,$(OBJS))
287  
288  all:   $T
289  
290 -$T:    $(OBJS)
291 +$T:    $(OBJS) $(SOBJS)
292         $(AR) $@ $(OBJS)
293         $(RANLIB) $@
294  
295 +
296  clean:
297 -       rm -f $(OBJS) $T
298 +       rm -f $(OBJS) $(SOBJS) $T
299  
300  co:
301         co -q -f -M $(SRCS)
302 --- lua-5.0.2.orig/lua-config
303 +++ lua-5.0.2/lua-config
304 @@ -0,0 +1,165 @@
305 +#!/usr/bin/lua
306 +-- -*- Lua -*-
307 +
308 +-- This file is under the terms of the MIT licence. Do as you will.
309 +
310 +-- Process the arg table
311 +function usage()
312 +   info();
313 +   io.stderr:write([[Usage: lua-config <options>
314 +
315 +  Valid options are:
316 +
317 +  --include      Outputs the -I switches needed to find <lua.h> etc.
318 +
319 +  --static       Outputs the full path to the static libraries
320 +
321 +  --libs         Outputs the -L and -l switches needed to find the library
322 +  --libs-only-L  Outputs only the -L switches
323 +  --libs-only-l  Outputs only the -l switches
324 +
325 +  --extralibs    Outputs the -l switches appropriate to the extra libs needed by lua
326 +
327 +  Note that --static is mututally exclusive with the --libs* options
328 +
329 +  Also, you can specify the following
330 +
331 +  --vmonly       Outputs only the switches for finding the VM libraries
332 +  --libonly      Outputs only the switches for finding the standard libraries
333 +  --both         Outputs the switches for both [The default]
334 +
335 +  Example:
336 +
337 +  gcc `lua-config --include` my_prog.c -o my_prog `lua-config --libs`
338 +
339 +]] );
340 +   os.exit(1);
341 +end
342 +
343 +function version()
344 +   io.stdout:write( [[5.0.0
345 +]] );
346 +   os.exit(0);
347 +end
348 +
349 +function info()
350 +   io.stdout:write( [[lua-config version 1.10 (c) Daniel Silverstone 2002
351 +
352 +lua-config was written for the Debian GNU/Linux project. This version
353 +of lua-config will provide switches appropriate to Lua 5.0
354 +
355 +]] );
356 +end
357 +
358 +if( table.getn(arg) == 0 ) then
359 +   usage()
360 +end
361 +
362 +output_vm      = 1
363 +output_lib     = 1
364 +
365 +output_static  = 0
366 +output_libs_l  = 0
367 +output_libs_L  = 0
368 +output_include = 0
369 +output_extras  = 0
370 +
371 +table.foreachi( arg, 
372 +        function(n,param)
373 +           if( param == '--version' ) then
374 +              version()
375 +           end
376 +           if( param == '--help' ) then
377 +              usage()
378 +           end
379 +           if( param == '--include' ) then
380 +              output_include = 1;
381 +              return
382 +           end
383 +           if( param == '--libs' ) then
384 +              output_libs_l = 1;
385 +              output_libs_L = 1;
386 +              return
387 +           end
388 +           if( param == '--libs-only-L' ) then
389 +              output_libs_L = 1;
390 +              return
391 +           end
392 +           if( param == '--libs-only-l' ) then
393 +              output_libs_l = 1;
394 +              return
395 +           end
396 +           if( param == '--extralibs' ) then
397 +              output_extras = 1;
398 +              return
399 +           end
400 +           if( param == '--static' ) then
401 +              output_static = 1;
402 +              return
403 +           end
404 +           if( param == '--vmonly' ) then
405 +              output_vm = 1;
406 +              output_lib = 0;
407 +              return
408 +           end
409 +           if( param == '--libonly' ) then
410 +              output_lib = 1;
411 +              output_vm = 0;
412 +              return
413 +           end
414 +           if( param == '--both' ) then
415 +              output_lib = 1;
416 +              output_vm = 1;
417 +              return
418 +           end
419 +           io.stderr:write( "Unknown argument ", param );
420 +           usage();
421 +        end );
422 +
423 +if( (output_extras + output_libs_l + output_libs_L + output_include + output_static) == 0 ) then
424 +   usage()
425 +end
426 +
427 +if( (output_static + (output_libs_l or output_libs_L)) > 1 ) then
428 +   usage();
429 +end
430 +
431 +outargs = {}
432 +
433 +if( output_include == 1 ) then
434 +   table.insert( outargs, "-I/usr/include/lua" );
435 +end
436 +
437 +if( output_libs_L == 1 ) then
438 +   table.insert( outargs, "-L/usr/include" );
439 +end
440 +
441 +if( output_libs_l == 1 ) then
442 +   if( output_lib == 1 ) then
443 +      table.insert( outargs, "-llualib" );
444 +   end
445 +   if( output_vm == 1 ) then
446 +      table.insert( outargs, "-llua" );
447 +   end
448 +end
449 +
450 +if( output_static == 1 ) then
451 +   if( output_lib == 1 ) then
452 +      table.insert( outargs, "/usr/lib/liblualib.a" );
453 +   end
454 +   if( output_vm == 1 ) then
455 +      table.insert( outargs, "/usr/lib/liblua.a" );
456 +   end
457 +end
458 +
459 +if( output_extras == 1 ) then
460 +   table.insert( outargs, "-lm" );
461 +end
462 +
463 +io.stdout:write( outargs[1] );
464 +
465 +for i=2,table.getn(outargs) do
466 +   io.stdout:write( " ", outargs[i] );
467 +end
468 +
469 +io.stdout:write( "\n" );
470 --- lua-5.0.2.orig/config
471 +++ lua-5.0.2/config
472 @@ -25,15 +25,15 @@
473  # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others),
474  # uncomment the next two lines.
475  #
476 -#LOADLIB= -DUSE_DLOPEN=1
477 -#DLLIB= -ldl
478 +LOADLIB= -DUSE_DLOPEN=1
479 +DLLIB= -ldl
480  #
481  # In Linux with gcc, you should also uncomment the next definition for
482  # MYLDFLAGS, which passes -E (= -export-dynamic) to the linker. This option
483  # allows dynamic libraries to link back to the `lua' program, so that they do
484  # not need the Lua libraries. (Other systems may have an equivalent facility.)
485  #
486 -#MYLDFLAGS= -Wl,-E
487 +MYLDFLAGS= -Wl,-E
488  #
489  # On Windows systems. support for dynamic loading is enabled by default.
490  # To disable this support, uncomment the next line.
491 @@ -92,7 +92,7 @@
492  # or if you are using a modified interpreter that does not need them,
493  # then comment the following line or add the appropriates libraries.
494  #
495 -EXTRA_LIBS= -lm
496 +#EXTRA_LIBS= -lm
497  
498  # If you want to customize the stand-alone Lua interpreter, uncomment and
499  # edit the following two lines; also edit etc/saconfig.c to suit your needs.
500 @@ -100,8 +100,8 @@
501  # to add -lreadline (and perhaps also -lhistory and -lcurses or -lncurses)
502  # to EXTRA_LIBS.
503  #
504 -#USERCONF=-DLUA_USERCONFIG='"$(LUA)/etc/saconfig.c"' -DUSE_READLINE
505 -#EXTRA_LIBS= -lm -ldl -lreadline # -lhistory -lcurses -lncurses
506 +USERCONF=-DLUA_USERCONFIG='"$(LUA)/etc/saconfig.c"' -DUSE_READLINE
507 +EXTRA_LIBS= -lreadline -lm -ldl # -lhistory -lcurses -lncurses
508  
509  # ------------------------------------------------------------------ C compiler
510  
511 @@ -119,7 +119,7 @@
512  # debug information. If you only want the shared libraries, you may want to
513  # add -fPIC to MYCFLAGS.
514  #
515 -MYCFLAGS= -O2
516 +MYCFLAGS= -O3 -g
517  #MYCFLAGS= -O3 -fomit-frame-pointer # -fPIC
518  
519  # Write here any options you may need for your C linker.
520 @@ -148,19 +148,20 @@
521  
522  # Locations for "make install". You may need to be root do "make install".
523  #
524 -INSTALL_ROOT= /usr/local
525 +INSTALL_ROOT= $(PREFIX)/usr/
526  INSTALL_BIN= $(INSTALL_ROOT)/bin
527 -INSTALL_INC= $(INSTALL_ROOT)/include
528 +INSTALL_INC= $(INSTALL_ROOT)/include/lua
529  INSTALL_LIB= $(INSTALL_ROOT)/lib
530 -INSTALL_MAN= $(INSTALL_ROOT)/man/man1
531 +INSTALL_MAN= $(INSTALL_ROOT)/share/man/man1
532 +INSTALL_SHARE= $(INSTALL_ROOT)/share/lua
533  
534  # You may prefer to use "install" instead of "cp" if you have it.
535  # If you use "install", you may also want to change the permissions after -m.
536  #
537 -INSTALL_EXEC= cp
538 -INSTALL_DATA= cp
539 -#INSTALL_EXEC= install -m 0755
540 -#INSTALL_DATA= install -m 0644
541 +#INSTALL_EXEC= cp
542 +#INSTALL_DATA= cp
543 +INSTALL_EXEC= install -m 0755
544 +INSTALL_DATA= install -m 0644
545  
546  # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
547  
548 @@ -173,6 +174,10 @@
549  INCS= -I$(INC) $(EXTRA_INCS)
550  DEFS= $(NUMBER) $(EXTRA_DEFS)
551  
552 -CFLAGS= $(MYCFLAGS) $(WARN) $(INCS) $(DEFS)
553 +CFLAGS= $(MYCFLAGS) $(WARN) $(INCS) $(DEFS) -DINSTALL_SHARE=\"$(INSTALL_SHARE)\"
554 +
555 +# Extra rule for .os files
556 +%.os: %.c
557 +       $(CC) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
558  
559  # (end of config)
560 --- lua-5.0.2.orig/Makefile
561 +++ lua-5.0.2/Makefile
562 @@ -38,9 +38,13 @@
563  
564  # shared libraries (for Linux)
565  so:
566 -       ld -o lib/liblua.so.$V -shared src/*.o
567 -       ld -o lib/liblualib.so.$V -shared src/lib/*.o
568 -       cd lib; ln -fs liblua.so.$V liblua.so; ln -fs liblualib.so.$V liblualib.so
569 +       gcc -o lib/liblua.so.$V -shared -Wl,-soname,liblua.so.$V \
570 +               src/*.os -lc
571 +       ln -fs liblua.so.$V lib/liblua-build.so
572 +       gcc -o lib/liblualib.so.$V -shared -Wl,-soname,liblualib.so.$V \
573 +               src/lib/*.os -Llib -llua-build -lm -ldl -lc
574 +       cd lib; ln -fs liblua.so.$V liblua.so; \
575 +                ln -fs liblualib.so.$V liblualib.so
576  
577  # binaries using shared libraries
578  sobin:
579 --- lua-5.0.2.orig/lua.pc
580 +++ lua-5.0.2/lua.pc
581 @@ -0,0 +1,11 @@
582 +prefix=/usr
583 +exec_prefix=/usr
584 +libdir=/usr/lib
585 +includedir=/usr/include/
586 +
587 +Name: lua
588 +Description: The Lua 5.0 programming language
589 +Version: 5.0.0
590 +Libs: -L${libdir} -llua
591 +Cflags: -I${includedir}/lua
592 +
593 --- lua-5.0.2.orig/lualib.pc
594 +++ lua-5.0.2/lualib.pc
595 @@ -0,0 +1,12 @@
596 +prefix=/usr
597 +exec_prefix=/usr
598 +libdir=/usr/lib
599 +includedir=/usr/include/
600 +
601 +Name: lua
602 +Description: The Lua 5.0 programming language addon libraries
603 +Version: 5.0.0
604 +Requires: lua
605 +Libs: -L${libdir} -llualib
606 +Cflags: -I${includedir}/lua
607 +
608 --- lua-5.0.2.orig/lua-config.1
609 +++ lua-5.0.2/lua-config.1
610 @@ -0,0 +1,64 @@
611 +.\" Manual page for lua-config
612 +.\" Written by Daniel Silverstone <dsilvers@debian.org>
613 +.\" For the Debian GNU/Linux system
614 +
615 +.TH lua-config 1
616 +.SH NAME
617 +lua-config \- Lua configuration information
618 +.SH SYNOPSIS
619 +Basic usage
620 +.PP
621 +.B gcc
622 +`
623 +.B lua-config
624 +.I \-\-include
625 +`
626 +my_prog.c
627 +.B \-o
628 +my_prog
629 +`
630 +.B lua-config
631 +.I \-\-libs
632 +`
633 +
634 +.SH DESCRIPTION
635 +The lua-config script allows you to determine useful information
636 +about the chosen version of lua running on the Debian GNU/Linux
637 +system in use.
638 +More information can be found by running
639 +.B lua-config
640 +without any arguments.
641 +.SH CAVEATS
642 +This script is unique to Debian and as such you shouldn't rely
643 +on its presence on every system. Lua is an embedded language
644 +by default and different Linux distributions each take a different
645 +approach to making it possible to compile with Lua. The 
646 +.B pkg-config
647 +system also provides a way to look for libraries and is more likely
648 +to be supported across different Linux distributions. Debian's
649 +.B pkg-config
650 +name for Lua 5.0 is
651 +.I lua
652 +and the libraries are in
653 +.I lualib.
654 +These
655 +.B pkg-config
656 +files can be found in the 
657 +.I liblua-dev 
658 +and 
659 +.I liblualib-dev 
660 +packages.
661 +.SH AUTHOR
662 +lua-config was written by 
663 +.B Daniel Silverstone
664 +.BI <dsilvers@debian.org>.
665 +
666 +This manual page was written by
667 +.B Daniel Silverstone
668 +.BI <dsilvers@debian.org>.
669 +For the Debian project. It may be used without restriction in any
670 +other system.
671 +.SH "SEE ALSO"
672 +.IR lua (1)
673 +.IR pkg-config (1)
674 +