On 5 March 2013 13:45, Hisham <h...@hisham.hm> wrote:
> On 5 March 2013 02:51, steve donovan <steve.j.dono...@gmail.com> wrote:
>> On Mon, Mar 4, 2013 at 9:24 PM, Hisham <h...@hisham.hm> wrote:
>>> Again checking if I understood you right: what you originally
>>> suggested was for LR to detect a Debian environment and to install
>>> itself by default on top of (and with the same settings as) the LR
>>> installed by Debian, right?
>>
>> Yes. But within half an hour of use I realized that I was breaking one
>> of the Unix ground rules ;)
>>
>> So first removing apt-get's version of LR and then installing leads to
>> more consistent results.
>>
>> It still would be useful of course if configure could detect that Lua
>> includes were in /usr/include/lua5.1.
>
> Oh, it doesn't yet? I do have Debian/Ubuntu-specific tweaks in the
> configure script. I'll check that.

>From the configure script:

```
LUA_INCDIR="/usr/include"
# ...
echo_n "Checking Lua includes... "
lua_h="$LUA_INCDIR/lua.h"
if [ -f "$lua_h" ]
then
   echo "lua.h found in $lua_h"
else
   LUA_INCDIR="$LUA_INCDIR/lua/$LUA_VERSION"
   d_lua_h="$LUA_INCDIR/lua.h"
   if [ -f "$d_lua_h" ]
   then
      echo "lua.h found in $d_lua_h"
   else
      LUA_INCDIR="$LUA_INCDIR/lua$LUA_VERSION"
      d_lua_h="$LUA_INCDIR/lua.h"
      if [ -f "$d_lua_h" ]
      then
         echo "lua.h found in $d_lua_h (Debian/Ubuntu)"
      else
         echo "lua.h not found (looked in $lua_h)"
         die "You may want to use the flag --with-lua-include. See --help."
      fi
   fi
fi
```

This _should_ be able to find /usr/include/lua5.1/lua.h... Am I
missing something? If it isn't finding it, there's a bug somewhere.

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to