ref: 7847935805ab515868e8d6ea27abecd4de75d17c
parent: 796cf6c1ed33ae73c9f4b0a31beb02ba7e15b472
author: rrt <rrt>
date: Mon Dec 18 13:41:12 EST 2006
Rename "have_lua" to "with_lua" for consistency and correct reporting!
--- a/configure
+++ b/configure
@@ -7695,7 +7695,7 @@
-have_lua=yes
+with_lua=yes
@@ -7785,7 +7785,7 @@
0.* | 1.* | 2.* | 3.* | 4.* | 5.0)
{ echo "$as_me:$LINENO: result: no (found $lua_version)" >&5
echo "${ECHO_T}no (found $lua_version)" >&6; }
- have_lua=no
+ with_lua=no
;;
*)
{ echo "$as_me:$LINENO: result: yes (found $lua_version)" >&5
@@ -7945,7 +7945,7 @@
_ACEOF
else
- have_lua=no
+ with_lua=no
fi
done
@@ -8153,7 +8153,7 @@
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
LUA_LIBS="$LUA_LIBS -llua$with_lua_suffix $lua_extra_libs"
else
- have_lua=no
+ with_lua=no
fi
@@ -8231,7 +8231,7 @@
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
-if test "$have_lua" = yes; then
+if test "$with_lua" = yes; then
cat >>confdefs.h <<\_ACEOF
#define HAVE_LUA 1
--- a/configure.ac
+++ b/configure.ac
@@ -143,7 +143,7 @@
dnl LUA, LUAC, LUA_INCLUDES, LUA_LIBS
-have_lua=yes
+with_lua=yes
AC_SUBST(LUA)
AC_SUBST(LUAC)
@@ -182,7 +182,7 @@
case $lua_version in
0.* | 1.* | 2.* | 3.* | 4.* | 5.0)
AC_MSG_RESULT([no (found $lua_version)])
- have_lua=no
+ with_lua=no
;;
*)
AC_MSG_RESULT([yes (found $lua_version)])
@@ -214,7 +214,7 @@
fi
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $LUA_INCLUDES"
-AC_CHECK_HEADERS([lua.h lualib.h], [], [have_lua=no], [])
+AC_CHECK_HEADERS([lua.h lualib.h], [], [with_lua=no], [])
CFLAGS="$save_CFLAGS"
dnl LUA_LIBS
@@ -228,7 +228,7 @@
AC_CHECK_LIB([lua$with_lua_suffix],
[lua_call],
[LUA_LIBS="$LUA_LIBS -llua$with_lua_suffix $lua_extra_libs"],
- [have_lua=no],
+ [with_lua=no],
[$LUA_LIBS $lua_extra_libs])
dnl liblua_version
@@ -258,7 +258,7 @@
CFLAGS="$save_CFLAGS"
LIBS="$save_LIBS"
-if test "$have_lua" = yes; then
+if test "$with_lua" = yes; then
AC_DEFINE(HAVE_LUA, 1, [Define to 1 if you have Lua.])
fi