Lines 459-464
Link Here
|
459 |
AC_SUBST(DNET_DIST_CLEAN) |
459 |
AC_SUBST(DNET_DIST_CLEAN) |
460 |
|
460 |
|
461 |
LIBLUADIR=liblua |
461 |
LIBLUADIR=liblua |
|
|
462 |
AC_CHECK_LIBM |
462 |
|
463 |
|
463 |
have_lua=no |
464 |
have_lua=no |
464 |
requested_included_lua=no |
465 |
requested_included_lua=no |
Lines 474-480
Link Here
|
474 |
;; |
475 |
;; |
475 |
included) |
476 |
included) |
476 |
CXXFLAGS="-I$LIBLUADIR $CXXFLAGS" |
477 |
CXXFLAGS="-I$LIBLUADIR $CXXFLAGS" |
477 |
LIBLUA_LIBS="$LIBLUADIR/liblua.a" |
478 |
LIBLUA_LIBS="$LIBLUADIR/liblua.a $LIBM" |
478 |
LUA_DEPENDS="$LIBLUADIR/liblua.a" |
479 |
LUA_DEPENDS="$LIBLUADIR/liblua.a" |
479 |
LUA_BUILD="lua_build" |
480 |
LUA_BUILD="lua_build" |
480 |
LUA_CLEAN="lua_clean" |
481 |
LUA_CLEAN="lua_clean" |
Lines 487-493
Link Here
|
487 |
;; |
488 |
;; |
488 |
*) |
489 |
*) |
489 |
CXXFLAGS="-I$with_liblua/include $CXXFLAGS" |
490 |
CXXFLAGS="-I$with_liblua/include $CXXFLAGS" |
490 |
LDFLAGS="-L$with_liblua/lib $LDFLAGS" |
491 |
LDFLAGS="-L$with_liblua/lib $LDFLAGS $LIBM" |
491 |
have_lua=yes |
492 |
have_lua=yes |
492 |
;; |
493 |
;; |
493 |
esac] |
494 |
esac] |
Lines 524-530
Link Here
|
524 |
have_lua=yes, have_lua=no) |
525 |
have_lua=yes, have_lua=no) |
525 |
AC_LANG_POP(C++) |
526 |
AC_LANG_POP(C++) |
526 |
|
527 |
|
527 |
LIBLUA_LIBS="-llua" |
528 |
LIBLUA_LIBS="-llua $LIBM" |
528 |
LUA_DEPENDS="" |
529 |
LUA_DEPENDS="" |
529 |
LUA_BUILD="" |
530 |
LUA_BUILD="" |
530 |
LUA_CLEAN="" |
531 |
LUA_CLEAN="" |
Lines 535-541
Link Here
|
535 |
if test $have_lua != yes; then |
536 |
if test $have_lua != yes; then |
536 |
AC_MSG_RESULT(no) |
537 |
AC_MSG_RESULT(no) |
537 |
CXXFLAGS="-I$LIBLUADIR $CXXFLAGS" |
538 |
CXXFLAGS="-I$LIBLUADIR $CXXFLAGS" |
538 |
LIBLUA_LIBS="$LIBLUADIR/liblua.a" |
539 |
LIBLUA_LIBS="$LIBLUADIR/liblua.a $LIBM" |
539 |
LUA_DEPENDS="$LIBLUADIR/liblua.a" |
540 |
LUA_DEPENDS="$LIBLUADIR/liblua.a" |
540 |
LUA_BUILD="lua_build" |
541 |
LUA_BUILD="lua_build" |
541 |
LUA_CLEAN="lua_clean" |
542 |
LUA_CLEAN="lua_clean" |