]> git.sesse.net Git - vlc/commitdiff
Fix previous commit
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 19 May 2007 23:00:43 +0000 (23:00 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 19 May 2007 23:00:43 +0000 (23:00 +0000)
configure.ac

index d231d1916752ca083c8ef2b09e80430f4eda016f..487a2f405dbf9bc06d355b7a3c4c13b2e76282bd 100644 (file)
@@ -1565,10 +1565,13 @@ then
          [],  
           [ have_lua=no ] )
        AC_CHECK_LIB(  lua5.1 , luaL_newstate, 
-          [],
-         [ have_lua=no
-            AC_MSG_WARN([lua >= 5.1 not found!])
-         ])
+          [LUA_LIBS="-llua5.1"],
+         AC_CHECK_LIB(  lua , luaL_newstate, 
+            [LUA_LIBS="-llua"],
+           [ have_lua=no
+              AC_MSG_WARN([lua >= 5.1 not found!])
+           ])
+         )
       ])
     ])
   if test "x${have_lua}" = "xyes" ;  then