41 Default is \$LUA_DIR/include |
43 Default is \$LUA_DIR/include |
42 --with-lua-lib=DIR You can also specify Lua's libraries dir. |
44 --with-lua-lib=DIR You can also specify Lua's libraries dir. |
43 Default is \$LUA_DIR/lib |
45 Default is \$LUA_DIR/lib |
44 --with-idn=LIB The name of the IDN library to link with. |
46 --with-idn=LIB The name of the IDN library to link with. |
45 Default is $IDN_LIB |
47 Default is $IDN_LIB |
|
48 --idn-library=(idn|icu) Select library to use for IDNA functionality. |
|
49 idn: use GNU libidn (default) |
|
50 icu: use ICU from IBM |
46 --with-ssl=LIB The name of the SSL to link with. |
51 --with-ssl=LIB The name of the SSL to link with. |
47 Default is $OPENSSL_LIB |
52 Default is $OPENSSL_LIB |
48 --cflags=FLAGS Flags to pass to the compiler |
53 --cflags=FLAGS Flags to pass to the compiler |
49 Default is $CFLAGS |
54 Default is $CFLAGS |
50 --ldflags=FLAGS Flags to pass to the linker |
55 --ldflags=FLAGS Flags to pass to the linker |
94 if [ "$OSTYPE" = "macosx" ] |
99 if [ "$OSTYPE" = "macosx" ] |
95 then LUA_INCDIR=/usr/local/include; |
100 then LUA_INCDIR=/usr/local/include; |
96 LUA_INCDIR_SET=yes |
101 LUA_INCDIR_SET=yes |
97 LUA_LIBDIR=/usr/local/lib |
102 LUA_LIBDIR=/usr/local/lib |
98 LUA_LIBDIR_SET=yes |
103 LUA_LIBDIR_SET=yes |
99 CFLAGS="-Wall" |
|
100 LDFLAGS="-bundle -undefined dynamic_lookup" |
104 LDFLAGS="-bundle -undefined dynamic_lookup" |
101 fi |
105 fi |
102 if [ "$OSTYPE" = "linux" ] |
106 if [ "$OSTYPE" = "linux" ] |
103 then LUA_INCDIR=/usr/local/include; |
107 then LUA_INCDIR=/usr/local/include; |
104 LUA_INCDIR_SET=yes |
108 LUA_INCDIR_SET=yes |
259 if [ "$LUA_DIR_SET" = "yes" ] |
266 if [ "$LUA_DIR_SET" = "yes" ] |
260 then |
267 then |
261 LUA_BINDIR="$LUA_DIR/bin" |
268 LUA_BINDIR="$LUA_DIR/bin" |
262 fi |
269 fi |
263 |
270 |
|
271 if [ "$IDN_LIBRARY" = "icu" ] |
|
272 then |
|
273 IDNA_LIBS="$ICU_FLAGS" |
|
274 CFLAGS="$CFLAGS -DUSE_STRINGPREP_ICU" |
|
275 else |
|
276 if [ "$IDN_LIBRARY" = "idn" ] |
|
277 then |
|
278 IDNA_LIBS="-l$IDN_LIB" |
|
279 else |
|
280 echo "Must use idn or icu as argument for --idn-library!" |
|
281 exit 1 |
|
282 fi |
|
283 fi |
|
284 LDFLAGS="$LDFLAGS -llua" |
|
285 |
264 echo -n "Checking Lua includes... " |
286 echo -n "Checking Lua includes... " |
265 lua_h="$LUA_INCDIR/lua.h" |
287 lua_h="$LUA_INCDIR/lua.h" |
266 if [ -e "$lua_h" ] |
288 if [ -e "$lua_h" ] |
267 then |
289 then |
268 echo "lua.h found in $lua_h" |
290 echo "lua.h found in $lua_h" |
309 LUA_INCDIR=$LUA_INCDIR |
331 LUA_INCDIR=$LUA_INCDIR |
310 LUA_LIBDIR=$LUA_LIBDIR |
332 LUA_LIBDIR=$LUA_LIBDIR |
311 LUA_BINDIR=$LUA_BINDIR |
333 LUA_BINDIR=$LUA_BINDIR |
312 REQUIRE_CONFIG=$REQUIRE_CONFIG |
334 REQUIRE_CONFIG=$REQUIRE_CONFIG |
313 IDN_LIB=$IDN_LIB |
335 IDN_LIB=$IDN_LIB |
|
336 IDNA_LIBS=$IDNA_LIBS |
314 OPENSSL_LIB=$OPENSSL_LIB |
337 OPENSSL_LIB=$OPENSSL_LIB |
315 CFLAGS=$CFLAGS |
338 CFLAGS=$CFLAGS |
316 LDFLAGS=$LDFLAGS |
339 LDFLAGS=$LDFLAGS |
317 CC=$CC |
340 CC=$CC |
|
341 CXX=$CXX |
318 LD=$LD |
342 LD=$LD |
319 |
343 |
320 EOF |
344 EOF |
321 |
345 |
322 echo "Installation prefix: $PREFIX" |
346 echo "Installation prefix: $PREFIX" |