Submitted By: Luca Piol <liliana.perossa at fastwebnet dot it>
Date: 2006-10-04
Initial Package Version: 5.0.3
Upstream Status: Not submitted
Origin: self
Description: Fixes config file to use blfs layout, enables dynamic
loading, allows dynamic libraries to link back to lua program, enable
popen and pclose, uses mkstemp instead of tmpname, enables fast rounding
method for conversion from doubles to ints, enables support for readline
and ncurses, fixes INSTALL_ROOT to /usr and fixes make install process to use install insted of cp.
diff -Naur lua-5.0.3/config lua-5.0.3/config
|
|
|
25 | 25 | # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others), |
26 | 26 | # uncomment the next two lines. |
27 | 27 | # |
28 | | #LOADLIB= -DUSE_DLOPEN=1 |
29 | | #DLLIB= -ldl |
| 28 | LOADLIB= -DUSE_DLOPEN=1 |
| 29 | DLLIB= -ldl |
30 | 30 | # |
31 | 31 | # In Linux with gcc, you should also uncomment the next definition for |
32 | 32 | # MYLDFLAGS, which passes -E (= -export-dynamic) to the linker. This option |
33 | 33 | # allows dynamic libraries to link back to the `lua' program, so that they do |
34 | 34 | # not need the Lua libraries. (Other systems may have an equivalent facility.) |
35 | 35 | # |
36 | | #MYLDFLAGS= -Wl,-E |
| 36 | MYLDFLAGS= -Wl,-E |
37 | 37 | # |
38 | 38 | # On Windows systems. support for dynamic loading is enabled by default. |
39 | 39 | # To disable this support, uncomment the next line. |
… |
… |
|
45 | 45 | # If your system is not POSIX but has popen and pclose, define USE_POPEN=1. |
46 | 46 | # If you don't want to support pipes, define USE_POPEN=0. |
47 | 47 | # |
48 | | #POPEN= -DUSE_POPEN=1 |
| 48 | POPEN= -DUSE_POPEN=1 |
49 | 49 | #POPEN= -DUSE_POPEN=0 |
50 | 50 | # |
51 | 51 | # The form below will probably work in (some) Windows systems. |
… |
… |
|
60 | 60 | # |
61 | 61 | #TMPNAM= -DUSE_TMPNAME=1 |
62 | 62 | #TMPNAM= -DUSE_TMPNAME=0 |
| 63 | TMPNAM= -DUSE_MKSTEMP=1 |
63 | 64 | |
64 | 65 | # The Lua math library (src/lib/lmathlib.c) now operates in radians, unlike |
65 | 66 | # previous versions of Lua, which used degrees. To use degrees instead of |
… |
… |
|
77 | 78 | # When compiling Lua with gcc on a Pentium machine, using a fast rounding |
78 | 79 | # method for the conversion of doubles to ints can give around 20% speed |
79 | 80 | # improvement. To use this rounding method, uncomment the following line. |
80 | | #NUMBER= -DLUA_USER_H='"../etc/luser_number.h"' -DUSE_FASTROUND |
| 81 | NUMBER= -DLUA_USER_H='"../etc/luser_number.h"' -DUSE_FASTROUND |
81 | 82 | |
82 | 83 | # For partial compatibility with old upvalue syntax, define LUA_COMPATUPSYNTAX. |
83 | 84 | # For partial compatibility with old upvalue behavior in C functions, define |
… |
… |
|
100 | 101 | # to add -lreadline (and perhaps also -lhistory and -lcurses or -lncurses) |
101 | 102 | # to EXTRA_LIBS. |
102 | 103 | # |
103 | | #USERCONF=-DLUA_USERCONFIG='"$(LUA)/etc/saconfig.c"' -DUSE_READLINE |
104 | | #EXTRA_LIBS= -lm -ldl -lreadline # -lhistory -lcurses -lncurses |
| 104 | USERCONF=-DLUA_USERCONFIG='"$(LUA)/etc/saconfig.c"' -DUSE_READLINE |
| 105 | EXTRA_LIBS= -lm -ldl -lreadline -lhistory -lcurses -lncurses |
105 | 106 | |
106 | 107 | # ------------------------------------------------------------------ C compiler |
107 | 108 | |
… |
… |
|
119 | 120 | # debug information. If you only want the shared libraries, you may want to |
120 | 121 | # add -fPIC to MYCFLAGS. |
121 | 122 | # |
122 | | MYCFLAGS= -O2 |
| 123 | MYCFLAGS= -O2 -fomit-frame-pointer -fPIC |
123 | 124 | #MYCFLAGS= -O3 -fomit-frame-pointer # -fPIC |
124 | 125 | |
125 | 126 | # Write here any options you may need for your C linker. |
… |
… |
|
148 | 149 | |
149 | 150 | # Locations for "make install". You may need to be root do "make install". |
150 | 151 | # |
151 | | INSTALL_ROOT= /usr/local |
| 152 | INSTALL_ROOT= /usr |
152 | 153 | INSTALL_BIN= $(INSTALL_ROOT)/bin |
153 | 154 | INSTALL_INC= $(INSTALL_ROOT)/include |
154 | 155 | INSTALL_LIB= $(INSTALL_ROOT)/lib |
… |
… |
|
157 | 158 | # You may prefer to use "install" instead of "cp" if you have it. |
158 | 159 | # If you use "install", you may also want to change the permissions after -m. |
159 | 160 | # |
160 | | INSTALL_EXEC= cp |
161 | | INSTALL_DATA= cp |
162 | | #INSTALL_EXEC= install -m 0755 |
163 | | #INSTALL_DATA= install -m 0644 |
| 161 | #INSTALL_EXEC= cp |
| 162 | #INSTALL_DATA= cp |
| 163 | INSTALL_EXEC= install -m 0755 |
| 164 | INSTALL_DATA= install -m 0644 |
164 | 165 | |
165 | 166 | # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= |
166 | 167 | |